@openhands/agent-canvas 1.7.1 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.windows.md +2 -2
- package/build/assets/{Trans-DP5rcauH.js → Trans-B7lYw4uD.js} +1 -1
- package/build/assets/{acp-providers-BHKZvEm5.js → acp-providers-WUD4tfSq.js} +1 -1
- package/build/assets/active-backend-context-mY7Gff5c.js +2 -0
- package/build/assets/{agent-context-settings-BwAakl29.js → agent-context-settings-BTUmWEzL.js} +1 -1
- package/build/assets/{agent-profiles-settings-BYU6aWus.js → agent-profiles-settings-Ilqid_R5.js} +1 -1
- package/build/assets/agent-server-conversation-service.api-C_7YnjzP.js +41 -0
- package/build/assets/{agent-settings-DEPFl5hR.js → agent-settings-BGTyoT6X.js} +2 -2
- package/build/assets/agent-settings-CxfT4ksO.js +1 -0
- package/build/assets/{alert-banner-C1nzoXBC.js → alert-banner-eRyIwDyU.js} +1 -1
- package/build/assets/api-key-entry-screen-JOx3SH1-.js +1 -0
- package/build/assets/app-settings-D53QZy5p.js +1 -0
- package/build/assets/automation-detail-nEflClmc.js +2 -0
- package/build/assets/{automation-export-Ca2ehC-k.js → automation-export-BO_kfqC8.js} +1 -1
- package/build/assets/{automations-list-ZHQSW8qD.js → automations-list-BYncC7gv.js} +1 -1
- package/build/assets/{back-nav-button-Be_L157B.js → back-nav-button-C02hGa8t.js} +1 -1
- package/build/assets/backend-form-modal-CKrBF80P.js +1 -0
- package/build/assets/{backend-synced-settings-badge-DdUfuSN8.js → backend-synced-settings-badge-CQ9xtNWm.js} +1 -1
- package/build/assets/{badge-B6q3sVom.js → badge-CzXbf7tR.js} +1 -1
- package/build/assets/{base-modal-CSHhJTSr.js → base-modal-DkVyzFMt.js} +1 -1
- package/build/assets/{brand-button-CQO8oqVo.js → brand-button-BUlDL-mz.js} +1 -1
- package/build/assets/{browser-BUDJnBg4.js → browser-3QjrEr1D.js} +1 -1
- package/build/assets/{browser-tab-Cir7KbAL.js → browser-tab-BijpUbdt.js} +1 -1
- package/build/assets/{chat-send-button-D4614wUz.js → chat-send-button-BKsVjhtA.js} +1 -1
- package/build/assets/check-CrxQfJZ2.js +1 -0
- package/build/assets/chevron-down-D_LsyTA7.js +1 -0
- package/build/assets/circle-check-DZn9HkLE.js +1 -0
- package/build/assets/{circle-plus-check-toggle-E3Ecb_gg.js → circle-plus-check-toggle-DdjUiOo1.js} +1 -1
- package/build/assets/cloud-funnel-analytics-NlmDoeo2.js +1 -0
- package/build/assets/{combobox-caret-C8_eGdp2.js → combobox-caret-Dl9UtvD6.js} +1 -1
- package/build/assets/{command-menu-N_BriUy8.js → command-menu-CvLPs7dg.js} +1 -1
- package/build/assets/{condenser-settings-jNGOKFGz.js → condenser-settings-C4Y9CzQV.js} +1 -1
- package/build/assets/{confirmation-modal-gZtbojCm.js → confirmation-modal-CRBJSllP.js} +1 -1
- package/build/assets/{context-menu-list-item-BTHGFhIx.js → context-menu-list-item-FGaafXGh.js} +1 -1
- package/build/assets/conversation-D_ORtpKC.js +1 -0
- package/build/assets/conversation-Dpc5nmGi.js +90 -0
- package/build/assets/conversation-panel-D_ORtpKC.js +1 -0
- package/build/assets/conversation-state-store-CGRQemtx.js +1 -0
- package/build/assets/{conversation-tab-empty-state-BCMHkGQk.js → conversation-tab-empty-state-CDjvNgpG.js} +1 -1
- package/build/assets/{copy-B8Y5ufoR.js → copy-Drwu97Gx.js} +1 -1
- package/build/assets/{copy-to-clipboard-button-C4l3CMSd.js → copy-to-clipboard-button-NbN1clVr.js} +1 -1
- package/build/assets/{device-verify-C_M7Z8xs.js → device-verify-CDm_WrVu.js} +1 -1
- package/build/assets/{dropdown-classes-DQlj-MpS.js → dropdown-classes-CqA2BTCL.js} +1 -1
- package/build/assets/{entry.client-CCrlta8r.js → entry.client-BO2KQj0y.js} +2 -2
- package/build/assets/{enum-filter-dropdown-paB-lFSP.js → enum-filter-dropdown-DSqPZnsD.js} +1 -1
- package/build/assets/{environment-switch-overlay-D0FgCMqs.js → environment-switch-overlay-mGl2pqqx.js} +1 -1
- package/build/assets/extensions-hub-Br3Lgynp.js +1 -0
- package/build/assets/extensions-navigation-BQmstKDZ.js +1 -0
- package/build/assets/{external-link-Cnnd6ikC.js → external-link-D9B2QMPf.js} +1 -1
- package/build/assets/files-tab-4c9HFSLo.js +1 -0
- package/build/assets/{form-control-classes-CSPevi7c.js → form-control-classes-CtVAktAy.js} +1 -1
- package/build/assets/{format-time-delta-DuhE50B-.js → format-time-delta-DICE64sz.js} +1 -1
- package/build/assets/git-provider-icon-0PqmIS_S.js +1 -0
- package/build/assets/{highlighted-source-view-suUKd5if.js → highlighted-source-view-KMsA9c4a.js} +1 -1
- package/build/assets/home-D9JsyEmE.js +1 -0
- package/build/assets/{home-BZclW6kd.js → home-TFhnmZLx.js} +1 -1
- package/build/assets/index-home-D9JsyEmE.js +1 -0
- package/build/assets/install-server-modal-BgGRnqA0.js +1 -0
- package/build/assets/{launch-Bik37u9Y.js → launch-DjkKw55l.js} +1 -1
- package/build/assets/{list-todo-_BXQzOiB.js → list-todo-BpAf7aOT.js} +1 -1
- package/build/assets/{llm-not-configured-banner-znJFsW_O.js → llm-not-configured-banner-Y4W9-sar.js} +4 -4
- package/build/assets/llm-settings-D8zNkIlP.js +1 -0
- package/build/assets/llm-settings-nPwv7hKu.js +1 -0
- package/build/assets/{llm-subscription-service-_QUsVybQ.js → llm-subscription-service-COTgZc1C.js} +1 -1
- package/build/assets/loader-circle-CGD6-Vak.js +1 -0
- package/build/assets/{loading-spinner-CcpnCr_d.js → loading-spinner-DRFyh6Iy.js} +1 -1
- package/build/assets/manage-backends-modal-DiRWE3tJ.js +1 -0
- package/build/assets/manifest-1cf33a7b.js +1 -0
- package/build/assets/markdown-renderer-U40HF0Ak.js +8 -0
- package/build/assets/mcp-xDMaHzOw.js +9 -0
- package/build/assets/{messages-CYztjKLQ.js → messages-CdNfZPgd.js} +2 -2
- package/build/assets/{modal-body-DQhiw-AR.js → modal-body-C3bGicn4.js} +1 -1
- package/build/assets/{modal-classes-YaEEa5eZ.js → modal-classes-DFFO6BMU.js} +1 -1
- package/build/assets/{modal-close-button-turIYn0t.js → modal-close-button-vxkAIRyZ.js} +1 -1
- package/build/assets/{onboarding-9pEMFGtN.js → onboarding-DWuFieEA.js} +1 -1
- package/build/assets/onboarding-modal-C8m72Dpb.js +1 -0
- package/build/assets/organization-service.api-CQ73CB-S.js +1 -0
- package/build/assets/{pencil-8_lvWDoZ.js → pencil-DzW2GB2M.js} +1 -1
- package/build/assets/{planner-tab-Dr8B-ZBI.js → planner-tab-YG0bGxDY.js} +1 -1
- package/build/assets/plugins-management-service-ijhH8OSh.js +1 -0
- package/build/assets/plus-CTGLo3aa.js +1 -0
- package/build/assets/profiles-service.api-C32pPm70.js +1 -0
- package/build/assets/providers-DuSn9s2i.js +1 -0
- package/build/assets/proxy-BiyDhMBd.js +1 -0
- package/build/assets/{puzzle-DXWdfaa7.js → puzzle-DlqT0yvr.js} +1 -1
- package/build/assets/{recommended-automations-launcher-Dye8Li08.js → recommended-automations-launcher-Dru1yN46.js} +2 -2
- package/build/assets/{refresh-cw-D7CYLy-d.js → refresh-cw-Br5254f4.js} +1 -1
- package/build/assets/root-DOLLQteU.js +2 -0
- package/build/assets/root-layout-xmylWoew.js +3 -0
- package/build/assets/schema-field-htfNouTG.js +1 -0
- package/build/assets/{sdk-section-page-Di5mT86Y.js → sdk-section-page-D0K1dBQY.js} +1 -1
- package/build/assets/search-BrpWXWUi.js +1 -0
- package/build/assets/secrets-service-Dbv5Zb8G.js +1 -0
- package/build/assets/{secrets-settings-DPlA3moO.js → secrets-settings-Da4SSaX9.js} +1 -1
- package/build/assets/{segmented-toggle-DbbD3Tve.js → segmented-toggle-CZKOdIly.js} +1 -1
- package/build/assets/settings-F4a09IxY.js +1 -0
- package/build/assets/{settings-dropdown-input-Dx6vlkgf.js → settings-dropdown-input-jOiv5Yrk.js} +1 -1
- package/build/assets/{settings-index-D5dDKrDt.js → settings-index-CyJBf5NA.js} +1 -1
- package/build/assets/{settings-input-BjW_zyTN.js → settings-input-BEaTCem1.js} +1 -1
- package/build/assets/{settings-list-classes-gQdBahdt.js → settings-list-classes-VqMzkYYt.js} +1 -1
- package/build/assets/{settings-modal-DsJk2THd.js → settings-modal-C-S1NpbC.js} +1 -1
- package/build/assets/settings-service.api-CTJRrvMu.js +1 -0
- package/build/assets/{settings-switch-UNSf8K8I.js → settings-switch-B405oU_v.js} +1 -1
- package/build/assets/{shared-conversation-DU1kwDTF.js → shared-conversation-BvWtTwES.js} +1 -1
- package/build/assets/{sidebar-layout-DXHtbEj1.js → sidebar-layout-BGMuyC86.js} +1 -1
- package/build/assets/{sidebar-mobile-menu-toggle-BlmI8OrA.js → sidebar-mobile-menu-toggle-xiKoUfGa.js} +1 -1
- package/build/assets/{sidebar-nav-link-pvUivfK2.js → sidebar-nav-link-DA4_ct9G.js} +1 -1
- package/build/assets/{sidebar-store-DwrYKwYr.js → sidebar-store-FRJ3rADB.js} +1 -1
- package/build/assets/{skill-card-pill-row-D7XCz5uk.js → skill-card-pill-row-BMdhr_sd.js} +1 -1
- package/build/assets/{skill-icon-badge-HqBWZ2Eq.js → skill-icon-badge-CGUkgcVH.js} +1 -1
- package/build/assets/{skills-plugins-YJSV6A0M.js → skills-plugins-C5eJnyft.js} +1 -1
- package/build/assets/{skills-settings-BbREHv_-.js → skills-settings-pUxMr6WZ.js} +1 -1
- package/build/assets/{styled-tooltip-DsjDnR_W.js → styled-tooltip-B3kIdVyH.js} +1 -1
- package/build/assets/{task-list-tab-Dzim5ftn.js → task-list-tab-B3k4W1cK.js} +1 -1
- package/build/assets/{terminal-CYFAMiXx.js → terminal-CBI_41Zc.js} +1 -1
- package/build/assets/{toggle-switch-BptY3XRG.js → toggle-switch-DYRr9CAR.js} +1 -1
- package/build/assets/{trash-2-Bq4lHbTB.js → trash-2-gZPlx23R.js} +1 -1
- package/build/assets/{typography-C6fuRTTT.js → typography-B1UxuuEC.js} +1 -1
- package/build/assets/{use-acp-credential-form-CuBXKNvP.js → use-acp-credential-form-CjSvKWFH.js} +1 -1
- package/build/assets/use-activate-agent-profile-DCRf47e-.js +1 -0
- package/build/assets/use-agent-profiles-DmT9zxAN.js +1 -0
- package/build/assets/{use-can-manage-org-profiles-Uai-HHx2.js → use-can-manage-org-profiles-vBiP7rHF.js} +1 -1
- package/build/assets/use-cloud-current-user-id-BMq9gw93.js +1 -0
- package/build/assets/use-config-C959QcRC.js +1 -0
- package/build/assets/{use-create-conversation-DzcM79TE.js → use-create-conversation-CakhLF0X.js} +1 -1
- package/build/assets/{use-create-secret-2YLjoQw-.js → use-create-secret-RT4QtSS9.js} +1 -1
- package/build/assets/use-llm-profiles-CdaxVpyY.js +1 -0
- package/build/assets/use-onboarding-completion-CJU4MNAY.js +1 -0
- package/build/assets/use-plugins-marketplace-D-93nqtJ.js +1 -0
- package/build/assets/{use-save-agent-profile-Q2M72WgR.js → use-save-agent-profile-DGJ3-u0M.js} +1 -1
- package/build/assets/{use-save-settings-BZK7zVsK.js → use-save-settings--C6LZXfI.js} +1 -1
- package/build/assets/use-settings-DIAo5KFk.js +1 -0
- package/build/assets/use-settings-nav-items-DPK5sxvR.js +16 -0
- package/build/assets/use-skills-D_mLhYNa.js +1 -0
- package/build/assets/use-tracking-COqZLobY.js +1 -0
- package/build/assets/{use-user-conversation-43duhf7D.js → use-user-conversation-DhcAEyJX.js} +1 -1
- package/build/assets/{useMutation-DyQXZFEF.js → useMutation-DHLpZ6J0.js} +1 -1
- package/build/assets/utils-DsWhWn2F.js +1 -0
- package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CJ7amdtQ.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js} +1 -1
- package/build/assets/{vendor~files-tab-vm3f67Pz.js → vendor~files-tab-atebg0iG.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation-kX4LrGQC.js → vendor~index-home~home~conversation-panel~conversation-G9DMrR7m.js} +1 -1
- package/build/assets/{vendor~root-layout~conversation-panel~conversation-DpA6fir3.js → vendor~root-layout~conversation-panel~conversation-DEhW1h3I.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation-EShpjxey.js → vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DD_UNO02.js → vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-Be63Q2Ln.js → vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js} +1 -1
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-Bw4AuHN1.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js} +1 -1
- package/build/assets/{verification-settings-B4DL3Tez.js → verification-settings-Vr5cN4md.js} +1 -1
- package/build/assets/x-Dx_JbpHA.js +1 -0
- package/build/favicon-16x16.png +0 -0
- package/build/favicon-32x32.png +0 -0
- package/build/favicon.ico +0 -0
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +2 -0
- package/build/locales/ca/openhands.json +2 -0
- package/build/locales/de/openhands.json +2 -0
- package/build/locales/en/openhands.json +2 -0
- package/build/locales/es/openhands.json +2 -0
- package/build/locales/fr/openhands.json +2 -0
- package/build/locales/it/openhands.json +2 -0
- package/build/locales/ja/openhands.json +2 -0
- package/build/locales/ko-KR/openhands.json +2 -0
- package/build/locales/no/openhands.json +2 -0
- package/build/locales/pt/openhands.json +2 -0
- package/build/locales/tr/openhands.json +2 -0
- package/build/locales/uk/openhands.json +2 -0
- package/build/locales/zh-CN/openhands.json +2 -0
- package/build/locales/zh-TW/openhands.json +2 -0
- package/config/defaults.json +4 -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 +7 -7
- package/dist/api/agent-server-adapter.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.js +95 -95
- package/dist/api/automation-service/automation-service.api.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 +1 -1
- package/dist/api/backend-registry/storage.js.map +1 -1
- package/dist/api/backend-registry/types.d.ts +2 -0
- package/dist/api/cloud/conversation-service.api.cjs +1 -1
- package/dist/api/cloud/conversation-service.api.js +22 -22
- package/dist/api/mcp-service/mcp-service.api.cjs +1 -1
- package/dist/api/mcp-service/mcp-service.api.cjs.map +1 -1
- package/dist/api/mcp-service/mcp-service.api.js +19 -19
- package/dist/api/mcp-service/mcp-service.api.js.map +1 -1
- 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.js +26 -12
- package/dist/api/settings-service/settings-service.api.js.map +1 -1
- package/dist/components/features/mcp-page/custom-server-editor.cjs +1 -1
- package/dist/components/features/mcp-page/custom-server-editor.js +16 -16
- 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.d.ts +2 -2
- package/dist/components/features/mcp-page/installed-server-card.js +6 -7
- package/dist/components/features/mcp-page/installed-server-card.js.map +1 -1
- package/dist/components/features/mcp-page/installed-servers-section.cjs +1 -1
- package/dist/components/features/mcp-page/installed-servers-section.cjs.map +1 -1
- package/dist/components/features/mcp-page/installed-servers-section.d.ts +2 -2
- package/dist/components/features/mcp-page/installed-servers-section.js +2 -2
- package/dist/components/features/mcp-page/installed-servers-section.js.map +1 -1
- package/dist/components/features/mcp-page/mcp-server-health.cjs +1 -1
- package/dist/components/features/mcp-page/mcp-server-health.js +4 -4
- package/dist/components/features/settings/mcp-settings/mcp-server-form.cjs +1 -1
- package/dist/components/features/settings/mcp-settings/mcp-server-form.cjs.map +1 -1
- package/dist/components/features/settings/mcp-settings/mcp-server-form.js +2 -1
- package/dist/components/features/settings/mcp-settings/mcp-server-form.js.map +1 -1
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +3 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/contexts/active-backend-context.cjs +1 -1
- package/dist/contexts/active-backend-context.cjs.map +1 -1
- package/dist/contexts/active-backend-context.d.ts +3 -2
- package/dist/contexts/active-backend-context.js +55 -42
- package/dist/contexts/active-backend-context.js.map +1 -1
- package/dist/favicon-16x16.png +0 -0
- package/dist/favicon-32x32.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/hooks/mutation/use-update-mcp-server.cjs +1 -1
- package/dist/hooks/mutation/use-update-mcp-server.js +5 -5
- package/dist/hooks/query/use-cloud-current-user-id.cjs +1 -1
- package/dist/hooks/query/use-cloud-current-user-id.cjs.map +1 -1
- package/dist/hooks/query/use-cloud-current-user-id.js +7 -5
- package/dist/hooks/query/use-cloud-current-user-id.js.map +1 -1
- package/dist/hooks/query/use-cloud-organizations.cjs +1 -1
- package/dist/hooks/query/use-cloud-organizations.cjs.map +1 -1
- package/dist/hooks/query/use-cloud-organizations.js +5 -1
- package/dist/hooks/query/use-cloud-organizations.js.map +1 -1
- package/dist/hooks/use-can-manage-org-profiles.cjs +1 -1
- package/dist/hooks/use-can-manage-org-profiles.cjs.map +1 -1
- package/dist/hooks/use-can-manage-org-profiles.js +2 -1
- package/dist/hooks/use-can-manage-org-profiles.js.map +1 -1
- package/dist/hooks/use-tracking.cjs +1 -1
- package/dist/hooks/use-tracking.js +9 -9
- package/dist/i18n/declaration.cjs +1 -1
- package/dist/i18n/declaration.cjs.map +1 -1
- package/dist/i18n/declaration.d.ts +2 -0
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +1 -1
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +34 -0
- package/dist/i18n/translation.js.map +1 -1
- package/dist/locales/ar/openhands.json +2 -0
- package/dist/locales/ca/openhands.json +2 -0
- package/dist/locales/de/openhands.json +2 -0
- package/dist/locales/en/openhands.json +2 -0
- package/dist/locales/es/openhands.json +2 -0
- package/dist/locales/fr/openhands.json +2 -0
- package/dist/locales/it/openhands.json +2 -0
- package/dist/locales/ja/openhands.json +2 -0
- package/dist/locales/ko-KR/openhands.json +2 -0
- package/dist/locales/no/openhands.json +2 -0
- package/dist/locales/pt/openhands.json +2 -0
- package/dist/locales/tr/openhands.json +2 -0
- package/dist/locales/uk/openhands.json +2 -0
- package/dist/locales/zh-CN/openhands.json +2 -0
- package/dist/locales/zh-TW/openhands.json +2 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/settings-client.cjs +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/settings-client.cjs.map +1 -1
- package/dist/node_modules/@openhands/typescript-client/dist/client/settings-client.js +9 -0
- package/dist/node_modules/@openhands/typescript-client/dist/client/settings-client.js.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +7 -2
- package/dist/package.js.map +1 -1
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.js +5 -5
- package/dist/routes/mcp.cjs +1 -1
- package/dist/routes/mcp.cjs.map +1 -1
- package/dist/routes/mcp.js +73 -82
- package/dist/routes/mcp.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 +8 -0
- package/dist/services/telemetry.js +163 -116
- package/dist/services/telemetry.js.map +1 -1
- package/dist/types/mcp-server.d.ts +5 -0
- package/dist/types/settings.d.ts +3 -0
- package/dist/utils/mcp-config.cjs +1 -1
- package/dist/utils/mcp-config.cjs.map +1 -1
- package/dist/utils/mcp-config.d.ts +8 -0
- package/dist/utils/mcp-config.js +25 -20
- package/dist/utils/mcp-config.js.map +1 -1
- package/dist/utils/mcp-installed-servers.cjs +1 -1
- package/dist/utils/mcp-installed-servers.cjs.map +1 -1
- package/dist/utils/mcp-installed-servers.js +6 -3
- package/dist/utils/mcp-installed-servers.js.map +1 -1
- package/package.json +7 -2
- package/scripts/check-sdk-version-sync.mjs +6 -6
- package/scripts/dev-safe.mjs +2 -2
- package/scripts/stryker-diff.mjs +137 -0
- package/build/assets/active-backend-context-B9942JGX.js +0 -1
- package/build/assets/agent-server-conversation-service.api-D7qh9amG.js +0 -41
- package/build/assets/agent-settings-BbNLRtoh.js +0 -1
- package/build/assets/api-key-entry-screen-B2kVLRDQ.js +0 -1
- package/build/assets/app-settings-B92bjTei.js +0 -1
- package/build/assets/automation-detail-DoVSHQLs.js +0 -2
- package/build/assets/backend-form-modal-C0CIsQvd.js +0 -1
- package/build/assets/check-BMOG005H.js +0 -1
- package/build/assets/chevron-down-CV1zZP_K.js +0 -1
- package/build/assets/circle-check-lvN_jFN5.js +0 -1
- package/build/assets/client-source-D8jWKBfE.js +0 -1
- package/build/assets/cloud-funnel-analytics-CnCkPgQa.js +0 -1
- package/build/assets/conversation-DceG4LFS.js +0 -90
- package/build/assets/conversation-Do2Vg7uo.js +0 -1
- package/build/assets/conversation-panel-Do2Vg7uo.js +0 -1
- package/build/assets/conversation-state-store-BORusMiV.js +0 -1
- package/build/assets/extensions-hub-B2WudOET.js +0 -1
- package/build/assets/extensions-navigation-CYjIM65d.js +0 -1
- package/build/assets/files-tab-LSBijbEi.js +0 -1
- package/build/assets/git-provider-icon-DeQUgZVE.js +0 -1
- package/build/assets/home-C_R5pEbs.js +0 -1
- package/build/assets/index-home-C_R5pEbs.js +0 -1
- package/build/assets/install-server-modal-xCf76eim.js +0 -1
- package/build/assets/llm-settings-BYo9SN0I.js +0 -1
- package/build/assets/llm-settings-BaM0zJg5.js +0 -1
- package/build/assets/loader-circle-6zlEYCJw.js +0 -1
- package/build/assets/manage-backends-modal-n6PtHOER.js +0 -1
- package/build/assets/manifest-e9bbad7b.js +0 -1
- package/build/assets/markdown-renderer-Dkmjmx_d.js +0 -8
- package/build/assets/mcp-BJUOnO6v.js +0 -9
- package/build/assets/onboarding-modal-dYsjXJwx.js +0 -1
- package/build/assets/organization-service.api-HsxJhNCf.js +0 -1
- package/build/assets/plugins-management-service-DEjBqDoT.js +0 -1
- package/build/assets/plus-vIbGD459.js +0 -1
- package/build/assets/profiles-service.api-BddMsEhq.js +0 -1
- package/build/assets/providers-BxJi3BMO.js +0 -1
- package/build/assets/proxy-CN3HaaOW.js +0 -1
- package/build/assets/root-D4hpCAq9.js +0 -2
- package/build/assets/root-layout-a4-4sfbh.js +0 -3
- package/build/assets/schema-field-CZSs0hQP.js +0 -1
- package/build/assets/search-sKuYKllf.js +0 -1
- package/build/assets/secrets-service-i4CCd-UN.js +0 -1
- package/build/assets/settings-SHSt9Rq2.js +0 -1
- package/build/assets/settings-service.api-i_HHIqJP.js +0 -1
- package/build/assets/telemetry-B-2fXtqV.js +0 -2
- package/build/assets/use-activate-agent-profile-CXDcjVt8.js +0 -1
- package/build/assets/use-agent-profiles-CliaHofi.js +0 -1
- package/build/assets/use-cloud-current-user-id-BzamKpu-.js +0 -1
- package/build/assets/use-config-DPEYpfIj.js +0 -1
- package/build/assets/use-llm-profiles-Ci3zAVzV.js +0 -1
- package/build/assets/use-onboarding-completion-STApsofr.js +0 -1
- package/build/assets/use-plugins-marketplace-CzzdrUSK.js +0 -1
- package/build/assets/use-settings-BKpkUS4y.js +0 -1
- package/build/assets/use-settings-nav-items-BlXge_bf.js +0 -16
- package/build/assets/use-skills-BltA9XrV.js +0 -1
- package/build/assets/use-tracking-De7qByD4.js +0 -1
- package/build/assets/utils-qjs_KuS4.js +0 -1
- package/build/assets/x-EjvKGawc.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,bt as n,n as r,r as i,t as a,yt as o}from"./vendor-styling-Bcgpimp9.js";import{U as s}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js";import{n as c}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js";import{t as l}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js";import{E as u,m as d}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js";import{t as f}from"./useMutation-DHLpZ6J0.js";import{t as p}from"./useQuery-B38jBavx.js";import{Dt as m,N as h,Ot as g,P as _,R as v,Z as y,ot as b}from"./active-backend-context-mY7Gff5c.js";import{I as x,t as S,z as C}from"./utils-DsWhWn2F.js";import{t as w}from"./back-nav-button-C02hGa8t.js";import{t as T}from"./copy-Drwu97Gx.js";import{t as E}from"./external-link-D9B2QMPf.js";import{t as D}from"./proxy-BiyDhMBd.js";import{t as O}from"./loading-spinner-DRFyh6Iy.js";import{t as k}from"./settings-Chfn5xTD.js";import{t as A}from"./settings-service.api-CTJRrvMu.js";import{n as j}from"./use-settings-DIAo5KFk.js";import{f as M}from"./form-control-classes-CtVAktAy.js";import{t as N}from"./brand-button-BUlDL-mz.js";import{i as ee}from"./dropdown-classes-CqA2BTCL.js";import{i as te}from"./combobox-caret-Dl9UtvD6.js";import{t as P}from"./settings-input-BEaTCem1.js";import{t as F}from"./profiles-service.api-C32pPm70.js";import{a as I,d as L,n as R,p as z,r as B,t as V}from"./llm-subscription-DTqtBCWz.js";import{t as H}from"./llm-subscription-service-COTgZc1C.js";import{t as ne}from"./use-llm-profiles-CdaxVpyY.js";import{i as re,n as ie,t as ae}from"./use-can-manage-org-profiles-vBiP7rHF.js";import{t as oe}from"./u-edit-809W9D9T.js";import{n as se}from"./map-provider-CXU6issd.js";import{_ as ce,f as le,m as ue,y as U}from"./schema-field-htfNouTG.js";import{t as de}from"./settings-dropdown-input-jOiv5Yrk.js";import{t as fe}from"./copy-to-clipboard-button-NbN1clVr.js";import{r as W}from"./typography-B1UxuuEC.js";import{t as pe}from"./sdk-section-page-D0K1dBQY.js";import{o as me}from"./extension-module-card-classes-Bo43vY5V.js";import{a as he,i as ge,n as G,o as K,r as q,t as _e}from"./badge-CzXbf7tR.js";import{t as ve}from"./u-check-circle-DBEvndTS.js";import{i as ye,n as be,r as xe,t as Se}from"./settings-list-classes-VqMzkYYt.js";import{n as Ce}from"./settings-section-header-context-CnIIQAUn.js";var we=u(`text-cursor`,[[`path`,{d:`M17 22h-1a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h1`,key:`uvaxm9`}],[`path`,{d:`M7 22h1a4 4 0 0 0 4-4`,key:`1l7xii`}],[`path`,{d:`M7 2h1a4 4 0 0 1 4 4`,key:`1vrvvh`}]]);function J(){let e=c();return f({mutationFn:e=>F.activateProfile(e),onSuccess:async()=>{A.invalidateCache(),await e.invalidateQueries({queryKey:h.all}),await e.invalidateQueries({queryKey:v.personal()})},meta:{disableToast:!0}})}var Te=e=>{let[t,...n]=e.split(`/`);return!t||n.length===0?{provider:``,model:e,separator:``}:{provider:t,model:n.join(`/`),separator:`/`}};function Ee(e,t){if(!t)return e;let n=t.toLowerCase();return e.filter(e=>e.name.toLowerCase().includes(n))}function De(e,t){return t===void 0?e:e.filter(e=>e.verified===t)}function Oe(e,t){return!t||t<=0?e:e.slice(0,t)}function ke(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!==void 0&&t.set(n,String(r));let n=t.toString();return n?`?${n}`:``}var Ae=class{static async searchModels(e={},t){let n=b();if(n.backend.kind===`cloud`){let t=ke({page_id:e.page_id,limit:e.limit,query:e.query,verified__eq:e.verified__eq,provider__eq:e.provider__eq});return D({backend:n.backend,method:`GET`,path:`/api/v1/config/models/search${t}`})}let r=new d(y()),i=t===void 0?r.getVerifiedModels():Promise.resolve(t),[a,o]=await Promise.all([r.getModels(),i]),s=e.provider__eq??null,c=new Set(s?o?.[s]??[]:[]),l=[...c].map(e=>({provider:s,name:e,verified:!0})),u=s?(a??[]).filter(e=>e.startsWith(`${s}/`)).map(e=>e.slice(s.length+1)).filter(e=>e.length>0&&!c.has(e)).map(e=>({provider:s,name:e,verified:!1})):[];return{items:Oe(De(Ee([...l,...u],e.query),e.verified__eq),e.limit),next_page_id:null}}static async searchProviders(e={},t){let n=b();if(n.backend.kind===`cloud`){let t=ke({page_id:e.page_id,limit:e.limit,query:e.query,verified__eq:e.verified__eq});return D({backend:n.backend,method:`GET`,path:`/api/v1/config/providers/search${t}`})}let r=new d(y()),i=t===void 0?r.getVerifiedModels():Promise.resolve(t),[a,o]=await Promise.all([r.getProviders(),i]),s=new Set(Object.keys(o??{}));return{items:Oe(De(Ee([...new Set([...s,...a??[]])].map(e=>({name:e,verified:s.has(e)})),e.query),e.verified__eq),e.limit),next_page_id:null}}},je=[`config`,`verified-models`],Y=1e3*60*5,Me=1e3*60*15;async function Ne(){return b().backend.kind===`cloud`?{}:await new d(y()).getVerifiedModels()??{}}var Pe=()=>p({queryKey:[`config`,`providers`],queryFn:async({client:e})=>{let t=await e.fetchQuery({queryKey:je,queryFn:Ne,staleTime:Y});return(await Ae.searchProviders({limit:100},t)).items},staleTime:Y,gcTime:Me}),Fe=10;async function Ie(e,t,n,r=0){if(r>=Fe)throw Error(`Too many pagination requests for provider ${e}`);let i=await Ae.searchModels({provider__eq:e,limit:100,page_id:n},t);if(i.next_page_id){let n=await Ie(e,t,i.next_page_id,r+1);return[...i.items,...n]}return i.items}var Le=e=>p({queryKey:[`config`,`models`,e],queryFn:async({client:t})=>Ie(e,await t.fetchQuery({queryKey:je,queryFn:Ne,staleTime:Y})),enabled:!!e,staleTime:Y,gcTime:Me}),X=e(t(),1),Z=o();function Q({isDisabled:e,currentModel:t,onChange:n,onDefaultValuesChanged:o,wrapperClassName:s,labelClassName:c}){let[,u]=X.useState(null),[d,f]=X.useState(null),[p,m]=X.useState(null),{data:h=[]}=Pe(),{data:g=[],isLoading:_,error:v}=Le(d),y=X.useMemo(()=>h.filter(e=>e.verified),[h]),b=X.useMemo(()=>h.filter(e=>!e.verified),[h]),w=X.useMemo(()=>g.filter(e=>e.verified),[g]),T=X.useMemo(()=>g.filter(e=>!e.verified),[g]);X.useEffect(()=>{if(t){let{provider:e,model:n}=Te(t);u(t),f(e||null),m(n),o?.(e||null,n)}},[t]);let E=e=>{f(e),m(null),u(`${e}/`),n?.(e,null)},D=e=>{let t=`${d}/${e}`;d===`openai`&&(t=e),u(t),m(e),n?.(d,e)},O=()=>{f(null),u(null)},{t:k}=l(`openhands`);return(0,Z.jsxs)(`div`,{className:S(`flex flex-col md:flex-row w-full min-w-0 justify-between gap-4 md:gap-[46px]`,s),children:[(0,Z.jsxs)(`fieldset`,{className:`flex flex-col gap-2.5 w-full`,children:[(0,Z.jsx)(`label`,{className:S(`text-sm`,c),children:k(C.LLM$PROVIDER)}),(0,Z.jsxs)(a,{"data-testid":`llm-provider-input`,isRequired:!0,isVirtualized:!1,name:`llm-provider-input`,isDisabled:e,"aria-label":k(C.LLM$PROVIDER),isClearable:!1,onSelectionChange:e=>{e?.toString()&&E(e.toString())},onInputChange:e=>!e&&O(),defaultSelectedKey:d??void 0,selectedKey:d,classNames:{popoverContent:`bg-content1 rounded-xl border border-[var(--oh-border)]`,selectorButton:te},selectorButtonProps:{disableRipple:!0},inputProps:{classNames:{inputWrapper:M}},children:[(0,Z.jsx)(r,{title:k(C.MODEL_SELECTOR$VERIFIED),classNames:{heading:`text-[var(--oh-muted)]`},children:y.map(e=>(0,Z.jsx)(i,{"data-testid":`provider-item-${e.name}`,children:se(e.name)},e.name))}),b.length>0?(0,Z.jsx)(r,{title:k(C.MODEL_SELECTOR$OTHERS),classNames:{heading:`text-[var(--oh-muted)]`},children:b.map(e=>(0,Z.jsx)(i,{children:se(e.name)},e.name))}):null]})]}),d===`openhands`&&(0,Z.jsx)(U,{testId:`openhands-account-help`,text:k(C.SETTINGS$NEED_OPENHANDS_ACCOUNT),linkText:k(C.SETTINGS$CLICK_HERE),href:x.PRODUCTION,size:`settings`,linkColor:`white`}),(0,Z.jsxs)(`fieldset`,{className:`flex flex-col gap-2.5 w-full`,children:[(0,Z.jsx)(`label`,{className:S(`text-sm`,c),children:k(C.LLM$MODEL)}),(0,Z.jsxs)(a,{"data-testid":`llm-model-input`,isRequired:!0,isVirtualized:!1,isLoading:_,name:`llm-model-input`,"aria-label":k(C.LLM$MODEL),isClearable:!1,onSelectionChange:e=>{e?.toString()&&D(e.toString())},isDisabled:e||!d,selectedKey:p,defaultSelectedKey:p??void 0,classNames:{popoverContent:`bg-content1 rounded-xl border border-[var(--oh-border)]`,selectorButton:te},selectorButtonProps:{disableRipple:!0},inputProps:{classNames:{inputWrapper:M}},children:[(0,Z.jsx)(r,{title:k(C.MODEL_SELECTOR$VERIFIED),classNames:{heading:`text-[var(--oh-muted)]`},children:w.map(e=>(0,Z.jsx)(i,{children:e.name},e.name))}),T.length>0?(0,Z.jsx)(r,{title:k(C.MODEL_SELECTOR$OTHERS),classNames:{heading:`text-[var(--oh-muted)]`},children:T.map(e=>(0,Z.jsx)(i,{"data-testid":`model-item-${e.name}`,children:e.name},e.name))}):null]}),v&&(0,Z.jsx)(`p`,{"data-testid":`models-error`,className:`text-danger text-xs`,children:k(C.CONFIGURATION$ERROR_FETCH_MODELS)})]})]})}function Re(){return f({mutationFn:H.startOpenAIDeviceLogin})}function ze(){let e=c();return f({mutationFn:H.pollOpenAIDeviceLogin,onSuccess:()=>{e.invalidateQueries({queryKey:_.openaiStatus})}})}function Be(){let e=c();return f({mutationFn:H.logoutOpenAI,onSuccess:()=>{e.invalidateQueries({queryKey:_.openaiStatus})}})}function Ve({enabled:e=!0}={}){return p({queryKey:_.openaiStatus,queryFn:H.getOpenAIStatus,enabled:e,retry:!1,refetchOnWindowFocus:!1,staleTime:1e3*60*5,meta:{disableToast:!0}})}var He=5,Ue=1;function We(e){let t=e.verificationUriComplete??e.verificationUri;window.open(t,`_blank`,`noopener,noreferrer`)}function Ge({isDisabled:e=!1}){let{t}=l(`openhands`),n=Ve(),r=Re(),i=ze(),a=Be(),[o,s]=X.useState(null),[c,u]=X.useState(!1),[d,f]=X.useState(!1),p=X.useRef(null),h=X.useCallback(()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),_=()=>{o&&(navigator.clipboard.writeText(o.userCode),u(!0),setTimeout(()=>u(!1),2e3))},v=r.isPending||i.isPending||a.isPending,y=!!n.data?.connected,b=X.useCallback(async e=>{try{return(await i.mutateAsync(e)).connected?(s(null),f(!1),g(t(C.SETTINGS$SUBSCRIPTION_CONNECTED_TOAST)),!0):(f(!0),!1)}catch{return m(t(C.SETTINGS$SUBSCRIPTION_CONNECT_ERROR)),!0}},[i,t]);return X.useEffect(()=>{if(!o||y||e)return;let t=!1,n=Math.max(o.intervalSeconds??He,Ue),r=()=>{h(),p.current=window.setTimeout(async()=>{if(t)return;let e=await b(o.deviceCode);!t&&!e&&r()},n*1e3)};return r(),()=>{t=!0,h()}},[o,h,y,e,b]),(0,Z.jsxs)(`section`,{"data-testid":`openai-subscription-auth-card`,className:`flex flex-col gap-4 rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-4`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(W.H3,{children:t(C.SETTINGS$SUBSCRIPTION_CARD_TITLE)}),(0,Z.jsx)(W.Paragraph,{className:`text-tertiary-alt text-sm leading-5`,children:t(C.SETTINGS$SUBSCRIPTION_CARD_DESCRIPTION)})]}),(0,Z.jsx)(`div`,{className:`flex flex-col gap-1 text-sm`,"data-testid":`subscription-status`,children:n.isLoading?(0,Z.jsx)(`span`,{className:`text-tertiary-light`,children:t(C.SETTINGS$SUBSCRIPTION_STATUS_CHECKING)}):n.isError?(0,Z.jsx)(`span`,{className:`text-danger`,children:t(C.SETTINGS$SUBSCRIPTION_STATUS_UNAVAILABLE)}):y?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{className:`text-success`,children:t(C.SETTINGS$SUBSCRIPTION_STATUS_CONNECTED)}),n.data?.accountEmail?(0,Z.jsx)(`span`,{className:`text-tertiary-light`,children:t(C.SETTINGS$SUBSCRIPTION_ACCOUNT,{account:n.data.accountEmail})}):null]}):(0,Z.jsx)(`span`,{className:`text-warning`,children:t(C.SETTINGS$SUBSCRIPTION_STATUS_DISCONNECTED)})}),o?(0,Z.jsxs)(`div`,{"data-testid":`subscription-device-challenge`,className:`flex flex-col gap-2 rounded-lg border border-[var(--oh-border-subtle)] p-3 text-sm`,children:[(0,Z.jsx)(`span`,{children:t(C.SETTINGS$SUBSCRIPTION_DEVICE_INSTRUCTIONS)}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg bg-[var(--oh-surface-deep)] px-3 py-2 font-mono text-base font-semibold text-white`,children:[(0,Z.jsx)(`span`,{"data-testid":`subscription-user-code`,className:`flex-1 select-all tracking-[0.08em]`,children:o.userCode}),(0,Z.jsx)(fe,{isHidden:!1,isDisabled:!1,onClick:_,mode:c?`copied`:`copy`})]}),(0,Z.jsxs)(`a`,{href:o.verificationUriComplete??o.verificationUri,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1 text-sm text-[var(--oh-accent)] underline`,children:[t(C.SETTINGS$SUBSCRIPTION_OPEN_LOGIN),(0,Z.jsx)(E,{size:14,"aria-hidden":!0})]}),d?(0,Z.jsx)(`span`,{className:`text-warning`,children:t(C.SETTINGS$SUBSCRIPTION_PENDING_TOAST)}):null]}):null,(0,Z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[y?(0,Z.jsx)(N,{testId:`subscription-disconnect`,type:`button`,variant:`tertiary`,isDisabled:e||v,onClick:async()=>{try{await a.mutateAsync(),h(),s(null),f(!1),g(t(C.SETTINGS$SUBSCRIPTION_DISCONNECTED_TOAST))}catch{m(t(C.ERROR$GENERIC))}},children:t(C.SETTINGS$SUBSCRIPTION_DISCONNECT)}):(0,Z.jsx)(N,{testId:`subscription-connect`,type:`button`,variant:`primary`,isDisabled:e||v,onClick:async()=>{try{let e=await r.mutateAsync();s(e),f(!0),We(e)}catch{m(t(C.SETTINGS$SUBSCRIPTION_CONNECT_ERROR))}},children:t(C.SETTINGS$SUBSCRIPTION_CONNECT)}),o?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(N,{testId:`subscription-poll`,type:`button`,variant:`secondary`,isDisabled:e||v,onClick:async()=>{o&&(h(),b(o.deviceCode))},children:t(C.SETTINGS$SUBSCRIPTION_FINISH_SIGN_IN)}),(0,Z.jsx)(N,{testId:`subscription-cancel`,type:`button`,variant:`tertiary`,isDisabled:e||v,onClick:()=>{h(),s(null),f(!1)},children:t(C.BUTTON$CANCEL)})]}):null]})]})}var Ke=e=>(0,Z.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,Z.jsx)(`path`,{d:`M9.9509 15.588H10.8349L16.5125 9.91042L15.6285 9.0264L10.3991 14.2681L8.00867 11.8777L7.12465 12.7617L9.9509 15.588Z`,fill:`currentColor`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.8521 3.29895C14.8443 3.42346 16.712 4.41954 18.0816 5.78916C19.7002 7.53231 20.5718 9.64898 20.5718 12.1392C20.5718 14.1314 19.8247 15.999 18.5796 17.6177C17.3345 19.1118 15.5914 20.2324 13.5992 20.6059C11.607 20.9794 9.61486 20.7304 7.87171 19.7343C6.12856 18.7382 4.75895 17.2441 4.01189 15.3765C3.26482 13.5088 3.14031 11.3921 3.76286 9.52447C4.38542 7.53231 5.50601 5.91367 7.24916 4.79308C8.86779 3.67248 10.86 3.17444 12.8521 3.29895ZM13.4747 19.3608C15.0933 18.9873 16.5874 18.1157 17.708 16.7461C18.7041 15.3765 19.3267 13.7578 19.2022 12.0147C19.2022 10.0225 18.4551 8.03035 17.0855 6.66073C15.8404 5.41563 14.3463 4.66857 12.6031 4.54405C10.9845 4.41954 9.24132 4.79308 7.87171 5.78916C6.50209 6.78524 5.50601 8.15486 5.00797 9.89801C4.50993 11.5166 4.50993 13.2598 5.25699 14.8784C6.00405 16.4971 7.12465 17.7422 8.61877 18.6137C10.1129 19.4853 11.856 19.7343 13.4747 19.3608Z`,fill:`currentColor`})]});function qe({testId:e,isSet:t}){return(0,Z.jsx)(`span`,{"data-testid":e||(t?`set-indicator`:`unset-indicator`),children:(0,Z.jsx)(Ke,{className:S(t?`text-success`:`text-danger`)})})}function Je(){let e=c();return f({mutationFn:({name:e,newName:t})=>F.renameProfile(e,t),onSuccess:async(t,{name:n,newName:r})=>{b().backend.kind===`local`&&(await A.getSettings())?.title_llm_profile===n&&await A.saveSettings({title_llm_profile:r}),A.invalidateCache(),await e.invalidateQueries({queryKey:h.all}),await e.invalidateQueries({queryKey:v.personal()})},meta:{disableToast:!0}})}function Ye({profile:e,onClose:t}){let{t:n}=l(`openhands`),[r,i]=(0,X.useState)(``),a=Je(),o=(0,X.useRef)(null);if((0,X.useEffect)(()=>{i(e?.name??``)},[e?.name]),!e)return null;let s=K(r,{isRequired:!0}),c=r===e.name,u=async()=>{if(!s){m(n(C.SETTINGS$PROFILE_NAME_RULE));return}if(c){t();return}try{await a.mutateAsync({name:e.name,newName:r}),g(n(C.SETTINGS$PROFILE_RENAMED,{name:r})),t()}catch(e){m(e instanceof Error?e.message:n(C.ERROR$GENERIC))}},d=()=>{a.isPending||t()},f=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(N,{type:`button`,variant:`tertiary`,onClick:d,isDisabled:a.isPending,children:n(C.BUTTON$CANCEL)}),(0,Z.jsx)(N,{testId:`rename-profile-submit`,type:`button`,variant:`primary`,onClick:u,isDisabled:a.isPending||!s,children:a.isPending?(0,Z.jsx)(O,{size:`small`}):n(C.BUTTON$RENAME)})]});return(0,Z.jsx)(q,{isOpen:!0,title:n(C.SETTINGS$PROFILE_RENAME_TITLE),footer:f,onClose:d,initialFocusRef:o,children:(0,Z.jsx)(`div`,{"data-testid":`rename-profile-modal`,className:`flex flex-col gap-3`,children:(0,Z.jsx)(ge,{ref:o,testId:`rename-profile-input`,ruleTestId:`rename-profile-rule`,value:r,onChange:i,isRequired:!0,onKeyDown:e=>{e.key===`Enter`&&!a.isPending&&s&&u()}})})})}function Xe(){let e=c();return f({mutationFn:e=>F.deleteProfile(e),onSuccess:async(t,n)=>{b().backend.kind===`local`&&(await A.getSettings())?.title_llm_profile===n&&await A.saveSettings({title_llm_profile:null}),A.invalidateCache(),await e.invalidateQueries({queryKey:h.all}),await e.invalidateQueries({queryKey:v.personal()})},meta:{disableToast:!0}})}function Ze({profile:e,onClose:t}){let{t:n}=l(`openhands`),r=Xe(),i=(0,X.useRef)(null);if(!e)return null;let a=async()=>{try{await r.mutateAsync(e.name),g(n(C.SETTINGS$PROFILE_DELETED,{name:e.name})),t()}catch(e){m(e instanceof Error?e.message:n(C.ERROR$GENERIC))}},o=()=>{r.isPending||t()},s=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(N,{ref:i,type:`button`,variant:`tertiary`,onClick:o,isDisabled:r.isPending,children:n(C.BUTTON$CANCEL)}),(0,Z.jsx)(N,{testId:`delete-profile-confirm`,type:`button`,variant:`danger`,onClick:a,isDisabled:r.isPending,"aria-busy":r.isPending,children:r.isPending?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(O,{size:`small`}),(0,Z.jsx)(`span`,{className:`sr-only`,children:n(C.BUTTON$DELETE)})]}):n(C.BUTTON$DELETE)})]});return(0,Z.jsx)(q,{isOpen:!0,title:n(C.SETTINGS$PROFILE_DELETE_TITLE),footer:s,onClose:o,initialFocusRef:i,children:(0,Z.jsx)(`p`,{className:`text-sm break-all`,children:n(C.SETTINGS$PROFILE_DELETE_CONFIRMATION,{name:e.name})})})}var Qe=e(n(),1);function $e({onEdit:e,onRename:t,onDuplicate:n,onSetActive:r,onDelete:i,isActive:a,isActivating:o,onClose:s,anchorRef:c}){let{t:u}=l(`openhands`),d=(0,X.useRef)(null),f=(0,X.useRef)([]),p=c?.current??null,[m,h]=(0,X.useState)();(0,X.useLayoutEffect)(()=>{if(!p)return;let e=()=>{let e=p.getBoundingClientRect();e&&h({position:`fixed`,zIndex:9999,top:e.bottom+8,right:window.innerWidth-e.right,width:`max-content`})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[p]),(0,X.useEffect)(()=>{f.current[0]?.focus()},[]),(0,X.useEffect)(()=>{let e=e=>{let t=e.target;d.current&&!d.current.contains(t)&&s()},t=e=>{e.key===`Escape`&&s()};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[s]);let g=e=>{e(),s()},_=(0,X.useCallback)((e,t)=>{if(e.key===`Tab`){s();return}let n=f.current.filter(Boolean).length;if(e.key===`ArrowDown`){e.preventDefault();let r=(t+1)%n;f.current[r]?.focus()}else if(e.key===`ArrowUp`){e.preventDefault();let r=(t-1+n)%n;f.current[r]?.focus()}},[s]),v=a||o,y=!!p,b=(0,Z.jsxs)(`div`,{ref:d,className:S(`absolute right-0 top-full z-10 mt-2 w-[160px] rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg`,ee,y&&`!static !top-auto !bottom-auto !left-auto !right-auto !mt-0`),role:`menu`,"aria-orientation":`vertical`,"data-testid":`profile-actions-menu`,children:[(0,Z.jsx)(G,{index:0,icon:(0,Z.jsx)(oe,{width:16,height:16}),label:u(C.SETTINGS$PROFILE_EDIT),onClick:()=>g(e),onKeyDown:_,menuItemsRef:f,testId:`profile-edit`}),(0,Z.jsx)(G,{index:1,icon:(0,Z.jsx)(we,{"aria-hidden":!0,className:`size-4`,strokeWidth:2}),label:u(C.BUTTON$RENAME),onClick:()=>g(t),onKeyDown:_,menuItemsRef:f,testId:`profile-rename`}),(0,Z.jsx)(G,{index:2,icon:(0,Z.jsx)(T,{"aria-hidden":!0,className:`size-4`,strokeWidth:2}),label:u(C.BUTTON$DUPLICATE),onClick:()=>g(n),onKeyDown:_,menuItemsRef:f,testId:`profile-duplicate`}),(0,Z.jsx)(G,{index:3,icon:(0,Z.jsx)(ve,{width:16,height:16}),label:u(C.SETTINGS$PROFILE_SET_DEFAULT),onClick:()=>g(r),onKeyDown:_,menuItemsRef:f,disabled:v,testId:`profile-set-active`}),(0,Z.jsx)(G,{index:4,icon:(0,Z.jsx)(re,{width:16,height:16}),label:u(C.BUTTON$DELETE),onClick:()=>g(i),onKeyDown:_,menuItemsRef:f,testId:`profile-delete`})]});return y?typeof document>`u`||!m?null:Qe.createPortal((0,Z.jsx)(`div`,{style:m,children:b}),document.body):b}function et({profile:e,isActive:t,canManage:n,onActivate:r,onEdit:i,onRename:a,onDuplicate:o,onDelete:s,isActivating:c}){let{t:u}=l(`openhands`),[d,f]=(0,X.useState)(!1),p=(0,X.useRef)(null);return(0,Z.jsxs)(`div`,{"data-testid":`profile-row`,className:S(ye,`justify-between gap-3`),children:[(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,Z.jsx)(`span`,{className:`min-w-0 max-w-full truncate text-sm font-medium text-white`,title:e.name,children:e.name}),e.model?(0,Z.jsx)(`span`,{className:`min-w-0 max-w-full truncate text-sm text-[var(--oh-muted)]`,title:e.model,children:e.model}):null,t&&(0,Z.jsx)(_e,{className:`shrink-0 whitespace-nowrap px-2.5 py-1 text-xs`,"data-testid":`profile-active-badge`,children:u(C.SETTINGS$PROFILE_DEFAULT)})]}),n&&(0,Z.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,Z.jsx)(ie,{ref:p,onClick:()=>f(e=>!e),ariaLabel:u(C.SETTINGS$PROFILE_MENU),testId:`profile-menu-trigger`,className:xe}),d&&(0,Z.jsx)($e,{anchorRef:p,onEdit:()=>i(e),onRename:()=>a(e),onDuplicate:()=>o(e),onSetActive:()=>r(e.name),onDelete:()=>s(e),isActive:t,isActivating:c,onClose:()=>f(!1)})]})]})}function tt({isLoading:e,loadError:t,profiles:n,active:r,canManage:i,onActivate:a,onEdit:o,onRename:s,onDuplicate:c,onDelete:u,isActivating:d}){let{t:f}=l(`openhands`);return e?(0,Z.jsx)(`div`,{className:`flex justify-center p-4`,children:(0,Z.jsx)(O,{size:`large`})}):t?(0,Z.jsx)(`div`,{"data-testid":`profiles-load-error`,className:me,children:(0,Z.jsx)(`p`,{className:`text-sm text-red-400`,children:f(C.SETTINGS$PROFILES_LOAD_ERROR)})}):n.length===0?(0,Z.jsx)(`div`,{"data-testid":`profiles-empty`,className:me,children:(0,Z.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:f(C.SETTINGS$PROFILES_EMPTY)})}):(0,Z.jsx)(`div`,{className:S(Se,be),children:n.map(e=>(0,Z.jsx)(et,{profile:e,isActive:e.name===r,canManage:i,onActivate:a,onEdit:o,onRename:s,onDuplicate:c,onDelete:u,isActivating:d},e.name))})}function $(){let e=c();return f({mutationFn:({name:e,request:t})=>F.saveProfile(e,t),onSuccess:async()=>{A.invalidateCache(),await e.invalidateQueries({queryKey:h.all}),await e.invalidateQueries({queryKey:v.personal()})},meta:{disableToast:!0}})}function nt({onAddProfile:e,onEditProfile:t}){let{t:n}=l(`openhands`),{data:r,isLoading:i,error:a}=ne(),o=J(),s=$(),c=ae(),[u,d]=(0,X.useState)(null),[f,p]=(0,X.useState)(null),h=r?.profiles??[],_=r?.active_profile??null;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,Z.jsx)(`h2`,{className:`text-base font-medium text-white`,children:n(C.SETTINGS$AVAILABLE_PROFILES)}),e&&c?(0,Z.jsx)(N,{testId:`add-llm-profile`,type:`button`,variant:`secondary`,className:`ml-auto`,onClick:e,children:n(C.SETTINGS$ADD_LLM_PROFILE)}):null]}),(0,Z.jsx)(tt,{isLoading:i,loadError:a??null,profiles:h,active:_,canManage:c,onActivate:async e=>{try{await o.mutateAsync(e),g(n(C.SETTINGS$PROFILE_ACTIVATED,{name:e}))}catch(e){console.error(`Failed to activate profile:`,e),m(n(C.ERROR$GENERIC))}},onEdit:e=>{t?.(e)},onRename:d,onDuplicate:async e=>{try{let t=await F.getProfile(e.name,`encrypted`),r=new Set(h.map(e=>e.name)),i=`${e.name}-copy`,a=1;for(;r.has(i);)i=`${e.name}-copy-${a}`,a+=1;await s.mutateAsync({name:i,request:{llm:t.config,include_secrets:!0}}),g(n(C.SETTINGS$PROFILE_DUPLICATED,{name:i}))}catch(e){console.error(`Failed to duplicate profile:`,e),m(n(C.ERROR$GENERIC))}},onDelete:p,isActivating:o.isPending})]}),(0,Z.jsx)(Ye,{profile:u,onClose:()=>d(null)}),(0,Z.jsx)(Ze,{profile:f,onClose:()=>p(null)})]})}function rt({activeProfileName:e,originalName:t,savedName:n}){return e?t?e===t:e===n:!1}function it(){let{t:e}=l(`openhands`),{setHideSectionHeader:t}=Ce(),n=$(),r=J(),{data:i}=ne(),{data:a}=j(),{data:o}=ce(a?.agent_settings_schema),s=(0,X.useRef)(o);s.current=o;let[c,u]=(0,X.useState)(`list`),[d,f]=(0,X.useState)(``),[p,h]=(0,X.useState)(null),[_,v]=(0,X.useState)(null),[y,b]=(0,X.useState)(!1);(0,X.useEffect)(()=>(t(c!==`list`),()=>t(!1)),[c,t]);let x=(0,X.useMemo)(()=>new Set(i?.profiles.map(e=>e.name)??[]),[i]),S=(0,X.useMemo)(()=>!(!K(d,{isRequired:!0})||c===`create`&&x.has(d)||c===`edit`&&d!==p?.profile.name&&x.has(d)),[d,c,x,p?.profile.name]),T=(0,X.useCallback)(()=>{f(``),h(null),u(`create`)},[]),E=(0,X.useCallback)(async t=>{try{let e=(await F.getProfile(t.name,`encrypted`)).config??{},n=s.current?.sections.find(e=>e.key===`llm`)?.fields??[],r={};for(let t of n){let n=t.key.startsWith(`llm.`)?t.key.slice(4):t.key;r[t.key]=ue(t,e[n])}n.length===0&&(r[`llm.model`]=e.model??``,r[`llm.api_key`]=e.api_key??``,r[`llm.base_url`]=e.base_url??``,r[R]=z(e.auth_type),r[I]=e.subscription_vendor??`openai`),h({profile:t,initialValues:r,baseConfig:e}),f(t.name),u(`edit`)}catch(t){console.error(`Failed to fetch profile details:`,t),m(e(C.ERROR$GENERIC))}},[e]),D=(0,X.useCallback)(()=>{u(`list`),h(null),f(``),v(null)},[]),O=(0,X.useCallback)(e=>{if(v(e),c===`create`&&!d){let t=e.values[`llm.model`];if(typeof t==`string`&&t){let e=he(t);x.has(e)||f(e)}}},[c,d,x]),k=(0,X.useCallback)(async()=>{if(!_||!S)return;let t;try{t=_.getDirtyPayload().llm??{}}catch(t){m(t instanceof Error?t.message:e(C.ERROR$GENERIC));return}let a=c===`edit`&&p?.baseConfig?{...p.baseConfig}:{},o=_.view===`basic`&&Object.prototype.hasOwnProperty.call(t,`model`)&&t.model!==a.model,s={...a,...t};if(z(s.auth_type)===`subscription`)s.auth_type=B,s.subscription_vendor=L,delete s.api_key,delete s.base_url;else if(s.auth_type=V,s.subscription_vendor=null,o&&delete s.base_url,typeof s.api_key!=`string`||s.api_key.trim()===``){let e=typeof a.api_key==`string`?a.api_key:``;e?s.api_key=e:delete s.api_key}if(!(typeof s.model==`string`&&s.model)){m(e(C.SETTINGS$MODEL_REQUIRED));return}let l=d.trim(),u=p?.profile.name,f=c===`edit`&&u&&u!==l,h=rt({activeProfileName:i?.active_profile,originalName:u,savedName:l});b(!0);try{f&&await F.renameProfile(u,l),await n.mutateAsync({name:l,request:{llm:s,include_secrets:!0}}),h&&await r.mutateAsync(l),g(e(c===`create`?C.SETTINGS$PROFILE_CREATED:C.SETTINGS$PROFILE_UPDATED,{name:l})),D()}catch(t){console.error(`Failed to save profile:`,t),m(e(C.ERROR$GENERIC))}finally{b(!1)}},[_,S,d,c,p,i?.active_profile,n,r,e,D]);if(c===`list`)return(0,Z.jsx)(nt,{onAddProfile:T,onEditProfile:E});let A=e(c===`edit`?C.SETTINGS$EDIT_LLM_PROFILE:C.SETTINGS$ADD_LLM_PROFILE),M=c===`edit`&&p?e(C.SETTINGS$PROFILE_LOADED,{name:p.profile.name}):e(C.SETTINGS$PROFILE_SAVE_HINT);return(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Z.jsx)(w,{testId:`back-to-profiles`,onClick:D,children:e(C.BUTTON$BACK)}),(0,Z.jsx)(W.H2,{testId:`profile-editor-title`,children:A}),(0,Z.jsx)(`p`,{"data-testid":`profile-editor-description`,className:`text-sm leading-5 text-tertiary-light`,children:M})]}),(0,Z.jsx)(ge,{testId:`profile-name-input`,value:d,onChange:f,isRequired:!0}),(0,Z.jsx)(pt,{embedded:!0,hideSaveButton:!0,initialValueOverrides:c===`edit`&&p?.initialValues?p.initialValues:{"llm.model":``,"llm.api_key":``,"llm.base_url":``,[R]:V,[I]:L},onSaveControlChange:O},c===`edit`?`edit-${p?.profile.name}`:`new-profile`),(0,Z.jsxs)(`div`,{className:`flex justify-start gap-3 pt-4`,children:[(0,Z.jsx)(N,{testId:`cancel-profile-btn`,type:`button`,variant:`secondary`,onClick:D,children:e(C.BUTTON$CANCEL)}),(0,Z.jsx)(N,{testId:`save-profile-btn`,type:`button`,variant:`primary`,onClick:k,isDisabled:!S||y||!_,"aria-busy":y,children:e(y?C.STATUS$SAVING:C.BUTTON$SAVE)})]})]})}function at({enabled:e=!0}={}){return p({queryKey:_.openaiModels,queryFn:H.getOpenAIModels,enabled:e,retry:!1,refetchOnWindowFocus:!1,staleTime:1e3*60*5,meta:{disableToast:!0}})}var ot=new Set([`llm.model`,`llm.api_key`,`llm.base_url`,R,I]),st=(e,t)=>!e||!t?null:`${e}/${t}`,ct=(e,t)=>e?.sections.flatMap(e=>e.fields).find(e=>e.key===t)?.default??null,lt={openai:new Set([`https://api.openai.com`,`https://api.openai.com/v1`]),moonshot:new Set([`https://api.kimi.com/coding/v1`])},ut=e=>{try{let t=new URL(e),n=t.pathname.replace(/\/+$/,``)||``;return`${t.origin}${n}`}catch{return e.trim().replace(/\/+$/,``)}},dt=(e,t)=>{let n=ut(t),{provider:r}=Te(e);if(r){let e=lt[r];if(e)return e.has(n)}return Object.values(lt).some(e=>e?.has(n))};function ft({testId:e}){let{t}=l(`openhands`);return(0,Z.jsx)(U,{testId:e,text:t(C.SETTINGS$OPENHANDS_API_KEY_HELP_TEXT),linkText:t(C.SETTINGS$NAV_API_KEYS),href:`https://app.all-hands.dev/settings/api-keys`,suffix:` ${t(C.SETTINGS$OPENHANDS_API_KEY_HELP_SUFFIX)}`})}function pt({scope:e=`personal`,onSaveSuccess:t,initialValueOverrides:n,embedded:r,hideSaveButton:i,suppressSuccessToast:a,onSaveControlChange:o}){let{t:s}=l(`openhands`),{data:c}=j(e),{data:u}=ce(c?.agent_settings_schema),d=c?.agent_settings?.llm,f=z(n?.[`llm.auth_type`]??d?.auth_type),[p,m]=X.useState(f===B),{data:h,isLoading:g,isFetching:_}=at({enabled:p}),v=p&&!h&&(g||_),y=X.useRef(null),b=X.useRef(null);X.useEffect(()=>{f===`subscription`&&m(!0)},[f]);let x=String(k.agent_settings?.llm?.model??``),S=X.useCallback((e,t)=>{let n=le(e,t);if(n!==`basic`)return n;let r=e.llm_model??``,i=e.llm_base_url?.trim()??``;return i.length>0&&!dt(r,i)?`all`:`basic`},[]),w=X.useCallback(({values:e,isDisabled:t,view:n,onChange:i})=>{let a=typeof e[`llm.model`]==`string`?e[`llm.model`]:``,o=typeof e[`llm.base_url`]==`string`?e[`llm.base_url`]:``,l=a.startsWith(`openhands/`),u=z(e[R]),d=u===B,f=t||d&&v,p=h?.includes(a)?a:h?.[0]??``,g=typeof e[`llm.api_key`]==`string`?e[`llm.api_key`]:``,_=r?g.length>0:!!c?.llm_api_key_set,S=(e,n)=>(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(P,{testId:e,label:s(C.SETTINGS_FORM$API_KEY),type:`password`,className:`w-full`,value:g,placeholder:_?`<hidden>`:``,onChange:e=>i(`llm.api_key`,e),isDisabled:t,startContent:_?(0,Z.jsx)(qe,{isSet:_}):void 0}),(0,Z.jsx)(U,{testId:n,text:s(C.SETTINGS$DONT_KNOW_API_KEY),linkText:s(C.SETTINGS$CLICK_FOR_INSTRUCTIONS),href:`https://docs.openhands.dev/usage/local-setup#getting-an-api-key`})]}),w=e=>{let t=e===`subscription`?B:V;if(i(R,t),t===`subscription`){m(!0),a&&!h?.includes(a)&&(y.current=a);let e=b.current&&h?.includes(b.current)?b.current:h?.[0];i(I,L),!h?.includes(a)&&e&&i(`llm.model`,e);return}a&&h?.includes(a)&&(b.current=a,i(`llm.model`,y.current??x))},T=()=>(0,Z.jsx)(de,{testId:`llm-auth-type-input`,name:R,label:s(C.SETTINGS$LLM_AUTH_TYPE),items:[{key:V,label:s(C.SETTINGS$LLM_AUTH_TYPE_API_KEY)},{key:B,label:s(C.SETTINGS$LLM_AUTH_TYPE_SUBSCRIPTION)}],selectedKey:u,isClearable:!1,required:!0,isDisabled:f,onSelectionChange:w}),E=()=>(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-testid":`llm-subscription-settings`,children:[(0,Z.jsx)(de,{testId:`llm-subscription-model-input`,name:`llm.subscription_model`,label:s(C.SETTINGS$SUBSCRIPTION_MODEL),items:(h??[]).map(e=>({key:e,label:e})),selectedKey:p,isClearable:!1,required:!0,isDisabled:f||!h?.length,onSelectionChange:e=>{let t=typeof e==`string`?e:h?.[0];t&&i(`llm.model`,t)}}),(0,Z.jsx)(Ge,{isDisabled:t})]});return(0,Z.jsx)(`div`,{className:`flex flex-col gap-6`,children:n===`basic`?(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-testid":`llm-settings-form-basic`,children:[T(),d?E():(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Q,{currentModel:a||void 0,onChange:(e,t)=>{let n=st(e,t);n&&i(`llm.model`,n)},wrapperClassName:`!flex-col !gap-6`,isDisabled:t}),l?(0,Z.jsx)(ft,{testId:`openhands-api-key-help`}):null,S(`llm-api-key-input`,`llm-api-key-help-anchor`)]})]}):(0,Z.jsxs)(`div`,{className:`flex flex-col gap-6`,"data-testid":`llm-settings-form-advanced`,children:[T(),d?E():(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(P,{testId:`llm-custom-model-input`,label:s(C.SETTINGS$CUSTOM_MODEL),type:`text`,className:`w-full`,value:a,placeholder:x,onChange:e=>i(`llm.model`,e),isDisabled:t}),l?(0,Z.jsx)(ft,{testId:`openhands-api-key-help-2`}):null,(0,Z.jsx)(P,{testId:`base-url-input`,label:s(C.SETTINGS$BASE_URL),type:`text`,className:`w-full`,value:o,placeholder:`https://api.openai.com`,onChange:e=>i(`llm.base_url`,e),isDisabled:t}),S(`llm-api-key-input`,`llm-api-key-help-anchor-advanced`)]})]})})},[x,r,v,c?.llm_api_key_set,h,s]),T=X.useCallback((e,t)=>{let n=structuredClone(e.agent_settings_diff??{}),r=n.llm??{};if(z(t.values[`llm.auth_type`])===`subscription`){r.auth_type=B,r.subscription_vendor=L;let e=typeof r.model==`string`?r.model:String(t.values[`llm.model`]??``),n=h?.[0];if(!h?.includes(e)&&!n)throw Error(`Subscription models are not loaded yet.`);r.model=h?.includes(e)?e:n,delete r.api_key,delete r.base_url}else t.dirty[`llm.auth_type`]&&(r.auth_type=V,r.subscription_vendor=null),t.view===`basic`&&r.model!==void 0&&(r.base_url=ct(u,`llm.base_url`));return n.llm=r,{agent_settings_diff:n}},[u,h]);return(0,Z.jsx)(pe,{scope:e,settingsSources:[{settingsSource:`agent_settings`,sectionKeys:[`llm`],excludeKeys:ot}],header:w,buildPayload:T,getInitialView:S,forceShowAdvancedView:!0,allowAllView:!0,onSaveSuccess:t,initialValueOverrides:n,embedded:r,hideSaveButton:i,suppressSuccessToast:a,onSaveControlChange:o,testId:`llm-settings-screen`})}var mt=s(function(){return(0,Z.jsx)(it,{})});export{J as a,Q as i,mt as n,$ as r,pt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./llm-settings-D8zNkIlP.js";export{e as default};
|
package/build/assets/{llm-subscription-service-_QUsVybQ.js → llm-subscription-service-COTgZc1C.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Z as e}from"./active-backend-context-mY7Gff5c.js";import{c as t,d as n,l as r,o as i,s as a,u as o}from"./llm-subscription-DTqtBCWz.js";function s(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var c=(e,t)=>{for(let n of t){let t=e[n];if(typeof t==`string`&&t.trim().length>0)return t.trim()}return null},l=(e,t)=>{for(let n of t){let t=e[n];if(typeof t==`number`&&Number.isFinite(t))return t}return null},u=(e,t)=>{for(let n of t){let t=e[n];if(typeof t==`boolean`)return t}return!1};async function d(t,n={}){let{host:r,apiKey:i}=e(),a=new Headers(n.headers);a.set(`Accept`,`application/json`),n.body&&!a.has(`Content-Type`)&&a.set(`Content-Type`,`application/json`),i&&a.set(`X-Session-API-Key`,i);let o=await fetch(`${r}${t}`,{...n,headers:a});if(!o.ok)throw Error(`Subscription request failed with ${o.status}`);return o.json()}function f(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):s(e)&&Array.isArray(e.models)?e.models.filter(e=>typeof e==`string`):[]}function p(e){return{vendor:n,connected:u(e,[`connected`,`authenticated`,`is_connected`]),accountEmail:c(e,[`account_email`,`email`,`account`]),expiresAt:c(e,[`expires_at`,`expiresAt`])??l(e,[`expires_at`,`expiresAt`])}}function m(e){let t=c(e,[`device_code`,`deviceCode`]),n=c(e,[`user_code`,`userCode`]),r=c(e,[`verification_uri`,`verificationUri`,`verification_url`,`verificationUrl`]);if(!t||!n||!r)throw Error(`Subscription device login response is incomplete`);return{deviceCode:t,userCode:n,verificationUri:r,verificationUriComplete:c(e,[`verification_uri_complete`,`verificationUriComplete`,`verification_url_complete`,`verificationUrlComplete`]),expiresAt:c(e,[`expires_at`,`expiresAt`])??l(e,[`expires_at`,`expiresAt`,`expires_in`,`expiresIn`]),intervalSeconds:l(e,[`interval`,`interval_seconds`,`intervalSeconds`])}}var h=class{static async getOpenAIModels(){return f(await d(r))}static async getOpenAIStatus(){return p(await d(o))}static async startOpenAIDeviceLogin(){return m(await d(a,{method:`POST`}))}static async pollOpenAIDeviceLogin(e){return p(await d(i,{method:`POST`,body:JSON.stringify({device_code:e})}))}static async logoutOpenAI(){return p(await d(t,{method:`POST`}))}};export{h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js";var t=e(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]);export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./rolldown-runtime-Cyuzqnbw.js";import{St as e,yt as t}from"./vendor-styling-Bcgpimp9.js";import{t as n}from"./utils-
|
|
1
|
+
import"./rolldown-runtime-Cyuzqnbw.js";import{St as e,yt as t}from"./vendor-styling-Bcgpimp9.js";import{t as n}from"./utils-DsWhWn2F.js";e();var r=t(),i=e=>(0,r.jsx)(`svg`,{width:66,height:66,viewBox:`0 0 66 66`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,r.jsx)(`path`,{d:`M63 33C63 16.4315 49.5685 3 33 3C16.4315 3 3 16.4315 3 33C3 49.5685 16.4315 63 33 63`,stroke:`currentColor`,strokeWidth:6,strokeLinecap:`round`})});function a({size:e,className:t,outerClassName:a}){let o=e===`small`?`w-[25px] h-[25px]`:`w-[50px] h-[50px]`;return(0,r.jsx)(`div`,{"data-testid":`loading-spinner`,className:n(`relative`,o,t),children:(0,r.jsx)(i,{className:n(`absolute animate-spin`,o,a)})})}export{a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,r as t}from"./rolldown-runtime-Cyuzqnbw.js";import{St as n,yt as r}from"./vendor-styling-Bcgpimp9.js";import{t as i}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js";import{y as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js";import{t as o}from"./useQuery-B38jBavx.js";import{U as s,Z as c,r as l,vt as u}from"./active-backend-context-mY7Gff5c.js";import{t as d,z as f}from"./utils-DsWhWn2F.js";import{t as p}from"./pencil-DzW2GB2M.js";import{t as m}from"./plus-CTGLo3aa.js";import{t as h}from"./refresh-cw-Br5254f4.js";import{t as g}from"./trash-2-gZPlx23R.js";import{i as _,o as v,r as y}from"./use-onboarding-completion-CJU4MNAY.js";import{t as b}from"./modal-backdrop-X-vKo61e.js";import{r as x,t as S}from"./modal-body-C3bGicn4.js";import{n as C}from"./modal-classes-DFFO6BMU.js";import{t as w}from"./brand-button-BUlDL-mz.js";import{n as T,t as E}from"./use-cloud-current-user-id-BMq9gw93.js";import{a as D,o as O,r as k,s as A}from"./backend-form-modal-CKrBF80P.js";import{t as j}from"./modal-close-button-vxkAIRyZ.js";import{t as M}from"./confirmation-modal-CRBJSllP.js";var N=e(n(),1),P=r();function F({backend:e}){let{t}=i(`openhands`),{data:n}=o({queryKey:[`backend-version`,e.host,e.apiKey],queryFn:async()=>s(await new a(c({host:e.host,sessionApiKey:e.apiKey||null,timeout:5e3})).getServerInfo()),retry:!1,staleTime:6e4,enabled:e.kind===`local`});return n?(0,P.jsx)(`span`,{className:`inline-flex shrink-0 items-center rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface)] px-1.5 py-0.5 text-[10px] font-medium leading-none text-[var(--oh-text-dim)]`,"data-testid":`manage-backends-version-${e.name}`,children:t(f.BACKEND$VERSION_LABEL,{version:n})}):null}var I=`inline-flex cursor-pointer items-center justify-center rounded-md p-1 text-muted transition-colors hover:bg-interactive-hover hover:text-white`;function L({backend:e,health:t,orgLabel:n,onSelect:r,onEdit:a,onRemove:o,onLogin:s}){let{t:c}=i(`openhands`),l=_(t?.lastError),m=e.kind===`cloud`&&y(t?.lastError),v=!l&&!m&&t?.isConnected===!1&&t.lastError?t.lastError:null,b=m?c(f.BACKEND$LOGGED_OUT):A(c,e,t),x=t?.isConnected===!0?`text-green-300`:t?.isConnected===!1?`text-red-300`:`text-[var(--oh-muted)]`,S=l?!1:t?.isConnected??null,C=t?.isConnected===!0&&!l,w=u();return(0,P.jsxs)(`li`,{className:`flex items-stretch`,"data-testid":`manage-backends-row-${e.name}`,children:[(0,P.jsxs)(`button`,{type:`button`,disabled:!C,onClick:r,className:d(`flex min-w-0 flex-1 items-center gap-3 px-3 py-3 text-left`,C?`cursor-pointer transition-colors hover:bg-interactive-hover focus-visible:bg-interactive-hover focus-visible:outline-none`:`cursor-default`),children:[(0,P.jsx)(O,{isConnected:S}),(0,P.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,P.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,P.jsx)(`span`,{className:`truncate text-sm text-white`,children:e.name}),(0,P.jsx)(F,{backend:e})]}),n?(0,P.jsx)(`span`,{"data-testid":`manage-backends-org-${e.name}`,className:`truncate text-xs text-[var(--oh-text-secondary)]`,children:n}):null,(0,P.jsx)(`span`,{className:`truncate text-xs text-[var(--oh-muted)]`,children:e.host}),(0,P.jsx)(`span`,{"data-testid":`manage-backends-status-${e.name}`,className:d(`truncate text-xs`,x),children:b}),v?(0,P.jsx)(`span`,{"data-testid":`manage-backends-status-detail-${e.name}`,title:v,className:`text-xs text-red-300/80 whitespace-normal break-words`,children:v}):null]}),(0,P.jsx)(`span`,{className:`px-2 py-1 rounded-full text-[11px] uppercase tracking-wide text-[var(--oh-text-tertiary)] bg-[var(--oh-surface)] border border-[var(--oh-border)]`,children:e.kind===`cloud`?c(f.BACKEND$KIND_CLOUD):c(f.BACKEND$KIND_LOCAL)})]}),(0,P.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2 px-3 py-3`,children:[m&&s?(0,P.jsx)(D,{host:e.host,onSuccess:s,testIdRoot:`manage-backends-login-${e.id}`,idleButtonLabel:c(f.BACKEND$LOG_BACK_IN),idleButtonContent:(0,P.jsx)(h,{className:`size-4`,strokeWidth:2,"aria-hidden":!0}),className:`w-auto`,buttonVariant:`unstyled`,buttonClassName:I,statusDisplay:`modal`,analyticsSource:`manage_backends_modal`}):null,!w&&(0,P.jsx)(`button`,{type:`button`,onClick:a,"aria-label":c(f.BACKEND$EDIT),"data-testid":`manage-backends-edit-${e.name}`,className:I,children:(0,P.jsx)(p,{"aria-hidden":!0,className:`size-4`,strokeWidth:2})}),!w&&(0,P.jsx)(`button`,{type:`button`,onClick:o,"aria-label":c(f.BACKEND$REMOVE),"data-testid":`manage-backends-remove-${e.name}`,className:I,children:(0,P.jsx)(g,{"aria-hidden":!0,className:`size-4`,strokeWidth:2})})]})]})}var R=t({ManageBackendsModal:()=>B});function z(e,t,n,r){if(e.kind!==`cloud`)return;let i=t[e.id];if(!i||i.orgs.length===0)return;let a=n[e.id]?.userId??null;return i.orgs.map(e=>a&&a===e.id?r:e.name).join(`, `)}function B({onClose:e,recoveryMode:t=!1}){let{t:n}=i(`openhands`),{backends:r,active:a,removeBackend:o,setActive:s,updateBackend:c}=l(),p=v(r,{probeDisabledOnce:!0}),h=T(),g=E(),_=n(f.BACKEND$PERSONAL_WORKSPACE),y=u(),O=y!==null,A=O&&a.backend.kind===`cloud`?a.backend:null,F=y??A?.host??``,I=n(O?f.BACKEND$RECONNECT_CLOUD_TITLE:f.BACKEND$MANAGE_TITLE),[R,B]=N.useState(null),[V,H]=N.useState(null),[U,W]=N.useState(!1),G=()=>{R&&(o(R.id),B(null))},K=N.useCallback(t=>{(a.backend.id!==t.id||a.orgId!==null)&&s(t.id),e()},[a.backend.id,a.orgId,e,s]),q=N.useCallback((e,t)=>{c(e.id,{apiKey:t})},[c]),J=N.useCallback(e=>{A&&c(A.id,{apiKey:e})},[A,c]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(b,{onClose:t?void 0:e,closeOnEscape:!t,closeOnBackdropClick:!t,"aria-label":I,children:(0,P.jsxs)(`div`,{"data-testid":`manage-backends-modal`,className:d(`relative flex flex-col bg-[var(--oh-surface)] border border-[var(--oh-border)] rounded-xl`,x(`lg`),S,`max-h-[70vh]`),children:[t?null:(0,P.jsx)(j,{onClose:e,testId:`close-manage-backends-modal`}),(0,P.jsx)(`div`,{className:d(`p-5`,!t&&`pr-12`),children:(0,P.jsx)(`h2`,{className:C,children:I})}),(0,P.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col px-5`,children:(0,P.jsx)(`div`,{className:`flex-1 overflow-auto rounded-md border border-[var(--oh-border)] bg-surface-raised custom-scrollbar-always`,"data-testid":`manage-backends-list`,children:r.length===0?(0,P.jsx)(`p`,{className:`px-3 py-6 text-center text-sm text-[var(--oh-text-secondary)]`,children:n(f.BACKEND$MANAGE_EMPTY)}):(0,P.jsx)(`ul`,{className:`divide-y divide-[var(--oh-border)]`,children:r.map(e=>(0,P.jsx)(L,{backend:e,health:p[e.id],orgLabel:z(e,h,g,_),onSelect:()=>K(e),onEdit:()=>H(e),onRemove:()=>B({id:e.id,name:e.name}),onLogin:t=>q(e,t)},e.id))})})}),(0,P.jsxs)(`div`,{className:`flex justify-end gap-2 p-5`,children:[O?A?(0,P.jsx)(D,{host:F,onSuccess:J,testIdRoot:`manage-backends-reconnect-cloud`,idleButtonLabel:n(f.BACKEND$RECONNECT_CLOUD),className:`w-full sm:w-auto`,buttonClassName:`sm:w-auto`,statusDisplay:`modal`}):null:(0,P.jsx)(w,{type:`button`,variant:t?`primary`:`secondary`,onClick:()=>W(!0),testId:`manage-backends-add`,startContent:(0,P.jsx)(m,{width:14,height:14}),children:n(f.BACKEND$ADD)}),t?null:(0,P.jsx)(w,{type:`button`,variant:`primary`,onClick:e,testId:`manage-backends-done`,children:n(f.HOME$DONE)})]})]})}),U?(0,P.jsx)(k,{mode:`add`,source:`manage_backends_modal`,onClose:()=>W(!1)}):null,V?(0,P.jsx)(k,{mode:`edit`,backend:V,onClose:()=>H(null)}):null,R?(0,P.jsx)(M,{text:n(f.BACKEND$REMOVE_CONFIRMATION,{name:R.name}),onConfirm:G,onCancel:()=>B(null)}):null]})}export{R as n,B as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
window.__reactRouterManifest={"entry":{"module":"/assets/entry.client-BO2KQj0y.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client-Di4qO77Y.js","/assets/providers-DuSn9s2i.js","/assets/vendor~entry.client-BfviqoVc.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/utils-DsWhWn2F.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/agent-server-ui-style-scope-DdG0ZAHu.js"],"css":[]},"routes":{"root":{"id":"root","path":"","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/root-DOLLQteU.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client-Di4qO77Y.js","/assets/providers-DuSn9s2i.js","/assets/vendor~entry.client-BfviqoVc.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/utils-DsWhWn2F.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/agent-server-ui-style-scope-DdG0ZAHu.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/use-config-C959QcRC.js","/assets/use-onboarding-completion-CJU4MNAY.js","/assets/brand-button-BUlDL-mz.js","/assets/base-modal-DkVyzFMt.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/navigation-context-BOGzIng3.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/color-themes-DTj5Ylbr.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/proxy-BiyDhMBd.js","/assets/form-control-classes-CtVAktAy.js","/assets/modal-classes-DFFO6BMU.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js","/assets/settings-service.api-CTJRrvMu.js","/assets/settings-Chfn5xTD.js"],"css":["/assets/root-B5JXKp1P.css"]},"routes/root-layout":{"id":"routes/root-layout","parentId":"root","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":true,"module":"/assets/root-layout-xmylWoew.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js","/assets/vendor~root-layout~conversation-panel~conversation-DEhW1h3I.js","/assets/check-CrxQfJZ2.js","/assets/onboarding-modal-C8m72Dpb.js","/assets/onboarding-DWuFieEA.js","/assets/format-time-delta-DICE64sz.js","/assets/plus-CTGLo3aa.js","/assets/search-BrpWXWUi.js","/assets/sidebar-store-FRJ3rADB.js","/assets/llm-settings-D8zNkIlP.js","/assets/trash-2-gZPlx23R.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DRblkyXD.js","/assets/conversation-store-C6hSXHw0.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/use-tracking-COqZLobY.js","/assets/git-provider-icon-0PqmIS_S.js","/assets/conversation-state-store-CGRQemtx.js","/assets/backend-form-modal-CKrBF80P.js","/assets/use-config-C959QcRC.js","/assets/openhands-logo-CmYvJXBa.js","/assets/manage-backends-modal-DiRWE3tJ.js","/assets/environment-switch-store-DVQZLFbj.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/sidebar-mobile-menu-toggle-xiKoUfGa.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/use-onboarding-completion-CJU4MNAY.js","/assets/sidebar-nav-link-DA4_ct9G.js","/assets/sidebar-layout-BGMuyC86.js","/assets/base-modal-DkVyzFMt.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/navigation-link-Bxmn-pCs.js","/assets/acp-providers-WUD4tfSq.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/use-is-authed-BsS4XwSL.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/use-settings-DIAo5KFk.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/search-7DRiGm4Z.js","/assets/skills-CYFLsN5U.js","/assets/u-edit-809W9D9T.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/iconBase-B2rQun3J.js","/assets/vendor-markdown-BML7QbqS.js","/assets/recommended-automations-launcher-Dru1yN46.js","/assets/chat-send-button-BKsVjhtA.js","/assets/circle-check-DZn9HkLE.js","/assets/loader-circle-CGD6-Vak.js","/assets/use-acp-credential-form-CjSvKWFH.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/badge-CzXbf7tR.js","/assets/brand-button-BUlDL-mz.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-save-agent-profile-DGJ3-u0M.js","/assets/terminal-cMS3RgVE.js","/assets/settings-service.api-CTJRrvMu.js","/assets/install-server-modal-BgGRnqA0.js","/assets/skill-card-pill-row-BMdhr_sd.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/modal-classes-DFFO6BMU.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/useMutation-DHLpZ6J0.js","/assets/v4-DDdyfk2q.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/settings-input-BEaTCem1.js","/assets/checkmark-CxdXtM3b.js","/assets/x-mark-jcTkPiOB.js","/assets/profiles-service.api-C32pPm70.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/llm-subscription-DTqtBCWz.js","/assets/back-nav-button-C02hGa8t.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/schema-field-htfNouTG.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/u-check-circle-DBEvndTS.js","/assets/typography-B1UxuuEC.js","/assets/map-provider-CXU6issd.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/dist-hOnv1nn2.js","/assets/settings-switch-B405oU_v.js","/assets/toggle-switch-DYRr9CAR.js","/assets/copy-z7idLzWO.js","/assets/use-create-secret-RT4QtSS9.js","/assets/segmented-toggle-CZKOdIly.js","/assets/cloud-funnel-analytics-NlmDoeo2.js","/assets/useQueries-B3T1a7qt.js","/assets/confirmation-modal-CRBJSllP.js","/assets/close-CDAVqnTn.js","/assets/folder-C86qXV7M.js","/assets/pencil-DzW2GB2M.js","/assets/refresh-cw-Br5254f4.js","/assets/Trans-B7lYw4uD.js"],"css":[]},"routes/index-home":{"id":"routes/index-home","parentId":"routes/root-layout","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/index-home-D9JsyEmE.js","imports":["/assets/home-TFhnmZLx.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js","/assets/markdown-renderer-U40HF0Ak.js","/assets/chevron-down-D_LsyTA7.js","/assets/onboarding-DWuFieEA.js","/assets/search-BrpWXWUi.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/conversation-store-C6hSXHw0.js","/assets/git-provider-icon-0PqmIS_S.js","/assets/conversation-state-store-CGRQemtx.js","/assets/use-plugins-marketplace-D-93nqtJ.js","/assets/llm-not-configured-banner-Y4W9-sar.js","/assets/brand-button-BUlDL-mz.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/base-modal-DkVyzFMt.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/folder-C86qXV7M.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/vendor-markdown-BML7QbqS.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/useMutation-DHLpZ6J0.js","/assets/useQuery-B38jBavx.js","/assets/v4-DDdyfk2q.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/proxy-BiyDhMBd.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/iconBase-B2rQun3J.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/useQueries-B3T1a7qt.js","/assets/onboarding-modal-C8m72Dpb.js","/assets/use-onboarding-completion-CJU4MNAY.js","/assets/confirmation-modal-CRBJSllP.js","/assets/use-settings-DIAo5KFk.js","/assets/close-CDAVqnTn.js","/assets/modal-classes-DFFO6BMU.js","/assets/recommended-automations-launcher-Dru1yN46.js","/assets/chat-send-button-BKsVjhtA.js","/assets/check-CrxQfJZ2.js","/assets/circle-check-DZn9HkLE.js","/assets/loader-circle-CGD6-Vak.js","/assets/llm-settings-D8zNkIlP.js","/assets/use-acp-credential-form-CjSvKWFH.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/use-tracking-COqZLobY.js","/assets/backend-form-modal-CKrBF80P.js","/assets/openhands-logo-CmYvJXBa.js","/assets/badge-CzXbf7tR.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-save-agent-profile-DGJ3-u0M.js","/assets/use-save-settings--C6LZXfI.js","/assets/terminal-cMS3RgVE.js","/assets/vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js","/assets/install-server-modal-BgGRnqA0.js","/assets/skill-card-pill-row-BMdhr_sd.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/settings-input-BEaTCem1.js","/assets/x-mark-jcTkPiOB.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/back-nav-button-C02hGa8t.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/schema-field-htfNouTG.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/u-check-circle-DBEvndTS.js","/assets/u-edit-809W9D9T.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/map-provider-CXU6issd.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/navigation-link-Bxmn-pCs.js","/assets/organization-service.api-CQ73CB-S.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/dist-hOnv1nn2.js","/assets/settings-switch-B405oU_v.js","/assets/use-is-authed-BsS4XwSL.js","/assets/toggle-switch-DYRr9CAR.js","/assets/use-create-secret-RT4QtSS9.js","/assets/segmented-toggle-CZKOdIly.js","/assets/cloud-funnel-analytics-NlmDoeo2.js","/assets/vendor~index-home~home~conversation-panel~conversation-G9DMrR7m.js","/assets/plus-CTGLo3aa.js","/assets/refresh-cw-Br5254f4.js","/assets/use-skills-D_mLhYNa.js","/assets/use-config-C959QcRC.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/merge-agent-profile-save-input-WcFmQVKK.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/link-external-BDBCz-_z.js","/assets/settings-gear-TYXnELES.js","/assets/skills-CYFLsN5U.js","/assets/u-robot-CJtSzy5X.js","/assets/settings-utils-BL_Z9uIe.js"],"css":[]},"routes/home":{"id":"routes/home","parentId":"routes/root-layout","path":"conversations","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/home-D9JsyEmE.js","imports":["/assets/home-TFhnmZLx.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js","/assets/markdown-renderer-U40HF0Ak.js","/assets/chevron-down-D_LsyTA7.js","/assets/onboarding-DWuFieEA.js","/assets/search-BrpWXWUi.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/conversation-store-C6hSXHw0.js","/assets/git-provider-icon-0PqmIS_S.js","/assets/conversation-state-store-CGRQemtx.js","/assets/use-plugins-marketplace-D-93nqtJ.js","/assets/llm-not-configured-banner-Y4W9-sar.js","/assets/brand-button-BUlDL-mz.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/base-modal-DkVyzFMt.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/folder-C86qXV7M.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/vendor-markdown-BML7QbqS.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/useMutation-DHLpZ6J0.js","/assets/useQuery-B38jBavx.js","/assets/v4-DDdyfk2q.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/proxy-BiyDhMBd.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/iconBase-B2rQun3J.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/useQueries-B3T1a7qt.js","/assets/onboarding-modal-C8m72Dpb.js","/assets/use-onboarding-completion-CJU4MNAY.js","/assets/confirmation-modal-CRBJSllP.js","/assets/use-settings-DIAo5KFk.js","/assets/close-CDAVqnTn.js","/assets/modal-classes-DFFO6BMU.js","/assets/recommended-automations-launcher-Dru1yN46.js","/assets/chat-send-button-BKsVjhtA.js","/assets/check-CrxQfJZ2.js","/assets/circle-check-DZn9HkLE.js","/assets/loader-circle-CGD6-Vak.js","/assets/llm-settings-D8zNkIlP.js","/assets/use-acp-credential-form-CjSvKWFH.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/use-tracking-COqZLobY.js","/assets/backend-form-modal-CKrBF80P.js","/assets/openhands-logo-CmYvJXBa.js","/assets/badge-CzXbf7tR.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-save-agent-profile-DGJ3-u0M.js","/assets/use-save-settings--C6LZXfI.js","/assets/terminal-cMS3RgVE.js","/assets/vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js","/assets/install-server-modal-BgGRnqA0.js","/assets/skill-card-pill-row-BMdhr_sd.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/settings-input-BEaTCem1.js","/assets/x-mark-jcTkPiOB.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/back-nav-button-C02hGa8t.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/schema-field-htfNouTG.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/u-check-circle-DBEvndTS.js","/assets/u-edit-809W9D9T.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/map-provider-CXU6issd.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/navigation-link-Bxmn-pCs.js","/assets/organization-service.api-CQ73CB-S.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/dist-hOnv1nn2.js","/assets/settings-switch-B405oU_v.js","/assets/use-is-authed-BsS4XwSL.js","/assets/toggle-switch-DYRr9CAR.js","/assets/use-create-secret-RT4QtSS9.js","/assets/segmented-toggle-CZKOdIly.js","/assets/cloud-funnel-analytics-NlmDoeo2.js","/assets/vendor~index-home~home~conversation-panel~conversation-G9DMrR7m.js","/assets/plus-CTGLo3aa.js","/assets/refresh-cw-Br5254f4.js","/assets/use-skills-D_mLhYNa.js","/assets/use-config-C959QcRC.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/merge-agent-profile-save-input-WcFmQVKK.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/link-external-BDBCz-_z.js","/assets/settings-gear-TYXnELES.js","/assets/skills-CYFLsN5U.js","/assets/u-robot-CJtSzy5X.js","/assets/settings-utils-BL_Z9uIe.js"],"css":[]},"routes/conversation-panel":{"id":"routes/conversation-panel","parentId":"routes/root-layout","path":"conversations/:conversationId/panel","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/conversation-panel-D_ORtpKC.js","imports":["/assets/conversation-Dpc5nmGi.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/vendor~conversation-panel~conversation~alert-banner-BNzz5FuZ.js","/assets/vendor~root-layout~conversation-panel~conversation-DEhW1h3I.js","/assets/messages-CdNfZPgd.js","/assets/Trans-B7lYw4uD.js","/assets/markdown-renderer-U40HF0Ak.js","/assets/check-CrxQfJZ2.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/list-todo-BpAf7aOT.js","/assets/loader-circle-CGD6-Vak.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/v4-DDdyfk2q.js","/assets/conversation-store-C6hSXHw0.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/use-tracking-COqZLobY.js","/assets/proxy-BiyDhMBd.js","/assets/git-provider-icon-0PqmIS_S.js","/assets/conversation-state-store-CGRQemtx.js","/assets/llm-not-configured-banner-Y4W9-sar.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/sidebar-mobile-menu-toggle-xiKoUfGa.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/brand-button-BUlDL-mz.js","/assets/base-modal-DkVyzFMt.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/use-is-authed-BsS4XwSL.js","/assets/use-settings-DIAo5KFk.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/use-breakpoint-DA7JqsRN.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/copy-z7idLzWO.js","/assets/skills-CYFLsN5U.js","/assets/u-edit-809W9D9T.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/vendor-markdown-BML7QbqS.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/chevron-down-D_LsyTA7.js","/assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DRblkyXD.js","/assets/use-config-C959QcRC.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/close-CDAVqnTn.js","/assets/u-check-circle-DBEvndTS.js","/assets/form-control-classes-CtVAktAy.js","/assets/iconBase-B2rQun3J.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/checkmark-CxdXtM3b.js","/assets/dist-hOnv1nn2.js","/assets/vendor~index-home~home~conversation-panel~conversation-G9DMrR7m.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js","/assets/chat-send-button-BKsVjhtA.js","/assets/circle-check-DZn9HkLE.js","/assets/plus-CTGLo3aa.js","/assets/refresh-cw-Br5254f4.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/use-skills-D_mLhYNa.js","/assets/merge-agent-profile-save-input-WcFmQVKK.js","/assets/navigation-link-Bxmn-pCs.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/link-external-BDBCz-_z.js","/assets/settings-gear-TYXnELES.js","/assets/u-robot-CJtSzy5X.js","/assets/cloud-funnel-analytics-NlmDoeo2.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/settings-utils-BL_Z9uIe.js","/assets/organization-service.api-CQ73CB-S.js","/assets/modal-classes-DFFO6BMU.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/map-provider-CXU6issd.js"],"css":[]},"routes/conversation":{"id":"routes/conversation","parentId":"routes/root-layout","path":"conversations/:conversationId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/conversation-D_ORtpKC.js","imports":["/assets/conversation-Dpc5nmGi.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/vendor~conversation-panel~conversation~alert-banner-BNzz5FuZ.js","/assets/vendor~root-layout~conversation-panel~conversation-DEhW1h3I.js","/assets/messages-CdNfZPgd.js","/assets/Trans-B7lYw4uD.js","/assets/markdown-renderer-U40HF0Ak.js","/assets/check-CrxQfJZ2.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/list-todo-BpAf7aOT.js","/assets/loader-circle-CGD6-Vak.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/v4-DDdyfk2q.js","/assets/conversation-store-C6hSXHw0.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/use-tracking-COqZLobY.js","/assets/proxy-BiyDhMBd.js","/assets/git-provider-icon-0PqmIS_S.js","/assets/conversation-state-store-CGRQemtx.js","/assets/llm-not-configured-banner-Y4W9-sar.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/sidebar-mobile-menu-toggle-xiKoUfGa.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/brand-button-BUlDL-mz.js","/assets/base-modal-DkVyzFMt.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/use-is-authed-BsS4XwSL.js","/assets/use-settings-DIAo5KFk.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/use-breakpoint-DA7JqsRN.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/copy-z7idLzWO.js","/assets/skills-CYFLsN5U.js","/assets/u-edit-809W9D9T.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/vendor-markdown-BML7QbqS.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/chevron-down-D_LsyTA7.js","/assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DRblkyXD.js","/assets/use-config-C959QcRC.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/close-CDAVqnTn.js","/assets/u-check-circle-DBEvndTS.js","/assets/form-control-classes-CtVAktAy.js","/assets/iconBase-B2rQun3J.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/checkmark-CxdXtM3b.js","/assets/dist-hOnv1nn2.js","/assets/vendor~index-home~home~conversation-panel~conversation-G9DMrR7m.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation-Acmf1sKj.js","/assets/chat-send-button-BKsVjhtA.js","/assets/circle-check-DZn9HkLE.js","/assets/plus-CTGLo3aa.js","/assets/refresh-cw-Br5254f4.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/use-skills-D_mLhYNa.js","/assets/merge-agent-profile-save-input-WcFmQVKK.js","/assets/navigation-link-Bxmn-pCs.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/link-external-BDBCz-_z.js","/assets/settings-gear-TYXnELES.js","/assets/u-robot-CJtSzy5X.js","/assets/cloud-funnel-analytics-NlmDoeo2.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/settings-utils-BL_Z9uIe.js","/assets/organization-service.api-CQ73CB-S.js","/assets/modal-classes-DFFO6BMU.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/map-provider-CXU6issd.js"],"css":[]},"routes/launch":{"id":"routes/launch","parentId":"routes/root-layout","path":"launch","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/launch-DjkKw55l.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/vendor~launch-ChXCOGw8.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-input-BEaTCem1.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/use-create-conversation-CakhLF0X.js","/assets/typography-B1UxuuEC.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/iconBase-B2rQun3J.js","/assets/form-control-classes-CtVAktAy.js","/assets/active-backend-context-mY7Gff5c.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/use-tracking-COqZLobY.js","/assets/profiles-service.api-C32pPm70.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/useQuery-B38jBavx.js","/assets/proxy-BiyDhMBd.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/v4-DDdyfk2q.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/dist-hOnv1nn2.js"],"css":[]},"routes/extensions-hub":{"id":"routes/extensions-hub","parentId":"routes/root-layout","path":"customize","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/extensions-hub-Br3Lgynp.js","imports":["/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/external-link-D9B2QMPf.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-nav-link-DA4_ct9G.js","/assets/sidebar-layout-BGMuyC86.js","/assets/extensions-navigation-BQmstKDZ.js","/assets/utils-DsWhWn2F.js","/assets/use-breakpoint-DA7JqsRN.js","/assets/typography-B1UxuuEC.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/navigation-link-Bxmn-pCs.js","/assets/navigation-context-BOGzIng3.js","/assets/skills-CYFLsN5U.js"],"css":[]},"routes/skills-settings":{"id":"routes/skills-settings","parentId":"routes/root-layout","path":"skills","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/skills-settings-pUxMr6WZ.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/Trans-B7lYw4uD.js","/assets/search-BrpWXWUi.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-skills-D_mLhYNa.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-switch-B405oU_v.js","/assets/extensions-navigation-BQmstKDZ.js","/assets/skill-card-pill-row-BMdhr_sd.js","/assets/skill-icon-badge-CGUkgcVH.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/enum-filter-dropdown-DSqPZnsD.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/use-launch-skill-in-chat-DKzCTMt0.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/modal-classes-DFFO6BMU.js","/assets/settings-like-page-layout-classes-DyxyJ0k4.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/useQuery-B38jBavx.js","/assets/proxy-BiyDhMBd.js","/assets/form-control-classes-CtVAktAy.js","/assets/toggle-switch-DYRr9CAR.js","/assets/external-link-D9B2QMPf.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-layout-BGMuyC86.js","/assets/navigation-link-Bxmn-pCs.js","/assets/skills-CYFLsN5U.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/typography-B1UxuuEC.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/dist-hOnv1nn2.js","/assets/navigation-context-BOGzIng3.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/x-mark-jcTkPiOB.js","/assets/check-CrxQfJZ2.js","/assets/chevron-down-D_LsyTA7.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js","/assets/settings-service.api-CTJRrvMu.js","/assets/settings-Chfn5xTD.js","/assets/conversation-store-C6hSXHw0.js"],"css":[]},"routes/skills-plugins":{"id":"routes/skills-plugins","parentId":"routes/root-layout","path":"plugins","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/skills-plugins-C5eJnyft.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/search-BrpWXWUi.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/use-plugins-marketplace-D-93nqtJ.js","/assets/highlighted-source-view-KMsA9c4a.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-input-BEaTCem1.js","/assets/settings-switch-B405oU_v.js","/assets/extensions-navigation-BQmstKDZ.js","/assets/skill-icon-badge-CGUkgcVH.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/modal-classes-DFFO6BMU.js","/assets/settings-like-page-layout-classes-DyxyJ0k4.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor-markdown-BML7QbqS.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/folder-C86qXV7M.js","/assets/form-control-classes-CtVAktAy.js","/assets/toggle-switch-DYRr9CAR.js","/assets/external-link-D9B2QMPf.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-layout-BGMuyC86.js","/assets/navigation-link-Bxmn-pCs.js","/assets/skills-CYFLsN5U.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/typography-B1UxuuEC.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/checkmark-CxdXtM3b.js","/assets/x-mark-jcTkPiOB.js"],"css":[]},"routes/mcp":{"id":"routes/mcp","parentId":"routes/root-layout","path":"mcp","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/mcp-xDMaHzOw.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/puzzle-DlqT0yvr.js","/assets/search-BrpWXWUi.js","/assets/trash-2-gZPlx23R.js","/assets/x-Dx_JbpHA.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/settings-service.api-CTJRrvMu.js","/assets/install-server-modal-BgGRnqA0.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/extensions-navigation-BQmstKDZ.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/enum-filter-dropdown-DSqPZnsD.js","/assets/confirmation-modal-CRBJSllP.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/use-settings-DIAo5KFk.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/modal-classes-DFFO6BMU.js","/assets/settings-like-page-layout-classes-DyxyJ0k4.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/v4-DDdyfk2q.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/useQuery-B38jBavx.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/external-link-D9B2QMPf.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-layout-BGMuyC86.js","/assets/navigation-link-Bxmn-pCs.js","/assets/skills-CYFLsN5U.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/typography-B1UxuuEC.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/dist-hOnv1nn2.js","/assets/navigation-context-BOGzIng3.js","/assets/checkmark-CxdXtM3b.js","/assets/x-mark-jcTkPiOB.js","/assets/check-CrxQfJZ2.js","/assets/chevron-down-D_LsyTA7.js","/assets/use-click-outside-element-DKqpqEEm.js","/assets/dropdown-classes-CqA2BTCL.js"],"css":[]},"routes/settings":{"id":"routes/settings","parentId":"routes/root-layout","path":"settings","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":true,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/settings-F4a09IxY.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/use-settings-nav-items-DPK5sxvR.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-config-C959QcRC.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-nav-link-DA4_ct9G.js","/assets/sidebar-layout-BGMuyC86.js","/assets/navigation-link-Bxmn-pCs.js","/assets/utils-DsWhWn2F.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/use-breakpoint-DA7JqsRN.js","/assets/close-CDAVqnTn.js","/assets/settings-gear-TYXnELES.js","/assets/typography-B1UxuuEC.js","/assets/settings-like-page-layout-classes-DyxyJ0k4.js","/assets/settings-utils-BL_Z9uIe.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/chevron-down-D_LsyTA7.js","/assets/circle-check-DZn9HkLE.js","/assets/external-link-D9B2QMPf.js","/assets/puzzle-DlqT0yvr.js","/assets/refresh-cw-Br5254f4.js","/assets/brand-button-BUlDL-mz.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/u-robot-CJtSzy5X.js","/assets/form-control-classes-CtVAktAy.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/map-provider-CXU6issd.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/navigation-context-BOGzIng3.js"],"css":[]},"routes/settings-index":{"id":"routes/settings-index","parentId":"routes/settings","index":true,"hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/settings-index-CyJBf5NA.js","imports":["/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/use-settings-nav-items-DPK5sxvR.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-config-C959QcRC.js","/assets/backend-synced-settings-badge-CQ9xtNWm.js","/assets/sidebar-nav-link-DA4_ct9G.js","/assets/utils-DsWhWn2F.js","/assets/use-breakpoint-DA7JqsRN.js","/assets/typography-B1UxuuEC.js","/assets/settings-utils-BL_Z9uIe.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/useQuery-B38jBavx.js","/assets/chevron-down-D_LsyTA7.js","/assets/circle-check-DZn9HkLE.js","/assets/external-link-D9B2QMPf.js","/assets/puzzle-DlqT0yvr.js","/assets/refresh-cw-Br5254f4.js","/assets/brand-button-BUlDL-mz.js","/assets/sidebar-layout-BGMuyC86.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/u-robot-CJtSzy5X.js","/assets/form-control-classes-CtVAktAy.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/map-provider-CXU6issd.js","/assets/use-cloud-current-user-id-BMq9gw93.js","/assets/useQueries-B3T1a7qt.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/navigation-link-Bxmn-pCs.js","/assets/navigation-context-BOGzIng3.js"],"css":[]},"routes/llm-settings":{"id":"routes/llm-settings","parentId":"routes/settings","path":"llm","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/llm-settings-nPwv7hKu.js","imports":["/assets/llm-settings-D8zNkIlP.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/back-nav-button-C02hGa8t.js","/assets/copy-Drwu97Gx.js","/assets/external-link-D9B2QMPf.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/proxy-BiyDhMBd.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/badge-CzXbf7tR.js","/assets/brand-button-BUlDL-mz.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/settings-input-BEaTCem1.js","/assets/schema-field-htfNouTG.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/llm-subscription-DTqtBCWz.js","/assets/utils-DsWhWn2F.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/use-settings-DIAo5KFk.js","/assets/u-check-circle-DBEvndTS.js","/assets/u-edit-809W9D9T.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/map-provider-CXU6issd.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/navigation-link-Bxmn-pCs.js","/assets/navigation-context-BOGzIng3.js","/assets/organization-service.api-CQ73CB-S.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/base-modal-DkVyzFMt.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-classes-DFFO6BMU.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/use-save-settings--C6LZXfI.js","/assets/dist-hOnv1nn2.js","/assets/settings-switch-B405oU_v.js","/assets/use-is-authed-BsS4XwSL.js","/assets/toggle-switch-DYRr9CAR.js","/assets/use-tracking-COqZLobY.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js"],"css":[]},"routes/agent-settings":{"id":"routes/agent-settings","parentId":"routes/settings","path":"agent","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/agent-settings-CxfT4ksO.js","imports":["/assets/agent-settings-BGTyoT6X.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-acp-credential-form-CjSvKWFH.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-input-BEaTCem1.js","/assets/schema-field-htfNouTG.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/settings-switch-B405oU_v.js","/assets/acp-providers-WUD4tfSq.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/typography-B1UxuuEC.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/check-CrxQfJZ2.js","/assets/loader-circle-CGD6-Vak.js","/assets/use-create-secret-RT4QtSS9.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/useMutation-DHLpZ6J0.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-DTqtBCWz.js","/assets/use-is-authed-BsS4XwSL.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/use-tracking-COqZLobY.js"],"css":[]},"routes/agent-profiles-settings":{"id":"routes/agent-profiles-settings","parentId":"routes/settings","path":"agents","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/agent-profiles-settings-Ilqid_R5.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/back-nav-button-C02hGa8t.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/agent-settings-BGTyoT6X.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/use-can-manage-org-profiles-vBiP7rHF.js","/assets/merge-agent-profile-save-input-WcFmQVKK.js","/assets/badge-CzXbf7tR.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/utils-DsWhWn2F.js","/assets/settings-section-header-context-CnIIQAUn.js","/assets/use-activate-agent-profile-DCRf47e-.js","/assets/use-save-agent-profile-DGJ3-u0M.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/u-check-circle-DBEvndTS.js","/assets/u-edit-809W9D9T.js","/assets/typography-B1UxuuEC.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/navigation-link-Bxmn-pCs.js","/assets/form-control-classes-CtVAktAy.js","/assets/navigation-context-BOGzIng3.js","/assets/use-acp-credential-form-CjSvKWFH.js","/assets/settings-input-BEaTCem1.js","/assets/schema-field-htfNouTG.js","/assets/settings-switch-B405oU_v.js","/assets/acp-providers-WUD4tfSq.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/useQuery-B38jBavx.js","/assets/check-CrxQfJZ2.js","/assets/loader-circle-CGD6-Vak.js","/assets/use-create-secret-RT4QtSS9.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/proxy-BiyDhMBd.js","/assets/dist-hOnv1nn2.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-DTqtBCWz.js","/assets/use-is-authed-BsS4XwSL.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/use-tracking-COqZLobY.js","/assets/organization-service.api-CQ73CB-S.js","/assets/base-modal-DkVyzFMt.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-body-C3bGicn4.js","/assets/modal-classes-DFFO6BMU.js","/assets/profiles-service.api-C32pPm70.js"],"css":[]},"routes/condenser-settings":{"id":"routes/condenser-settings","parentId":"routes/settings","path":"condenser","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/condenser-settings-C4Y9CzQV.js","imports":["/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/brand-button-BUlDL-mz.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/schema-field-htfNouTG.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/dist-hOnv1nn2.js","/assets/settings-service.api-CTJRrvMu.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/settings-switch-B405oU_v.js","/assets/llm-subscription-DTqtBCWz.js","/assets/use-is-authed-BsS4XwSL.js","/assets/typography-B1UxuuEC.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js"],"css":[]},"routes/agent-context-settings":{"id":"routes/agent-context-settings","parentId":"routes/settings","path":"agent-context","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/agent-context-settings-BTUmWEzL.js","imports":["/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/brand-button-BUlDL-mz.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/schema-field-htfNouTG.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/dist-hOnv1nn2.js","/assets/settings-service.api-CTJRrvMu.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/settings-switch-B405oU_v.js","/assets/llm-subscription-DTqtBCWz.js","/assets/use-is-authed-BsS4XwSL.js","/assets/typography-B1UxuuEC.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js"],"css":[]},"routes/verification-settings":{"id":"routes/verification-settings","parentId":"routes/settings","path":"verification","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/verification-settings-Vr5cN4md.js","imports":["/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/sdk-section-page-D0K1dBQY.js","/assets/rolldown-runtime-Cyuzqnbw.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/brand-button-BUlDL-mz.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/schema-field-htfNouTG.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-settings-DIAo5KFk.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/dist-hOnv1nn2.js","/assets/settings-service.api-CTJRrvMu.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/settings-switch-B405oU_v.js","/assets/llm-subscription-DTqtBCWz.js","/assets/use-is-authed-BsS4XwSL.js","/assets/typography-B1UxuuEC.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js"],"css":[]},"routes/app-settings":{"id":"routes/app-settings","parentId":"routes/settings","path":"app","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/app-settings-D53QZy5p.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/brand-button-BUlDL-mz.js","/assets/switch-skeleton-BQoOhQTB.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/settings-switch-B405oU_v.js","/assets/navigation-link-Bxmn-pCs.js","/assets/utils-DsWhWn2F.js","/assets/use-save-settings--C6LZXfI.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/use-settings-DIAo5KFk.js","/assets/settings-Chfn5xTD.js","/assets/color-themes-DTj5Ylbr.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/form-control-classes-CtVAktAy.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/toggle-switch-DYRr9CAR.js","/assets/navigation-context-BOGzIng3.js","/assets/useMutation-DHLpZ6J0.js","/assets/use-tracking-COqZLobY.js","/assets/settings-service.api-CTJRrvMu.js","/assets/proxy-BiyDhMBd.js","/assets/useQuery-B38jBavx.js","/assets/profiles-service.api-C32pPm70.js","/assets/agent-server-ui-style-scope-DdG0ZAHu.js"],"css":[]},"routes/secrets-settings":{"id":"routes/secrets-settings","parentId":"routes/settings","path":"secrets","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/secrets-settings-Da4SSaX9.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useMutation-DHLpZ6J0.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/back-nav-button-C02hGa8t.js","/assets/pencil-DzW2GB2M.js","/assets/trash-2-gZPlx23R.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/brand-button-BUlDL-mz.js","/assets/settings-input-BEaTCem1.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/confirmation-modal-CRBJSllP.js","/assets/utils-DsWhWn2F.js","/assets/use-create-secret-RT4QtSS9.js","/assets/typography-B1UxuuEC.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/form-control-classes-CtVAktAy.js","/assets/settings-list-classes-VqMzkYYt.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/navigation-link-Bxmn-pCs.js","/assets/navigation-context-BOGzIng3.js","/assets/active-backend-context-mY7Gff5c.js","/assets/proxy-BiyDhMBd.js","/assets/modal-backdrop-X-vKo61e.js","/assets/useQuery-B38jBavx.js","/assets/dist-hOnv1nn2.js"],"css":[]},"routes/device-verify":{"id":"routes/device-verify","parentId":"routes/root-layout","path":"oauth/device/verify","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/device-verify-CDm_WrVu.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/utils-DsWhWn2F.js","/assets/use-is-authed-BsS4XwSL.js","/assets/typography-B1UxuuEC.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/useQuery-B38jBavx.js","/assets/dist-hOnv1nn2.js"],"css":[]},"routes/automations-list":{"id":"routes/automations-list","parentId":"routes/root-layout","path":"automations","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/automations-list-BYncC7gv.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/recommended-automations-launcher-Dru1yN46.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/Trans-B7lYw4uD.js","/assets/check-CrxQfJZ2.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-tracking-COqZLobY.js","/assets/automation-export-BO_kfqC8.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/brand-button-BUlDL-mz.js","/assets/skill-card-pill-row-BMdhr_sd.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/modal-backdrop-X-vKo61e.js","/assets/modal-close-button-vxkAIRyZ.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-launch-skill-in-chat-DKzCTMt0.js","/assets/folder-C86qXV7M.js","/assets/search-7DRiGm4Z.js","/assets/u-edit-809W9D9T.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/extension-module-card-classes-Bo43vY5V.js","/assets/modal-classes-DFFO6BMU.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js","/assets/use-is-creating-conversation-CIAcnd8M.js","/assets/conversation-store-C6hSXHw0.js","/assets/settings-service.api-CTJRrvMu.js","/assets/install-server-modal-BgGRnqA0.js","/assets/circle-plus-check-toggle-DdjUiOo1.js","/assets/use-create-conversation-CakhLF0X.js","/assets/use-settings-DIAo5KFk.js","/assets/proxy-BiyDhMBd.js","/assets/settings-Chfn5xTD.js","/assets/useMutation-DHLpZ6J0.js","/assets/v4-DDdyfk2q.js","/assets/secrets-service-Dbv5Zb8G.js","/assets/settings-input-BEaTCem1.js","/assets/form-control-classes-CtVAktAy.js","/assets/useQuery-B38jBavx.js","/assets/checkmark-CxdXtM3b.js","/assets/x-mark-jcTkPiOB.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/profiles-service.api-C32pPm70.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/automation-BGP_I1RR.js","/assets/dist-hOnv1nn2.js","/assets/combobox-caret-Dl9UtvD6.js"],"css":[]},"routes/automation-detail":{"id":"routes/automation-detail","parentId":"routes/root-layout","path":"automations/:automationId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/automation-detail-nEflClmc.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/back-nav-button-C02hGa8t.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/use-tracking-COqZLobY.js","/assets/proxy-BiyDhMBd.js","/assets/automation-export-BO_kfqC8.js","/assets/brand-button-BUlDL-mz.js","/assets/utils-DsWhWn2F.js","/assets/navigation-context-BOGzIng3.js","/assets/use-create-conversation-CakhLF0X.js","/assets/use-settings-DIAo5KFk.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/link-external-BDBCz-_z.js","/assets/terminal-cMS3RgVE.js","/assets/u-edit-809W9D9T.js","/assets/x-mark-jcTkPiOB.js","/assets/automation-BGP_I1RR.js","/assets/toggle-switch-DYRr9CAR.js","/assets/modal-classes-DFFO6BMU.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/navigation-link-Bxmn-pCs.js","/assets/form-control-classes-CtVAktAy.js","/assets/useMutation-DHLpZ6J0.js","/assets/context-menu-list-item-FGaafXGh.js","/assets/settings-input-BEaTCem1.js","/assets/settings-dropdown-input-jOiv5Yrk.js","/assets/use-llm-profiles-CdaxVpyY.js","/assets/dropdown-classes-CqA2BTCL.js","/assets/dist-hOnv1nn2.js","/assets/combobox-caret-Dl9UtvD6.js","/assets/profiles-service.api-C32pPm70.js","/assets/use-agent-profiles-DmT9zxAN.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/plugins-management-service-ijhH8OSh.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/v4-DDdyfk2q.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js"],"css":[]},"routes/shared-conversation":{"id":"routes/shared-conversation","parentId":"root","path":"shared/conversations/:conversationId","hasAction":false,"hasLoader":false,"hasClientAction":false,"hasClientLoader":false,"hasClientMiddleware":false,"hasDefaultExport":true,"hasErrorBoundary":false,"module":"/assets/shared-conversation-BvWtTwES.js","imports":["/assets/rolldown-runtime-Cyuzqnbw.js","/assets/vendor-styling-Bcgpimp9.js","/assets/active-backend-context-mY7Gff5c.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js","/assets/useQuery-B38jBavx.js","/assets/messages-CdNfZPgd.js","/assets/markdown-renderer-U40HF0Ak.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js","/assets/openhands-logo-CmYvJXBa.js","/assets/loading-spinner-DRFyh6Iy.js","/assets/utils-DsWhWn2F.js","/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js","/assets/iconBase-B2rQun3J.js","/assets/vendor-markdown-BML7QbqS.js","/assets/useMutation-DHLpZ6J0.js","/assets/Trans-B7lYw4uD.js","/assets/chevron-down-D_LsyTA7.js","/assets/loader-circle-CGD6-Vak.js","/assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DRblkyXD.js","/assets/conversation-store-C6hSXHw0.js","/assets/agent-server-conversation-service.api-C_7YnjzP.js","/assets/conversation-state-store-CGRQemtx.js","/assets/use-config-C959QcRC.js","/assets/syntax-highlighter-B92AFGMy.js","/assets/copy-to-clipboard-button-NbN1clVr.js","/assets/styled-tooltip-B3kIdVyH.js","/assets/navigation-context-BOGzIng3.js","/assets/use-settings-DIAo5KFk.js","/assets/close-CDAVqnTn.js","/assets/skills-CYFLsN5U.js","/assets/u-check-circle-DBEvndTS.js","/assets/typography-B1UxuuEC.js","/assets/form-control-classes-CtVAktAy.js","/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js","/assets/v4-DDdyfk2q.js","/assets/proxy-BiyDhMBd.js","/assets/use-user-conversation-DhcAEyJX.js","/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~eywn6ulz-BKxxr74w.js","/assets/profiles-service.api-C32pPm70.js","/assets/settings-service.api-CTJRrvMu.js","/assets/llm-subscription-service-COTgZc1C.js","/assets/acp-providers-WUD4tfSq.js","/assets/llm-subscription-DTqtBCWz.js","/assets/settings-Chfn5xTD.js","/assets/checkmark-CxdXtM3b.js","/assets/copy-z7idLzWO.js","/assets/dist-hOnv1nn2.js"],"css":[]}},"url":"/assets/manifest-1cf33a7b.js","version":"1cf33a7b"};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Bcgpimp9.js";import{n as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js";import{c as i,i as a,n as o,r as s,s as c}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CmzCY1BT.js";import{_ as l}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g4xrpilz-CYPMCkX1.js";import{t as u}from"./useMutation-DHLpZ6J0.js";import{t as d}from"./useQuery-B38jBavx.js";import{Q as f,Z as p,et as m,ot as h,tt as g,x as _}from"./active-backend-context-mY7Gff5c.js";import{C as v,T as y,b,t as x}from"./utils-DsWhWn2F.js";import{a as S}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~bi2r7bko-VFnwct3q.js";import{t as C}from"./proxy-BiyDhMBd.js";import{n as w}from"./navigation-context-BOGzIng3.js";import{_t as T,ct as E,dt as ee,ft as D,gt as O,ht as k,lt as A,mt as j,ot as M,pt as N,st as P,ut as te,vt as F}from"./vendor-markdown-BML7QbqS.js";import{f as I,o as ne,t as re,u as L}from"./conversation-store-C6hSXHw0.js";import{t as ie}from"./v4-DDdyfk2q.js";import{d as ae,t as R,u as oe}from"./agent-server-conversation-service.api-C_7YnjzP.js";import{_ as se,a as ce,l as le,r as ue,t as de}from"./conversation-state-store-CGRQemtx.js";import{t as z}from"./use-user-conversation-DhcAEyJX.js";import{t as fe}from"./copy-to-clipboard-button-NbN1clVr.js";import"./syntax-highlighter-B92AFGMy.js";var B=e(t(),1);function V(){let{conversationId:e}=w();return{conversationId:e}}function pe(){let{conversationId:e}=V();if(!e)throw Error(`useConversationId must be used within a route that has a conversationId parameter`);return{conversationId:e}}var me=()=>{let{conversationId:e}=V(),t=!!e&&e.startsWith(`task-`),n=z(!e||t?null:e,e=>{let t=e.state.data;return t&&(!t.conversation_url||t.sandbox_status===`PAUSED`||!t.title&&b(t.execution_status))?3e3:3e4});return(0,B.useEffect)(()=>{let e=n.data;ce.setCurrentConversation(e||null)},[e,n.isFetched,n?.data?.execution_status]),n};function he(e){if(!e)return y.LOADING;switch(e){case v.IDLE:return y.AWAITING_USER_INPUT;case v.RUNNING:return y.RUNNING;case v.PAUSED:return y.PAUSED;case v.WAITING_FOR_CONFIRMATION:return y.AWAITING_USER_CONFIRMATION;case v.FINISHED:return y.FINISHED;case v.ERROR:return y.ERROR;case v.STUCK:return y.ERROR;default:return y.LOADING}}function ge(){let e=de(e=>e.execution_status),t=me().data?.execution_status??null,n=e??t;return{curAgentState:(0,B.useMemo)(()=>he(n),[n]),executionStatus:n}}var _e=`auth`,ve=`session_api_key`;function H(e,t){t&&e.send(JSON.stringify({type:_e,[ve]:t}))}var ye=(e,t)=>{let[n,r]=B.useState(!1),[i,a]=B.useState(null),[o,s]=B.useState(null),[c,l]=B.useState(!1),u=B.useRef(null),d=B.useRef(0),f=B.useRef(null),p=B.useRef(!0),m=B.useRef(new WeakSet),h=B.useRef(t);B.useEffect(()=>{h.current=t},[t]);let g=B.useCallback(()=>{let t=e;if(h.current?.queryParams){let n=Object.entries(h.current.queryParams).reduce((e,[t,n])=>(e[t]=String(n),e),{});t=`${e}?${new URLSearchParams(n).toString()}`}let n=new WebSocket(t);u.current=n,m.current.add(n),n.onopen=e=>{H(n,h.current?.sessionApiKey),r(!0),s(null),l(!1),d.current=0,h.current?.onOpen?.(e)},n.onmessage=e=>{a(e.data),h.current?.onMessage?.(e)},n.onclose=e=>{let t=m.current.has(n);r(!1),e.code!==1e3&&(s(Error(`WebSocket closed with code ${e.code}: ${e.reason||`Connection closed unexpectedly`}`)),t&&h.current?.onError?.(e)),h.current?.onClose?.(e);let i=h.current?.reconnect?.enabled??!1,a=h.current?.reconnect?.maxAttempts??1/0;i&&t&&p.current&&d.current<a?(l(!0),d.current+=1,f.current=setTimeout(()=>{g()},3e3)):l(!1)},n.onerror=e=>{r(!1),h.current?.onError?.(e)}},[e]);B.useEffect(()=>(p.current=!0,d.current=0,e&&e.trim()!==``&&g(),()=>{if(p.current=!1,f.current&&=(clearTimeout(f.current),null),u.current){let{readyState:e}=u.current;m.current.delete(u.current),(e===WebSocket.CONNECTING||e===WebSocket.OPEN)&&u.current.close(),u.current=null}}),[e,g]);let _=B.useCallback(e=>{u.current?.readyState===WebSocket.OPEN&&u.current.send(e)},[]),v=B.useCallback(()=>{p.current=!1,l(!1),f.current&&=(clearTimeout(f.current),null),u.current&&(m.current.delete(u.current),u.current.close())},[]),y=B.useCallback(()=>{if(p.current=!0,d.current=0,l(!0),s(null),f.current&&=(clearTimeout(f.current),null),u.current){let e=u.current;m.current.delete(e),u.current=null,(e.readyState===WebSocket.CONNECTING||e.readyState===WebSocket.OPEN)&&e.close()}g()},[g]);return{isConnected:n,lastMessage:i,error:o,socket:u.current,sendMessage:_,isReconnecting:c,attemptCount:d.current,disconnect:v,reconnect:y}},be=`Unable to connect to server`;function xe(e){return typeof e==`object`&&!!e&&`id`in e&&`timestamp`in e&&`source`in e&&typeof e.id==`string`&&e.id.length>0&&typeof e.timestamp==`string`&&e.timestamp.length>0&&typeof e.source==`string`&&(e.source===`agent`||e.source===`user`||e.source===`environment`||e.source===`hook`)}var U=e=>e.source===`environment`&&`action_id`in e&&`observation`in e&&e.observation!==null&&typeof e.observation==`object`&&`kind`in e.observation,W=e=>e.source===`agent`&&`tool_name`in e&&`tool_call_id`in e&&`error`in e&&typeof e.tool_name==`string`&&typeof e.tool_call_id==`string`&&typeof e.error==`string`,G=e=>`llm_message`in e&&typeof e.llm_message==`object`&&e.llm_message!==null&&`role`in e.llm_message&&`content`in e.llm_message,K=e=>G(e)&&e.llm_message.role===`user`,q=e=>e.source===`agent`&&`action`in e&&e.action!==null&&typeof e.action==`object`&&`kind`in e.action&&`tool_name`in e&&`tool_call_id`in e&&typeof e.tool_name==`string`&&typeof e.tool_call_id==`string`,Se=e=>q(e)&&(e.action.kind===`ExecuteBashAction`||e.action.kind===`TerminalAction`),Ce=e=>U(e)&&(e.observation.kind===`ExecuteBashObservation`||e.observation.kind===`TerminalObservation`),we=e=>U(e)&&e.observation.kind===`PlanningFileEditorObservation`,Te=e=>U(e)&&e.observation.kind===`BrowserObservation`,Ee=e=>U(e)&&e.observation.kind===`SwitchLLMObservation`,De=e=>q(e)&&e.action.kind===`BrowserNavigateAction`,Oe=e=>q(e)&&(e.tool_name===`canvas_ui`||e.tool_name===`canvas_ui_control`),ke=e=>e.source===`agent`&&`system_prompt`in e&&`tools`in e&&typeof e.system_prompt==`object`&&Array.isArray(e.tools),J=e=>`kind`in e&&e.kind===`ConversationStateUpdateEvent`,Ae=e=>e.key===`full_state`,je=e=>e.key===`execution_status`,Me=e=>e.key===`stats`,Y=e=>e.key===`goal`,Ne=e=>`kind`in e&&e.kind===`ConversationErrorEvent`,Pe=e=>`kind`in e&&e.kind===`ServerErrorEvent`,Fe=e=>Ne(e)||Pe(e),Ie=e=>`kind`in e&&e.kind===`HookExecutionEvent`,Le=e=>`kind`in e&&e.kind===`ACPToolCallEvent`,X=e=>`kind`in e&&e.kind===`StreamingDeltaEvent`;function Re(e){return xe(e)}var ze=e=>e.thought.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
2
|
+
`),Be=e=>e.reasoning_content?e.reasoning_content:e.thinking_blocks?.length?e.thinking_blocks.filter(e=>e.type===`thinking`).map(e=>e.thinking).join(`
|
|
3
|
+
|
|
4
|
+
`):``,Ve=e=>ze(e).trim().length>0,He=(e,t)=>{let n=e.replace(/^\s+/,``);if(!n.startsWith(`<think>`))return{reasoning:``,message:e};let r=n.slice(7),i=r.indexOf(`</think>`);return i===-1?t?.streaming?{reasoning:r.trim(),message:``}:{reasoning:``,message:e}:{reasoning:r.slice(0,i).trim(),message:r.slice(i+8).trim()}},Ue=(e,t)=>{if(q(e))return e.action.kind===`ThinkAction`?null:Ve(e)?e:null;if(U(e)){let n=t.find(t=>q(t)&&t.id===e.action_id);return!n||n.action.kind===`ThinkAction`?null:Ve(n)?n:null}return null},We=(e,t)=>({...t,content:`${t.content??``}${e.content??``}`||null,reasoning_content:`${t.reasoning_content??``}${e.reasoning_content??``}`||null}),Z=(e,t)=>!!e.isFromPlanningAgent==!!t.isFromPlanningAgent,Ge=e=>{for(let t=e.length-1;t>=0;--t){let n=e[t];if(G(n)&&n.source===`user`)return t}return-1},Ke=e=>e.filter(e=>e.type===`text`).map(e=>e.text).join(``),qe=(e,t)=>{let n=0,r=0;for(let i of t){let t=e.indexOf(i,n);if(t===-1)return{matched:!1,lastMatchEnd:r};r=t+i.length,n=r}return{matched:!0,lastMatchEnd:r}},Je=(e,t)=>{let n=Ge(e);return e.map((e,t)=>({event:e,index:t})).filter(e=>e.index>n&&X(e.event)&&(e.event.content?.length??0)>0&&Z(t,e.event))},Ye=(e,t)=>{let n=[];for(let r=e.length-1;r>=0;--r){let i=e[r];if(!X(i))break;t(i)&&n.unshift({event:i,index:r})}return n},Xe=e=>Ye(e,e=>(e.content?.length??0)>0),Ze=(e,t)=>Ye(e,e=>!!e.reasoning_content&&Z(t,e)),Qe=(e,t,n)=>{let r=new Set(t.map(({index:e})=>e)),i=[];return e.forEach((e,t)=>{if(!r.has(t)||!X(e)){i.push(e);return}!n&&e.reasoning_content&&i.push({...e,content:null})}),i},$e=(e,t)=>{let n=t.join(``),r=new Set([n,n.trimEnd(),n.trimStart(),n.trim()]);for(let t of r)if(t&&e.startsWith(t))return{matched:!0,lastMatchEnd:t.length};let i=t.length-1;return qe(e,t.map((e,t)=>t===i?e.trimEnd():e))},et=e=>q(e)?Be(e).trim().length>0:G(e)&&e.source===`agent`?He(Ke(e.llm_message.content)).reasoning.length>0:!1,tt=(e,t)=>{let n=Je(t,e);if(n.length===0)return null;let r=Qe(t,n,et(e));return r.push(e),r},nt=(e,t)=>{let n=Ke(e.thought);if(!n)return null;let r=Xe(t);return r.length===0||!$e(n,r.map(({event:e})=>e.content??``)).matched?null:Qe(t,r,Be(e).trim().length>0)},rt=(e,t)=>{if(Be(e).trim().length===0)return null;let n=Ze(t,e);if(n.length===0)return null;let r=new Set(n.map(({index:e})=>e)),i=[];return t.forEach((e,t)=>{if(!r.has(t)||!X(e)){i.push(e);return}e.content&&i.push({...e,reasoning_content:null})}),i},it=(e,t)=>{let n=[...t];if(X(e)){if(e.content===null&&e.reasoning_content===null)return n;let t=n.length-1,r=n[t];return r&&X(r)&&Z(e,r)?(n[t]=We(e,r),n):(n.push(e),n)}if(q(e)&&e.action.kind===`FinishAction`||G(e)&&e.source===`agent`){let t=tt(e,n);if(t)return t}if(q(e)&&e.action.kind!==`FinishAction`&&e.action.kind!==`ThinkAction`){let t=nt(e,n)??rt(e,n);if(t)return t.push(e),t}if(Le(e)){let t=n.findIndex(t=>Le(t)&&t.tool_call_id===e.tool_call_id);return t===-1?n.push(e):n[t]=e,n}if(U(e)){if(e.observation.kind===`ThinkObservation`||e.observation.kind===`FinishObservation`)return n;let t=n.findIndex(t=>t.id===e.action_id);t===-1?n.push(e):n[t]=e}else n.push(e);return n},at=e=>`id`in e?e.id:void 0,ot=e=>`timestamp`in e?e.timestamp:void 0,st=(e,t)=>{let n=ot(e),r=ot(t);return!n&&!r?0:n?r?n.localeCompare(r):-1:1},ct=(e,t)=>{if(e.length===0)return!1;let n=e[e.length-1],r=ot(n),i=ot(t);return!r||!i?!1:i<r},lt=(e,t)=>{let n=at(t);if(n!==void 0&&e.eventIds.has(n))return e;let r=n===void 0?e.eventIds:new Set(e.eventIds).add(n),i=e.events.length-1,a=e.events[i],o=a&&X(t)&&X(a)&&Z(t,a),s=[...e.events];return o?s[i]=We(t,a):s.push(t),{...e,events:s,eventIds:r,uiEvents:it(t,e.uiEvents)}},ut=e=>({...e,events:[...e.events].sort(st),uiEvents:[...e.uiEvents].sort(st)}),dt=(e,t)=>{let n=lt(e,t);return n===e?e:!ct(e.events,t)&&!ct(e.uiEvents,t)?n:ut(n)},Q=I()(e=>({events:[],eventIds:new Set,uiEvents:[],loadedConversationId:null,addEvent:t=>e(e=>dt(e,t)),addEvents:t=>e(e=>{if(t.length===0)return e;let n=new Set(e.eventIds),r=[...e.events],i=[...e.uiEvents],a=!1;for(let e of t){let t=at(e);if(!(t!==void 0&&n.has(t))){a=!0,t!==void 0&&n.add(t);let o=r.length-1,s=r[o];s&&X(e)&&X(s)&&Z(e,s)?r[o]=We(e,s):r.push(e),i=it(e,i)}}return a?ut({...e,events:r,eventIds:n,uiEvents:i}):e}),clearEvents:()=>e(()=>({events:[],eventIds:new Set,uiEvents:[],loadedConversationId:null})),clearEventsForConversation:t=>e(()=>({events:[],eventIds:new Set,uiEvents:[],loadedConversationId:t}))})),ft={errorMessage:null,errorType:null,errorCode:null},pt=I(e=>({...ft,setErrorMessage:(t,n=`conversation`,r=null)=>e(()=>({errorMessage:t,errorType:n,errorCode:r})),removeErrorMessage:()=>e(()=>({...ft})),clearConnectionError:()=>e(e=>e.errorType===`connection`?{...ft}:e)})),mt=15e4,ht={pendingMessages:[]},gt=()=>`pending-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,_t=I((e,t)=>({...ht,enqueuePendingMessage:n=>{let r=gt(),i={id:r,conversationId:n.conversationId,text:n.text,content:n.content??n.text,status:`sending`,imageUrls:n.imageUrls??[],fileUrls:n.fileUrls??[],timestamp:n.timestamp??new Date().toISOString()};return e(e=>({pendingMessages:[...e.pendingMessages,i]})),setTimeout(()=>{t().pendingMessages.find(e=>e.id===r)?.status===`sending`&&t().markPendingMessageError(r,`Send timed out`)},mt),r},markPendingMessageError:(t,n)=>e(e=>({pendingMessages:e.pendingMessages.map(e=>e.id===t?{...e,status:`error`,errorMessage:n}:e)})),markPendingMessageSending:t=>e(e=>({pendingMessages:e.pendingMessages.map(e=>e.id===t?{...e,status:`sending`,errorMessage:void 0}:e)})),removePendingMessage:t=>e(e=>({pendingMessages:e.pendingMessages.filter(e=>e.id!==t)})),consumeMatchingPendingMessage:(t,n)=>{let r=null;return e(e=>{let i=e.pendingMessages.map((e,t)=>({m:e,i:t})).filter(({m:e})=>e.status===`sending`&&e.conversationId===t);if(i.length===0)return e;let a=i.find(({m:e})=>e.content===n)??i[0];return r=a.m,{pendingMessages:[...e.pendingMessages.slice(0,a.i),...e.pendingMessages.slice(a.i+1)]}}),r},clearPendingMessages:()=>e(()=>({...ht})),reassignPendingMessages:(t,n)=>e(e=>({pendingMessages:e.pendingMessages.map(e=>e.conversationId===t?{...e,conversationId:n}:e)}))})),vt=I(e=>({commands:[],appendInput:t=>e(e=>({commands:[...e.commands,{content:t,type:`input`}]})),appendOutput:t=>e(e=>({commands:[...e.commands,{content:t,type:`output`}]})),clearTerminal:()=>e({commands:[]})})),yt={url:``,screenshotSrc:``},bt=I(e=>({...yt,setUrl:t=>e({url:t}),setScreenshotSrc:t=>e({screenshotSrc:t}),reset:()=>e(yt)})),xt={statusByConversation:{}},St=I()(L(e=>({...xt,setStatus:(t,n)=>e(e=>({statusByConversation:{...e.statusByConversation,[t]:n}}))}),{name:`GoalStore`})),Ct=I(e=>({selectedPath:null,selectedConversationId:null,setSelectedPath:(t,n=null)=>e({selectedPath:t,selectedConversationId:n})})),wt=new Set([`files`,`browser`,`terminal`,`planner`,`tasklist`]);function Tt(e){let t=re.getState();t.setSelectedTab(e),t.isRightPanelShown||(t.setHasRightPanelToggled(!0),t.setIsRightPanelShown(!0))}function Et(e){return wt.has(e)}function Dt(e,t=null){switch(e.command){case`navigate_to_file`:case`show_preview`:Tt(`files`),e.path&&Ct.getState().setSelectedPath(e.path,t);return;case`open_tab`:e.tab===`vscode`?Tt(`files`):e.tab&&Et(e.tab)?Tt(e.tab):e.tab&&console.warn(`[canvas_ui] Ignoring open_tab with unknown tab: ${e.tab}`);return}}var Ot=(e,t,n)=>({entriesByConversation:{...e.entriesByConversation,[t]:[...e.entriesByConversation[t]??[],n]}}),kt=I()(L(e=>({entriesByConversation:{},activeProfileByConversation:{},show:(t,n,r)=>e(e=>Ot(e,t,{id:ie(),anchorEventId:n,profiles:r})),recordSwitch:(t,n,r)=>e(e=>({...Ot(e,t,{id:ie(),anchorEventId:n,profiles:[],switchedTo:r}),activeProfileByConversation:{...e.activeProfileByConversation,[t]:r}})),seedSwitches:(t,n)=>e(e=>{let r=e.entriesByConversation[t]??[],i=new Set(r.map(e=>e.id)),a=n.filter(e=>!i.has(e.id)).map(e=>({id:e.id,anchorEventId:e.anchorEventId,profiles:[],switchedTo:e.profileName}));return a.length===0?e:{entriesByConversation:{...e.entriesByConversation,[t]:[...r,...a]}}}),clearActiveProfile:t=>e(e=>{if(!(t in e.activeProfileByConversation))return e;let n={...e.activeProfileByConversation};return delete n[t],{activeProfileByConversation:n}}),clear:t=>e(e=>{let n={...e.entriesByConversation};delete n[t];let r={...e.activeProfileByConversation};return delete r[t],{entriesByConversation:n,activeProfileByConversation:r}}),clearAll:()=>e({entriesByConversation:{},activeProfileByConversation:{}})}),{name:`ModelStore`})),At=(e,t,n)=>{let{action:r}=e;if((r.kind===`StrReplaceEditorAction`||r.kind===`FileEditorAction`||r.kind===`ExecuteBashAction`)&&n.invalidateQueries({queryKey:[`file_changes`,t]},{cancelRefetch:!1}),(r.kind===`StrReplaceEditorAction`||r.kind===`FileEditorAction`)&&r.path){let e=ue(r.path);n.invalidateQueries({queryKey:[`file_diff`,t,e]})}e.tool_name===`SwitchLLMTool`&&(n.invalidateQueries({queryKey:[`user`,`conversation`,t]}),kt.getState().clearActiveProfile(t))},jt=class{static async respondToConfirmation(e,t,n,r){let i=h().backend;return i.kind===`cloud`?C({backend:i,method:`POST`,hostOverride:m(t),path:`/api/conversations/${e}/events/respond_to_confirmation`,body:n,authMode:`session-api-key`,sessionApiKey:r}):new l(p({conversationUrl:t,sessionApiKey:r})).respondToConfirmation(e,n)}static async getEventCount(e,t,n){let r=h().backend;return r.kind===`cloud`?C({backend:r,method:`GET`,hostOverride:m(t),path:`/api/conversations/${e}/events/count`,authMode:`session-api-key`,sessionApiKey:n}):new l(p({conversationUrl:t,sessionApiKey:n})).getEventCount(e)}static async searchEvents(e,t,n,r={}){let i=h().backend,a=r.limit??100;if(i.kind===`cloud`){let t=Math.min(a,100),n=!!(r.sortOrder||r.pageId||r.timestampGte||r.timestampLt),o=new URLSearchParams;o.set(`limit`,String(t)),r.sortOrder&&o.set(`sort_order`,r.sortOrder),r.pageId&&o.set(`page_id`,r.pageId),r.timestampGte&&o.set(`timestamp__gte`,r.timestampGte),r.timestampLt&&o.set(`timestamp__lt`,r.timestampLt);let s=t=>C({backend:i,method:`GET`,path:`/api/v1/conversation/${e}/events/search?${t.toString()}`});try{let e=await s(o);return{items:e?.items??[],next_page_id:e?.next_page_id??null}}catch(e){if(!n||r.strictPagination)throw e;return console.warn(`[EventService] Cloud backend doesn't support pagination filters. Falling back to initial load only. Server needs OpenHands/OpenHands#14399.`),{items:[],next_page_id:null}}}let o=await new S(f({conversationUrl:t,sessionApiKey:n}),e).search({limit:a,...r.pageId?{page_id:r.pageId}:{},...r.sortOrder?{sort_order:r.sortOrder}:{},...r.timestampGte?{timestamp__gte:r.timestampGte}:{},...r.timestampLt?{timestamp__lt:r.timestampLt}:{}});return{items:o?.items??[],next_page_id:o?.next_page_id??null}}};function Mt({message:e,source:t,metadata:n={}}){_(Error(e),{error_source:t||`unknown`,...n})}var Nt=()=>u({mutationKey:[`read-conversation-file`],mutationFn:async({conversationId:e,filePath:t})=>R.readConversationFile(e,t)}),Pt=I(e=>({cost:null,max_budget_per_task:null,usage:null,setMetrics:t=>e(t)})),Ft=e=>{let{data:t}=z(e??null);return d({queryKey:[`conversation-history`,e,t?.conversation_url??null,t?.session_api_key??null],enabled:!!e&&!!t,queryFn:async()=>{if(!e)return{events:[],hasMore:!1,nextPageId:null};let n=await jt.searchEvents(e,t?.conversation_url??null,t?.session_api_key??null,{limit:50,sortOrder:`TIMESTAMP_DESC`});if(!Array.isArray(n.items))throw Error(`Invalid conversation history response: expected page.items to be an array.`);return{events:[...n.items].reverse(),hasMore:!!n.next_page_id||n.items.length>=50,nextPageId:n.next_page_id??null}},staleTime:0,gcTime:1800*1e3,refetchOnMount:`always`,refetchOnWindowFocus:!1})},It=[`The goal is NOT yet complete (audit iteration`,`Resuming a goal that was paused or interrupted.`],Lt=e=>{if(e.llm_message?.role!==`user`)return!1;let t=e.llm_message.content,n=Array.isArray(t)?t.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
5
|
+
`):``;return It.some(e=>n.startsWith(e))},Rt=e=>{if(J(e))return Y(e)&&!e.value.active;if(q(e)){let t=e.action.kind;return!(!t||t===`ExecuteBashAction`&&e.source===`user`||t===`PlanningFileEditorAction`||t===`SwitchLLMAction`)}return U(e)?!(e.observation.kind===`SwitchLLMObservation`&&!e.observation.is_error):G(e)?!Lt(e):W(e)||Ie(e)||Le(e)?!0:X(e)?e.content!==null||e.reasoning_content!==null:!1},zt=e=>e.some(e=>e.source===`user`),Bt=()=>{let{uiEvents:e}=Q.getState();for(let t=e.length-1;t>=0;--t){let n=e[t];if(Rt(n))return String(n.id)}return null};function Vt(e,t,n=Bt()){kt.getState().recordSwitch(e,n,t)}function Ht(e,t){let n=[],r=null;for(let e of t)Ee(e)&&!e.observation.is_error&&n.push({id:`history-switch:${e.id}`,anchorEventId:r,profileName:e.observation.profile_name}),Rt(e)&&(r=String(e.id));n.length>0&&kt.getState().seedSwitches(e,n)}var $=n(),Ut=(0,B.createContext)(void 0);function Wt(e){return e.llm_message.content.filter(e=>e.type===`text`).map(e=>e.text).join(``)}function Gt({children:e,conversationId:t,conversationUrl:n,sessionApiKey:i,subConversations:a,subConversationIds:o}){let[s,c]=(0,B.useState)(`CONNECTING`),[u,d]=(0,B.useState)(`CONNECTING`),f=B.useRef(!1),m=B.useRef(!1),h=r(),_=Q(e=>e.addEvent),v=Q(e=>e.addEvents),y=Q(e=>e.clearEventsForConversation),{setErrorMessage:b,removeErrorMessage:x,clearConnectionError:S}=pt(),C=_t(e=>e.consumeMatchingPendingMessage),{setExecutionStatus:w}=de(),{appendInput:T,appendOutput:E}=vt(),ee=bt(e=>e.reset),[D,O]=(0,B.useState)(!0),[k,A]=(0,B.useState)(null),{setPlanContent:j}=re(),{mutate:M}=Nt(),N=(0,B.useRef)(0),P=(0,B.useRef)(null),te=e=>e?.toUpperCase().endsWith(`PLAN.MD`)??!1,F=(0,B.useCallback)(()=>{S()},[S]),I=(0,B.useCallback)(e=>{if(e.value.usage_to_metrics?.agent){let t=e.value.usage_to_metrics.agent,n={cost:t.accumulated_cost,max_budget_per_task:t.max_budget_per_task??null,usage:t.accumulated_token_usage?{prompt_tokens:t.accumulated_token_usage.prompt_tokens,completion_tokens:t.accumulated_token_usage.completion_tokens,cache_read_tokens:t.accumulated_token_usage.cache_read_tokens,cache_write_tokens:t.accumulated_token_usage.cache_write_tokens,context_window:t.accumulated_token_usage.context_window,per_turn_token:t.accumulated_token_usage.per_turn_token}:null};Pt.getState().setMetrics(n)}},[]),{data:L,isPending:ie,isFetching:R,isError:ce}=Ft(t),ue=!!t&&ie;(0,B.useLayoutEffect)(()=>{let e=t??null;Q.getState().loadedConversationId!==e&&(y(e),ee())},[t,y,ee]),(0,B.useLayoutEffect)(()=>{if(!(!L||L.events.length===0)&&(v(L.events),t)){Ht(t,Q.getState().uiEvents);for(let e of L.events)K(e)&&C(t,Wt(e))}},[L,v,t,C]);let z=(0,B.useMemo)(()=>{if(R)return null;let e=L?.events??[],t=e[e.length-1];return!t||!(`timestamp`in t)||!t.timestamp?null:t.timestamp},[L,R]),fe=(0,B.useMemo)(()=>!t||!n||R&&!ce?null:g(t,n),[t,n,R,ce]),V=(0,B.useMemo)(()=>{if(!a?.length)return null;let e=a[0];return!e?.id||!e.conversation_url?null:g(e.id,e.conversation_url)},[a]),pe=(0,B.useMemo)(()=>V?s===`CONNECTING`||u===`CONNECTING`?`CONNECTING`:s===`OPEN`&&u===`OPEN`?`OPEN`:s===`CLOSED`&&u===`CLOSED`?`CLOSED`:s===`CLOSING`||u===`CLOSING`?`CLOSING`:`CLOSED`:s,[s,u,V]);(0,B.useEffect)(()=>{k!==null&&N.current>=k&&D&&O(!1)},[k,D,N]),(0,B.useEffect)(()=>{if(!D&&P.current){let{path:e,conversationId:t}=P.current;M({conversationId:t,filePath:e},{onSuccess:e=>{j(e)},onError:e=>{console.warn(`Failed to read conversation file:`,e)}}),P.current=null}},[D,M,j]),(0,B.useEffect)(()=>{f.current=!1,O(!!o?.length),A(null),N.current=0,P.current=null},[o]),(0,B.useEffect)(()=>{f.current=!1,m.current=!1,P.current=null},[t]);let me=(0,B.useMemo)(()=>ue||D,[ue,D]),he=(0,B.useCallback)(e=>{try{let n=JSON.parse(e.data);if(Re(n)){let e=Q.getState().eventIds.has(n.id),r=Ee(n)?n:null;if(_(n),e)return;if(Fe(n)){let e=n;Mt({message:e.detail,source:`conversation`,metadata:{eventId:e.id,errorCode:e.code}}),b(e.detail,`conversation`,e.code)}else F();if(W(n)&&Mt({message:n.error,source:`agent`,metadata:{eventId:n.id,toolName:n.tool_name,toolCallId:n.tool_call_id}}),K(n)&&t&&(C(t,Wt(n)),ne(t,{draftMessage:null})),q(n)&&At(n,t||`test-conversation-id`,h),J(n)&&(Ae(n)&&w(n.value.execution_status),je(n)&&w(n.value),Me(n)&&I(n),Y(n)&&t&&St.getState().setStatus(t,n.value)),Se(n)&&T(n.action.command),Ce(n)&&E(n.observation.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
6
|
+
`)),Te(n)){let{screenshot_data:e}=n.observation;if(e){let t=e.startsWith(`data:`)?e:`data:image/png;base64,${e}`;bt.getState().setScreenshotSrc(t)}}if(De(n)&&bt.getState().setUrl(n.action.url),t&&r&&!r.observation.is_error){Vt(t,r.observation.profile_name);let e=oe(t);ae(t,{selected_repository:e?.selected_repository??null,selected_branch:e?.selected_branch??null,git_provider:e?.git_provider??null,selected_workspace:e?.selected_workspace??null,active_profile:r.observation.profile_name,plugins:e?.plugins??null}),r.observation.active_model&&se(h,t,r.observation.active_model),le(h,t)}Oe(n)&&Dt(n.action,t??null)}}catch(e){console.warn(`Failed to parse WebSocket message as JSON:`,e)}},[_,b,C,h,t,w,T,E,I,F]),ge=(0,B.useCallback)(e=>{try{let n=JSON.parse(e.data);if(D&&(N.current+=1,k!==null&&N.current>=k&&O(!1)),Re(n)){let e=Q.getState().eventIds.has(n.id);if(_({...n,isFromPlanningAgent:!0}),e)return;if(Fe(n)){let e=n;Mt({message:e.detail,source:`planning_conversation`,metadata:{eventId:e.id,errorCode:e.code}}),b(e.detail,`conversation`,e.code)}else F();if(W(n)&&Mt({message:n.error,source:`planning_agent`,metadata:{eventId:n.id,toolName:n.tool_name,toolCallId:n.tool_call_id}}),K(n)&&t&&(C(t,Wt(n)),ne(t,{draftMessage:null})),q(n)&&At(n,a?.[0]?.id||`test-conversation-id`,h),J(n)&&(Ae(n)&&w(n.value.execution_status),je(n)&&w(n.value),Me(n)&&I(n),Y(n)&&t&&St.getState().setStatus(t,n.value)),Se(n)&&T(n.action.command),Ce(n)&&E(n.observation.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
7
|
+
`)),we(n)){let{path:e}=n.observation;if(te(e)){let t=a?.[0]?.id;t&&e&&(D?P.current={path:e,conversationId:t}:M({conversationId:t,filePath:e},{onSuccess:e=>{j(e)},onError:e=>{console.warn(`Failed to read conversation file:`,e)}}))}}}}catch(e){console.warn(`Failed to parse WebSocket message as JSON:`,e)}},[_,D,k,b,C,h,a,t,w,T,E,M,j,I,F]),_e=(0,B.useMemo)(()=>({queryParams:z?{resend_mode:`since`,after_timestamp:z}:{resend_mode:`all`},sessionApiKey:i,reconnect:{enabled:!0},onOpen:()=>{c(`OPEN`),f.current=!0,S()},onClose:()=>{c(`CLOSED`)},onError:()=>{c(`CLOSED`),f.current&&b(be,`connection`)},onMessage:he}),[he,b,S,i,z]),ve=(0,B.useMemo)(()=>{let e={resend_all:!0},t=a?.[0];return{queryParams:e,sessionApiKey:t?.session_api_key??i,reconnect:{enabled:!0},onOpen:async()=>{if(d(`OPEN`),m.current=!0,S(),t?.id&&t.conversation_url)try{let e=await jt.getEventCount(t.id,t.conversation_url,t.session_api_key);A(e),e===0&&O(!1)}catch{O(!1)}},onClose:()=>{d(`CLOSED`)},onError:()=>{d(`CLOSED`),m.current&&b(be,`connection`)},onMessage:ge}},[ge,b,S,i,a]),{socket:H,reconnect:xe}=ye(fe||``,_e),{socket:U,reconnect:G}=ye(V||``,ve),ke=(0,B.useCallback)(()=>{if(x(),re.getState().conversationMode===`plan`&&V){G();return}xe()},[V,xe,G,x]),Ne=(0,B.useCallback)(async e=>{let n=re.getState().conversationMode===`plan`?U:H;if(n?.readyState!==WebSocket.OPEN){if(!t){let e=Error(`No conversation ID available`);throw b(e.message),e}try{return await new l(p()).sendEvent(t,{role:`user`,content:e.content},{run:!0}),{queued:!0}}catch(e){throw b(e instanceof Error?e.message:`Failed to queue message for delivery`),e}}try{return n.send(JSON.stringify({...e,run:!0})),{queued:!1}}catch(e){throw b(e instanceof Error?e.message:`Failed to send message`),e}},[H,U,b,t]);(0,B.useEffect)(()=>{H&&fe&&(()=>{switch(H.readyState){case WebSocket.CONNECTING:c(`CONNECTING`);break;case WebSocket.OPEN:c(`OPEN`);break;case WebSocket.CLOSING:c(`CLOSING`);break;case WebSocket.CLOSED:c(`CLOSED`);break;default:c(`CLOSED`);break}})()},[H,fe]),(0,B.useEffect)(()=>{U&&V&&(()=>{switch(U.readyState){case WebSocket.CONNECTING:d(`CONNECTING`);break;case WebSocket.OPEN:d(`OPEN`);break;case WebSocket.CLOSING:d(`CLOSING`);break;case WebSocket.CLOSED:d(`CLOSED`);break;default:d(`CLOSED`);break}})()},[U,V]);let Pe=(0,B.useMemo)(()=>({connectionState:pe,sendMessage:Ne,isLoadingHistory:me,reconnect:ke}),[pe,Ne,me,ke]);return(0,$.jsx)(Ut.Provider,{value:Pe,children:e})}var Kt=()=>(0,B.useContext)(Ut)||null,qt=e=>(0,$.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:109,height:109,viewBox:`0 0 109 109`,fill:`none`,...e,children:[(0,$.jsx)(`path`,{d:`M40.1979 21.8969L34.7311 17.832L25.2691 30.5574L20.2094 26.784L16.1367 32.2451L26.6653 40.0969L40.1979 21.8969Z`,fill:`currentColor`}),(0,$.jsx)(`path`,{d:`M90.8342 35.1983H50.4639V28.3858H90.8342V35.1983Z`,fill:`currentColor`}),(0,$.jsx)(`path`,{d:`M90.8342 57.9067H50.4638V51.0942H90.8342V57.9067Z`,fill:`currentColor`}),(0,$.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M27.2508 63.5837C32.2674 63.5837 36.3342 59.517 36.3342 54.5004C36.3342 49.4838 32.2674 45.4171 27.2508 45.4171C22.2342 45.4171 18.1675 49.4838 18.1675 54.5004C18.1675 59.517 22.2342 63.5837 27.2508 63.5837ZM27.2508 59.0421C29.7591 59.0421 31.7925 57.0087 31.7925 54.5004C31.7925 51.9921 29.7591 49.9587 27.2508 49.9587C24.7425 49.9587 22.7092 51.9921 22.7092 54.5004C22.7092 57.0087 24.7425 59.0421 27.2508 59.0421Z`,fill:`currentColor`}),(0,$.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M36.3342 77.2087C36.3342 82.2253 32.2674 86.2921 27.2508 86.2921C22.2342 86.2921 18.1675 82.2253 18.1675 77.2087C18.1675 72.1922 22.2342 68.1254 27.2508 68.1254C32.2674 68.1254 36.3342 72.1922 36.3342 77.2087ZM31.7925 77.2087C31.7925 79.717 29.7591 81.7504 27.2508 81.7504C24.7425 81.7504 22.7092 79.717 22.7092 77.2087C22.7092 74.7005 24.7425 72.6671 27.2508 72.6671C29.7591 72.6671 31.7925 74.7005 31.7925 77.2087Z`,fill:`currentColor`}),(0,$.jsx)(`path`,{d:`M50.4637 80.615H90.834V73.8025H50.4637V80.615Z`,fill:`currentColor`})]}),Jt={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Yt=[],Xt={allowDangerousHtml:!0},Zt=/^(https?|ircs?|mailto|xmpp)$/i,Qt=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function $t(e){let t=en(e),n=tn(e);return nn(t.runSync(t.parse(n),n),e)}function en(e){let t=e.rehypePlugins||Yt,n=e.remarkPlugins||Yt,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Xt}:Xt;return N().use(T).use(n).use(k,r).use(t)}function tn(e){let t=e.children||``,n=new j;return typeof t==`string`?n.value=t:``+t,n}function nn(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||rn;for(let e of Qt)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return O(e,l),F(e,{Fragment:$.Fragment,components:i,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Jt)if(Object.hasOwn(Jt,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Jt[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function rn(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Zt.test(e.slice(0,t))?e:``}function an({text:e,children:t}){let[n,r]=B.useState(!1),[i,a]=B.useState(!1);return B.useEffect(()=>{let e;return i&&(e=setTimeout(()=>a(!1),2e3)),()=>clearTimeout(e)},[i]),(0,$.jsxs)(`div`,{className:`relative`,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),children:[(0,$.jsx)(`div`,{className:`absolute top-2 right-2 z-10`,children:(0,$.jsx)(fe,{isHidden:!n,isDisabled:i,onClick:async()=>{await navigator.clipboard.writeText(e),a(!0)},mode:i?`copied`:`copy`})}),t]})}function on({children:e,className:t}){let n=/language-(\w+)/.exec(t||``),r=String(e).replace(/\n$/,``);return n?(0,$.jsx)(an,{text:r,children:(0,$.jsx)(M,{className:`rounded-lg`,style:P,language:n?.[1],PreTag:`div`,children:r})}):String(e).includes(`
|
|
8
|
+
`)?(0,$.jsx)(an,{text:r,children:(0,$.jsx)(`pre`,{className:`bg-surface-raised text-foreground border border-surface-raised rounded p-[1em] overflow-auto`,children:(0,$.jsx)(`code`,{className:t,children:r})})}):(0,$.jsx)(`code`,{className:x(t,`bg-surface-raised text-foreground border border-surface-raised rounded px-[0.4em] py-[0.2em]`),children:e})}function sn({children:e}){return(0,$.jsx)(`ul`,{className:`my-2 list-disc ml-5 pl-2 whitespace-normal leading-6`,children:e})}function cn({children:e,start:t}){return(0,$.jsx)(`ol`,{className:`my-2 list-decimal ml-5 pl-2 whitespace-normal leading-6`,start:t,children:e})}function ln({children:e}){return(0,$.jsx)(`li`,{className:`py-0.5`,children:e})}function un({children:e}){return(0,$.jsx)(`p`,{className:`py-1.5 leading-6 first:pt-0 last:pb-0`,children:e})}function dn({href:e,children:t}){return(0,$.jsx)(`a`,{className:`text-blue-500 hover:underline`,href:e,target:`_blank`,rel:`noopener noreferrer`,children:t})}function fn({children:e}){return(0,$.jsx)(`h1`,{className:`text-xl text-white font-medium leading-7 mb-3 mt-4 first:mt-0`,children:e})}function pn({children:e}){return(0,$.jsx)(`h2`,{className:`text-lg font-medium leading-6 -tracking-[0.01em] text-white mb-2.5 mt-4 first:mt-0`,children:e})}function mn({children:e}){return(0,$.jsx)(`h3`,{className:`text-base font-medium text-white mb-2 mt-3 first:mt-0`,children:e})}function hn({children:e}){return(0,$.jsx)(`h4`,{className:`text-sm font-medium text-white mb-1.5 mt-3 first:mt-0`,children:e})}function gn({children:e}){return(0,$.jsx)(`h5`,{className:`text-sm font-normal text-[var(--oh-text-tertiary)] mb-1.5 mt-2.5 first:mt-0`,children:e})}function _n({children:e}){return(0,$.jsx)(`h6`,{className:`text-sm font-normal text-[var(--oh-text-tertiary)] mb-1.5 mt-2.5 first:mt-0`,children:e})}var vn=1,yn=`w-10`;function bn(e){let{scrollLeft:t,scrollWidth:n,clientWidth:r}=e,i=n-r,a=i>vn;return{left:a&&t>vn,right:a&&t<i-vn}}function xn({children:e}){let t=B.useRef(null),[n,r]=B.useState({left:!1,right:!1}),i=B.useCallback(()=>{let e=t.current;e&&r(bn(e))},[]);return B.useLayoutEffect(()=>{i();let e=t.current;if(!e)return;let n=new ResizeObserver(i);n.observe(e);let r=e.firstElementChild;return r&&n.observe(r),()=>n.disconnect()},[i,e]),(0,$.jsxs)(`div`,{className:`relative max-w-full`,children:[(0,$.jsx)(`div`,{ref:t,"data-testid":`markdown-table-scroll`,onScroll:i,className:`max-w-full overflow-x-auto custom-scrollbar-always`,children:e}),(0,$.jsx)(`div`,{"aria-hidden":!0,"data-testid":`markdown-table-scroll-fade-left`,"data-visible":n.left?`true`:`false`,className:x(`pointer-events-none absolute inset-y-0 left-0 z-10`,yn,`bg-gradient-to-r from-base to-transparent`,`transition-opacity duration-300 ease-out motion-reduce:transition-none`,n.left?`opacity-100`:`opacity-0`)}),(0,$.jsx)(`div`,{"aria-hidden":!0,"data-testid":`markdown-table-scroll-fade-right`,"data-visible":n.right?`true`:`false`,className:x(`pointer-events-none absolute inset-y-0 right-0 z-10`,yn,`bg-gradient-to-l from-base to-transparent`,`transition-opacity duration-300 ease-out motion-reduce:transition-none`,n.right?`opacity-100`:`opacity-0`)})]})}function Sn({children:e}){return(0,$.jsx)(xn,{children:(0,$.jsx)(`table`,{className:[`my-4 w-max min-w-full border-separate border-spacing-0 overflow-hidden rounded-xl border border-[var(--oh-border)] text-sm`,`[&_td]:border-b [&_td]:border-r [&_th]:border-b [&_th]:border-r`,`[&_td:last-child]:border-r-0 [&_th:last-child]:border-r-0`,`[&_tbody_tr:last-child_td]:border-b-0`].join(` `),children:e})})}function Cn({children:e}){return(0,$.jsx)(`th`,{className:`whitespace-nowrap border-[var(--oh-border)] bg-[var(--oh-surface)] px-3 py-2 text-left font-semibold text-white`,children:e})}function wn({children:e}){return(0,$.jsx)(`td`,{className:`whitespace-nowrap border-[var(--oh-border)] px-3 py-2 align-top`,children:e})}var Tn={note:{label:`Note`,icon:s,containerClass:`border-l-blue-500 bg-blue-500/10`,titleClass:`text-blue-300`,iconClass:`text-blue-400`},tip:{label:`Tip`,icon:c,containerClass:`border-l-emerald-500 bg-emerald-500/10`,titleClass:`text-emerald-300`,iconClass:`text-emerald-400`},important:{label:`Important`,icon:o,containerClass:`border-l-purple-500 bg-purple-500/10`,titleClass:`text-purple-300`,iconClass:`text-purple-400`},warning:{label:`Warning`,icon:i,containerClass:`border-l-yellow-500 bg-yellow-500/10`,titleClass:`text-yellow-300`,iconClass:`text-yellow-400`},caution:{label:`Caution`,icon:a,containerClass:`border-l-rose-500 bg-rose-500/10`,titleClass:`text-rose-300`,iconClass:`text-rose-400`}},En=/(?:^|\s)markdown-alert-(note|tip|important|warning|caution)(?:\s|$)/i;function Dn(e){if(!e)return null;let t=e.match(En);return t?t[1].toLowerCase():null}function On({children:e,className:t}){let n=Dn(t);if(n){let t=Tn[n],r=t.icon;return(0,$.jsxs)(`div`,{"data-testid":`markdown-alert-${n}`,className:x(`my-3 rounded-r-sm border-l-4 px-3 py-2`,t.containerClass),children:[(0,$.jsxs)(`p`,{className:x(`flex items-center gap-2 font-semibold`,t.titleClass),children:[(0,$.jsx)(r,{"aria-hidden":!0,className:x(`shrink-0`,t.iconClass)}),(0,$.jsx)(`span`,{children:t.label})]}),(0,$.jsx)(`div`,{className:`text-content`,children:e})]})}return(0,$.jsx)(`blockquote`,{className:`my-2 border-l-4 border-border pl-3 italic text-content-muted`,children:e})}function kn({...e}){return(0,$.jsx)(`hr`,{...e,className:`my-4 border-0 border-t border-[var(--oh-border)]`})}var An=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\][ \t]*\r?\n?/i;function jn(e){return Array.isArray(e)?e:typeof e==`string`?e.split(/\s+/).filter(Boolean):[]}var Mn=()=>e=>{O(e,`blockquote`,e=>{let t=e,n=t.children[0];if(n?.type!==`paragraph`)return;let r=n,i=r.children[0];if(i?.type!==`text`)return;let a=i.value.match(An);if(!a)return;let o=a[1].toLowerCase(),s=i;s.value=s.value.replace(An,``),s.value===``&&(r.children.shift(),r.children[0]?.type===`break`&&r.children.shift(),r.children.length===0&&t.children.shift()),t.data=t.data??{};let c=t.data.hProperties??{},l=jn(c.className);t.data.hProperties={...c,className:[...l,`markdown-alert`,`markdown-alert-${o}`]}})},Nn={...A,attributes:{...A.attributes,"*":[...A.attributes?.[`*`]??[],`className`,`id`],a:[`href`,`title`,`target`,`rel`],img:[...A.attributes?.img??[],`src`,`alt`,`title`,`width`,`height`,`loading`]},tagNames:[...A.tagNames??[],`img`,`details`,`summary`,`figure`,`figcaption`,`mark`,`kbd`,`sub`,`sup`],protocols:{...A.protocols,src:[`http`,`https`],href:[`http`,`https`,`mailto`,`tel`]}};function Pn({children:e,content:t,components:n,includeStandard:r=!1,includeHeadings:i=!1,allowHtml:a=!0}){return(0,$.jsx)(`div`,{"data-testid":`markdown-renderer`,children:(0,$.jsx)($t,{components:{code:on,ul:sn,ol:cn,li:ln,hr:kn,table:Sn,th:Cn,td:wn,blockquote:On,...r&&{a:dn,p:un},...i&&{h1:fn,h2:pn,h3:mn,h4:hn,h5:gn,h6:_n},...n},remarkPlugins:[Mn,D,ee],rehypePlugins:a?[te,[E,Nn]]:void 0,children:t??e??``})})}export{Re as A,Ee as B,ze as C,Le as D,He as E,Ie as F,ge as G,K as H,G as I,V as J,me as K,U as L,J as M,Ce as N,q as O,Y as P,we as R,it as S,Ue as T,be as U,ke as V,H as W,bt as _,Kt as a,pt as b,Bt as c,Ft as d,Pt as f,St as g,Ct as h,Gt as i,Oe as j,W as k,zt as l,kt as m,an as n,Vt as o,jt as p,pe as q,qt as r,Ht as s,Pn as t,Rt as u,vt as v,Be as w,Q as x,_t as y,X as z};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Bcgpimp9.js";import{U as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f9xdmd0z-DLMP7bZx.js";import{n as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~f1hl7voa-BrmgjeOw.js";import{t as a}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hakxo2tj-ClV0p9g3.js";import{t as o}from"./useMutation-DHLpZ6J0.js";import{Dt as s,Ot as c,R as l,jt as u,n as d}from"./active-backend-context-mY7Gff5c.js";import{t as f,z as p}from"./utils-DsWhWn2F.js";import{t as m}from"./vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C7Yh77RT.js";import{t as h}from"./puzzle-DlqT0yvr.js";import{t as g}from"./search-BrpWXWUi.js";import{t as _}from"./trash-2-gZPlx23R.js";import{t as v}from"./x-Dx_JbpHA.js";import{a as y,c as b,i as x,l as S,o as C,s as w,t as T,u as E}from"./settings-service.api-CTJRrvMu.js";import{n as D}from"./use-settings-DIAo5KFk.js";import{t as O}from"./modal-backdrop-X-vKo61e.js";import{n as ee}from"./modal-classes-DFFO6BMU.js";import{l as k}from"./form-control-classes-CtVAktAy.js";import{t as A}from"./brand-button-BUlDL-mz.js";import{t as j}from"./modal-close-button-vxkAIRyZ.js";import{n as M,t as N}from"./settings-input-BEaTCem1.js";import{t as P}from"./confirmation-modal-CRBJSllP.js";import{t as F}from"./settings-dropdown-input-jOiv5Yrk.js";import{a as I,n as L,o as R,r as z,t as B}from"./extension-module-card-classes-Bo43vY5V.js";import{C as te,S as V,_ as H,a as U,b as W,c as G,d as K,f as q,h as J,i as Y,l as ne,m as re,n as ie,o as ae,p as oe,r as se,s as ce,t as le,u as ue,v as de,x as fe}from"./install-server-modal-BgGRnqA0.js";import{n as pe}from"./circle-plus-check-toggle-DdjUiOo1.js";import{n as me}from"./extensions-navigation-BQmstKDZ.js";import{t as he}from"./enum-filter-dropdown-DSqPZnsD.js";import{n as ge}from"./settings-like-page-layout-classes-DyxyJ0k4.js";var X=e(t(),1);function Z(){let e=i(),{data:t}=D();return o({mutationFn:async({serverId:e,server:n})=>{let r=x(t?.agent_settings?.mcp_config),i={sse_servers:[...r.sse_servers],stdio_servers:[...r.stdio_servers],shttp_servers:[...r.shttp_servers]},a=await oe(n),[o,s]=e.split(`-`),c=parseInt(s,10);o===`sse`?i.sse_servers[c]=C(a):o===`stdio`?i.stdio_servers[c]=w(a):o===`shttp`&&(i.shttp_servers[c]=y(a)),await T.saveSettings({agent_settings_diff:{mcp_config:b(i)}})},onSuccess:(t,n)=>{G(K(n.server)),e.invalidateQueries({queryKey:l.personal()})}})}function _e(e){return e.name?.trim()||void 0}function ve(e,t){let n=_e(e);return n&&n!==t?.id?n:t?.name?t.name:e.type===`stdio`?n??e.command??``:e.url??``}var ye={status:`unchecked`};function be(e){let t=K(e),n=X.useSyncExternalStore(ue,()=>ne()[t]??ye),r=X.useRef(e);return r.current=e,{health:n,probe:X.useCallback(()=>U(r.current),[]),reauthorize:X.useCallback(()=>ae(r.current),[])}}var Q=n(),xe={unchecked:`bg-[var(--oh-text-tertiary)]`,checking:`bg-[var(--oh-interactive-selected)] animate-pulse`,healthy:`bg-[var(--oh-status-success)]`,failed:`bg-red-500`},$=`text-xs text-[var(--oh-muted)] underline transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-60`;function Se(e){return e.status===`healthy`?e.verification===`verified`?`healthy`:`healthy-connectivity`:e.status}function Ce(e,t){switch(t.status){case`checking`:return e(p.MCP$HEALTH_STATUS_CHECKING);case`healthy`:return t.verification===`verified`?e(p.MCP$HEALTH_STATUS_VERIFIED,{count:t.toolCount}):e(p.MCP$HEALTH_STATUS_CONNECTIVITY_ONLY);case`failed`:return ie(e,t.kind,t.error);default:return e(p.MCP$HEALTH_STATUS_UNCHECKED)}}function we({server:e,catalog:t,onEdit:n}){let{t:r}=a(`openhands`),{backend:i}=d(),{health:o,probe:c,reauthorize:l}=be(e),{mutate:m}=Z();if(i.kind===`cloud`)return null;let h=o.status===`checking`,g=o.status===`failed`,_=Ce(r,o),v=async()=>{let t=await l();if(!t?.ok||!t.oauth_state||e.auth?.strategy!==`oauth2`)return;let n={...e,auth:{...e.auth,state:t.oauth_state}};m({serverId:e.id,server:n},{onSuccess:()=>ce(n,t,[]),onError:e=>s(u(e)||r(p.ERROR$GENERIC))})};return(0,Q.jsxs)(`div`,{"data-testid":`mcp-server-health-${e.id}`,role:`presentation`,className:`flex flex-col gap-1.5`,onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(`span`,{"data-testid":`mcp-health-dot`,"data-status":Se(o),"aria-hidden":`true`,className:f(`inline-block h-2 w-2 shrink-0 rounded-full`,xe[o.status])}),(0,Q.jsx)(`p`,{"data-testid":`mcp-health-label-${e.id}`,className:f(`line-clamp-2 break-words text-xs`,g?`text-red-500`:`text-tertiary-alt`),title:_,children:_})]}),o.status===`healthy`&&o.verification===`connectivity-only`?(0,Q.jsx)(`p`,{className:`text-xs text-tertiary-light`,children:r(p.MCP$HEALTH_CONNECTIVITY_ONLY_HINT)}):null,(0,Q.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,Q.jsx)(`button`,{type:`button`,"data-testid":`mcp-health-probe-${e.id}`,className:$,onClick:()=>void c(),disabled:h,children:r(g?p.MCP$HEALTH_RETRY:p.MCP$TEST_BUTTON)}),g&&o.kind===`credentials`?(0,Q.jsx)(`button`,{type:`button`,"data-testid":`mcp-health-update-credentials-${e.id}`,className:$,onClick:n,children:r(p.MCP$HEALTH_UPDATE_CREDENTIALS)}):null,g&&e.auth?.strategy===`oauth2`?(0,Q.jsx)(`button`,{type:`button`,"data-testid":`mcp-health-reauthorize-${e.id}`,className:$,onClick:()=>void v(),children:r(p.MCP$HEALTH_REAUTHORIZE)}):null,g&&t?.docsUrl?(0,Q.jsx)(`a`,{href:t.docsUrl,target:`_blank`,rel:`noreferrer`,className:$,children:r(p.MCP$VIEW_DOCS)}):null]})]})}function Te(e){switch(e){case`sse`:return`SSE`;case`shttp`:return`HTTP`;case`stdio`:return`STDIO`;default:return e}}function Ee(e){if(e.type===`stdio`){let t=e.args&&e.args.length>0?` ${e.args.join(` `)}`:``;return`${e.command??``}${t}`.trim()}return e.url??``}function De({server:e,onEdit:t,onToggleEnabled:n}){let{t:r}=a(`openhands`),i=J(e,W(m)),o=ve(e,i),s=Ee(e),c=Te(e.type);return(0,Q.jsx)(`div`,{"data-testid":`mcp-server-item`,"data-server-id":e.id,role:`button`,tabIndex:0,onClick:t,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())},"aria-label":r(p.MCP$EDIT_SERVER_ARIA,{name:o}),className:f(`flex min-h-[132px] flex-col overflow-hidden p-4 text-left`,I,z),children:(0,Q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Q.jsx)(re,{entry:i,fallback:(0,Q.jsx)(h,{strokeWidth:2.25})}),(0,Q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-3`,children:[(0,Q.jsxs)(`header`,{className:`flex items-start justify-between gap-3`,children:[(0,Q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Q.jsx)(`h3`,{className:`truncate text-sm font-semibold`,title:o,children:o}),(0,Q.jsx)(`p`,{className:`mt-0.5 text-xs text-tertiary-alt`,children:c})]}),(0,Q.jsx)(pe,{testId:`mcp-installed-toggle-${e.id}`,isSelected:e.enabled!==!1,onToggle:n,enableLabelKey:p.MCP$TOGGLE_ENABLE_SERVER,disableLabelKey:p.MCP$TOGGLE_DISABLE_SERVER,disableTooltipKey:p.COMMON$DISABLE})]}),i?.description?(0,Q.jsx)(`p`,{"data-testid":`mcp-server-description-${e.id}`,className:`line-clamp-2 break-words text-xs leading-relaxed text-tertiary-light`,children:i.description}):null,s?(0,Q.jsx)(`p`,{"data-testid":`mcp-server-detail-${e.id}`,className:`truncate text-xs text-tertiary-alt`,title:s,children:s}):null,(0,Q.jsx)(we,{server:e,catalog:i,onEdit:t})]})]})})}function Oe({servers:e,hasAnyInstalled:t,query:n=``,onEdit:r,onToggleEnabled:i}){let{t:o}=a(`openhands`);return e.length===0?t&&n.trim().length>0?(0,Q.jsx)(`div`,{"data-testid":`mcp-installed-empty-search`,className:`rounded-xl border border-[var(--oh-border)] p-6 text-center`,children:(0,Q.jsx)(`p`,{className:`text-xs text-tertiary-light`,children:o(p.MCP$SEARCH_EMPTY)})}):(0,Q.jsxs)(`div`,{"data-testid":`mcp-installed-empty`,className:R,children:[(0,Q.jsx)(`p`,{className:`text-sm text-white`,children:o(p.MCP$INSTALLED_EMPTY_TITLE)}),(0,Q.jsx)(`p`,{className:`text-xs text-tertiary-light mt-1`,children:o(p.MCP$INSTALLED_EMPTY_HINT)})]}):(0,Q.jsx)(`div`,{className:L,children:(0,Q.jsx)(`div`,{"data-testid":`mcp-installed-list`,className:B,children:e.map(e=>(0,Q.jsx)(De,{server:e,onEdit:()=>r(e),onToggleEnabled:t=>i(e,t)},e.id))})})}function ke({entry:e,onClick:t,onAdd:n}){let r=H(e),i=(()=>{switch(r?.kind){case`stdio`:return`STDIO`;case`shttp`:return`HTTP`;case`sse`:return`SSE`;default:return``}})();return(0,Q.jsx)(`div`,{role:`button`,tabIndex:0,onClick:t,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),t())},"data-testid":`mcp-marketplace-card-${e.id}`,className:f(`flex min-h-[132px] flex-col overflow-hidden p-4 text-left`,I,z),children:(0,Q.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Q.jsx)(re,{entry:e}),(0,Q.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-3`,children:[(0,Q.jsxs)(`header`,{className:`flex items-start justify-between gap-3`,children:[(0,Q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Q.jsx)(`h3`,{className:`truncate text-sm font-semibold`,children:e.name}),(0,Q.jsx)(`p`,{className:`mt-0.5 text-xs text-tertiary-alt`,children:i})]}),(0,Q.jsx)(pe,{testId:`mcp-marketplace-toggle-${e.id}`,isSelected:!1,onToggle:e=>{e&&n()},enableLabelKey:p.MCP$TOGGLE_ADD_SERVER,disableLabelKey:p.MCP$TOGGLE_ADD_SERVER})]}),(0,Q.jsx)(`p`,{className:`line-clamp-3 text-xs leading-relaxed text-tertiary-light`,children:e.description})]})]})})}function Ae({onSelect:e,onAdd:t,query:n=``}){let{t:r}=a(`openhands`),i=de(W(m)).filter(e=>V(e,n));return(0,Q.jsxs)(`section`,{"data-testid":`mcp-marketplace-section`,className:`flex flex-col gap-3`,children:[(0,Q.jsx)(`h2`,{className:`text-base font-medium text-foreground`,children:r(p.MCP$LIBRARY_TITLE)}),i.length===0?(0,Q.jsx)(`div`,{"data-testid":`mcp-marketplace-empty`,className:`rounded-xl border border-dashed border-[var(--oh-border)] p-6 text-center`,children:(0,Q.jsx)(`p`,{className:`text-xs text-tertiary-light`,children:r(p.MCP$SEARCH_EMPTY)})}):(0,Q.jsx)(`div`,{className:L,children:(0,Q.jsx)(`div`,{"data-testid":`mcp-marketplace-grid`,className:B,children:i.map(n=>(0,Q.jsx)(ke,{entry:n,onClick:()=>e(n),onAdd:()=>t(n)},n.id))})})]})}function je({mode:e,server:t,existingServers:n,onSubmit:r,onCancel:i,onDelete:o,isActionDisabled:s=!1,onTest:c,isTestPending:l=!1,testMessage:u=null}){let{t:d}=a(`openhands`),[m,h]=X.useState(t?.type||`sse`),[g,v]=X.useState(()=>t?.auth?.strategy===`oauth2`?`oauth2`:t?.auth?.strategy===`header`?`header`:t?.auth?.strategy===`bearer`||t?.auth?.strategy===`api_key`?`bearer`:`none`),[y,b]=X.useState(()=>t?.auth?.strategy===`oauth2`?t.auth.authentication?.client_auth_method??`auto`:`auto`),[x,C]=X.useState(null),w=X.useRef(null),T=[{key:`sse`,label:d(p.SETTINGS$MCP_SERVER_TYPE_SSE)},{key:`stdio`,label:d(p.SETTINGS$MCP_SERVER_TYPE_STDIO)},{key:`shttp`,label:d(p.SETTINGS$MCP_SERVER_TYPE_SHTTP)}],D=[{key:`none`,label:d(p.SETTINGS$MCP_AUTH_MODE_NONE)},{key:`bearer`,label:d(p.SETTINGS$MCP_AUTH_MODE_BEARER)},{key:`header`,label:d(p.SETTINGS$MCP_AUTH_MODE_HEADER)},{key:`oauth2`,label:d(p.SETTINGS$MCP_AUTH_MODE_OAUTH)}],O=[{key:`auto`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH_AUTO)},{key:`none`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH_NONE)},{key:`client_secret_post`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH_SECRET_POST)},{key:`client_secret_basic`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH_SECRET_BASIC)},{key:`private_key_jwt`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH_PRIVATE_KEY_JWT)}],ee=e=>{if(!e)return d(p.SETTINGS$MCP_ERROR_URL_REQUIRED);try{let t=new URL(e);if(![`http:`,`https:`].includes(t.protocol))return d(p.SETTINGS$MCP_ERROR_URL_INVALID_PROTOCOL)}catch{return d(p.SETTINGS$MCP_ERROR_URL_INVALID)}return null},j=e=>e?E(e)?null:d(p.SETTINGS$MCP_ERROR_NAME_INVALID):d(p.SETTINGS$MCP_ERROR_NAME_REQUIRED),P=r=>!n||!(e===`add`||e===`edit`&&t?.name!==r)?null:n.filter(e=>e.type===`stdio`).map(e=>e.name).filter(Boolean).includes(r)?d(p.SETTINGS$MCP_ERROR_NAME_DUPLICATE):null,I=e=>e?e.includes(` `)?d(p.SETTINGS$MCP_ERROR_COMMAND_NO_SPACES):null:d(p.SETTINGS$MCP_ERROR_COMMAND_REQUIRED),L=r=>{if(!n)return null;let i=t?.url;return(e===`add`||e===`edit`&&i!==r)&&n.some(e=>(e.type===`sse`||e.type===`shttp`)&&e.url===r)?d(p.SETTINGS$MCP_ERROR_URL_DUPLICATE):null},R=e=>{if(!e.trim())return null;let t=e.split(`
|
|
2
|
+
`);for(let e=0;e<t.length;e+=1){let n=t[e].trim();if(n){let e=n.indexOf(`=`);if(e===-1||!n.substring(0,e).trim())return d(p.SETTINGS$MCP_ERROR_ENV_INVALID_FORMAT)}}return null},z=e=>{if(g===`header`){let t=e.get(`headers`)?.toString()||``;return t.trim()?R(t):d(p.SETTINGS$MCP_ERROR_HEADER_REQUIRED)}if(g===`oauth2`){let t=e.get(`oauth_client_id`)?.toString().trim();if(e.get(`oauth_client_secret`)?.toString().trim()&&!t)return d(p.SETTINGS$MCP_ERROR_OAUTH_SECRET_REQUIRES_ID)}return null},B=e=>{if(!e.trim())return null;let t=parseInt(e.trim(),10);return Number.isNaN(t)?d(p.SETTINGS$MCP_ERROR_TIMEOUT_INVALID_NUMBER):t<=0?d(p.SETTINGS$MCP_ERROR_TIMEOUT_POSITIVE):t>3600?d(p.SETTINGS$MCP_ERROR_TIMEOUT_MAX_EXCEEDED):null},te=e=>{let t=e.get(`name`)?.toString().trim()||``,n=e.get(`command`)?.toString().trim()||``,r=e.get(`env`)?.toString()||``;return j(t)||P(t)||I(n)||R(r)||null},V=e=>{if(m===`sse`||m===`shttp`){let t=e.get(`url`)?.toString().trim()||``,n=ee(t);if(n)return n;let r=L(t);if(r)return r;let i=e.get(`name`)?.toString().trim()||``;if(i&&!E(i))return d(p.SETTINGS$MCP_ERROR_NAME_INVALID);if(m===`shttp`){let t=B(e.get(`timeout`)?.toString()||``);if(t)return t}return z(e)}return m===`stdio`?te(e):null},H=e=>{let t={},n=e.trim();if(!n)return t;for(let e of n.split(`
|
|
3
|
+
`)){let n=e.trim(),r=n.indexOf(`=`),i=r>=0?n.substring(0,r).trim():``;n&&r!==-1&&i&&(t[i]=n.substring(r+1).trim())}return t},U=e=>e?Object.entries(e).map(([e,t])=>`${e}=${t}`).join(`
|
|
4
|
+
`):``,W=e=>e?.strategy===`bearer`||e?.strategy===`api_key`?e.value??``:``,G=e=>e?.strategy===`header`?U(e.headers):``,K=t?.auth?.strategy===`oauth2`?t.auth.authentication:void 0,q=t?.auth?.strategy===`oauth2`?t.auth.state:void 0,J=e=>{if(g===`none`)return;if(g===`bearer`){let n=e.get(`api_key`)?.toString().trim();return n?t?.auth?.strategy===`api_key`?{...t.auth,value:n}:{strategy:`bearer`,value:n}:void 0}if(g===`header`)return{strategy:`header`,headers:H(e.get(`headers`)?.toString()||``)};let n=e.get(`oauth_scopes`)?.toString().trim(),r=e.get(`oauth_client_id`)?.toString().trim(),i=e.get(`oauth_client_secret`)?.toString().trim();return{strategy:`oauth2`,authentication:{type:`oauth`,...y!==`auto`&&{client_auth_method:y},...n&&{scopes:n},...r&&{client_id:r},...i&&{client_secret:i}},...q&&{state:q}}},Y=e=>{let n={id:t?.id||`${m}-${Date.now()}`,type:m,...t?.enabled===!1&&{enabled:!1}};if(m===`sse`||m===`shttp`){let t=e.get(`name`)?.toString().trim(),r=e.get(`url`)?.toString().trim(),i=e.get(`timeout`)?.toString().trim(),a=J(e),o={...n,...t&&{name:t},url:r,...a&&{auth:a}};if(m===`shttp`&&i){let e=parseInt(i,10);Number.isNaN(e)||(o.timeout=e)}return o}let r=e.get(`name`)?.toString().trim(),i=e.get(`command`)?.toString().trim(),a=e.get(`args`)?.toString().trim(),o=e.get(`env`)?.toString().trim(),s=a?a.split(`
|
|
5
|
+
`).map(e=>e.trim()).filter(Boolean):[],c=H(o||``);return{...n,name:r,command:i,...s.length>0&&{args:s},...Object.keys(c).length>0&&{env:c}}};return(0,Q.jsxs)(`form`,{ref:w,"data-testid":e===`add`?`add-mcp-server-form`:`edit-mcp-server-form`,onSubmit:e=>{e.preventDefault(),C(null);let t=new FormData(e.currentTarget),n=V(t);if(n){C(n);return}r(Y(t))},className:`flex flex-col items-start gap-6`,noValidate:!0,children:[e===`add`&&(0,Q.jsx)(F,{testId:`server-type-dropdown`,name:`server-type`,label:d(p.SETTINGS$MCP_SERVER_TYPE),items:T,selectedKey:m,onSelectionChange:e=>h(e),onInputChange:()=>{},isClearable:!1,allowsCustomValue:!1,required:!0,wrapperClassName:`w-full min-w-0`}),x&&(0,Q.jsx)(`p`,{className:`text-red-500 text-sm`,children:x}),(m===`sse`||m===`shttp`)&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(N,{testId:`server-name-input`,name:`name`,type:`text`,label:d(p.SETTINGS$MCP_SERVER_NAME),className:`w-full min-w-0`,showOptionalTag:!0,defaultValue:t?.name||``,placeholder:`my_search_server`,pattern:S.source}),(0,Q.jsx)(N,{testId:`url-input`,name:`url`,type:`url`,label:d(p.SETTINGS$MCP_URL),className:`w-full min-w-0`,required:!0,defaultValue:t?.url||``,placeholder:`https://api.example.com`}),(0,Q.jsx)(F,{testId:`auth-mode-dropdown`,name:`auth-mode`,label:d(p.SETTINGS$MCP_AUTHENTICATION),items:D,selectedKey:g,onSelectionChange:e=>v(e),onInputChange:()=>{},isClearable:!1,allowsCustomValue:!1,wrapperClassName:`w-full min-w-0`}),g===`bearer`&&(0,Q.jsx)(N,{testId:`api-key-input`,name:`api_key`,type:`password`,label:d(p.SETTINGS$MCP_API_KEY),className:`w-full min-w-0`,required:!0,defaultValue:W(t?.auth),placeholder:d(p.SETTINGS$MCP_API_KEY_PLACEHOLDER)}),g===`header`&&(0,Q.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,Q.jsx)(`span`,{className:`text-sm`,children:d(p.SETTINGS$MCP_HEADERS)}),(0,Q.jsx)(`textarea`,{"data-testid":`headers-input`,name:`headers`,rows:4,defaultValue:G(t?.auth),placeholder:d(p.SETTINGS$MCP_HEADERS_PLACEHOLDER),className:f(k,`resize-none placeholder:italic`,`disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]`)})]}),g===`oauth2`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(F,{testId:`oauth-client-auth-method-dropdown`,name:`oauth_client_auth_method`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_AUTH),items:O,selectedKey:y,onSelectionChange:e=>b(e),onInputChange:()=>{},isClearable:!1,allowsCustomValue:!1,wrapperClassName:`w-full min-w-0`}),(0,Q.jsx)(N,{testId:`oauth-client-id-input`,name:`oauth_client_id`,type:`text`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_ID),className:`w-full min-w-0`,showOptionalTag:!0,defaultValue:K?.client_id||``,placeholder:d(p.SETTINGS$MCP_OAUTH_CLIENT_ID_PLACEHOLDER)}),(0,Q.jsx)(N,{testId:`oauth-client-secret-input`,name:`oauth_client_secret`,type:`password`,label:d(p.SETTINGS$MCP_OAUTH_CLIENT_SECRET),className:`w-full min-w-0`,showOptionalTag:!0,defaultValue:K?.client_secret||``,placeholder:d(p.SETTINGS$MCP_OAUTH_CLIENT_SECRET_PLACEHOLDER)}),(0,Q.jsx)(N,{testId:`oauth-scopes-input`,name:`oauth_scopes`,type:`text`,label:d(p.SETTINGS$MCP_OAUTH_SCOPES),className:`w-full min-w-0`,showOptionalTag:!0,defaultValue:Array.isArray(K?.scopes)?K.scopes.join(` `):K?.scopes||``,placeholder:d(p.SETTINGS$MCP_OAUTH_SCOPES_PLACEHOLDER)})]}),m===`shttp`&&(0,Q.jsx)(N,{testId:`timeout-input`,name:`timeout`,type:`number`,label:d(p.SETTINGS$MCP_TIMEOUT_LABEL),className:`w-full min-w-0`,showOptionalTag:!0,defaultValue:t?.timeout?.toString()||``,placeholder:`60`,min:1,max:3600})]}),m===`stdio`&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(N,{testId:`name-input`,name:`name`,type:`text`,label:d(p.SETTINGS$MCP_NAME),className:`w-full min-w-0`,required:!0,defaultValue:t?.name||``,placeholder:`my_mcp_server`,pattern:S.source}),(0,Q.jsx)(N,{testId:`command-input`,name:`command`,type:`text`,label:d(p.SETTINGS$MCP_COMMAND),className:`w-full min-w-0`,required:!0,defaultValue:t?.command||``,placeholder:`npx`}),(0,Q.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(`span`,{className:`text-sm`,children:d(p.SETTINGS$MCP_COMMAND_ARGUMENTS)}),(0,Q.jsx)(M,{})]}),(0,Q.jsx)(`textarea`,{"data-testid":`args-input`,name:`args`,rows:3,defaultValue:t?.args?.join(`
|
|
6
|
+
`)||``,placeholder:`arg1
|
|
7
|
+
arg2
|
|
8
|
+
arg3`,className:f(k,`resize-none placeholder:italic`,`disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]`)}),(0,Q.jsx)(`p`,{className:`text-xs text-tertiary-alt`,children:d(p.SETTINGS$MCP_COMMAND_ARGUMENTS_HELP)})]}),(0,Q.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(`span`,{className:`text-sm`,children:d(p.SETTINGS$MCP_ENVIRONMENT_VARIABLES)}),(0,Q.jsx)(M,{})]}),(0,Q.jsx)(`textarea`,{"data-testid":`env-input`,name:`env`,rows:4,defaultValue:U(t?.env),placeholder:`KEY1=value1
|
|
9
|
+
KEY2=value2`,className:f(k,`resize-none placeholder:italic`,`disabled:bg-[var(--oh-surface-raised)] disabled:border-[var(--oh-border-subtle)]`)})]})]}),u&&(0,Q.jsx)(`p`,{"data-testid":`mcp-test-message`,className:u.ok?`text-sm text-green-500 whitespace-pre-wrap`:`text-sm text-red-500 whitespace-pre-wrap`,children:u.text}),(0,Q.jsxs)(`div`,{className:f(`flex w-full items-center gap-2`,o?`justify-between`:`justify-end`),children:[o?(0,Q.jsx)(A,{testId:`mcp-custom-editor-delete`,type:`button`,variant:`secondary`,onClick:o,isDisabled:s,startContent:(0,Q.jsx)(_,{"aria-hidden":!0,className:`size-4`,strokeWidth:2}),children:d(p.BUTTON$DELETE)}):null,(0,Q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Q.jsx)(A,{testId:`cancel-button`,type:`button`,variant:`secondary`,onClick:i,isDisabled:s,children:d(p.BUTTON$CANCEL)}),c&&(0,Q.jsx)(A,{testId:`mcp-test-connection`,type:`button`,variant:`secondary`,onClick:()=>{if(!c||!w.current)return;C(null);let e=new FormData(w.current),t=V(e);if(t){C(t);return}c(Y(e))},isDisabled:s||l,children:d(l?p.MCP$VERIFYING:p.MCP$TEST_BUTTON)}),(0,Q.jsxs)(A,{testId:`submit-button`,type:`submit`,variant:`primary`,isDisabled:s||l,children:[e===`add`&&d(p.SETTINGS$MCP_ADD_SERVER),e===`edit`&&d(p.SETTINGS$MCP_SAVE_SERVER)]})]})]})]})}function Me(){let e=i(),{data:t}=D();return o({mutationFn:async e=>{let n=x(t?.agent_settings?.mcp_config),r={sse_servers:[...n.sse_servers],stdio_servers:[...n.stdio_servers],shttp_servers:[...n.shttp_servers]},i=e=>{if(typeof e==`string`)return e;if(e&&typeof e==`object`&&`url`in e){let t=e.url;return typeof t==`string`?t:void 0}};if(e.type===`sse`){if(!e.url)return;let t=r.sse_servers.findIndex(t=>i(t)===e.url);t>=0&&r.sse_servers.splice(t,1)}else if(e.type===`shttp`){if(!e.url)return;let t=r.shttp_servers.findIndex(t=>i(t)===e.url);t>=0&&r.shttp_servers.splice(t,1)}else if(e.type===`stdio`){if(!e.name||!e.command)return;let t=r.stdio_servers.findIndex(t=>t.name===e.name&&t.command===e.command&&JSON.stringify(t.args??[])===JSON.stringify(e.args??[]));t>=0&&r.stdio_servers.splice(t,1)}else return;await T.saveSettings({agent_settings_diff:{mcp_config:b(r)}})},onSuccess:(t,n)=>{G(K(n)),e.invalidateQueries({queryKey:l.personal()})}})}function Ne({server:e,existingServers:t,onClose:n}){let{t:r}=a(`openhands`),{mutate:i,isPending:o}=Y(),{mutate:l,isPending:m}=Z(),{mutate:h,isPending:g}=Me(),{mutate:_,isPending:v,data:y,reset:b}=se(),[x,S]=X.useState(!1),[C,w]=X.useState(null),[T,E]=X.useState(!1),{backend:D}=d(),k=D.kind===`cloud`,A=!!e.id,M=o||m||g,N=M||v||T||x,F=X.useMemo(()=>{let e=C??y;return e?e.ok?{ok:!0,text:r(p.MCP$TEST_SUCCESS,{count:e.tools.length})}:{ok:!1,text:ie(r,e.error_kind,e.error)}:null},[C,y,r]),I=(n,r)=>{k||ce(n,r,A?t.filter(t=>t.id!==e.id):t)},L=e=>{s(u(e)||r(p.ERROR$GENERIC))};return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(O,{onClose:N?void 0:n,closeOnEscape:!N,"aria-label":r(A?p.MCP$EDIT_CUSTOM_TITLE:p.MCP$ADD_CUSTOM_TITLE),children:(0,Q.jsxs)(`div`,{"data-testid":`mcp-custom-editor`,className:`relative bg-base-secondary p-6 rounded-xl border border-[var(--oh-border)] w-[520px] max-w-[90vw] max-h-[90vh] overflow-y-auto custom-scrollbar`,children:[(0,Q.jsx)(j,{onClose:n,testId:`mcp-custom-editor-close`,disabled:N}),(0,Q.jsx)(`h2`,{className:f(`mb-4 pr-6`,ee),children:r(A?p.MCP$EDIT_CUSTOM_TITLE:p.MCP$ADD_CUSTOM_TITLE)}),(0,Q.jsx)(je,{mode:A?`edit`:`add`,server:A?e:void 0,existingServers:t,onSubmit:t=>{if(b(),w(null),t.auth?.strategy===`oauth2`){E(!0),q.authorizeOAuth(t).then(r=>{if(w(r),!r.ok)return;let a=r.oauth_state?{...t,auth:{...t.auth,state:r.oauth_state}}:t,o=()=>{I(a,r),n()};A?l({serverId:e.id,server:a},{onSuccess:o,onError:L}):i(a,{onSuccess:o,onError:L})}).catch(L).finally(()=>E(!1));return}_(t,{onSuccess:r=>{if(!r.ok)return;let a=r.oauth_state&&t.auth?.strategy===`oauth2`?{...t,auth:{...t.auth,state:r.oauth_state}}:t,o=()=>{I(a,r),n()};A?l({serverId:e.id,server:a},{onSuccess:o,onError:L}):i(a,{onSuccess:o,onError:L})},onError:L})},onCancel:n,onDelete:A?()=>S(!0):void 0,isActionDisabled:M,onTest:k?void 0:e=>{if(w(null),e.auth?.strategy===`oauth2`&&!k){E(!0),q.authorizeOAuth(e).then(w).catch(L).finally(()=>E(!1));return}_(e)},isTestPending:v||T,testMessage:k?null:F})]})}),x?(0,Q.jsx)(P,{text:r(p.SETTINGS$MCP_CONFIRM_DELETE),onCancel:()=>S(!1),onConfirm:()=>{h(e,{onSuccess:()=>{c(r(p.MCP$REMOVE_SUCCESS)),S(!1),n()},onError:e=>{L(e),S(!1)}})},isConfirming:g}):null]})}var Pe=[`all`,`installed`,`library`],Fe={all:p.MCP$SECTION_FILTER_ALL,installed:p.MCP$INSTALLED_TITLE,library:p.MCP$LIBRARY_TITLE};function Ie({value:e,onChange:t}){return(0,Q.jsx)(he,{testId:`mcp-section-filter`,value:e,onChange:t,options:Pe,labelKeyByValue:Fe})}function Le({search:e,onSearchChange:t,sectionFilter:n,onSectionFilterChange:r}){let{t:i}=a(`openhands`);return(0,Q.jsxs)(`div`,{"data-testid":`mcp-toolbar`,className:`flex items-stretch gap-2`,children:[(0,Q.jsxs)(`div`,{"data-testid":`mcp-search`,className:f(`relative flex flex-1 min-w-0 items-center`,`rounded-lg border border-[var(--oh-border)] bg-base-secondary`,`focus-within:border-white/40 focus-within:ring-1 focus-within:ring-white/20`,`transition-colors`),children:[(0,Q.jsx)(g,{className:`ml-3 h-4 w-4 text-tertiary-alt shrink-0`,"aria-hidden":!0}),(0,Q.jsx)(`input`,{type:`search`,value:e,onChange:e=>t(e.target.value),placeholder:i(p.MCP$SEARCH_PLACEHOLDER),"aria-label":i(p.MCP$SEARCH_PLACEHOLDER),"data-testid":`mcp-search-input`,className:f(`flex-1 min-w-0 bg-transparent border-0 outline-none`,`px-3 py-2 text-sm placeholder:text-tertiary-alt`,`[&::-webkit-search-cancel-button]:hidden`)}),e?(0,Q.jsx)(`button`,{type:`button`,onClick:()=>t(``),"aria-label":i(p.MCP$SEARCH_CLEAR),"data-testid":`mcp-search-clear`,className:`mr-2 p-1 rounded text-tertiary-alt hover:text-content-1 cursor-pointer`,children:(0,Q.jsx)(v,{className:`h-4 w-4`,"aria-hidden":!0})}):null]}),(0,Q.jsx)(Ie,{value:n,onChange:r})]})}var Re=r(function(){let{t:e}=a(`openhands`),{data:t,isLoading:n}=D(),{mutate:r}=Z(),[i,o]=X.useState(null),[c,l]=X.useState(null),[d,f]=X.useState(``),[h,g]=X.useState(`all`),_=te(x(t?.agent_settings?.mcp_config)),v=W(m),y=_.filter(e=>fe(e,J(e,v),d)),b=e=>{o(e)};return n||!t?(0,Q.jsxs)(`div`,{"data-testid":`mcp-page`,className:`flex h-full gap-4 md:gap-6 md:pl-8 lg:gap-10 lg:pl-10`,children:[(0,Q.jsx)(me,{}),(0,Q.jsx)(`div`,{className:`flex h-full flex-1 items-center justify-center px-4 md:px-0`,children:(0,Q.jsx)(`div`,{className:`h-8 w-8 rounded-full border-2 border-transparent border-t-white animate-spin`})})]}):(0,Q.jsxs)(`div`,{"data-testid":`mcp-page`,className:`flex h-full gap-4 md:gap-6 md:pl-8 lg:gap-10 lg:pl-10`,children:[(0,Q.jsx)(me,{}),(0,Q.jsxs)(`main`,{className:ge,children:[(0,Q.jsxs)(`div`,{className:`mx-auto flex w-full min-w-0 max-w-[800px] flex-col gap-6`,children:[(0,Q.jsx)(`div`,{className:`min-w-0`,children:(0,Q.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,Q.jsxs)(`div`,{className:`space-y-1`,children:[(0,Q.jsx)(`h2`,{className:`text-xl font-medium leading-6 text-foreground`,children:e(p.SETTINGS$MCP_TITLE)}),(0,Q.jsx)(`div`,{className:`max-w-2xl text-sm text-tertiary-light`,children:e(p.MCP$PAGE_DESCRIPTION)})]}),(0,Q.jsx)(A,{type:`button`,variant:`secondary`,testId:`mcp-add-custom-server`,className:`flex-shrink-0 whitespace-nowrap`,onClick:()=>l({id:``,type:`sse`}),children:e(p.MCP$ADD_CUSTOM)})]})}),(0,Q.jsx)(Le,{search:d,onSearchChange:f,sectionFilter:h,onSectionFilterChange:g}),h===`library`?null:(0,Q.jsxs)(`section`,{className:`flex flex-col gap-3`,children:[(0,Q.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:e(p.MCP$INSTALLED_TITLE)}),(0,Q.jsx)(Oe,{servers:y,hasAnyInstalled:_.length>0,query:d,onEdit:e=>{l(e)},onToggleEnabled:(t,n)=>{r({serverId:t.id,server:{...t,enabled:n}},{onError:t=>{s(u(t)||e(p.ERROR$GENERIC))}})}})]}),h===`installed`?null:(0,Q.jsx)(Ae,{onSelect:b,onAdd:b,query:d})]}),i&&(0,Q.jsx)(le,{entry:i,existingServers:_,onClose:()=>o(null)}),c&&(0,Q.jsx)(Ne,{server:c,existingServers:_,onClose:()=>l(null)})]})]})});export{Re as default};
|