@openhands/agent-canvas 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.windows.md +2 -2
- package/build/assets/acp-providers-BKvmTf82.js +1 -0
- package/build/assets/active-backend-context-DKFSMbn3.js +2 -0
- package/build/assets/agent-context-settings-D3PjSTU1.js +1 -0
- package/build/assets/agent-profiles-settings-D4cY5U2T.js +1 -0
- package/build/assets/agent-server-conversation-service.api-DozDKIW_.js +86 -0
- package/build/assets/agent-settings-351vXWc9.js +2 -0
- package/build/assets/agent-settings-Ce7BDZ6I.js +1 -0
- package/build/assets/alert-banner-Kyy1YWZU.js +1 -0
- package/build/assets/api-error-message-BJyfWp6p.js +1 -0
- package/build/assets/api-key-entry-screen-INIxqAMs.js +1 -0
- package/build/assets/app-settings-CbHqzQus.js +1 -0
- package/build/assets/automation-detail-DXDhUwPq.js +3 -0
- package/build/assets/automation-export-BRopEHMu.js +2 -0
- package/build/assets/automation-git-sync-CzyS4cn1.js +1 -0
- package/build/assets/automation-setup-route-FRr05f_g.js +1 -0
- package/build/assets/automation-templates-C_0FZgLG.js +1 -0
- package/build/assets/automations-list-CERuQWE6.js +1 -0
- package/build/assets/back-nav-button-Dm9tIjVf.js +1 -0
- package/build/assets/backend-form-modal-DK78-jn1.js +1 -0
- package/build/assets/backend-synced-settings-badge-3fOwg6Bd.js +1 -0
- package/build/assets/badge-D4SqUCsR.js +1 -0
- package/build/assets/base-modal-C7_BDl_U.js +1 -0
- package/build/assets/bot-C-0Wu7vQ.js +1 -0
- package/build/assets/brand-button-Dxv6PDeN.js +1 -0
- package/build/assets/browser-11etCQ04.js +7 -0
- package/build/assets/browser-tab-BAl4ckJE.js +1 -0
- package/build/assets/chat-send-button-DWwR2cgI.js +1 -0
- package/build/assets/check-Cf2YoT90.js +1 -0
- package/build/assets/chevron-down-C3OQ-ehx.js +1 -0
- package/build/assets/chevron-right-CN1uUiJ1.js +1 -0
- package/build/assets/circle-check-g5yeGMd-.js +1 -0
- package/build/assets/circle-plus-check-toggle-CBh_qomE.js +1 -0
- package/build/assets/cloud-funnel-analytics-287iIERo.js +1 -0
- package/build/assets/cog-C4rrw-ZK.js +1 -0
- package/build/assets/command-menu-BZQ8S3Ke.js +1 -0
- package/build/assets/commits-tab-DZtJgaDM.js +1 -0
- package/build/assets/condenser-settings-BcNmYR4s.js +1 -0
- package/build/assets/confirmation-modal-Bk4JRcCM.js +1 -0
- package/build/assets/context-menu-list-item-lVYETtY5.js +1 -0
- package/build/assets/conversation-CchMzpGl.js +1 -0
- package/build/assets/conversation-Dpzftz57.js +93 -0
- package/build/assets/conversation-panel-CchMzpGl.js +1 -0
- package/build/assets/conversation-state-store-a9d2fxRc.js +1 -0
- package/build/assets/conversation-store-Ca3ghXap.js +6 -0
- package/build/assets/conversation-tab-empty-state-HJtkmHZj.js +1 -0
- package/build/assets/copy-to-clipboard-button-Cjkswvnj.js +1 -0
- package/build/assets/device-verify-EZhHhBT7.js +1 -0
- package/build/assets/dropdown-classes-DJe-E6MC.js +1 -0
- package/build/assets/edit-automation-modal-D-urtv8n.js +1 -0
- package/build/assets/empty-state-CvaVahVr.js +1 -0
- package/build/assets/entry.client-C7Bi2tkU.js +2 -0
- package/build/assets/enum-filter-dropdown-DliX_Lo0.js +1 -0
- package/build/assets/environment-switch-overlay-CEKrFiMw.js +1 -0
- package/build/assets/error-state-BALXiBNy.js +1 -0
- package/build/assets/extension-module-card-classes-DpeaYhYo.js +1 -0
- package/build/assets/extensions-hub-CFduxBnk.js +1 -0
- package/build/assets/extensions-navigation-BeC224yX.js +1 -0
- package/build/assets/external-link-DFpYunfj.js +1 -0
- package/build/assets/files-tab-CL3J9b3p.js +1 -0
- package/build/assets/form-control-classes-CGw40z5h.js +1 -0
- package/build/assets/format-model-name-BNPKVsIq.js +1 -0
- package/build/assets/get-git-path-DlAJa_i6.js +1 -0
- package/build/assets/git-repo-dropdown-DGMEhz7d.js +1 -0
- package/build/assets/git-repo-dropdown-ai8qaNkD.js +1 -0
- package/build/assets/highlighted-source-view-C3sxykQi.js +1 -0
- package/build/assets/home-BCGlNJCA.js +1 -0
- package/build/assets/home-DB1pRqTC.js +1 -0
- package/build/assets/home-automation-run-tooltip-CooFQRIG.js +1 -0
- package/build/assets/home-store-Dl1dPE58.js +1 -0
- package/build/assets/index-home-DB1pRqTC.js +1 -0
- package/build/assets/info-uYSVzX86.js +1 -0
- package/build/assets/install-server-modal-BbJdhzet.js +1 -0
- package/build/assets/kebab-menu-item-content-BYokkRHi.js +1 -0
- package/build/assets/key-Cn5za3rg.js +1 -0
- package/build/assets/launch-C1ieiOGe.js +1 -0
- package/build/assets/list-filter-OFkpRrmi.js +1 -0
- package/build/assets/list-todo-Cuu-STFc.js +1 -0
- package/build/assets/llm-not-configured-banner-BqqYnJ1t.js +27 -0
- package/build/assets/llm-settings-CnDbbmVW.js +1 -0
- package/build/assets/llm-settings-S8Yjg__1.js +1 -0
- package/build/assets/llm-subscription-service-BpPfzW4x.js +1 -0
- package/build/assets/loader-circle-nvrwthvj.js +1 -0
- package/build/assets/loading-spinner-0L3ZTToZ.js +1 -0
- package/build/assets/manage-backends-modal-BCUPswyl.js +1 -0
- package/build/assets/manifest-58597dde.js +1 -0
- package/build/assets/manifest-subpage-layout-BGhiUQbA.js +1 -0
- package/build/assets/map-provider-B9LTm23I.js +1 -0
- package/build/assets/markdown-renderer-Cb2sBWtV.js +8 -0
- package/build/assets/mcp-CKbR4Vft.js +1 -0
- package/build/assets/mcp-marketplace-utils-C13fFccR.js +1 -0
- package/build/assets/mcp-page-Bm4K2NQq.js +9 -0
- package/build/assets/messages-BTN5thLe.js +40 -0
- package/build/assets/modal-body-CMOc2tLl.js +1 -0
- package/build/assets/modal-classes-BAb4Y_BG.js +1 -0
- package/build/assets/modal-close-button-CkJ0Ktjj.js +1 -0
- package/build/assets/mouse-pointer-click-CsgRs_-r.js +1 -0
- package/build/assets/onboarding-Cx_kaiD1.js +1 -0
- package/build/assets/onboarding-modal-vMwn7ihv.js +1 -0
- package/build/assets/organization-service.api-C8XpQ0pM.js +1 -0
- package/build/assets/parse-git-remote-url-DpDM9bK6.js +1 -0
- package/build/assets/pencil-Clh1Wjvh.js +1 -0
- package/build/assets/planner-tab-DQvDU3ap.js +1 -0
- package/build/assets/plug-BuQhHSSG.js +1 -0
- package/build/assets/plugins-management-service-BjYeF0b0.js +1 -0
- package/build/assets/plus-CEKne-Yp.js +1 -0
- package/build/assets/profiles-service.api-QB-T_u-g.js +1 -0
- package/build/assets/providers-FfSZ5TXP.js +1 -0
- package/build/assets/proxy-tcFL2yTQ.js +1 -0
- package/build/assets/puzzle-A9pGxxai.js +1 -0
- package/build/assets/recommended-automations-launcher-Bw8uC4V6.js +1 -0
- package/build/assets/refresh-cw-Bh69DyYO.js +1 -0
- package/build/assets/root-BLeQfBEq.css +1 -0
- package/build/assets/root-ZKKYPR1Z.js +2 -0
- package/build/assets/root-layout-luJoE9IG.js +2 -0
- package/build/assets/schema-field-Csw5fhtN.js +1 -0
- package/build/assets/scroll-fade-state-Dw-i4SGq.js +1 -0
- package/build/assets/sdk-section-page-HTffvm7Q.js +1 -0
- package/build/assets/secret-form-HTUbYw5o.js +1 -0
- package/build/assets/secrets-service-BTor9uAU.js +1 -0
- package/build/assets/secrets-settings-BizaTEr1.js +1 -0
- package/build/assets/server-process-C9RKzd1x.js +1 -0
- package/build/assets/settings-BlmrkwRi.js +1 -0
- package/build/assets/settings-DcNPxz0v.js +1 -0
- package/build/assets/settings-dropdown-input-tM0A0ipy.js +1 -0
- package/build/assets/settings-index-CKq0b0Vg.js +1 -0
- package/build/assets/settings-input-C03KUoSC.js +1 -0
- package/build/assets/settings-list-classes-BJ0g8rWj.js +1 -0
- package/build/assets/settings-modal-AzEF1QPP.js +1 -0
- package/build/assets/settings-service.api-B2agVfjL.js +1 -0
- package/build/assets/settings-switch-CQE0EGC-.js +1 -0
- package/build/assets/settings-utils-ClYOkbbI.js +1 -0
- package/build/assets/shared-conversation-B55pCyBG.js +1 -0
- package/build/assets/shield-check-CFDViW82.js +1 -0
- package/build/assets/sidebar-layout-D3hE08wK.js +1 -0
- package/build/assets/sidebar-mobile-menu-toggle-BOtyJHwE.js +1 -0
- package/build/assets/sidebar-nav-link-CPzhyHQg.js +1 -0
- package/build/assets/sidebar-onboarding-checklist-storage-3qYflszY.js +1 -0
- package/build/assets/sidebar-store-DtpU7zaI.js +1 -0
- package/build/assets/skill-card-pill-row-CFxjoqxn.js +1 -0
- package/build/assets/skill-filter-CWZ5kjcg.js +2 -0
- package/build/assets/skill-icon-badge-CPQJ6A-I.js +1 -0
- package/build/assets/skill-scope-CV1dkAbW.js +1 -0
- package/build/assets/skills-plugins-DGHULTq6.js +1 -0
- package/build/assets/skills-settings-CM1lFv3e.js +1 -0
- package/build/assets/styled-tooltip-Dl06rkpY.js +1 -0
- package/build/assets/task-list-tab-04GNQuii.js +1 -0
- package/build/assets/terminal-Cj0iHIW7.js +3 -0
- package/build/assets/toggle-switch-Fd_QGz0r.js +1 -0
- package/build/assets/trash-2-Dl8_RGz0.js +1 -0
- package/build/assets/trash-_RMt7Ayc.js +1 -0
- package/build/assets/triangle-alert-SM-q4NU_.js +1 -0
- package/build/assets/typography-SgFy466J.js +1 -0
- package/build/assets/usage-tab-BcfWV6db.js +1 -0
- package/build/assets/use-acp-credential-form-BsSW5NHG.js +1 -0
- package/build/assets/use-activate-agent-profile-B2NS8nA5.js +1 -0
- package/build/assets/use-agent-profiles-DWBPC0Si.js +1 -0
- package/build/assets/use-automation-health-BxXdzZMP.js +1 -0
- package/build/assets/use-automations-zYb0dUny.js +1 -0
- package/build/assets/use-can-manage-org-profiles-BWMahtUh.js +1 -0
- package/build/assets/use-cloud-current-user-id-CPHMDG-C.js +1 -0
- package/build/assets/use-config-Bft35DOK.js +1 -0
- package/build/assets/use-create-conversation-DwN5vv2f.js +1 -0
- package/build/assets/use-create-secret-BSxJMxHp.js +1 -0
- package/build/assets/use-get-secrets-BT4ihRwj.js +1 -0
- package/build/assets/use-has-permission-B3C8rQmR.js +1 -0
- package/build/assets/use-is-authed-CFGkY3-Z.js +1 -0
- package/build/assets/use-launch-skill-in-chat-BYjYihBP.js +1 -0
- package/build/assets/use-llm-configured-BI6obxsc.js +1 -0
- package/build/assets/use-llm-profiles-djGAhTWL.js +1 -0
- package/build/assets/use-manifest-capabilities-3z0-1G59.js +1 -0
- package/build/assets/use-onboarding-completion-BXpyUSsJ.js +1 -0
- package/build/assets/use-plugins-marketplace-DI4_pK56.js +1 -0
- package/build/assets/use-save-agent-profile-DdBSTdpN.js +1 -0
- package/build/assets/use-save-settings-CUZW6yXP.js +1 -0
- package/build/assets/use-settings-C5VhGpqd.js +1 -0
- package/build/assets/use-settings-nav-items-DHaUu1Dg.js +16 -0
- package/build/assets/use-tracking-D5t9otIF.js +3 -0
- package/build/assets/use-user-conversation-DT0_QCnL.js +1 -0
- package/build/assets/useInfiniteQuery-CgeUQPfs.js +1 -0
- package/build/assets/useMutation-DFnzkf6f.js +1 -0
- package/build/assets/useQueries-BhbrGEf1.js +1 -0
- package/build/assets/useQuery-BXWbZBZl.js +1 -0
- package/build/assets/utils-DaCIEEQP.js +1 -0
- package/build/assets/vendor~browser-hbU4u2Ag.js +47 -0
- package/build/assets/vendor~commits-tab-BaO2Ce3e.js +11 -0
- package/build/assets/vendor~conversation-panel~conversation-CTvDDiXg.js +1 -0
- package/build/assets/vendor~entry.client-BFE7Llz9.js +1 -0
- package/build/assets/vendor~entry.client-BaKt_PIp.js +9 -0
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js +186 -0
- package/build/assets/vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js +13 -0
- package/build/assets/vendor~root-layout-BlUaZ18v.js +1 -0
- package/build/assets/vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js +1 -0
- package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js +1 -0
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js +1 -0
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DXqM7vqB.js +1 -0
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js +48 -0
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js +1 -0
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js +4949 -0
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js +8420 -0
- package/build/assets/verification-settings-Bj6bo097.js +1 -0
- package/build/assets/wrench-hi7Q13dF.js +1 -0
- package/build/assets/x-DkgltWa0.js +1 -0
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +183 -44
- package/build/locales/ca/openhands.json +183 -44
- package/build/locales/de/openhands.json +183 -44
- package/build/locales/en/openhands.json +183 -44
- package/build/locales/es/openhands.json +183 -44
- package/build/locales/fr/openhands.json +183 -44
- package/build/locales/it/openhands.json +183 -44
- package/build/locales/ja/openhands.json +183 -44
- package/build/locales/ko-KR/openhands.json +183 -44
- package/build/locales/no/openhands.json +183 -44
- package/build/locales/pt/openhands.json +183 -44
- package/build/locales/tr/openhands.json +183 -44
- package/build/locales/uk/openhands.json +183 -44
- package/build/locales/zh-CN/openhands.json +183 -44
- package/build/locales/zh-TW/openhands.json +183 -44
- package/config/defaults.json +2 -2
- package/dist/api/agent-server-adapter.cjs +3 -3
- package/dist/api/agent-server-adapter.cjs.map +1 -1
- package/dist/api/agent-server-adapter.d.ts +10 -1
- package/dist/api/agent-server-adapter.js +115 -110
- 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.d.ts +23 -2
- package/dist/api/automation-service/automation-service.api.js +130 -73
- package/dist/api/automation-service/automation-service.api.js.map +1 -1
- package/dist/api/backend-registry/url-selection.cjs +1 -1
- package/dist/api/backend-registry/url-selection.cjs.map +1 -1
- package/dist/api/backend-registry/url-selection.d.ts +2 -1
- package/dist/api/backend-registry/url-selection.js +2 -2
- package/dist/api/backend-registry/url-selection.js.map +1 -1
- package/dist/api/cloud/conversation-service.api.cjs +1 -1
- package/dist/api/cloud/conversation-service.api.cjs.map +1 -1
- package/dist/api/cloud/conversation-service.api.d.ts +9 -0
- package/dist/api/cloud/conversation-service.api.js +11 -1
- package/dist/api/cloud/conversation-service.api.js.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.js +29 -24
- package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
- package/dist/api/git-provider-items-service.cjs +2 -0
- package/dist/api/git-provider-items-service.cjs.map +1 -0
- package/dist/api/git-provider-items-service.d.ts +25 -0
- package/dist/api/git-provider-items-service.js +127 -0
- package/dist/api/git-provider-items-service.js.map +1 -0
- package/dist/api/mcp-health/probe-mcp-server-health.cjs +1 -1
- package/dist/api/mcp-health/probe-mcp-server-health.js +31 -31
- package/dist/api/open-hands.types.d.ts +0 -19
- package/dist/api/profiles-service/profiles-service.api.cjs +1 -1
- package/dist/api/profiles-service/profiles-service.api.cjs.map +1 -1
- package/dist/api/profiles-service/profiles-service.api.d.ts +29 -2
- package/dist/api/profiles-service/profiles-service.api.js +25 -2
- package/dist/api/profiles-service/profiles-service.api.js.map +1 -1
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs +2 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs.map +1 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.d.ts +34 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.js +50 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.js.map +1 -0
- package/dist/api/secrets-service.cjs +1 -1
- package/dist/api/secrets-service.cjs.map +1 -1
- package/dist/api/secrets-service.d.ts +5 -0
- package/dist/api/secrets-service.js +12 -6
- package/dist/api/secrets-service.js.map +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js +1 -1
- package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/index.d.ts +0 -1
- package/dist/components/conversation-events/chat/event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message.js +1 -1
- package/dist/components/conversation-events/chat/event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/messages.cjs.map +1 -1
- package/dist/components/conversation-events/chat/messages.js.map +1 -1
- package/dist/components/features/automations/add-automation-menu.d.ts +7 -0
- package/dist/components/features/automations/add-automation-modal.cjs +2 -0
- package/dist/components/features/automations/add-automation-modal.cjs.map +1 -0
- package/dist/components/features/automations/add-automation-modal.js +42 -0
- package/dist/components/features/automations/add-automation-modal.js.map +1 -0
- package/dist/components/features/automations/automation-action-button-classes.cjs +2 -0
- package/dist/components/features/automations/automation-action-button-classes.cjs.map +1 -0
- package/dist/components/features/automations/automation-action-button-classes.d.ts +0 -2
- package/dist/components/features/automations/automation-action-button-classes.js +8 -0
- package/dist/components/features/automations/automation-action-button-classes.js.map +1 -0
- package/dist/components/features/automations/automation-card-skeleton.cjs +2 -0
- package/dist/components/features/automations/automation-card-skeleton.cjs.map +1 -0
- package/dist/components/features/automations/automation-card-skeleton.js +33 -0
- package/dist/components/features/automations/automation-card-skeleton.js.map +1 -0
- package/dist/components/features/automations/automation-card.cjs +2 -0
- package/dist/components/features/automations/automation-card.cjs.map +1 -0
- package/dist/components/features/automations/automation-card.d.ts +1 -1
- package/dist/components/features/automations/automation-card.js +160 -0
- package/dist/components/features/automations/automation-card.js.map +1 -0
- package/dist/components/features/automations/automation-group.cjs +2 -0
- package/dist/components/features/automations/automation-group.cjs.map +1 -0
- package/dist/components/features/automations/automation-group.js +54 -0
- package/dist/components/features/automations/automation-group.js.map +1 -0
- package/dist/components/features/automations/automation-list-row.cjs +2 -0
- package/dist/components/features/automations/automation-list-row.cjs.map +1 -0
- package/dist/components/features/automations/automation-list-row.js +152 -0
- package/dist/components/features/automations/automation-list-row.js.map +1 -0
- package/dist/components/features/automations/automation-run-insights.cjs +2 -0
- package/dist/components/features/automations/automation-run-insights.cjs.map +1 -0
- package/dist/components/features/automations/automation-run-insights.js +46 -0
- package/dist/components/features/automations/automation-run-insights.js.map +1 -0
- package/dist/components/features/automations/automation-view-mode.cjs +2 -0
- package/dist/components/features/automations/automation-view-mode.cjs.map +1 -0
- package/dist/components/features/automations/automation-view-mode.d.ts +5 -1
- package/dist/components/features/automations/automation-view-mode.js +6 -0
- package/dist/components/features/automations/automation-view-mode.js.map +1 -0
- package/dist/components/features/automations/backend-not-configured.cjs +2 -0
- package/dist/components/features/automations/backend-not-configured.cjs.map +1 -0
- package/dist/components/features/automations/backend-not-configured.js +34 -0
- package/dist/components/features/automations/backend-not-configured.js.map +1 -0
- package/dist/components/features/automations/build-automation-menu-items.cjs +2 -0
- package/dist/components/features/automations/build-automation-menu-items.cjs.map +1 -0
- package/dist/components/features/automations/build-automation-menu-items.js +53 -0
- package/dist/components/features/automations/build-automation-menu-items.js.map +1 -0
- package/dist/components/features/automations/build-automation-pills.cjs +2 -0
- package/dist/components/features/automations/build-automation-pills.cjs.map +1 -0
- package/dist/components/features/automations/build-automation-pills.js +71 -0
- package/dist/components/features/automations/build-automation-pills.js.map +1 -0
- package/dist/components/features/automations/create-instructions.cjs +2 -0
- package/dist/components/features/automations/create-instructions.cjs.map +1 -0
- package/dist/components/features/automations/create-instructions.js +102 -0
- package/dist/components/features/automations/create-instructions.js.map +1 -0
- package/dist/components/features/automations/dashboard/automations-dashboard-controls.d.ts +4 -3
- package/dist/components/features/automations/detail/run-status-badge.cjs +2 -0
- package/dist/components/features/automations/detail/run-status-badge.cjs.map +1 -0
- package/dist/components/features/automations/detail/run-status-badge.js +102 -0
- package/dist/components/features/automations/detail/run-status-badge.js.map +1 -0
- package/dist/components/features/automations/empty-state.cjs +2 -0
- package/dist/components/features/automations/empty-state.cjs.map +1 -0
- package/dist/components/features/automations/empty-state.js +35 -0
- package/dist/components/features/automations/empty-state.js.map +1 -0
- package/dist/components/features/automations/error-state.cjs +2 -0
- package/dist/components/features/automations/error-state.cjs.map +1 -0
- package/dist/components/features/automations/error-state.js +28 -0
- package/dist/components/features/automations/error-state.js.map +1 -0
- package/dist/components/features/automations/git-sync/git-sync-activity-row.d.ts +15 -0
- package/dist/components/features/automations/git-sync/git-sync-config-form.d.ts +13 -0
- package/dist/components/features/automations/git-sync/git-sync-error-banner.d.ts +6 -0
- package/dist/components/features/automations/git-sync/git-sync-not-local-state.d.ts +1 -0
- package/dist/components/features/automations/git-sync/git-sync-overview-section.d.ts +12 -0
- package/dist/components/features/automations/git-sync/git-sync-skeleton.d.ts +1 -0
- package/dist/components/features/automations/git-sync/git-sync-status-pill.d.ts +7 -0
- package/dist/components/features/automations/git-sync/git-sync-unsupported-state.d.ts +7 -0
- package/dist/components/features/automations/import-automation-modal.d.ts +2 -1
- package/dist/components/features/automations/kebab-menu-item-content.cjs +2 -0
- package/dist/components/features/automations/kebab-menu-item-content.cjs.map +1 -0
- package/dist/components/features/automations/kebab-menu-item-content.js +21 -0
- package/dist/components/features/automations/kebab-menu-item-content.js.map +1 -0
- package/dist/components/features/automations/kebab-menu.cjs +2 -0
- package/dist/components/features/automations/kebab-menu.cjs.map +1 -0
- package/dist/components/features/automations/kebab-menu.d.ts +2 -1
- package/dist/components/features/automations/kebab-menu.js +76 -0
- package/dist/components/features/automations/kebab-menu.js.map +1 -0
- package/dist/components/features/automations/recommended-automations-launcher.cjs +2 -0
- package/dist/components/features/automations/recommended-automations-launcher.cjs.map +1 -0
- package/dist/components/features/automations/recommended-automations-launcher.d.ts +7 -1
- package/dist/components/features/automations/recommended-automations-launcher.js +134 -0
- package/dist/components/features/automations/recommended-automations-launcher.js.map +1 -0
- package/dist/components/features/automations/recommended-automations-rail.cjs +2 -0
- package/dist/components/features/automations/recommended-automations-rail.cjs.map +1 -0
- package/dist/components/features/automations/recommended-automations-rail.d.ts +9 -0
- package/dist/components/features/automations/recommended-automations-rail.js +127 -0
- package/dist/components/features/automations/recommended-automations-rail.js.map +1 -0
- package/dist/components/features/automations/recommended-automations-section.cjs +2 -0
- package/dist/components/features/automations/recommended-automations-section.cjs.map +1 -0
- package/dist/components/features/automations/recommended-automations-section.d.ts +2 -2
- package/dist/components/features/automations/recommended-automations-section.js +198 -0
- package/dist/components/features/automations/recommended-automations-section.js.map +1 -0
- package/dist/components/features/automations/responder-deployment-modal.cjs +2 -0
- package/dist/components/features/automations/responder-deployment-modal.cjs.map +1 -0
- package/dist/components/features/automations/responder-deployment-modal.d.ts +2 -1
- package/dist/components/features/automations/responder-deployment-modal.js +75 -0
- package/dist/components/features/automations/responder-deployment-modal.js.map +1 -0
- package/dist/components/features/automations/status-badge.cjs +2 -0
- package/dist/components/features/automations/status-badge.cjs.map +1 -0
- package/dist/components/features/automations/status-badge.js +12 -0
- package/dist/components/features/automations/status-badge.js.map +1 -0
- package/dist/components/features/automations/to-latest-run-state.cjs +2 -0
- package/dist/components/features/automations/to-latest-run-state.cjs.map +1 -0
- package/dist/components/features/automations/to-latest-run-state.d.ts +6 -0
- package/dist/components/features/automations/to-latest-run-state.js +21 -0
- package/dist/components/features/automations/to-latest-run-state.js.map +1 -0
- package/dist/components/features/backends/backend-form-modal.cjs +1 -1
- package/dist/components/features/backends/backend-form-modal.js +10 -10
- package/dist/components/features/backends/manage-backends-modal.cjs +1 -1
- package/dist/components/features/backends/manage-backends-modal.js +5 -5
- package/dist/components/features/chat/chat-interface.cjs +2 -2
- package/dist/components/features/chat/chat-interface.cjs.map +1 -1
- package/dist/components/features/chat/chat-interface.js +151 -148
- package/dist/components/features/chat/chat-interface.js.map +1 -1
- package/dist/components/features/chat/error-message-banner.cjs +1 -1
- package/dist/components/features/chat/error-message-banner.cjs.map +1 -1
- package/dist/components/features/chat/error-message-banner.d.ts +3 -1
- package/dist/components/features/chat/error-message-banner.js +64 -58
- package/dist/components/features/chat/error-message-banner.js.map +1 -1
- package/dist/components/features/command-menu/command-menu-items.d.ts +10 -4
- package/dist/components/features/conversation/conversation-git-actions-menu.cjs +2 -0
- package/dist/components/features/conversation/conversation-git-actions-menu.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-git-actions-menu.d.ts +15 -0
- package/dist/components/features/conversation/conversation-git-actions-menu.js +123 -0
- package/dist/components/features/conversation/conversation-git-actions-menu.js.map +1 -0
- package/dist/components/features/conversation/conversation-git-actions-toggle.cjs +2 -0
- package/dist/components/features/conversation/conversation-git-actions-toggle.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-git-actions-toggle.d.ts +10 -0
- package/dist/components/features/conversation/conversation-git-actions-toggle.js +60 -0
- package/dist/components/features/conversation/conversation-git-actions-toggle.js.map +1 -0
- package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs +1 -1
- package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js +46 -10
- package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js.map +1 -1
- package/dist/components/features/conversation/conversation-main/conversation-main.cjs +1 -1
- package/dist/components/features/conversation/conversation-main/conversation-main.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-main/conversation-main.js +49 -43
- package/dist/components/features/conversation/conversation-main/conversation-main.js.map +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.cjs +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-name-with-status.js +49 -40
- package/dist/components/features/conversation/conversation-name-with-status.js.map +1 -1
- package/dist/components/features/conversation/conversation-name.cjs +1 -1
- package/dist/components/features/conversation/conversation-name.js +4 -4
- package/dist/components/features/conversation/conversation-overview-automations-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-automations-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-automations-panel.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-automations-panel.js +48 -0
- package/dist/components/features/conversation/conversation-overview-automations-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-context-menu.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-context-menu.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-context-menu.d.ts +10 -0
- package/dist/components/features/conversation/conversation-overview-context-menu.js +221 -0
- package/dist/components/features/conversation/conversation-overview-context-menu.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-diffs-row.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-diffs-row.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-diffs-row.d.ts +2 -0
- package/dist/components/features/conversation/conversation-overview-diffs-row.js +88 -0
- package/dist/components/features/conversation/conversation-overview-diffs-row.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer-content.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-drawer-content.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer-content.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-drawer-content.js +138 -0
- package/dist/components/features/conversation/conversation-overview-drawer-content.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer-context.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-drawer-context.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer-context.d.ts +17 -0
- package/dist/components/features/conversation/conversation-overview-drawer-context.js +43 -0
- package/dist/components/features/conversation/conversation-overview-drawer-context.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-drawer.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.constants.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-drawer.constants.js +6 -0
- package/dist/components/features/conversation/conversation-overview-drawer.constants.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.d.ts +7 -0
- package/dist/components/features/conversation/conversation-overview-drawer.js +45 -0
- package/dist/components/features/conversation/conversation-overview-drawer.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.types.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-drawer.types.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-drawer.types.d.ts +12 -0
- package/dist/components/features/conversation/conversation-overview-drawer.types.js +13 -0
- package/dist/components/features/conversation/conversation-overview-drawer.types.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-git-items-panel.d.ts +7 -0
- package/dist/components/features/conversation/conversation-overview-git-items-panel.js +81 -0
- package/dist/components/features/conversation/conversation-overview-git-items-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-git-section.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-git-section.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-git-section.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-git-section.js +143 -0
- package/dist/components/features/conversation/conversation-overview-git-section.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-mcp-panel.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-mcp-panel.js +108 -0
- package/dist/components/features/conversation/conversation-overview-mcp-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-panel.constants.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-panel.constants.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-panel.constants.d.ts +24 -0
- package/dist/components/features/conversation/conversation-overview-panel.constants.js +12 -0
- package/dist/components/features/conversation/conversation-overview-panel.constants.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-panel.d.ts +2 -0
- package/dist/components/features/conversation/conversation-overview-panel.js +102 -0
- package/dist/components/features/conversation/conversation-overview-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-project-scope-toggle.d.ts +8 -0
- package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js +29 -0
- package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-secrets-panel.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-secrets-panel.js +89 -0
- package/dist/components/features/conversation/conversation-overview-secrets-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-sections.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-sections.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-sections.d.ts +43 -0
- package/dist/components/features/conversation/conversation-overview-sections.js +27 -0
- package/dist/components/features/conversation/conversation-overview-sections.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-skills-panel.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-skills-panel.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-skills-panel.d.ts +6 -0
- package/dist/components/features/conversation/conversation-overview-skills-panel.js +138 -0
- package/dist/components/features/conversation/conversation-overview-skills-panel.js.map +1 -0
- package/dist/components/features/conversation/conversation-overview-toggle.cjs +2 -0
- package/dist/components/features/conversation/conversation-overview-toggle.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-overview-toggle.d.ts +11 -0
- package/dist/components/features/conversation/conversation-overview-toggle.js +99 -0
- package/dist/components/features/conversation/conversation-overview-toggle.js.map +1 -0
- package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs +2 -0
- package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs.map +1 -0
- package/dist/components/features/conversation/conversation-secondary-drawer.classes.d.ts +4 -0
- package/dist/components/features/conversation/conversation-secondary-drawer.classes.js +7 -0
- package/dist/components/features/conversation/conversation-secondary-drawer.classes.js.map +1 -0
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js +10 -9
- package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js +68 -62
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs.map +1 -1
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js +98 -88
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
- package/dist/components/features/conversation/right-panel-toggle.cjs +1 -1
- package/dist/components/features/conversation/right-panel-toggle.cjs.map +1 -1
- package/dist/components/features/conversation/right-panel-toggle.d.ts +3 -2
- package/dist/components/features/conversation/right-panel-toggle.js +34 -33
- package/dist/components/features/conversation/right-panel-toggle.js.map +1 -1
- package/dist/components/features/conversation-panel/compact-conversation-row.cjs +1 -1
- package/dist/components/features/conversation-panel/compact-conversation-row.js +6 -6
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +14 -7
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-panel.js +263 -236
- package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
- package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs +1 -1
- package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs.map +1 -1
- package/dist/components/features/conversation-panel/local-new-conversation-menu.js +4 -4
- package/dist/components/features/conversation-panel/local-new-conversation-menu.js.map +1 -1
- package/dist/components/features/diff-viewer/accordion-panel.cjs +2 -0
- package/dist/components/features/diff-viewer/accordion-panel.cjs.map +1 -0
- package/dist/components/features/diff-viewer/accordion-panel.d.ts +13 -0
- package/dist/components/features/diff-viewer/accordion-panel.js +41 -0
- package/dist/components/features/diff-viewer/accordion-panel.js.map +1 -0
- package/dist/components/features/diff-viewer/commit-list.cjs +1 -1
- package/dist/components/features/diff-viewer/commit-list.cjs.map +1 -1
- package/dist/components/features/diff-viewer/commit-list.d.ts +5 -1
- package/dist/components/features/diff-viewer/commit-list.js +30 -16
- package/dist/components/features/diff-viewer/commit-list.js.map +1 -1
- package/dist/components/features/diff-viewer/commit-row.cjs +1 -1
- package/dist/components/features/diff-viewer/commit-row.cjs.map +1 -1
- package/dist/components/features/diff-viewer/commit-row.d.ts +1 -2
- package/dist/components/features/diff-viewer/commit-row.js +38 -34
- package/dist/components/features/diff-viewer/commit-row.js.map +1 -1
- package/dist/components/features/diff-viewer/diff-change-list.cjs +2 -0
- package/dist/components/features/diff-viewer/diff-change-list.cjs.map +1 -0
- package/dist/components/features/diff-viewer/diff-change-list.d.ts +18 -0
- package/dist/components/features/diff-viewer/diff-change-list.js +22 -0
- package/dist/components/features/diff-viewer/diff-change-list.js.map +1 -0
- package/dist/components/features/diff-viewer/editor-container.cjs +1 -1
- package/dist/components/features/diff-viewer/editor-container.cjs.map +1 -1
- package/dist/components/features/diff-viewer/editor-container.d.ts +2 -1
- package/dist/components/features/diff-viewer/editor-container.js +8 -7
- package/dist/components/features/diff-viewer/editor-container.js.map +1 -1
- package/dist/components/features/diff-viewer/file-diff-viewer.cjs +1 -1
- package/dist/components/features/diff-viewer/file-diff-viewer.cjs.map +1 -1
- package/dist/components/features/diff-viewer/file-diff-viewer.d.ts +10 -1
- package/dist/components/features/diff-viewer/file-diff-viewer.js +138 -112
- package/dist/components/features/diff-viewer/file-diff-viewer.js.map +1 -1
- package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs +2 -0
- package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs.map +1 -0
- package/dist/components/features/diff-viewer/uncommitted-changes-row.d.ts +12 -0
- package/dist/components/features/diff-viewer/uncommitted-changes-row.js +51 -0
- package/dist/components/features/diff-viewer/uncommitted-changes-row.js.map +1 -0
- package/dist/components/features/files-tab/file-content-viewer.cjs +1 -1
- package/dist/components/features/files-tab/file-content-viewer.cjs.map +1 -1
- package/dist/components/features/files-tab/file-content-viewer.js +0 -1
- package/dist/components/features/files-tab/file-content-viewer.js.map +1 -1
- package/dist/components/features/files-tab/file-quick-row.cjs +1 -1
- package/dist/components/features/files-tab/file-quick-row.cjs.map +1 -1
- package/dist/components/features/files-tab/file-quick-row.d.ts +9 -7
- package/dist/components/features/files-tab/file-quick-row.js +63 -34
- package/dist/components/features/files-tab/file-quick-row.js.map +1 -1
- package/dist/components/features/files-tab/files-tab-tree.constants.cjs +2 -0
- package/dist/components/features/files-tab/files-tab-tree.constants.cjs.map +1 -0
- package/dist/components/features/files-tab/files-tab-tree.constants.d.ts +7 -0
- package/dist/components/features/files-tab/files-tab-tree.constants.js +6 -0
- package/dist/components/features/files-tab/files-tab-tree.constants.js.map +1 -0
- package/dist/components/features/files-tab/segmented-toggle.cjs +1 -1
- package/dist/components/features/files-tab/segmented-toggle.cjs.map +1 -1
- package/dist/components/features/files-tab/segmented-toggle.d.ts +5 -3
- package/dist/components/features/files-tab/segmented-toggle.js +10 -13
- package/dist/components/features/files-tab/segmented-toggle.js.map +1 -1
- package/dist/components/features/files-tab/tree-node.cjs +1 -1
- package/dist/components/features/files-tab/tree-node.cjs.map +1 -1
- package/dist/components/features/files-tab/tree-node.js +34 -32
- package/dist/components/features/files-tab/tree-node.js.map +1 -1
- package/dist/components/features/files-tab/workspace-path.cjs +2 -0
- package/dist/components/features/files-tab/workspace-path.cjs.map +1 -0
- package/dist/components/features/files-tab/workspace-path.d.ts +6 -0
- package/dist/components/features/files-tab/workspace-path.js +41 -0
- package/dist/components/features/files-tab/workspace-path.js.map +1 -0
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs +2 -0
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs.map +1 -0
- package/dist/components/features/home/featured-automations/automation-health-indicator.js +22 -0
- package/dist/components/features/home/featured-automations/automation-health-indicator.js.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs +2 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js +45 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs +2 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js +108 -0
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-health.cjs +2 -0
- package/dist/components/features/home/featured-automations/automation-run-health.cjs.map +1 -0
- package/dist/components/features/home/featured-automations/automation-run-health.js +75 -0
- package/dist/components/features/home/featured-automations/automation-run-health.js.map +1 -0
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +2 -0
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -0
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +74 -0
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -0
- package/dist/components/features/home/featured-automations/pinned-automation-card.d.ts +3 -3
- package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs +1 -1
- package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs.map +1 -1
- package/dist/components/features/home/git-repo-dropdown/use-url-search.js +1 -1
- package/dist/components/features/home/git-repo-dropdown/use-url-search.js.map +1 -1
- package/dist/components/features/home/workspace-dropdown/folder-browser-modal.cjs +1 -1
- package/dist/components/features/home/workspace-dropdown/folder-browser-modal.js +6 -6
- package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.cjs +1 -1
- package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.js +6 -6
- package/dist/components/features/manifest/manifest-form-field.d.ts +4 -3
- package/dist/components/features/manifest/manifest-icons.cjs +2 -0
- package/dist/components/features/manifest/manifest-icons.cjs.map +1 -0
- package/dist/components/features/manifest/manifest-icons.d.ts +1 -0
- package/dist/components/features/manifest/manifest-icons.js +21 -0
- package/dist/components/features/manifest/manifest-icons.js.map +1 -0
- package/dist/components/features/manifest/manifest-repository-list.d.ts +25 -0
- package/dist/components/features/markdown/markdown-table-scroll.cjs +1 -1
- package/dist/components/features/markdown/markdown-table-scroll.cjs.map +1 -1
- package/dist/components/features/markdown/markdown-table-scroll.d.ts +2 -6
- package/dist/components/features/markdown/markdown-table-scroll.js +15 -21
- package/dist/components/features/markdown/markdown-table-scroll.js.map +1 -1
- package/dist/components/features/mcp-logo-badge.cjs +1 -1
- package/dist/components/features/mcp-logo-badge.cjs.map +1 -1
- package/dist/components/features/mcp-logo-badge.d.ts +1 -1
- package/dist/components/features/mcp-logo-badge.js +1 -0
- package/dist/components/features/mcp-logo-badge.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/index.cjs +1 -1
- package/dist/components/features/mcp-page/index.js +2 -2
- package/dist/components/features/mcp-page/install-server-modal.cjs +1 -1
- package/dist/components/features/mcp-page/install-server-modal.cjs.map +1 -1
- package/dist/components/features/mcp-page/install-server-modal.js +25 -25
- package/dist/components/features/mcp-page/install-server-modal.js.map +1 -1
- package/dist/components/features/mcp-page/installed-server-card.cjs +1 -1
- package/dist/components/features/mcp-page/installed-server-card.js +5 -5
- package/dist/components/features/mcp-page/marketplace-card.cjs +1 -1
- package/dist/components/features/mcp-page/marketplace-card.js +4 -4
- package/dist/components/features/mcp-page/marketplace-section.cjs +1 -1
- package/dist/components/features/mcp-page/marketplace-section.js +3 -3
- package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs +2 -0
- package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs.map +1 -0
- package/dist/components/features/mcp-page/mcp-logo-stack-badge.js +60 -0
- package/dist/components/features/mcp-page/mcp-logo-stack-badge.js.map +1 -0
- package/dist/components/features/mcp-page/mcp-server-health.cjs +1 -1
- package/dist/components/features/mcp-page/mcp-server-health.js +18 -18
- package/dist/components/features/onboarding/steps/setup-llm-step.d.ts +10 -7
- package/dist/components/features/onboarding/use-onboarding-completion.cjs +2 -0
- package/dist/components/features/onboarding/use-onboarding-completion.cjs.map +1 -0
- package/dist/components/features/onboarding/use-onboarding-completion.js +32 -0
- package/dist/components/features/onboarding/use-onboarding-completion.js.map +1 -0
- package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs +2 -0
- package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs.map +1 -0
- package/dist/components/features/settings/app-settings/getting-started-checklist-switch.d.ts +1 -0
- package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js +22 -0
- package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js.map +1 -0
- package/dist/components/features/settings/brand-button.cjs +1 -1
- package/dist/components/features/settings/brand-button.cjs.map +1 -1
- package/dist/components/features/settings/brand-button.d.ts +2 -0
- package/dist/components/features/settings/brand-button.js +4 -2
- package/dist/components/features/settings/brand-button.js.map +1 -1
- package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.cjs +1 -0
- package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.d.ts +7 -0
- package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.js +7 -0
- package/dist/components/features/settings/llm-profiles/llm-profiles-manager.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/llm-profiles-manager.js +3 -0
- package/dist/components/features/settings/llm-profiles/llm-settings-local-view.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/llm-settings-local-view.js +1 -0
- package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +20 -1
- package/dist/components/features/settings/llm-profiles/provider-connection-modal.cjs +1 -0
- package/dist/components/features/settings/llm-profiles/provider-connection-modal.d.ts +19 -0
- package/dist/components/features/settings/llm-profiles/provider-connection-modal.js +10 -0
- package/dist/components/features/settings/llm-profiles/provider-connection-row.cjs +1 -0
- package/dist/components/features/settings/llm-profiles/provider-connection-row.d.ts +10 -0
- package/dist/components/features/settings/llm-profiles/provider-connection-row.js +6 -0
- package/dist/components/features/settings/llm-profiles/provider-connections-manager.cjs +1 -0
- package/dist/components/features/settings/llm-profiles/provider-connections-manager.d.ts +15 -0
- package/dist/components/features/settings/llm-profiles/provider-connections-manager.js +8 -0
- package/dist/components/features/settings/sdk-settings/schema-field.cjs +1 -1
- package/dist/components/features/settings/sdk-settings/schema-field.js +6 -6
- package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js +7 -7
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js.map +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.cjs +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.js +7 -7
- package/dist/components/features/settings/settings-input.cjs +1 -1
- package/dist/components/features/settings/settings-input.cjs.map +1 -1
- package/dist/components/features/settings/settings-input.d.ts +6 -0
- package/dist/components/features/settings/settings-input.js +14 -13
- package/dist/components/features/settings/settings-input.js.map +1 -1
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.d.ts +7 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js +102 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.d.ts +8 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js +66 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.d.ts +3 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js +15 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.d.ts +10 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js +39 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs +2 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.d.ts +26 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js +78 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.d.ts +5 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.js +127 -0
- package/dist/components/features/sidebar/sidebar-onboarding-checklist.js.map +1 -0
- package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
- package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
- package/dist/components/features/sidebar/sidebar-rail-body.js +115 -111
- package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs +2 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs.map +1 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.d.ts +1 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js +10 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js.map +1 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs +2 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs.map +1 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.d.ts +15 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js +75 -0
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js.map +1 -0
- package/dist/components/features/skills/add-skill-modal.cjs +2 -0
- package/dist/components/features/skills/add-skill-modal.cjs.map +1 -0
- package/dist/components/features/skills/add-skill-modal.js +164 -0
- package/dist/components/features/skills/add-skill-modal.js.map +1 -0
- package/dist/components/features/skills/build-skill-pills.cjs +2 -0
- package/dist/components/features/skills/build-skill-pills.cjs.map +1 -0
- package/dist/components/features/skills/build-skill-pills.js +88 -0
- package/dist/components/features/skills/build-skill-pills.js.map +1 -0
- package/dist/components/features/skills/get-skill-card-description.cjs +2 -0
- package/dist/components/features/skills/get-skill-card-description.cjs.map +1 -0
- package/dist/components/features/skills/get-skill-card-description.js +34 -0
- package/dist/components/features/skills/get-skill-card-description.js.map +1 -0
- package/dist/components/features/skills/get-skill-chat-launch-message.cjs +2 -0
- package/dist/components/features/skills/get-skill-chat-launch-message.cjs.map +1 -0
- package/dist/components/features/skills/get-skill-chat-launch-message.js +9 -0
- package/dist/components/features/skills/get-skill-chat-launch-message.js.map +1 -0
- package/dist/components/features/skills/is-copyable-skill-source.cjs +2 -0
- package/dist/components/features/skills/is-copyable-skill-source.cjs.map +1 -0
- package/dist/components/features/skills/is-copyable-skill-source.js +9 -0
- package/dist/components/features/skills/is-copyable-skill-source.js.map +1 -0
- package/dist/components/features/skills/skill-card-pill-row.cjs +2 -0
- package/dist/components/features/skills/skill-card-pill-row.cjs.map +1 -0
- package/dist/components/features/skills/skill-card-pill-row.d.ts +1 -1
- package/dist/components/features/skills/skill-card-pill-row.js +137 -0
- package/dist/components/features/skills/skill-card-pill-row.js.map +1 -0
- package/dist/components/features/skills/skill-card.cjs +2 -0
- package/dist/components/features/skills/skill-card.cjs.map +1 -0
- package/dist/components/features/skills/skill-card.js +93 -0
- package/dist/components/features/skills/skill-card.js.map +1 -0
- package/dist/components/features/skills/skill-detail-modal.cjs +3 -0
- package/dist/components/features/skills/skill-detail-modal.cjs.map +1 -0
- package/dist/components/features/skills/skill-detail-modal.js +150 -0
- package/dist/components/features/skills/skill-detail-modal.js.map +1 -0
- package/dist/components/features/skills/skill-facet-rail.cjs +2 -0
- package/dist/components/features/skills/skill-facet-rail.cjs.map +1 -0
- package/dist/components/features/skills/skill-facet-rail.js +42 -0
- package/dist/components/features/skills/skill-facet-rail.js.map +1 -0
- package/dist/components/features/skills/skill-facet-row.cjs +2 -0
- package/dist/components/features/skills/skill-facet-row.cjs.map +1 -0
- package/dist/components/features/skills/skill-facet-row.js +44 -0
- package/dist/components/features/skills/skill-facet-row.js.map +1 -0
- package/dist/components/features/skills/skill-filter.cjs +2 -0
- package/dist/components/features/skills/skill-filter.cjs.map +1 -0
- package/dist/components/features/skills/skill-filter.js +166 -0
- package/dist/components/features/skills/skill-filter.js.map +1 -0
- package/dist/components/features/skills/skill-filters-modal.cjs +2 -0
- package/dist/components/features/skills/skill-filters-modal.cjs.map +1 -0
- package/dist/components/features/skills/skill-filters-modal.js +53 -0
- package/dist/components/features/skills/skill-filters-modal.js.map +1 -0
- package/dist/components/features/skills/skill-icon-badge.cjs +2 -0
- package/dist/components/features/skills/skill-icon-badge.cjs.map +1 -0
- package/dist/components/features/skills/skill-icon-badge.js +17 -0
- package/dist/components/features/skills/skill-icon-badge.js.map +1 -0
- package/dist/components/features/skills/skill-type-badge.cjs +2 -0
- package/dist/components/features/skills/skill-type-badge.cjs.map +1 -0
- package/dist/components/features/skills/skill-type-badge.js +21 -0
- package/dist/components/features/skills/skill-type-badge.js.map +1 -0
- package/dist/components/features/skills/skills-toolbar.cjs +2 -0
- package/dist/components/features/skills/skills-toolbar.cjs.map +1 -0
- package/dist/components/features/skills/skills-toolbar.js +63 -0
- package/dist/components/features/skills/skills-toolbar.js.map +1 -0
- package/dist/components/shared/buttons/circle-plus-check-toggle.cjs +1 -1
- package/dist/components/shared/buttons/circle-plus-check-toggle.cjs.map +1 -1
- package/dist/components/shared/buttons/circle-plus-check-toggle.js +19 -6
- package/dist/components/shared/buttons/circle-plus-check-toggle.js.map +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.cjs +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.cjs.map +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.js +1 -1
- package/dist/components/shared/buttons/conversation-confirmation-buttons.js.map +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.cjs +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.cjs.map +1 -1
- package/dist/components/shared/filters/enum-filter-dropdown.d.ts +4 -1
- package/dist/components/shared/filters/enum-filter-dropdown.js +14 -14
- package/dist/components/shared/filters/enum-filter-dropdown.js.map +1 -1
- package/dist/components/shared/modals/settings/settings-form.cjs +1 -1
- package/dist/components/shared/modals/settings/settings-form.js +4 -4
- package/dist/components/ui/resize-handle.cjs +1 -1
- package/dist/components/ui/resize-handle.cjs.map +1 -1
- package/dist/components/ui/resize-handle.d.ts +2 -1
- package/dist/components/ui/resize-handle.js +6 -5
- package/dist/components/ui/resize-handle.js.map +1 -1
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +2 -2
- package/dist/config/defaults.js.map +1 -1
- package/dist/constants/skills-docs.cjs +2 -0
- package/dist/constants/skills-docs.cjs.map +1 -0
- package/dist/constants/skills-docs.js +6 -0
- package/dist/constants/skills-docs.js.map +1 -0
- package/dist/contexts/conversation-websocket-context.cjs +3 -3
- package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
- package/dist/contexts/conversation-websocket-context.js +184 -159
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/fixtures/home-automations-demo.cjs +2 -0
- package/dist/fixtures/home-automations-demo.cjs.map +1 -0
- package/dist/fixtures/home-automations-demo.d.ts +1 -3
- package/dist/fixtures/home-automations-demo.js +384 -0
- package/dist/fixtures/home-automations-demo.js.map +1 -0
- package/dist/hooks/chat/use-slash-command.cjs +1 -1
- package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
- package/dist/hooks/chat/use-slash-command.d.ts +1 -2
- package/dist/hooks/chat/use-slash-command.js +1 -0
- package/dist/hooks/chat/use-slash-command.js.map +1 -1
- package/dist/hooks/mutation/use-create-conversation.cjs +1 -1
- package/dist/hooks/mutation/use-create-conversation.cjs.map +1 -1
- package/dist/hooks/mutation/use-create-conversation.js +27 -30
- package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
- package/dist/hooks/mutation/use-create-provider-connection.cjs +1 -0
- package/dist/hooks/mutation/use-create-provider-connection.d.ts +2 -0
- package/dist/hooks/mutation/use-create-provider-connection.js +1 -0
- package/dist/hooks/mutation/use-delete-mcp-server.cjs +1 -1
- package/dist/hooks/mutation/use-delete-mcp-server.js +3 -3
- package/dist/hooks/mutation/use-delete-provider-connection.cjs +1 -0
- package/dist/hooks/mutation/use-delete-provider-connection.d.ts +1 -0
- package/dist/hooks/mutation/use-delete-provider-connection.js +1 -0
- package/dist/hooks/mutation/use-switch-acp-model.cjs +1 -1
- package/dist/hooks/mutation/use-switch-acp-model.cjs.map +1 -1
- package/dist/hooks/mutation/use-switch-acp-model.d.ts +5 -3
- package/dist/hooks/mutation/use-switch-acp-model.js +9 -13
- package/dist/hooks/mutation/use-switch-acp-model.js.map +1 -1
- package/dist/hooks/mutation/use-update-mcp-server.cjs +1 -1
- package/dist/hooks/mutation/use-update-mcp-server.js +6 -6
- package/dist/hooks/mutation/use-update-provider-connection.cjs +1 -0
- package/dist/hooks/mutation/use-update-provider-connection.d.ts +7 -0
- package/dist/hooks/mutation/use-update-provider-connection.js +1 -0
- package/dist/hooks/query/query-keys.cjs +1 -1
- package/dist/hooks/query/query-keys.cjs.map +1 -1
- package/dist/hooks/query/query-keys.d.ts +3 -0
- package/dist/hooks/query/query-keys.js +4 -4
- package/dist/hooks/query/query-keys.js.map +1 -1
- package/dist/hooks/query/use-automation-detail.cjs +1 -0
- package/dist/hooks/query/use-automation-detail.js +2 -0
- package/dist/hooks/query/use-automation-health.cjs +2 -0
- package/dist/hooks/query/use-automation-health.cjs.map +1 -0
- package/dist/hooks/query/use-automation-health.js +22 -0
- package/dist/hooks/query/use-automation-health.js.map +1 -0
- package/dist/hooks/query/use-automations.cjs +2 -0
- package/dist/hooks/query/use-automations.cjs.map +1 -0
- package/dist/hooks/query/use-automations.js +28 -0
- package/dist/hooks/query/use-automations.js.map +1 -0
- package/dist/hooks/query/use-backends-health.cjs +1 -1
- package/dist/hooks/query/use-backends-health.cjs.map +1 -1
- package/dist/hooks/query/use-backends-health.js +1 -1
- package/dist/hooks/query/use-backends-health.js.map +1 -1
- package/dist/hooks/query/use-conversation-history.cjs +1 -1
- package/dist/hooks/query/use-conversation-history.cjs.map +1 -1
- package/dist/hooks/query/use-conversation-history.js +3 -1
- package/dist/hooks/query/use-conversation-history.js.map +1 -1
- package/dist/hooks/query/use-conversation-metrics.cjs +1 -1
- package/dist/hooks/query/use-conversation-metrics.js +3 -3
- package/dist/hooks/query/use-git-sync.d.ts +19 -0
- package/dist/hooks/query/use-latest-automation-runs.cjs +1 -0
- package/dist/hooks/query/use-latest-automation-runs.d.ts +2 -0
- package/dist/hooks/query/use-latest-automation-runs.js +3 -0
- package/dist/hooks/query/use-llm-profiles.d.ts +1 -1
- package/dist/hooks/query/use-paginated-conversations.cjs +1 -1
- package/dist/hooks/query/use-paginated-conversations.cjs.map +1 -1
- package/dist/hooks/query/use-paginated-conversations.js +1 -1
- package/dist/hooks/query/use-paginated-conversations.js.map +1 -1
- package/dist/hooks/query/use-provider-connections.cjs +2 -0
- package/dist/hooks/query/use-provider-connections.cjs.map +1 -0
- package/dist/hooks/query/use-provider-connections.d.ts +8 -0
- package/dist/hooks/query/use-provider-connections.js +19 -0
- package/dist/hooks/query/use-provider-connections.js.map +1 -0
- package/dist/hooks/query/use-repository-git-items.cjs +2 -0
- package/dist/hooks/query/use-repository-git-items.cjs.map +1 -0
- package/dist/hooks/query/use-repository-git-items.d.ts +3 -0
- package/dist/hooks/query/use-repository-git-items.js +33 -0
- package/dist/hooks/query/use-repository-git-items.js.map +1 -0
- package/dist/hooks/query/use-task-polling.cjs +1 -1
- package/dist/hooks/query/use-task-polling.cjs.map +1 -1
- package/dist/hooks/query/use-task-polling.js +12 -10
- package/dist/hooks/query/use-task-polling.js.map +1 -1
- package/dist/hooks/query/use-workspace-files.cjs +1 -1
- package/dist/hooks/query/use-workspace-files.cjs.map +1 -1
- package/dist/hooks/query/use-workspace-files.d.ts +14 -4
- package/dist/hooks/query/use-workspace-files.js +46 -33
- package/dist/hooks/query/use-workspace-files.js.map +1 -1
- package/dist/hooks/use-bash-command-runner.cjs +1 -1
- package/dist/hooks/use-bash-command-runner.cjs.map +1 -1
- package/dist/hooks/use-bash-command-runner.js +45 -42
- package/dist/hooks/use-bash-command-runner.js.map +1 -1
- package/dist/hooks/use-conversation-overview-column-space.cjs +2 -0
- package/dist/hooks/use-conversation-overview-column-space.cjs.map +1 -0
- package/dist/hooks/use-conversation-overview-column-space.d.ts +2 -0
- package/dist/hooks/use-conversation-overview-column-space.js +25 -0
- package/dist/hooks/use-conversation-overview-column-space.js.map +1 -0
- package/dist/hooks/use-conversation-overview-git-diff-stats.cjs +2 -0
- package/dist/hooks/use-conversation-overview-git-diff-stats.cjs.map +1 -0
- package/dist/hooks/use-conversation-overview-git-diff-stats.d.ts +7 -0
- package/dist/hooks/use-conversation-overview-git-diff-stats.js +37 -0
- package/dist/hooks/use-conversation-overview-git-diff-stats.js.map +1 -0
- package/dist/hooks/use-conversation-overview-panel-peek.cjs +2 -0
- package/dist/hooks/use-conversation-overview-panel-peek.cjs.map +1 -0
- package/dist/hooks/use-conversation-overview-panel-peek.d.ts +9 -0
- package/dist/hooks/use-conversation-overview-panel-peek.js +32 -0
- package/dist/hooks/use-conversation-overview-panel-peek.js.map +1 -0
- package/dist/hooks/use-conversation-overview-stats.cjs +2 -0
- package/dist/hooks/use-conversation-overview-stats.cjs.map +1 -0
- package/dist/hooks/use-conversation-overview-stats.d.ts +4 -0
- package/dist/hooks/use-conversation-overview-stats.js +15 -0
- package/dist/hooks/use-conversation-overview-stats.js.map +1 -0
- package/dist/hooks/use-conversation-primary-repository.cjs +2 -0
- package/dist/hooks/use-conversation-primary-repository.cjs.map +1 -0
- package/dist/hooks/use-conversation-primary-repository.d.ts +11 -0
- package/dist/hooks/use-conversation-primary-repository.js +17 -0
- package/dist/hooks/use-conversation-primary-repository.js.map +1 -0
- package/dist/hooks/use-drag-scroll.cjs +2 -0
- package/dist/hooks/use-drag-scroll.cjs.map +1 -0
- package/dist/hooks/use-drag-scroll.d.ts +12 -0
- package/dist/hooks/use-drag-scroll.js +41 -0
- package/dist/hooks/use-drag-scroll.js.map +1 -0
- package/dist/hooks/use-has-permission.cjs +2 -0
- package/dist/hooks/use-has-permission.cjs.map +1 -0
- package/dist/hooks/use-has-permission.js +8 -0
- package/dist/hooks/use-has-permission.js.map +1 -0
- package/dist/hooks/use-home-automation-actions.cjs +2 -0
- package/dist/hooks/use-home-automation-actions.cjs.map +1 -0
- package/dist/hooks/use-home-automation-actions.js +15 -0
- package/dist/hooks/use-home-automation-actions.js.map +1 -0
- package/dist/hooks/use-launch-skill-in-chat.cjs +2 -0
- package/dist/hooks/use-launch-skill-in-chat.cjs.map +1 -0
- package/dist/hooks/use-launch-skill-in-chat.js +16 -0
- package/dist/hooks/use-launch-skill-in-chat.js.map +1 -0
- package/dist/hooks/use-mcp-server-health.cjs +1 -1
- package/dist/hooks/use-mcp-server-health.js +3 -3
- package/dist/hooks/use-resizable-drawer-width.cjs +2 -0
- package/dist/hooks/use-resizable-drawer-width.cjs.map +1 -0
- package/dist/hooks/use-resizable-drawer-width.d.ts +22 -0
- package/dist/hooks/use-resizable-drawer-width.js +46 -0
- package/dist/hooks/use-resizable-drawer-width.js.map +1 -0
- package/dist/hooks/use-responder-url-secret.cjs +2 -0
- package/dist/hooks/use-responder-url-secret.cjs.map +1 -0
- package/dist/hooks/use-responder-url-secret.d.ts +5 -0
- package/dist/hooks/use-responder-url-secret.js +51 -0
- package/dist/hooks/use-responder-url-secret.js.map +1 -0
- package/dist/hooks/use-select-conversation-tab.cjs +1 -1
- package/dist/hooks/use-select-conversation-tab.cjs.map +1 -1
- package/dist/hooks/use-select-conversation-tab.d.ts +2 -0
- package/dist/hooks/use-select-conversation-tab.js +15 -7
- package/dist/hooks/use-select-conversation-tab.js.map +1 -1
- package/dist/hooks/use-tracking.cjs +1 -1
- package/dist/hooks/use-tracking.cjs.map +1 -1
- package/dist/hooks/use-tracking.d.ts +23 -0
- package/dist/hooks/use-tracking.js +16 -0
- package/dist/hooks/use-tracking.js.map +1 -1
- package/dist/hooks/use-websocket.cjs +1 -1
- package/dist/hooks/use-websocket.cjs.map +1 -1
- package/dist/hooks/use-websocket.d.ts +1 -2
- package/dist/hooks/use-websocket.js +58 -51
- package/dist/hooks/use-websocket.js.map +1 -1
- package/dist/i18n/declaration.cjs +1 -1
- package/dist/i18n/declaration.cjs.map +1 -1
- package/dist/i18n/declaration.d.ts +182 -43
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +3 -3
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +3092 -729
- package/dist/i18n/translation.js.map +1 -1
- package/dist/icons/check-circle.cjs +2 -0
- package/dist/icons/check-circle.cjs.map +1 -0
- package/dist/icons/check-circle.js +20 -0
- package/dist/icons/check-circle.js.map +1 -0
- package/dist/icons/chevron-down.cjs +2 -0
- package/dist/icons/chevron-down.cjs.map +1 -0
- package/dist/icons/chevron-down.js +20 -0
- package/dist/icons/chevron-down.js.map +1 -0
- package/dist/icons/clock.cjs +2 -0
- package/dist/icons/clock.cjs.map +1 -0
- package/dist/icons/clock.js +20 -0
- package/dist/icons/clock.js.map +1 -0
- package/dist/icons/exclamation-circle.cjs +2 -0
- package/dist/icons/exclamation-circle.cjs.map +1 -0
- package/dist/icons/exclamation-circle.js +20 -0
- package/dist/icons/exclamation-circle.js.map +1 -0
- package/dist/icons/kebab-vertical.cjs +2 -0
- package/dist/icons/kebab-vertical.cjs.map +1 -0
- package/dist/icons/kebab-vertical.js +14 -0
- package/dist/icons/kebab-vertical.js.map +1 -0
- package/dist/icons/key.cjs +2 -0
- package/dist/icons/key.cjs.map +1 -0
- package/dist/icons/key.js +21 -0
- package/dist/icons/key.js.map +1 -0
- package/dist/icons/message-square-share.cjs +2 -0
- package/dist/icons/message-square-share.cjs.map +1 -0
- package/dist/icons/message-square-share.js +22 -0
- package/dist/icons/message-square-share.js.map +1 -0
- package/dist/icons/play.cjs +2 -0
- package/dist/icons/play.cjs.map +1 -0
- package/dist/icons/play.js +19 -0
- package/dist/icons/play.js.map +1 -0
- package/dist/icons/power.cjs +2 -0
- package/dist/icons/power.cjs.map +1 -0
- package/dist/icons/power.js +20 -0
- package/dist/icons/power.js.map +1 -0
- package/dist/icons/sparkle.cjs +2 -0
- package/dist/icons/sparkle.cjs.map +1 -0
- package/dist/icons/sparkle.js +20 -0
- package/dist/icons/sparkle.js.map +1 -0
- package/dist/icons/trash.cjs +2 -0
- package/dist/icons/trash.cjs.map +1 -0
- package/dist/icons/trash.js +20 -0
- package/dist/icons/trash.js.map +1 -0
- package/dist/icons/x-circle.cjs +2 -0
- package/dist/icons/x-circle.cjs.map +1 -0
- package/dist/icons/x-circle.js +20 -0
- package/dist/icons/x-circle.js.map +1 -0
- package/dist/locales/ar/openhands.json +183 -44
- package/dist/locales/ca/openhands.json +183 -44
- package/dist/locales/de/openhands.json +183 -44
- package/dist/locales/en/openhands.json +183 -44
- package/dist/locales/es/openhands.json +183 -44
- package/dist/locales/fr/openhands.json +183 -44
- package/dist/locales/it/openhands.json +183 -44
- package/dist/locales/ja/openhands.json +183 -44
- package/dist/locales/ko-KR/openhands.json +183 -44
- package/dist/locales/no/openhands.json +183 -44
- package/dist/locales/pt/openhands.json +183 -44
- package/dist/locales/tr/openhands.json +183 -44
- package/dist/locales/uk/openhands.json +183 -44
- package/dist/locales/zh-CN/openhands.json +183 -44
- package/dist/locales/zh-TW/openhands.json +183 -44
- package/dist/manifests/automation-insights.cjs +2 -0
- package/dist/manifests/automation-insights.cjs.map +1 -0
- package/dist/manifests/automation-insights.d.ts +2 -0
- package/dist/manifests/automation-insights.js +9 -0
- package/dist/manifests/automation-insights.js.map +1 -0
- package/dist/manifests/automation-interface.cjs +1 -1
- package/dist/manifests/automation-interface.cjs.map +1 -1
- package/dist/manifests/automation-interface.d.ts +47 -31
- package/dist/manifests/automation-interface.js +48 -54
- package/dist/manifests/automation-interface.js.map +1 -1
- package/dist/manifests/automation-setup.cjs +1 -1
- package/dist/manifests/automation-setup.cjs.map +1 -1
- package/dist/manifests/automation-setup.d.ts +37 -3
- package/dist/manifests/automation-setup.js +16 -2
- package/dist/manifests/automation-setup.js.map +1 -1
- package/dist/manifests/interface-validation.cjs +1 -1
- package/dist/manifests/interface-validation.cjs.map +1 -1
- package/dist/manifests/interface-validation.js +56 -52
- package/dist/manifests/interface-validation.js.map +1 -1
- package/dist/manifests/manifest-actions.d.ts +5 -0
- package/dist/manifests/manifest-bundle.d.ts +30 -0
- package/dist/manifests/manifest-local-validation.d.ts +10 -1
- package/dist/manifests/manifest-sources.cjs +1 -1
- package/dist/manifests/manifest-sources.cjs.map +1 -1
- package/dist/manifests/manifest-sources.js +3 -3
- package/dist/manifests/manifest-sources.js.map +1 -1
- package/dist/manifests/manifest-template.d.ts +14 -0
- package/dist/manifests/manifest-validation.cjs +1 -1
- package/dist/manifests/manifest-validation.cjs.map +1 -1
- package/dist/manifests/manifest-validation.js +78 -45
- package/dist/manifests/manifest-validation.js.map +1 -1
- package/dist/manifests/types.cjs +1 -1
- package/dist/manifests/types.cjs.map +1 -1
- package/dist/manifests/types.d.ts +64 -3
- package/dist/manifests/types.js +7 -6
- package/dist/manifests/types.js.map +1 -1
- package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.cjs +1 -1
- package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.js +10 -10
- package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.cjs +1 -1
- package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.js +8 -8
- package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.cjs +1 -1
- package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.js +9 -9
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs +4843 -0
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.js +11 -0
- package/dist/node_modules/@openhands/extensions/automations/bundle-index.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs +13 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js +87 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs +12 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js +98 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs +9 -7
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js +32 -13
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs +2 -2
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js +29 -34
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs +3 -3
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js +2 -2
- package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs +14 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js +72 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.js +16 -10
- package/dist/node_modules/@openhands/extensions/automations/catalog-index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/index.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/index.js +18 -13
- package/dist/node_modules/@openhands/extensions/automations/index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.js +6 -2
- package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js +36 -3
- package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs +2 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js +75 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js +68 -66
- package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/skills/index.cjs +1002 -47
- package/dist/node_modules/@openhands/extensions/skills/index.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/skills/index.js +59 -17
- package/dist/node_modules/@openhands/extensions/skills/index.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +39 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/library.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/library.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/palette.js +39 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/palette.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +12 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +25 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/timer.js +27 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/timer.js.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +3 -3
- package/dist/package.js.map +1 -1
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.cjs.map +1 -1
- package/dist/routes/app-settings.js +87 -85
- package/dist/routes/app-settings.js.map +1 -1
- package/dist/routes/commits-tab.cjs +1 -1
- package/dist/routes/commits-tab.cjs.map +1 -1
- package/dist/routes/commits-tab.js +27 -21
- package/dist/routes/commits-tab.js.map +1 -1
- package/dist/routes/conversation.cjs +1 -1
- package/dist/routes/conversation.cjs.map +1 -1
- package/dist/routes/conversation.js +56 -55
- package/dist/routes/conversation.js.map +1 -1
- package/dist/routes/files-tab.cjs +1 -1
- package/dist/routes/files-tab.cjs.map +1 -1
- package/dist/routes/files-tab.d.ts +4 -0
- package/dist/routes/files-tab.js +121 -151
- package/dist/routes/files-tab.js.map +1 -1
- package/dist/routes/llm-settings.cjs +1 -1
- package/dist/routes/llm-settings.cjs.map +1 -1
- package/dist/routes/llm-settings.d.ts +9 -1
- package/dist/routes/llm-settings.js +137 -107
- package/dist/routes/llm-settings.js.map +1 -1
- package/dist/routes/mcp.cjs +1 -1
- package/dist/routes/mcp.cjs.map +1 -1
- package/dist/routes/mcp.js +20 -20
- package/dist/routes/secrets-settings.cjs +1 -1
- package/dist/routes/secrets-settings.js +15 -15
- package/dist/services/settings.cjs +1 -1
- package/dist/services/settings.cjs.map +1 -1
- package/dist/services/settings.js +2 -2
- package/dist/services/settings.js.map +1 -1
- package/dist/services/telemetry.cjs +1 -1
- package/dist/services/telemetry.cjs.map +1 -1
- package/dist/services/telemetry.js +47 -51
- package/dist/services/telemetry.js.map +1 -1
- package/dist/stores/conversation-store.cjs +1 -1
- package/dist/stores/conversation-store.cjs.map +1 -1
- package/dist/stores/conversation-store.d.ts +8 -1
- package/dist/stores/conversation-store.js +9 -0
- package/dist/stores/conversation-store.js.map +1 -1
- package/dist/stores/error-message-store.cjs +1 -1
- package/dist/stores/error-message-store.cjs.map +1 -1
- package/dist/stores/error-message-store.d.ts +3 -1
- package/dist/stores/error-message-store.js +5 -3
- package/dist/stores/error-message-store.js.map +1 -1
- package/dist/stores/files-tab-store.cjs +1 -1
- package/dist/stores/files-tab-store.cjs.map +1 -1
- package/dist/stores/files-tab-store.d.ts +13 -0
- package/dist/stores/files-tab-store.js +49 -5
- package/dist/stores/files-tab-store.js.map +1 -1
- package/dist/stores/use-event-store.cjs +1 -1
- package/dist/stores/use-event-store.cjs.map +1 -1
- package/dist/stores/use-event-store.js +11 -11
- package/dist/stores/use-event-store.js.map +1 -1
- package/dist/types/agent-server/core/events/message-event.d.ts +2 -2
- package/dist/types/automation.cjs +2 -0
- package/dist/types/automation.cjs.map +1 -0
- package/dist/types/automation.js +8 -0
- package/dist/types/automation.js.map +1 -0
- package/dist/types/git-sync.d.ts +51 -0
- package/dist/utils/automation-catalog.cjs +1 -1
- package/dist/utils/automation-catalog.cjs.map +1 -1
- package/dist/utils/automation-catalog.d.ts +12 -0
- package/dist/utils/automation-catalog.js +20 -1
- package/dist/utils/automation-catalog.js.map +1 -1
- package/dist/utils/automation-schedule.cjs +2 -0
- package/dist/utils/automation-schedule.cjs.map +1 -0
- package/dist/utils/automation-schedule.js +8 -0
- package/dist/utils/automation-schedule.js.map +1 -0
- package/dist/utils/automation-stack-section.cjs +2 -0
- package/dist/utils/automation-stack-section.cjs.map +1 -0
- package/dist/utils/automation-stack-section.d.ts +2 -0
- package/dist/utils/automation-stack-section.js +6 -0
- package/dist/utils/automation-stack-section.js.map +1 -0
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.cjs.map +1 -1
- package/dist/utils/constants.js +4 -0
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/conversation-local-storage.cjs +1 -1
- package/dist/utils/conversation-local-storage.cjs.map +1 -1
- package/dist/utils/conversation-local-storage.d.ts +17 -4
- package/dist/utils/conversation-local-storage.js +111 -63
- package/dist/utils/conversation-local-storage.js.map +1 -1
- package/dist/utils/conversation-metrics.cjs +1 -1
- package/dist/utils/conversation-metrics.cjs.map +1 -1
- package/dist/utils/conversation-metrics.d.ts +3 -2
- package/dist/utils/conversation-metrics.js +16 -14
- package/dist/utils/conversation-metrics.js.map +1 -1
- package/dist/utils/conversation-overview-project-scope.cjs +2 -0
- package/dist/utils/conversation-overview-project-scope.cjs.map +1 -0
- package/dist/utils/conversation-overview-project-scope.d.ts +16 -0
- package/dist/utils/conversation-overview-project-scope.js +22 -0
- package/dist/utils/conversation-overview-project-scope.js.map +1 -0
- package/dist/utils/error-handler.cjs +1 -1
- package/dist/utils/error-handler.cjs.map +1 -1
- package/dist/utils/error-handler.d.ts +3 -2
- package/dist/utils/error-handler.js +18 -5
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/extension-module-card-classes.cjs +1 -1
- package/dist/utils/extension-module-card-classes.cjs.map +1 -1
- package/dist/utils/extension-module-card-classes.d.ts +1 -1
- package/dist/utils/extension-module-card-classes.js +2 -2
- package/dist/utils/extension-module-card-classes.js.map +1 -1
- package/dist/utils/format-model-name.cjs +1 -1
- package/dist/utils/format-model-name.cjs.map +1 -1
- package/dist/utils/format-model-name.d.ts +1 -0
- package/dist/utils/format-model-name.js +1 -0
- package/dist/utils/format-model-name.js.map +1 -1
- package/dist/utils/format-relative-time.cjs +2 -0
- package/dist/utils/format-relative-time.cjs.map +1 -0
- package/dist/utils/format-relative-time.js +17 -0
- package/dist/utils/format-relative-time.js.map +1 -0
- package/dist/utils/git-diff-stats.cjs +5 -0
- package/dist/utils/git-diff-stats.cjs.map +1 -0
- package/dist/utils/git-diff-stats.d.ts +9 -0
- package/dist/utils/git-diff-stats.js +53 -0
- package/dist/utils/git-diff-stats.js.map +1 -0
- package/dist/utils/handle-event-for-ui.cjs +1 -1
- package/dist/utils/handle-event-for-ui.cjs.map +1 -1
- package/dist/utils/handle-event-for-ui.js +13 -11
- package/dist/utils/handle-event-for-ui.js.map +1 -1
- package/dist/utils/mcp-credential-validation.cjs +1 -1
- package/dist/utils/mcp-credential-validation.js +3 -3
- package/dist/utils/mcp-marketplace-utils.cjs +1 -1
- package/dist/utils/mcp-marketplace-utils.cjs.map +1 -1
- package/dist/utils/mcp-marketplace-utils.js +22 -9
- package/dist/utils/mcp-marketplace-utils.js.map +1 -1
- package/dist/utils/parse-git-remote-url.cjs +1 -1
- package/dist/utils/parse-git-remote-url.cjs.map +1 -1
- package/dist/utils/parse-git-remote-url.js +6 -7
- package/dist/utils/parse-git-remote-url.js.map +1 -1
- package/dist/utils/recommended-automation-rail.cjs +2 -0
- package/dist/utils/recommended-automation-rail.cjs.map +1 -0
- package/dist/utils/recommended-automation-rail.d.ts +22 -0
- package/dist/utils/recommended-automation-rail.js +44 -0
- package/dist/utils/recommended-automation-rail.js.map +1 -0
- package/dist/utils/responder-deployment.cjs +2 -0
- package/dist/utils/responder-deployment.cjs.map +1 -0
- package/dist/utils/responder-deployment.js +42 -0
- package/dist/utils/responder-deployment.js.map +1 -0
- package/dist/utils/scroll-fade-state.cjs +2 -0
- package/dist/utils/scroll-fade-state.cjs.map +1 -0
- package/dist/utils/scroll-fade-state.d.ts +6 -0
- package/dist/utils/scroll-fade-state.js +13 -0
- package/dist/utils/scroll-fade-state.js.map +1 -0
- package/dist/utils/skill-category.cjs +2 -0
- package/dist/utils/skill-category.cjs.map +1 -0
- package/dist/utils/skill-category.js +51 -0
- package/dist/utils/skill-category.js.map +1 -0
- package/dist/utils/skill-scope.cjs +1 -1
- package/dist/utils/skill-scope.cjs.map +1 -1
- package/dist/utils/skill-scope.js +1 -1
- package/dist/utils/skill-scope.js.map +1 -1
- package/dist/utils/streaming-delta-batcher.cjs +2 -0
- package/dist/utils/streaming-delta-batcher.cjs.map +1 -0
- package/dist/utils/streaming-delta-batcher.d.ts +21 -0
- package/dist/utils/streaming-delta-batcher.js +31 -0
- package/dist/utils/streaming-delta-batcher.js.map +1 -0
- package/dist/utils/tar-gzip.d.ts +26 -0
- package/dist/utils/transcript-export/load-complete-events.cjs +1 -1
- package/dist/utils/transcript-export/load-complete-events.cjs.map +1 -1
- package/dist/utils/transcript-export/load-complete-events.js +24 -16
- package/dist/utils/transcript-export/load-complete-events.js.map +1 -1
- package/dist/utils/utils.cjs +1 -1
- package/dist/utils/utils.cjs.map +1 -1
- package/dist/utils/utils.d.ts +1 -41
- package/dist/utils/utils.js +27 -6
- package/dist/utils/utils.js.map +1 -1
- package/dist/utils/websocket-handshake.cjs +2 -0
- package/dist/utils/websocket-handshake.cjs.map +1 -0
- package/dist/utils/websocket-handshake.d.ts +11 -0
- package/dist/utils/websocket-handshake.js +12 -0
- package/dist/utils/websocket-handshake.js.map +1 -0
- package/package.json +3 -3
- package/scripts/check-translation-completeness.cjs +7 -0
- package/scripts/dev-static.mjs +49 -43
- package/scripts/dev-with-automation.mjs +111 -14
- package/scripts/seed-automation-ux-data.mjs +810 -0
- package/build/assets/acp-providers-D1PORKc0.js +0 -1
- package/build/assets/active-backend-context-IqOjobNK.js +0 -2
- package/build/assets/agent-context-settings-DMrObcIS.js +0 -1
- package/build/assets/agent-profiles-settings-DororXN5.js +0 -1
- package/build/assets/agent-server-conversation-service.api-DWBe0rbX.js +0 -86
- package/build/assets/agent-settings-BJVk92PU.js +0 -2
- package/build/assets/agent-settings-COfJsQ1d.js +0 -1
- package/build/assets/alert-banner-CzZsm7ms.js +0 -1
- package/build/assets/api-key-entry-screen-D8Fade_-.js +0 -1
- package/build/assets/app-settings-CpyGB3AT.js +0 -1
- package/build/assets/automation-detail-B-jQ39Mm.js +0 -3
- package/build/assets/automation-export-B1dywoqk.js +0 -2
- package/build/assets/automation-setup-route-C-bWUZBi.js +0 -1
- package/build/assets/automation-templates-DgpCGOJV.js +0 -1
- package/build/assets/automations-list-DnMxlxsL.js +0 -1
- package/build/assets/back-nav-button-HHEneWMw.js +0 -1
- package/build/assets/backend-form-modal-DiVrD4Cm.js +0 -1
- package/build/assets/backend-synced-settings-badge-7MIjpr8M.js +0 -1
- package/build/assets/badge-CpYmcVZV.js +0 -1
- package/build/assets/base-modal-Fnh6Uln9.js +0 -1
- package/build/assets/bot-BQZx8e2i.js +0 -1
- package/build/assets/brand-button-swT1RyO0.js +0 -1
- package/build/assets/browser-B9AbV6kG.js +0 -7
- package/build/assets/browser-tab-zAY12m_i.js +0 -1
- package/build/assets/chat-send-button-DsJtivmL.js +0 -1
- package/build/assets/check-WAFXrrs_.js +0 -1
- package/build/assets/chevron-down-CifNWzme.js +0 -1
- package/build/assets/circle-check-CtnimJa8.js +0 -1
- package/build/assets/circle-plus-check-toggle-Cuzx55bo.js +0 -1
- package/build/assets/cloud-funnel-analytics-86CwNdSh.js +0 -1
- package/build/assets/combobox-caret-D0fRotFi.js +0 -1
- package/build/assets/command-menu-BXy03FBl.js +0 -1
- package/build/assets/condenser-settings-BmZa0ui_.js +0 -1
- package/build/assets/confirmation-modal-BgoN6lbN.js +0 -1
- package/build/assets/context-menu-list-item-Bq02tc-P.js +0 -1
- package/build/assets/conversation-BPo8SvLN.js +0 -1
- package/build/assets/conversation-CPCVsCUY.js +0 -90
- package/build/assets/conversation-panel-BPo8SvLN.js +0 -1
- package/build/assets/conversation-state-store-C5YpjMNy.js +0 -1
- package/build/assets/conversation-store-Blc5xysY.js +0 -6
- package/build/assets/conversation-tab-empty-state-CMqo_0Bd.js +0 -1
- package/build/assets/copy-to-clipboard-button-Cg1pF0xn.js +0 -1
- package/build/assets/device-verify-BfQLgNyq.js +0 -1
- package/build/assets/dropdown-classes-BIqQr5mx.js +0 -1
- package/build/assets/entry.client-CxFjRYqH.js +0 -2
- package/build/assets/enum-filter-dropdown-C_yV4_bo.js +0 -1
- package/build/assets/environment-switch-overlay-Bi4qbh2g.js +0 -1
- package/build/assets/extension-module-card-classes-Bo43vY5V.js +0 -1
- package/build/assets/extensions-hub-BqUINAhp.js +0 -1
- package/build/assets/extensions-navigation-lraj88Wk.js +0 -1
- package/build/assets/external-link-CgtpA_a1.js +0 -1
- package/build/assets/file-text-DEK4LSVw.js +0 -1
- package/build/assets/files-tab-DV0L-lFE.js +0 -1
- package/build/assets/form-control-classes-7yFSQJq_.js +0 -1
- package/build/assets/format-model-name-BN_rx1Y3.js +0 -1
- package/build/assets/format-relative-time-DSErAuVr.js +0 -1
- package/build/assets/git-provider-icon-BvlLAche.js +0 -1
- package/build/assets/git-repo-dropdown-ByMzpNko.js +0 -1
- package/build/assets/git-repo-dropdown-C6R7hgM8.js +0 -1
- package/build/assets/highlighted-source-view-C_sfncLZ.js +0 -1
- package/build/assets/home-BOrlwLqG.js +0 -1
- package/build/assets/home-BvMNC6E-.js +0 -1
- package/build/assets/home-store-CxqsY9Fi.js +0 -1
- package/build/assets/index-home-BvMNC6E-.js +0 -1
- package/build/assets/info-BRVcJAUg.js +0 -1
- package/build/assets/install-server-modal-Bl4G1zF4.js +0 -1
- package/build/assets/kebab-menu-item-content-BGoGFEAg.js +0 -1
- package/build/assets/launch-CkqiSCqi.js +0 -1
- package/build/assets/list-todo-DNWlzfaM.js +0 -1
- package/build/assets/llm-not-configured-banner-DLw_tu-G.js +0 -27
- package/build/assets/llm-settings-B-pkVCrt.js +0 -1
- package/build/assets/llm-settings-DSC0-IQ7.js +0 -1
- package/build/assets/llm-subscription-service-BAdOl5Xx.js +0 -1
- package/build/assets/loader-circle-B47W9XqT.js +0 -1
- package/build/assets/loading-spinner-xhnrGP4Y.js +0 -1
- package/build/assets/manage-backends-modal-DhGk5mJt.js +0 -1
- package/build/assets/manifest-653b89aa.js +0 -1
- package/build/assets/manifest-subpage-layout-CKWvL2ig.js +0 -1
- package/build/assets/map-provider-Mx8mZuE-.js +0 -1
- package/build/assets/markdown-renderer-DUmk7pFc.js +0 -8
- package/build/assets/mcp-DCkvl6K0.js +0 -9
- package/build/assets/mcp-marketplace-utils-DEbMXlQr.js +0 -1
- package/build/assets/messages-DSXvyc21.js +0 -40
- package/build/assets/modal-body-gIe21fDv.js +0 -1
- package/build/assets/modal-classes-D66dlgZ7.js +0 -1
- package/build/assets/modal-close-button-B6iOGYpI.js +0 -1
- package/build/assets/mouse-pointer-click-BYX1Pw5W.js +0 -1
- package/build/assets/npm-DLckoeJc.js +0 -1
- package/build/assets/onboarding-D7WDG66N.js +0 -1
- package/build/assets/onboarding-modal-C_xVrFNv.js +0 -1
- package/build/assets/organization-service.api-D-s9z18a.js +0 -1
- package/build/assets/pencil-BGOCPRyu.js +0 -1
- package/build/assets/planner-tab-AKaXIIfg.js +0 -1
- package/build/assets/plugins-management-service-wtmY4QQw.js +0 -1
- package/build/assets/plus-zNEL8rcX.js +0 -1
- package/build/assets/profiles-service.api-DCMYxHMi.js +0 -1
- package/build/assets/providers-BjrtjX4L.js +0 -1
- package/build/assets/proxy-9Z_WZggZ.js +0 -1
- package/build/assets/puzzle-BWLmN8z4.js +0 -1
- package/build/assets/recommended-automations-launcher-CFlzhu1o.js +0 -1
- package/build/assets/refresh-cw-CXtFWpwv.js +0 -1
- package/build/assets/root-CanxKlNV.css +0 -1
- package/build/assets/root-DkfG_UWR.js +0 -2
- package/build/assets/root-layout-D75LHYhh.js +0 -2
- package/build/assets/schema-field-OnM5Uob_.js +0 -1
- package/build/assets/sdk-section-page-m5WQm2sy.js +0 -1
- package/build/assets/search-CycosyjN.js +0 -1
- package/build/assets/secrets-service-B26R61C1.js +0 -1
- package/build/assets/secrets-settings-CbLYCKOX.js +0 -1
- package/build/assets/segmented-toggle-DCspm2U5.js +0 -1
- package/build/assets/settings-BJQI_iBM.js +0 -1
- package/build/assets/settings-CWFxymAf.js +0 -1
- package/build/assets/settings-dropdown-input-BI8V_Nov.js +0 -1
- package/build/assets/settings-index-BiTqJoH7.js +0 -1
- package/build/assets/settings-input-Cz62hWVW.js +0 -1
- package/build/assets/settings-list-classes-z_3FW5H3.js +0 -1
- package/build/assets/settings-modal-BIrIVn97.js +0 -1
- package/build/assets/settings-service.api--rJmnuLa.js +0 -1
- package/build/assets/settings-switch-BRsSI8Vs.js +0 -1
- package/build/assets/settings-utils-Ba7vel6T.js +0 -1
- package/build/assets/shared-conversation-CQK_PqHx.js +0 -1
- package/build/assets/shield-check-T3JsDJiM.js +0 -1
- package/build/assets/sidebar-layout-Bhi3hVcu.js +0 -1
- package/build/assets/sidebar-mobile-menu-toggle-YWJNRN4p.js +0 -1
- package/build/assets/sidebar-nav-link-BSUlY5Ml.js +0 -1
- package/build/assets/sidebar-store-Cl1cUv_F.js +0 -1
- package/build/assets/skill-card-pill-row-BXz8L8Rn.js +0 -1
- package/build/assets/skill-icon-badge-QgfKv31M.js +0 -1
- package/build/assets/skill-scope-Dc3JPW-8.js +0 -1
- package/build/assets/skills-plugins-CpTV27n3.js +0 -1
- package/build/assets/skills-settings-CSW__IW4.js +0 -2
- package/build/assets/sparkles-TJ0mdECe.js +0 -1
- package/build/assets/styled-tooltip-BUMSbgrF.js +0 -1
- package/build/assets/task-list-tab-mAHMOkUz.js +0 -1
- package/build/assets/terminal-BzxBaHx2.js +0 -3
- package/build/assets/toggle-switch-O5v1FgxW.js +0 -1
- package/build/assets/trash-2-C0xNVp9c.js +0 -1
- package/build/assets/typography-NOKSk9_R.js +0 -1
- package/build/assets/usage-tab-tEmVN0KD.js +0 -1
- package/build/assets/use-acp-credential-form-BPNi0Zbm.js +0 -1
- package/build/assets/use-activate-agent-profile-D9YRQPTF.js +0 -1
- package/build/assets/use-agent-profiles-Cb2zUW3l.js +0 -1
- package/build/assets/use-can-manage-org-profiles-Dxzq2AEd.js +0 -1
- package/build/assets/use-cloud-current-user-id-Co2eJk2A.js +0 -1
- package/build/assets/use-config-DKAMiI5R.js +0 -1
- package/build/assets/use-create-conversation-CoHTiCbI.js +0 -1
- package/build/assets/use-create-secret-2zBlCDsF.js +0 -1
- package/build/assets/use-is-authed-C52-ivnB.js +0 -1
- package/build/assets/use-is-creating-conversation-DdaAE6jV.js +0 -1
- package/build/assets/use-launch-skill-in-chat-COnDpxCQ.js +0 -1
- package/build/assets/use-llm-profiles-C_BHue65.js +0 -1
- package/build/assets/use-manifest-capabilities-DPrQsaPP.js +0 -1
- package/build/assets/use-onboarding-completion-CCE8OQgV.js +0 -1
- package/build/assets/use-plugins-marketplace-CEiak69h.js +0 -1
- package/build/assets/use-save-agent-profile-DK9idD6a.js +0 -1
- package/build/assets/use-save-settings-DNmnbG6f.js +0 -1
- package/build/assets/use-settings-nav-items-BlFL7YhM.js +0 -16
- package/build/assets/use-settings-wCwPaSIv.js +0 -1
- package/build/assets/use-tracking-CVwPmhlX.js +0 -3
- package/build/assets/use-user-conversation-DVtfg0B_.js +0 -1
- package/build/assets/useInfiniteQuery-p1xq35r2.js +0 -1
- package/build/assets/useMutation-BFDQmgk9.js +0 -1
- package/build/assets/useQueries-DF1NAAeC.js +0 -1
- package/build/assets/useQuery-DRv--6bK.js +0 -1
- package/build/assets/utils-zxEjKE70.js +0 -1
- package/build/assets/vendor~browser-B-fae1JU.js +0 -47
- package/build/assets/vendor~entry.client-CgNUwtQL.js +0 -1
- package/build/assets/vendor~entry.client-zSIea5EO.js +0 -9
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kv3pap4j-B8i84bh4.js +0 -186
- package/build/assets/vendor~files-tab-D9wR9yM2.js +0 -11
- package/build/assets/vendor~index-home~home~conversation-panel~conversation-Ipoe6hvY.js +0 -13
- package/build/assets/vendor~root-layout-C-IgVx6e.js +0 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation-Dhd_I4H4.js +0 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-Cc0f9kPP.js +0 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-d7svw-BB.js +0 -1
- package/build/assets/vendor~root-layout~index-home~home~mcp~automations-list~automation-templates~automation-set~bxsimjx0-D7IDevqN.js +0 -1
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~gxu4j2ea-D5DWZVc7.js +0 -1
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-4WsUP-tz.js +0 -48
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~9pstowjp-BOVIFA_g.js +0 -73
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~ht43enc2-C0JXQb_q.js +0 -7465
- package/build/assets/verification-settings-B8UMQ7MG.js +0 -1
- package/build/assets/wrench-DIka3hCq.js +0 -1
- package/build/assets/x-BWKA2Ver.js +0 -1
- package/build/assets/zap-DHddTPc0.js +0 -1
- package/dist/api/cloud/suggestions-service.api.d.ts +0 -8
- package/dist/api/suggestions-service/suggestions-service.api.d.ts +0 -11
- package/dist/components/conversation-events/chat/event-message-components/observation-pair-event-message.d.ts +0 -7
- package/dist/components/conversation-events/index.d.ts +0 -1
- package/dist/components/features/automations/metadata-chip.d.ts +0 -6
- package/dist/components/features/chat/task-tracking/status-badge.d.ts +0 -5
- package/dist/components/features/chat/task-tracking/status-icon.d.ts +0 -5
- package/dist/components/features/chat/task-tracking/task-list-section.d.ts +0 -10
- package/dist/components/features/controls/tools.d.ts +0 -2
- package/dist/components/features/conversation-panel/new-conversation-button.d.ts +0 -23
- package/dist/components/features/diff-viewer/empty-changes-message.cjs +0 -2
- package/dist/components/features/diff-viewer/empty-changes-message.cjs.map +0 -1
- package/dist/components/features/diff-viewer/empty-changes-message.js +0 -17
- package/dist/components/features/diff-viewer/empty-changes-message.js.map +0 -1
- package/dist/components/features/home/home-header/guide-message.d.ts +0 -1
- package/dist/components/features/home/home-header/home-header.d.ts +0 -1
- package/dist/components/features/home/new-conversation/create-conversation-button.d.ts +0 -1
- package/dist/components/features/home/new-conversation/new-conversation.d.ts +0 -1
- package/dist/components/features/home/new-conversation.d.ts +0 -1
- package/dist/components/features/home/tasks/task-card.d.ts +0 -6
- package/dist/components/features/home/tasks/task-group.d.ts +0 -7
- package/dist/components/features/home/tasks/task-issue-number.d.ts +0 -6
- package/dist/components/features/home/tasks/task-item-title.d.ts +0 -1
- package/dist/components/features/home/tasks/task-suggestions-skeleton.d.ts +0 -1
- package/dist/components/features/home/tasks/task-suggestions.d.ts +0 -6
- package/dist/components/features/settings/agent-server-onboarding.d.ts +0 -10
- package/dist/components/features/settings/mcp-settings/mcp-server-list-item.d.ts +0 -6
- package/dist/components/features/settings/mcp-settings/mcp-server-list.d.ts +0 -8
- package/dist/components/features/tips/random-tip.cjs +0 -2
- package/dist/components/features/tips/random-tip.cjs.map +0 -1
- package/dist/components/features/tips/random-tip.js +0 -41
- package/dist/components/features/tips/random-tip.js.map +0 -1
- package/dist/hooks/query/use-has-git-commits.cjs +0 -2
- package/dist/hooks/query/use-has-git-commits.cjs.map +0 -1
- package/dist/hooks/query/use-has-git-commits.d.ts +0 -25
- package/dist/hooks/query/use-has-git-commits.js +0 -31
- package/dist/hooks/query/use-has-git-commits.js.map +0 -1
- package/dist/hooks/query/use-suggested-tasks.d.ts +0 -1
- package/dist/hooks/use-has-attached-source.cjs +0 -2
- package/dist/hooks/use-has-attached-source.cjs.map +0 -1
- package/dist/hooks/use-has-attached-source.d.ts +0 -18
- package/dist/hooks/use-has-attached-source.js +0 -14
- package/dist/hooks/use-has-attached-source.js.map +0 -1
- package/dist/hooks/use-should-show-user-features.d.ts +0 -1
- package/dist/icons/chveron-up.cjs +0 -2
- package/dist/icons/chveron-up.cjs.map +0 -1
- package/dist/icons/chveron-up.js +0 -21
- package/dist/icons/chveron-up.js.map +0 -1
- package/dist/routes/changes-tab.cjs +0 -2
- package/dist/routes/changes-tab.cjs.map +0 -1
- package/dist/routes/changes-tab.d.ts +0 -3
- package/dist/routes/changes-tab.js +0 -64
- package/dist/routes/changes-tab.js.map +0 -1
- package/dist/ui/card-title.d.ts +0 -16
- package/dist/ui/card.d.ts +0 -14
- package/dist/utils/file-priority.cjs +0 -2
- package/dist/utils/file-priority.cjs.map +0 -1
- package/dist/utils/file-priority.d.ts +0 -27
- package/dist/utils/file-priority.js +0 -61
- package/dist/utils/file-priority.js.map +0 -1
- package/dist/utils/group-suggested-tasks.d.ts +0 -7
- package/dist/utils/table-row-classes.d.ts +0 -9
- package/dist/utils/tips.cjs +0 -2
- package/dist/utils/tips.cjs.map +0 -1
- package/dist/utils/tips.js +0 -45
- package/dist/utils/tips.js.map +0 -1
- /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dh9v73sa-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js} +0 -0
- /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~lq5hicxx-cHFhpUBq.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js} +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/files-tab-CL3J9b3p.js","assets/rolldown-runtime-Cyuzqnbw.js","assets/vendor-styling-Ck5D_A2Q.js","assets/active-backend-context-DKFSMbn3.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js","assets/utils-DaCIEEQP.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js","assets/useQuery-BXWbZBZl.js","assets/messages-BTN5thLe.js","assets/vendor-markdown-j0kYzV48.js","assets/useMutation-DFnzkf6f.js","assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js","assets/markdown-renderer-Cb2sBWtV.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DXqM7vqB.js","assets/iconBase-C2sR-uAp.js","assets/agent-server-conversation-service.api-DozDKIW_.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js","assets/proxy-tcFL2yTQ.js","assets/profiles-service.api-QB-T_u-g.js","assets/settings-service.api-B2agVfjL.js","assets/settings-DcNPxz0v.js","assets/llm-subscription-service-BpPfzW4x.js","assets/llm-subscription-DTqtBCWz.js","assets/acp-providers-BKvmTf82.js","assets/conversation-store-Ca3ghXap.js","assets/conversation-state-store-a9d2fxRc.js","assets/syntax-highlighter-BGDg_7w9.js","assets/copy-to-clipboard-button-Cjkswvnj.js","assets/checkmark-XZyokq_Y.js","assets/copy-Drmhc2jD.js","assets/navigation-context-CQZwH_tC.js","assets/use-user-conversation-DT0_QCnL.js","assets/scroll-fade-state-Dw-i4SGq.js","assets/chevron-down-C3OQ-ehx.js","assets/chevron-right-CN1uUiJ1.js","assets/loader-circle-nvrwthvj.js","assets/vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js","assets/use-config-Bft35DOK.js","assets/styled-tooltip-Dl06rkpY.js","assets/use-settings-C5VhGpqd.js","assets/close-ScPlnwyq.js","assets/skills-B0IliMxw.js","assets/u-check-circle-BKn1spCL.js","assets/typography-SgFy466J.js","assets/dist-Bl64nBZL.js","assets/form-control-classes-CGw40z5h.js","assets/format-model-name-BNPKVsIq.js","assets/use-llm-configured-BI6obxsc.js","assets/use-agent-profiles-DWBPC0Si.js","assets/use-tracking-D5t9otIF.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js","assets/bot-C-0Wu7vQ.js","assets/use-llm-profiles-djGAhTWL.js","assets/settings-utils-ClYOkbbI.js","assets/map-provider-B9LTm23I.js","assets/cloud-funnel-analytics-287iIERo.js","assets/mouse-pointer-click-CsgRs_-r.js","assets/conversation-tab-empty-state-HJtkmHZj.js","assets/highlighted-source-view-C3sxykQi.js","assets/folder-C1ou4_DT.js","assets/get-git-path-DlAJa_i6.js","assets/link-external-BNZzCM1I.js","assets/commits-tab-DZtJgaDM.js","assets/vendor~commits-tab-BaO2Ce3e.js","assets/vendor~conversation-panel~conversation-CTvDDiXg.js","assets/vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js","assets/llm-not-configured-banner-BqqYnJ1t.js","assets/vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js","assets/useInfiniteQuery-CgeUQPfs.js","assets/recommended-automations-launcher-Bw8uC4V6.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js","assets/secrets-service-BTor9uAU.js","assets/install-server-modal-BbJdhzet.js","assets/brand-button-Dxv6PDeN.js","assets/settings-input-C03KUoSC.js","assets/modal-backdrop-BSzNhM4r.js","assets/modal-close-button-CkJ0Ktjj.js","assets/mcp-marketplace-utils-C13fFccR.js","assets/modal-classes-BAb4Y_BG.js","assets/skill-card-pill-row-CFxjoqxn.js","assets/extension-module-card-classes-DpeaYhYo.js","assets/circle-plus-check-toggle-CBh_qomE.js","assets/x-mark-BopmFoBq.js","assets/use-create-conversation-DwN5vv2f.js","assets/plugins-management-service-BjYeF0b0.js","assets/use-create-secret-BSxJMxHp.js","assets/use-automations-zYb0dUny.js","assets/automation-C_eCrGyP.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~automation-setup-route-CjECvSl5.js","assets/chat-send-button-DWwR2cgI.js","assets/check-Cf2YoT90.js","assets/circle-check-g5yeGMd-.js","assets/plus-CEKne-Yp.js","assets/refresh-cw-Bh69DyYO.js","assets/context-menu-list-item-lVYETtY5.js","assets/dropdown-classes-DJe-E6MC.js","assets/home-store-Dl1dPE58.js","assets/use-is-authed-CFGkY3-Z.js","assets/skill-scope-CV1dkAbW.js","assets/use-can-manage-org-profiles-BWMahtUh.js","assets/organization-service.api-C8XpQ0pM.js","assets/git-repo-dropdown-ai8qaNkD.js","assets/settings-dropdown-input-tM0A0ipy.js","assets/merge-agent-profile-save-input-WcFmQVKK.js","assets/base-modal-C7_BDl_U.js","assets/modal-body-CMOc2tLl.js","assets/loading-spinner-0L3ZTToZ.js","assets/navigation-link-Bxo3-4vo.js","assets/use-activate-agent-profile-B2NS8nA5.js","assets/use-click-outside-element-W6Os4Nlb.js","assets/settings-gear-DaJj6Pde.js","assets/u-robot-BvAOA2ZD.js","assets/format-time-delta-BIR5Os7T.js","assets/browser-tab-BAl4ckJE.js","assets/external-link-DFpYunfj.js","assets/vendor~browser-tab-C5uuAxZX.js","assets/planner-tab-DQvDU3ap.js","assets/list-todo-Cuu-STFc.js","assets/task-list-tab-04GNQuii.js","assets/usage-tab-BcfWV6db.js","assets/info-uYSVzX86.js","assets/terminal-Cj0iHIW7.js","assets/vendor~terminal-BVSbSr6V.js","assets/vendor~terminal-T4IDBjWs.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,a as n,bt as r,m as i,xt as a,yt as o}from"./vendor-styling-Ck5D_A2Q.js";import{F as s,I as c,R as l,U as u}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{n as d}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js";import{t as f}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{E as p,T as m,f as h,j as g}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";import{t as _}from"./useMutation-DFnzkf6f.js";import{t as v}from"./useQueries-BhbrGEf1.js";import{t as y}from"./useQuery-BXWbZBZl.js";import{i as b}from"./recommended-automations-launcher-Bw8uC4V6.js";import{t as x}from"./vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js";import{$ as S,Gt as C,It as w,Mt as T,Nt as E,X as D,ct as O,jt as k,n as A,nt as j,tt as ee}from"./active-backend-context-DKFSMbn3.js";import{A as M,D as N,E as te,H as ne,I as re,M as P,T as F,U as ie,W as I,a as ae,d as oe,f as se,h as ce,i as le,j as ue,k as L,l as de,m as fe,n as pe,o as me,p as R,r as he,s as ge,t as z,u as _e,w as ve,y as ye}from"./utils-DaCIEEQP.js";import{c as be}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js";import{A as xe,C as Se,D as Ce,E as we,M as Te,O as Ee,S as De,T as Oe,_ as ke,b as Ae,c as je,f as Me,g as Ne,h as Pe,j as Fe,k as Ie,l as Le,m as Re,n as ze,p as Be,s as Ve,t as He,u as Ue,v as We,w as Ge,x as Ke,y as qe}from"./messages-BTN5thLe.js";import{t as Je}from"./check-Cf2YoT90.js";import{n as Ye,r as Xe,t as Ze}from"./vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js";import{r as Qe}from"./map-provider-B9LTm23I.js";import{i as $e,n as et,r as tt,t as nt}from"./empty-state-CvaVahVr.js";import{t as rt}from"./external-link-DFpYunfj.js";import{c as it,d as at,g as ot,h as st,i as ct,l as lt,m as ut,t as dt}from"./use-llm-configured-BI6obxsc.js";import{c as ft,d as pt,l as mt,n as ht,s as gt,u as _t}from"./vendor~conversation-panel~conversation-CTvDDiXg.js";import{a as vt,i as yt}from"./cloud-funnel-analytics-287iIERo.js";import{t as bt}from"./info-uYSVzX86.js";import{t as xt}from"./list-todo-Cuu-STFc.js";import{t as St}from"./loader-circle-nvrwthvj.js";import{a as Ct,c as wt,d as Tt,f as Et,i as Dt,l as Ot,m as kt,n as At,p as jt,r as Mt,t as Nt}from"./skill-filter-CWZ5kjcg.js";import{t as Pt}from"./x-DkgltWa0.js";import{t as Ft}from"./trash-2-Dl8_RGz0.js";import{n as It,t as B}from"./context-menu-list-item-lVYETtY5.js";import{i as Lt}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js";import{t as Rt}from"./proxy-tcFL2yTQ.js";import{t as zt}from"./loading-spinner-0L3ZTToZ.js";import{t as Bt}from"./use-tracking-D5t9otIF.js";import{l as Vt}from"./settings-service.api-B2agVfjL.js";import{n as Ht}from"./use-settings-C5VhGpqd.js";import{t as Ut}from"./use-save-settings-CUZW6yXP.js";import{t as Wt}from"./modal-backdrop-BSzNhM4r.js";import{n as Gt}from"./modal-body-CMOc2tLl.js";import{n as Kt,r as qt}from"./base-modal-C7_BDl_U.js";import{_ as Jt,i as Yt,u as Xt}from"./form-control-classes-CGw40z5h.js";import{t as V}from"./brand-button-Dxv6PDeN.js";import{n as Zt}from"./navigation-context-CQZwH_tC.js";import{t as Qt}from"./styled-tooltip-Dl06rkpY.js";import{r as $t,u as en}from"./dropdown-classes-DJe-E6MC.js";import{_ as tn,a as nn,c as rn,d as an,f as on,h as sn,l as H,o as cn,p as ln,t as U,u as W}from"./conversation-store-Ca3ghXap.js";import{t as un}from"./modal-close-button-CkJ0Ktjj.js";import{t as dn}from"./confirmation-modal-Bk4JRcCM.js";import{C as fn,D as pn,S as mn,t as hn}from"./agent-server-conversation-service.api-DozDKIW_.js";import{t as gn}from"./use-is-authed-CFGkY3-Z.js";import{a as _n,c as vn,f as yn,g as bn,l as xn,m as Sn,s as Cn,t as wn}from"./conversation-state-store-a9d2fxRc.js";import{c as Tn,d as En,i as Dn,l as On,n as kn,r as An,s as jn,t as Mn,u as Nn}from"./sidebar-mobile-menu-toggle-BOtyJHwE.js";import{t as Pn}from"./use-click-outside-element-W6Os4Nlb.js";import{n as Fn}from"./use-create-conversation-DwN5vv2f.js";import{r as In}from"./vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js";import{a as G,i as Ln,n as Rn}from"./use-can-manage-org-profiles-BWMahtUh.js";import{t as zn}from"./u-edit-DAkcF52u.js";import{t as Bn}from"./skills-B0IliMxw.js";import{t as Vn}from"./install-server-modal-BbJdhzet.js";import{o as Hn,s as Un,t as Wn}from"./home-store-Dl1dPE58.js";import{t as Gn}from"./use-automation-health-BxXdzZMP.js";import{t as Kn}from"./use-automations-zYb0dUny.js";import{t as qn}from"./use-user-conversation-DT0_QCnL.js";import{t as Jn}from"./copy-Drmhc2jD.js";import{r as Yn}from"./typography-SgFy466J.js";import{n as Xn,o as Zn,t as Qn}from"./extension-module-card-classes-DpeaYhYo.js";import{t as $n}from"./secrets-service-BTor9uAU.js";import{t as er}from"./use-get-secrets-BT4ihRwj.js";import{f as tr,l as nr,s as rr,t as ir}from"./mcp-marketplace-utils-C13fFccR.js";import{t as ar}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js";import{t as or}from"./x-mark-BopmFoBq.js";import{A as sr,B as cr,C as lr,D as ur,E as dr,F as fr,G as pr,H as mr,I as hr,L as gr,M as _r,O as vr,P as yr,S as br,T as xr,U as Sr,_ as Cr,a as wr,b as Tr,c as Er,g as Dr,h as Or,i as kr,j as Ar,n as jr,o as Mr,p as Nr,r as Pr,s as Fr,t as Ir,v as Lr,w as Rr,x as zr,y as Br,z as Vr}from"./llm-not-configured-banner-BqqYnJ1t.js";import{A as Hr,C as Ur,D as Wr,F as Gr,H as Kr,I as qr,J as Jr,K as Yr,L as Xr,O as Zr,P as Qr,R as $r,S as K,T as ei,U as ti,V as ni,X as q,Y as J,Z as ri,_ as ii,a as ai,b as Y,c as oi,d as si,f as ci,h as li,j as ui,k as di,m as fi,o as pi,q as mi,r as hi,u as gi,w as _i,x as vi,y as yi,z as bi}from"./markdown-renderer-Cb2sBWtV.js";import{n as xi,t as Si}from"./skill-scope-CV1dkAbW.js";import{t as Ci}from"./vendor~index-home~home~conversation-panel~conversation~alert-banner-B3qC_oj8.js";import{t as wi}from"./git-repo-dropdown-ai8qaNkD.js";import{n as Ti,t as Ei}from"./get-git-path-DlAJa_i6.js";import{t as Di}from"./parse-git-remote-url-DpDM9bK6.js";import{t as Oi}from"./use-breakpoint-DWtihr9g.js";import{n as ki,t as Ai}from"./error-state-BALXiBNy.js";import{a as ji,i as Mi,n as Ni,o as Pi,r as Fi,t as Ii}from"./mcp-page-Bm4K2NQq.js";import{n as Li,t as Ri}from"./secret-form-HTUbYw5o.js";var X=e(t(),1),zi={curAgentState:L.LOADING},Bi=tn(e=>({...zi,setCurrentAgentState:t=>e({curAgentState:t}),reset:()=>e(zi)})),Vi=`openhands-last-conversation-by-backend`;function Hi(e,t){return t?`${e}::${t}`:e}function Ui(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(Vi);if(!e)return{};let t=JSON.parse(e);if(typeof t!=`object`||!t)return{};let n={};for(let[e,r]of Object.entries(t))typeof r==`string`&&r.length>0&&(n[e]=r);return n}catch{return{}}}function Wi(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Vi,JSON.stringify(e))}catch{}}function Gi(e,t,n){if(!n)return;let r=Ui();r[Hi(e,t)]=n,Wi(r)}function Ki(e,t){let n=Ui(),r=Hi(e,t);r in n&&(delete n[r],Wi(n))}var qi=e=>({action:Fe.CHANGE_AGENT_STATE,args:{agent_state:e}}),Ji=e=>`error`in e,Yi=e=>`type`in e&&e.type===`error`,Xi=()=>{let{send:e}=xe(),t=K(e=>e.events);X.useEffect(()=>{if(!t.length)return;let n=t[t.length-1];if(!(ui(n)&&Hr(n))){if(Ji(n)){if(n.error_code===401){T(`Session expired.`);return}typeof n.error==`string`?T(n.error):T(n.message);return}Yi(n)&&`${n.message??``}`.startsWith(`Agent reached maximum`)&&e(qi(L.PAUSED))}},[t.length])},Zi=()=>{let{curAgentState:e}=Jr();return{runtimeActive:!M.includes(e)}};function Qi({children:e}){return Xi(),Zi(),e}var $i=`ACPAuthRequired`,ea={ACPAuthRequired:I.ERROR$ACP_AUTH_REQUIRED_TITLE,ACPSpawnError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPInitError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,ACPPromptError:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE,UsagePolicyRefusal:I.CHAT_INTERFACE$AGENT_ERROR_MESSAGE};function ta(e){return e?ea[e]??null:null}function na(e){return e===$i}var ra={entriesByConversation:{}},ia=(e,t,n)=>({entriesByConversation:{...e.entriesByConversation,[t]:n(e.entriesByConversation[t]??[])}}),aa=tn()(sn(e=>({...ra,addPending:(t,n)=>{let r=pn();return e(e=>ia(e,t,e=>[...e,{id:r,question:n,status:`pending`}])),r},resolve:(t,n,r)=>e(e=>ia(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`done`}:e))),fail:(t,n,r)=>e(e=>ia(e,t,e=>e.map(e=>e.id===n?{...e,response:r,status:`error`}:e))),dismiss:(t,n)=>e(e=>ia(e,t,e=>e.filter(e=>e.id!==n)))}),{name:`BtwStore`})),Z=o();function oa({onClick:e}){let{t}=f(`openhands`);return(0,Z.jsxs)(`button`,{type:`button`,onClick:e,className:`flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-normal text-success bg-success/10 hover:bg-success/20 border border-success/30 transition-colors`,children:[(0,Z.jsx)(Ce,{className:`w-3.5 h-3.5 fill-success`}),(0,Z.jsx)(`span`,{children:t(I.CHAT_INTERFACE$BTW_GOT_IT)})]})}function sa({conversationId:e}){let{t}=f(`openhands`),n=aa(e=>e.entriesByConversation),r=aa(e=>e.dismiss),i=e?n[e]??[]:[];return!e||i.length===0?null:(0,Z.jsx)(`div`,{"data-testid":`btw-messages`,className:`flex flex-col w-full`,children:i.map(n=>{let i=n.status===`pending`;return(0,Z.jsx)(Ee,{title:(0,Z.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`opacity-60`,children:t(I.CHAT_INTERFACE$BTW_PREFIX)}),(0,Z.jsx)(`span`,{children:n.question}),i&&(0,Z.jsx)(`span`,{"data-testid":`btw-spinner`,className:`inline-block w-3.5 h-3.5 ml-2 rounded-full border-2 border-transparent border-t-[var(--oh-border-input)] animate-spin`})]}),details:i?t(I.CHAT_INTERFACE$BTW_WAITING_FOR_ANSWER):n.response??``,initiallyExpanded:!i,chevronPosition:`before`,titleTrailing:!i&&(0,Z.jsx)(oa,{onClick:()=>r(e,n.id)})},n.id)})})}function ca({conversationId:e}){let t=ii(e=>e.statusByConversation),n=e?t[e]:void 0;return n?.active?(0,Z.jsx)(we,{status:n}):null}var la=`${P} `,ua=(e,t)=>{let n=aa(e=>e.addPending),r=aa(e=>e.resolve),i=aa(e=>e.fail);return(0,X.useCallback)(a=>{let o=a.trim(),s=o===`/btw`||o.startsWith(la);if(!e||!s){t(a);return}let c=o.slice(P.length).trim();if(!c)return;let l=n(e,c);vn(e,c).then(({response:t})=>r(e,l,t)).catch(t=>i(e,l,t?.message??`Failed to ask agent`))},[e,t,n,r,i])},da=`${re} `,fa=/^--max(?:=|\s+)(\d+)\s*/,pa=(e,t)=>{let{t:n}=f();return(0,X.useCallback)(r=>{let i=r.trim(),a=i===`/goal`||i.startsWith(da);if(!e||!a){t(r);return}let o=i.slice(re.length).trim(),s,c=o.match(fa);c&&(s=parseInt(c[1],10),o=o.slice(c[0].length).trim());let l=o;if(!l){T(n(I.GOAL$OBJECTIVE_REQUIRED));return}let u={objective:l};s&&s>=1&&(u.max_iterations=s),Sn(e,u).catch(e=>{let t=n(I.GOAL$START_FAILED);T(e instanceof Error&&e.message?e.message:t)})},[e,t,n])},ma=`flex flex-row gap-1 items-center justify-center rounded-[100px]`;function ha(e){return z(ma,e?`bg-[var(--oh-surface)] hover:bg-tertiary cursor-pointer text-white`:`bg-[var(--oh-surface)] cursor-not-allowed opacity-50 text-[var(--oh-muted)]`)}function ga(e){return e?`white`:`var(--oh-muted)`}var _a=`font-normal text-sm leading-5 truncate`;function va({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,isConversationReady:r=!0}){let{t:i}=f(`openhands`),{trackPullButtonClick:a}=Bt(),o=n&&t&&r;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{a(),e(oe())},disabled:!o,className:z(ha(o),`px-0.5 py-1 w-[76px] min-w-[76px]`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(xr,{width:12,height:12,color:ga(o)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[76px]`),title:i(I.COMMON$PULL),children:i(I.COMMON$PULL)})]})}function ya({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackPushButtonClick:o}=Bt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(se(r))},disabled:!s,className:z(ha(s),`px-2 py-1 w-[77px] min-w-[77px]`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(dr,{width:12,height:12,color:ga(s)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[77px]`),title:a(I.COMMON$PUSH),children:a(I.COMMON$PUSH)})]})}function ba({onSuggestionsClick:e,hasRepository:t,providerTokensReady:n,currentGitProvider:r,isConversationReady:i=!0}){let{t:a}=f(`openhands`),{trackCreatePrButtonClick:o}=Bt(),s=n&&t&&i;return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{o(),e(ge(r))},disabled:!s,className:z(ha(s),`px-2 py-1 w-[126px] min-w-[126px] h-7`),children:[(0,Z.jsx)(`div`,{className:`w-3 h-3 flex items-center justify-center`,children:(0,Z.jsx)(Rr,{width:12,height:12,color:ga(s)})}),(0,Z.jsx)(`div`,{className:z(_a,`max-w-[126px]`),title:a(I.COMMON$PULL_REQUEST),children:a(I.COMMON$PULL_REQUEST)})]})}function xa(e){return e.kind===`BashCommand`}function Sa(e){return e.kind===`BashOutput`}function Ca(e){return e.kind===`BashError`}function wa(e,t,n){let r=(0,X.useRef)(null),i=(0,X.useRef)(null),a=(0,X.useRef)([]),o=(0,X.useRef)([]),s=(0,X.useRef)(new Map);return(0,X.useEffect)(()=>{if(!n)return;let c=ee(e),l=new WebSocket(c);r.current=l,i.current=null;let u=Yr(l);l.onopen=()=>{u(),mi(l,t),i.current=l;for(let{command:e,cwd:t,timeout:n,resolve:r,reject:i}of a.current)o.current.push({resolve:r,reject:i}),l.send(JSON.stringify({command:e,cwd:t,timeout:n}));a.current=[]},l.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(xa(t)){let e=o.current.shift();e&&s.current.set(t.id,{...e,stdout:[],stderr:[]})}else if(Sa(t)&&t.command_id){let e=s.current.get(t.command_id);e&&(t.stdout&&e.stdout.push(t.stdout),t.stderr&&e.stderr.push(t.stderr),t.exit_code!=null&&(s.current.delete(t.command_id),e.resolve({exit_code:t.exit_code,stdout:e.stdout.join(``),stderr:e.stderr.join(``)})))}else Ca(t)&&d(`Bash error: ${t.code}: ${t.detail}`)};function d(e){let t=Error(e);for(let{reject:e}of a.current)e(t);a.current=[];for(let e of o.current)e.reject(t);o.current=[];for(let e of s.current.values())e.reject(t);s.current.clear()}return l.onclose=()=>{u(),r.current=null,i.current=null,d(`Bash WebSocket closed`)},l.onerror=()=>{r.current=null,i.current=null,d(`Bash WebSocket error`)},()=>{u(),l.onclose=null,l.onerror=null,l.close(),r.current=null,i.current=null,d(`Bash WebSocket unmounted`)}},[n,e,t]),(0,X.useCallback)((e,t,n)=>new Promise((s,c)=>{let l=r.current;if(!l||l.readyState===WebSocket.CLOSED||l.readyState===WebSocket.CLOSING){c(Error(`Bash WebSocket not available`));return}l.readyState!==WebSocket.OPEN||i.current!==l?a.current.push({command:e,cwd:t,timeout:n,resolve:s,reject:c}):(o.current.push({resolve:s,reject:c}),l.send(JSON.stringify({command:e,cwd:t,timeout:n})))}),[])}var Ta={repository:null,branch:null,provider:null,remoteUrl:null},Ea=[`r=$(git remote get-url origin 2>/dev/null)`,`b=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)`,`if [ -z "$r$b" ]; then`,`n=$(find . -mindepth 2 -maxdepth 4 -name .git 2>/dev/null | cut -c3- | sed 's|/.git$||' | sort -u)`,`c=$(printf '%s\\n' "$n" | grep -c '[^[:space:]]')`,`if [ "$c" = "1" ] && [ -n "$n" ]; then`,`r=$(git -C "$n" remote get-url origin 2>/dev/null)`,`b=$(git -C "$n" rev-parse --abbrev-ref HEAD 2>/dev/null)`,`fi`,`fi`,`printf '%s\\n%s' "$r" "$b"`].join(`
|
|
3
|
+
`);async function Da(e,t){let n=await e(Ea,t,10);if(n.exit_code!==0)return Ta;let r=n.stdout.indexOf(`
|
|
4
|
+
`),i=(r>=0?n.stdout.slice(0,r):n.stdout).trim(),a=(r>=0?n.stdout.slice(r+1):``).trim(),o=a&&a!==`HEAD`?a:null;if(!i&&!o)return Ta;let s=Di(i);return{repository:s?.repository??null,provider:s?.provider??null,remoteUrl:i||null,branch:o}}var Oa=()=>{let{data:e}=J(),t=Ti(),{backend:n}=A(),r=n.kind===`local`,i=e?.id,a=e?.conversation_url,o=e?.session_api_key,s=e?.workspace?.working_dir?.trim(),c=!!e?.selected_repository,l=!!e?.git_provider,u=!!e?.selected_branch,d=r&&t&&!!i&&!!s&&(!c||!l||!u),f=wa(a,o,d),p=(0,X.useRef)(f);return p.current=f,y({queryKey:[`local-git-info`,i,a,o,s],queryFn:async()=>Da((e,t,n)=>p.current(e,t,n),s),enabled:d,retry:!1,staleTime:1e4,refetchInterval:1e4,gcTime:1e3*60*5,meta:{disableToast:!0}})},ka=()=>{let e=d(),{t}=f(`openhands`);return _({mutationFn:e=>hn.updateConversationRepository(e.conversationId,e.repository,e.branch,e.gitProvider),onMutate:async t=>{let n=[`user`,`conversation`,t.conversationId];await e.cancelQueries({queryKey:n});let r=e.getQueriesData({queryKey:n});return e.setQueriesData({queryKey:n},e=>e&&{...e,selected_repository:t.repository,selected_branch:t.branch??null,git_provider:t.gitProvider??null}),{previousEntries:r}},onError:(n,r,i)=>{i?.previousEntries.forEach(([t,n])=>{e.setQueryData(t,n)}),T(t(I.CONVERSATION$FAILED_TO_UPDATE_REPOSITORY))},onSuccess:()=>{E(t(I.CONVERSATION$REPOSITORY_UPDATED))},onSettled:(t,n,r)=>{e.invalidateQueries({queryKey:[`user`,`conversation`,r.conversationId]}),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`local-git-info`,r.conversationId]})}})};function Aa({children:e,tooltipMessage:t,testId:n,shouldShowTooltip:r}){return r?(0,Z.jsx)(Qt,{content:t,placement:`top`,showArrow:!0,tooltipClassName:`bg-white text-black`,children:(0,Z.jsx)(`span`,{"data-testid":n,className:`hover:opacity-100`,children:e})}):e}function ja({isOpen:e,onClose:t,onLaunch:n,defaultProvider:r=`github`}){let{t:i}=f(`openhands`),{providers:a}=Un(),[o,s]=(0,X.useState)(null),[c,l]=(0,X.useState)(null),[u,d]=(0,X.useState)(null);(0,X.useEffect)(()=>{a.length===1&&!o?s(a[0]):a.length>1&&!o&&r&&a.includes(r)&&s(r)},[a,o,r]);let p=(0,X.useCallback)(e=>{e!==o&&(s(e),l(null),d(null))},[o]),m=(0,X.useCallback)(e=>{e?(l(e),d(null)):(l(null),d(null))},[]),h=(0,X.useCallback)(e=>{d(e)},[]),g=()=>{!c||!u||(n(c,u),l(null),d(null),t())},_=()=>{s(null),l(null),d(null),t()};if(!e)return null;let v=c?.git_provider||o||r,y=!!c&&!!u;return(0,Z.jsx)(Wt,{onClose:_,children:(0,Z.jsxs)(Gt,{width:`sm`,className:`relative items-start border border-[var(--oh-border)] !gap-4`,children:[(0,Z.jsx)(un,{onClose:_,testId:`close-open-repository-modal`}),(0,Z.jsx)(`div`,{className:`w-full pr-6`,children:(0,Z.jsx)(qt,{title:i(I.CONVERSATION$OPEN_REPOSITORY)})}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-4 w-full`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsx)(`span`,{className:`text-sm text-white font-normal leading-[22px]`,children:i(I.CONVERSATION$SELECT_OR_INSERT_LINK)}),a.length>1&&(0,Z.jsx)(wr,{providers:a,value:o,onChange:p})]}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-[10px] w-full`,children:[(0,Z.jsx)(wi,{provider:v,value:c?.id||null,repositoryName:c?.full_name||null,onChange:m,className:`w-full`}),(0,Z.jsx)(kr,{repository:c?.full_name||null,provider:v,selectedBranch:u,onBranchSelect:h,defaultBranch:c?.main_branch||null,disabled:!c,className:`w-full`})]})]}),(0,Z.jsxs)(`div`,{className:`flex justify-end gap-2 w-full`,onClick:e=>e.stopPropagation(),children:[(0,Z.jsx)(V,{type:`button`,variant:`secondary`,onClick:_,children:i(I.BUTTON$CANCEL)}),(0,Z.jsx)(V,{type:`button`,variant:`primary`,onClick:g,isDisabled:!y,children:i(I.BUTTON$LAUNCH)})]})]})})}function Ma({onSuggestionsClick:e}){let{t}=f(`openhands`),{conversationId:n}=q(),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),{addRecentRepository:c}=Wn(),l=Y(e=>e.enqueuePendingMessage),u=Y(e=>e.markPendingMessageError),{backend:d}=A(),p=d.kind===`local`,{providers:m}=Un(),h=p||m.length>0,{data:g}=J(),{repositoryInfo:_}=fr(),{data:v}=Oa(),y=mr(),b=pi()?.isLoadingHistory??!1,x=(0,X.useRef)(y);(0,X.useEffect)(()=>{x.current=y},[y]);let{send:S}=xe(),C=(0,X.useRef)(S);(0,X.useEffect)(()=>{C.current=S},[S]);let w=Se(),{mutate:E}=ka(),{mutate:D,isPending:O}=Fn(),k=g?.selected_repository||_?.selectedRepository,j=g?.git_provider||_?.gitProvider,ee=g?.selected_branch||_?.selectedBranch,M=k||v?.repository||void 0,N=j||v?.provider,te=ee||v?.branch||void 0,ne=(g?.id?fn(g.id):null)?.selected_workspace??null,re=ne&&ne.replace(/\/+$/,``).split(`/`).pop()||null,P=!!M&&!!N,F=!!g&&y===`OPEN`&&!b;(0,X.useEffect)(()=>{if(!a)return;let e=e=>{s.current&&!s.current.contains(e.target)&&o(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[a]),(0,X.useEffect)(()=>{if(!a)return;let e=e=>{e.key===`Escape`&&o(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[a]);let ie=(e,r)=>{n&&(c(e),E({conversationId:n,repository:e.full_name,branch:r.name,gitProvider:e.git_provider},{onSuccess:()=>{if(x.current!==`OPEN`){T(t(I.CONVERSATION$CLONE_COMMAND_FAILED_DISCONNECTED));return}let i=e.git_provider.charAt(0).toUpperCase()+e.git_provider.slice(1),a=`Clone ${e.full_name} from ${i} and checkout branch ${r.name}.`,o=n?l({conversationId:n,text:a}):null;w?.scrollDomToBottom(),Promise.resolve(C.current({action:`message`,args:{content:a,timestamp:new Date().toISOString()}})).catch(e=>{o&&u(o,e instanceof Error?e.message:t(I.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))})}}))},ae=!p||!!M||!!re,oe=p&&!P;return ae||te||P?(0,Z.jsxs)(`div`,{className:`flex flex-row items-center`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-row gap-2.5 items-center overflow-x-auto flex-nowrap relative scrollbar-hide`,children:[ae?(0,Z.jsx)(Pr,{selectedRepository:M,gitProvider:N,workspaceName:re,onClick:()=>i(!0),disabled:!F||oe}):null,te?(0,Z.jsx)(jr,{selectedBranch:te,selectedRepository:M,gitProvider:N}):null,P?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pull-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(va,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,isConversationReady:F})}),(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-push-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(ya,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,currentGitProvider:N,isConversationReady:F})}),(0,Z.jsx)(Aa,{tooltipMessage:t(I.COMMON$GIT_TOOLS_DISABLED_CONTENT),testId:`git-control-bar-pr-button-tooltip`,shouldShowTooltip:!P,children:(0,Z.jsx)(ba,{onSuggestionsClick:e,hasRepository:P,providerTokensReady:h,currentGitProvider:N,isConversationReady:F})})]}):null]}),(0,Z.jsx)(ja,{isOpen:r,onClose:()=>i(!1),onLaunch:ie,defaultProvider:N})]}):null}function Na({onSubmit:e,disabled:t=!1,hasStartedConversation:n}){let{images:r,files:i,imagesMarkedUploadAsFile:a,clearAllFiles:o,subConversationTaskId:s}=U(),{curAgentState:c}=Jr(),{data:l}=J(),{conversationId:u}=ri(),d=u??l?.id??null,{taskStatus:f}=yr(s,l?.id||null),{handleUpload:p}=Mr(),m=Fr(d,pa(d,ua(d,t=>{let{imagesToEmbed:n,imagesAsFiles:s}=pr(r,a);e(t,n,[...i,...s]),o()})));return(0,Z.jsxs)(`div`,{"data-testid":`interactive-chat-box`,children:[(0,Z.jsx)(Er,{disabled:t||c===L.AWAITING_USER_CONFIRMATION||ye(f),isNewConversationPending:t,hasStartedConversation:n,onSubmit:m,onFilesPaste:p}),(0,Z.jsx)(`div`,{className:`mt-3 pb-3`,children:(0,Z.jsx)(Ma,{onSuggestionsClick:e=>{m(e)}})})]})}function Pa(){let e=K(e=>e.events),t=K(e=>e.uiEvents),n=X.useMemo(()=>t.filter(si),[t]),r=X.useMemo(()=>e,[e]),i=X.useMemo(()=>n.length,[n]),a=X.useMemo(()=>r.some(e=>e.source===`agent`&&!ti(e)&&!Qr(e)),[r]),o=gi(r);return{storeEvents:e,uiEvents:t,renderableEvents:n,allConversationEvents:r,totalEvents:i,hasSubstantiveAgentActions:a,conversationUserEventsExist:o,userEventsExist:o}}var Fa=e=>`timestamp`in e?e.timestamp:void 0,Ia=e=>{let t=!!e&&nn(e),n=t?void 0:e,{data:r}=qn(e??null),{data:i,isFetched:a}=ci(n??void 0),o=K(e=>e.addEvents),[s,c]=X.useState(!1),[l,u]=X.useState(!0),d=X.useRef(!1),f=X.useRef(!0);return X.useEffect(()=>{if(d.current=!1,c(!1),t){f.current=!1,u(!1);return}f.current=!0,u(!0)},[e,t]),X.useEffect(()=>{t||!a||!i||i.hasMore||(f.current=!1,u(!1))},[t,a,i?.hasMore,n]),{isLoading:s,hasMore:l,loadOlder:X.useCallback(async()=>{if(!e||nn(e)||d.current||!f.current||!r)return;let{events:t}=K.getState(),n=t[0];if(!n)return;let i=Fa(n);if(!i){f.current=!1,u(!1);return}d.current=!0,c(!0);try{let t=await fi.searchEvents(e,r?.conversation_url??null,r?.session_api_key??null,{limit:50,sortOrder:`TIMESTAMP_DESC`,timestampLt:i});if(!Array.isArray(t.items))throw Error(`Invalid older-events response: expected page.items to be an array.`);let n=[...t.items].reverse();n.length>0&&(o(n),oi(e,K.getState().uiEvents)),(!t.next_page_id||t.items.length<50)&&(f.current=!1,u(!1))}finally{d.current=!1,c(!1)}},[e,r,r?.conversation_url,r?.session_api_key,o])}},La={kind:`translation`,key:`ACTION_MESSAGE$THINK`,values:{}},Ra=new Set([`ExecuteBashAction`,`TerminalAction`,`FileEditorAction`,`StrReplaceEditorAction`,`MCPToolAction`,`InvokeSkillAction`,`TaskAction`,`ThinkAction`,`TaskTrackerAction`,`GrepAction`,`GlobAction`,`BrowserNavigateAction`,`BrowserClickAction`,`BrowserTypeAction`,`BrowserGetStateAction`,`BrowserGetContentAction`,`BrowserScrollAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserSwitchTabAction`,`BrowserCloseTabAction`]),za=e=>{if(!di(e))return null;let t=We(e);return t?{kind:`text`,text:t}:Ra.has(e.action.kind)?ke(e):null},Ba=e=>e.source===`environment`&&`rejection_reason`in e,Va=e=>{let t=new Set,n=new Set;for(let r=e.length-1;r>=0;--r){let i=e[r];if(!i.isFromPlanningAgent){if(bi(i)||Ba(i)){t.add(i.action_id),n.add(i.tool_call_id);continue}if(Hr(i)){n.add(i.tool_call_id);continue}if(Zr(i)){if(!(i.status===`pending`||i.status===`in_progress`)){n.add(i.tool_call_id);continue}if(n.has(i.tool_call_id))continue;let e=Ke(i);return e?{kind:`translation`,key:Ae(i),values:{title:e}}:La}if(di(i)&&!t.has(i.id)&&!n.has(i.tool_call_id))return za(i)??La}}return La};function Ha({events:e}){let t=Va(e);return(0,Z.jsxs)(`div`,{className:`flex min-w-0 max-w-full items-center gap-2 rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface)] px-3 py-1.5 text-xs text-[var(--oh-text-secondary)]`,"data-testid":`live-activity-chip`,role:`status`,"aria-live":`polite`,children:[(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`size-1.5 shrink-0 animate-pulse rounded-full bg-[var(--oh-status-success)] motion-reduce:animate-none`}),(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:t.kind===`text`?t.text:(0,Z.jsx)(x,{ns:`openhands`,i18nKey:t.key,values:t.values,components:{path:(0,Z.jsx)(Pe,{}),cmd:(0,Z.jsx)(Ne,{})}})})]})}function Ua({suggestion:e,onClick:t}){let{t:n}=f(`openhands`);return(0,Z.jsxs)(`button`,{type:`button`,className:`list-none border border-[var(--oh-border)] rounded-[15px] hover:bg-surface-raised hover:border-[var(--oh-interactive-hover)] transition-colors flex-1 flex items-center justify-center cursor-pointer gap-[10px] h-[55px] px-4`,onClick:()=>t(e.value),children:[(0,X.useMemo)(()=>{switch(e.label){case`INCREASE_TEST_COVERAGE`:return(0,Z.jsx)(lr,{width:24,height:24,color:`#fff`});case`AUTO_MERGE_PRS`:return(0,Z.jsx)(br,{width:19,height:20,color:`#fff`});case`FIX_README`:return(0,Z.jsx)(zr,{width:24,height:24,color:`#fff`});case`CLEAN_DEPENDENCIES`:return(0,Z.jsx)(Tr,{width:24,height:24,color:`#fff`});default:return null}},[e]),(0,Z.jsx)(`span`,{"data-testid":`suggestion`,className:`text-[15px] font-normal leading-5 text-white text-center cursor-pointer`,children:n(e.label)})]})}function Wa({suggestions:e,onSuggestionClick:t}){return(0,Z.jsx)(`div`,{"data-testid":`suggestions`,className:`grid grid-cols-2 gap-5 max-w-fit`,children:e.map((e,n)=>(0,Z.jsx)(Ua,{suggestion:e,onClick:t},n))})}var Ga=I.SUGGESTIONS$HACKER_NEWS,Ka=`Please write a bash script which displays the top story on Hacker News. It should show the title, the link, and the number of points.
|
|
5
|
+
The script should only use tools that are widely available on unix systems, like curl and grep.`,qa=I.SUGGESTIONS$HELLO_WORLD,Ja=`I want to create a Hello World app in Javascript that:
|
|
6
|
+
* Displays Hello World in the middle.
|
|
7
|
+
* Has a button that when clicked, changes the greeting with a bouncing animation to fun versions of Hello.
|
|
8
|
+
* Has a counter for how many times the button has been clicked.
|
|
9
|
+
* Has another button that changes the app's background color.`,Ya=I.SUGGESTIONS$TODO_APP,Xa=`I want to create a VueJS app that allows me to:
|
|
10
|
+
* See all the items on my todo list
|
|
11
|
+
* add a new item to the list
|
|
12
|
+
* mark an item as done
|
|
13
|
+
* totally remove an item from the list
|
|
14
|
+
* change the text of an item
|
|
15
|
+
* set a due date on the item
|
|
16
|
+
|
|
17
|
+
This should be a client-only app with no backend. The list should persist in localStorage.`,Za={repo:Br,"non-repo":{[Ga]:Ka,[qa]:Ja,[Ya]:Xa}};function Qa({onSuggestionsClick:e}){let{t}=f(`openhands`),{shouldHideSuggestions:n}=U();return(0,Z.jsx)(i,{children:!n&&(0,Z.jsxs)(Ze.div,{"data-testid":`chat-suggestions`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:`easeInOut`},className:`pointer-events-auto absolute inset-x-4 bottom-[151px] top-0 flex flex-col items-center justify-center md:inset-x-8`,children:[(0,Z.jsx)(`div`,{className:`flex flex-col items-center p-4 rounded-xl w-full`,children:(0,Z.jsx)(`span`,{className:`pb-6 text-[32px] font-medium leading-5 text-white`,children:t(I.LANDING$TITLE)})}),(0,Z.jsx)(Wa,{suggestions:Object.entries(Za.repo).slice(0,4).map(([e,t])=>({label:e,value:t})),onSuggestionClick:e})]})})}var $a={files:[],initialPrompt:null,selectedRepository:null,selectedRepositoryProvider:null,replayJson:null},eo=tn(e=>({...$a,addFile:t=>e(e=>({files:[...e.files,t]})),removeFile:t=>e(e=>({files:e.files.filter((e,n)=>n!==t)})),clearFiles:()=>e(()=>({files:[]})),setInitialPrompt:t=>e(()=>({initialPrompt:t})),clearInitialPrompt:()=>e(()=>({initialPrompt:null})),setSelectedRepository:t=>e(()=>({selectedRepository:t})),clearSelectedRepository:()=>e(()=>({selectedRepository:null})),setSelectedRepositoryProvider:t=>e(()=>({selectedRepositoryProvider:t})),setReplayJson:t=>e(()=>({replayJson:t})),reset:()=>e(()=>$a)})),to=e=>(0,Z.jsx)(`svg`,{width:12,height:17,viewBox:`0 0 12 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.5304 6.46978L10.4697 7.53044L6.75006 3.81077L6.75006 17.0001H5.25006L5.25006 3.81077L1.53039 7.53044L0.469727 6.46978L6.00006 0.939453L11.5304 6.46978Z`,fill:`currentColor`})});function no({onClick:e}){return(0,Z.jsx)(`button`,{type:`button`,onClick:e,"data-testid":`scroll-to-bottom`,className:`flex items-center justify-center size-8 rounded-full bg-[var(--oh-surface)] text-[var(--oh-muted)] hover:bg-tertiary hover:text-white rotate-180 cursor-pointer transition-colors`,children:(0,Z.jsx)(to,{width:15,height:15})})}var ro=[{width:`w-[25%]`,height:`h-4`,align:`justify-end`},{width:`w-[60%]`,height:`h-4`,align:`justify-start`},{width:`w-[45%]`,height:`h-4`,align:`justify-start`},{width:`w-[65%]`,height:`h-20`,align:`justify-start`},{width:`w-[35%]`,height:`h-4`,align:`justify-end`},{width:`w-[50%]`,height:`h-4`,align:`justify-start`},{width:`w-[30%]`,height:`h-4`,align:`justify-end`},{width:`w-[75%]`,height:`h-4`,align:`justify-start`},{width:`w-[55%]`,height:`h-4`,align:`justify-start`}];function io({width:e,height:t}){return(0,Z.jsx)(`div`,{className:z(`rounded-md bg-foreground/5 animate-pulse`,e,t)})}function ao(){let{t:e}=f(`openhands`);return(0,Z.jsx)(`div`,{className:`flex flex-col gap-6 p-4 w-full h-full overflow-hidden`,"data-testid":`chat-messages-skeleton`,"aria-label":e(I.CHAT_INTERFACE$LOADING_CONVERSATION),children:ro.map((e,t)=>(0,Z.jsx)(`div`,{className:z(`flex w-full`,e.align),children:(0,Z.jsx)(io,{width:e.width,height:e.height})},t))})}var oo=220;function so({message:e,code:t,onDismiss:n,onRetry:r,onReauth:i,classification:a}){let{t:o,i18n:s}=f(`openhands`),c=ta(t),[l,u]=X.useState(!1),[d,m]=X.useState(!1),[h,g]=X.useState(!1),_=X.useRef(null),v=s.exists(e,{ns:`openhands`}),y=v?String(o(e)):e,b=y.length>oo,S=b&&!l;return X.useEffect(()=>{if(!h)return;let e=setTimeout(()=>{g(!1)},2e3);return()=>clearTimeout(e)},[h]),X.useEffect(()=>{g(!1)},[y]),X.useLayoutEffect(()=>{let e=_.current;if(!e)return;let t=()=>{let t=Number.parseFloat(getComputedStyle(e).lineHeight);if(!Number.isFinite(t)||t<=0){m(!1);return}m(e.getBoundingClientRect().height>t*1.5)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[y,S,l,e]),(0,Z.jsxs)(`div`,{className:z(`flex w-full gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]`,d?`items-start`:`items-center`),"data-testid":`error-message-banner`,children:[a!=null&&a.kind!==`internal`&&a.kind!==`unknown`?(0,Z.jsx)(be,{"aria-hidden":!0,className:`h-4 w-4 shrink-0 text-[var(--oh-warning)]`,strokeWidth:2,"data-testid":`warning-message-banner-icon`}):(0,Z.jsx)(p,{"aria-hidden":!0,className:`h-4 w-4 shrink-0`,strokeWidth:2,style:{color:ne},"data-testid":`error-message-banner-icon`}),(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[c&&(0,Z.jsx)(`div`,{className:`text-sm font-medium text-[var(--oh-foreground)]`,"data-testid":`error-message-banner-header`,children:o(c)}),(0,Z.jsx)(`div`,{ref:_,className:z(`whitespace-pre-wrap break-words text-sm text-[var(--oh-muted)]`,S&&`line-clamp-3`),"data-testid":`error-message-banner-content`,children:v?(0,Z.jsx)(x,{ns:`openhands`,i18nKey:e}):e}),i&&(0,Z.jsx)(`button`,{type:`button`,onClick:i,className:`mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]`,"data-testid":`error-message-banner-reauth`,children:o(I.ERROR$ACP_UPDATE_CREDENTIALS)}),b&&(0,Z.jsx)(`button`,{type:`button`,className:`mt-1 cursor-pointer text-xs font-normal text-[var(--oh-foreground)] underline`,onClick:()=>u(e=>!e),"data-testid":`error-message-banner-toggle`,children:o(l?I.COMMON$VIEW_LESS:I.COMMON$VIEW_MORE)})]}),(0,Z.jsxs)(`div`,{className:z(`flex shrink-0 gap-1`,d?`self-start`:`items-center`),children:[r&&(0,Z.jsx)(`button`,{type:`button`,onClick:r,className:`cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]`,"data-testid":`error-message-banner-retry`,children:o(I.CHAT_INTERFACE$MESSAGE_RETRY)}),(0,Z.jsx)(`button`,{type:`button`,onClick:async()=>{try{await navigator.clipboard.writeText(y),g(!0)}catch{T(o(I.CHAT_INTERFACE$CHAT_MESSAGE_COPY_FAILED))}},className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":o(h?I.BUTTON$COPIED:I.BUTTON$COPY),"data-testid":`error-message-banner-copy`,children:h?(0,Z.jsx)(Je,{className:`h-4 w-4`,"aria-hidden":!0}):(0,Z.jsx)(Qe,{className:`h-4 w-4`,"aria-hidden":!0})}),n&&(0,Z.jsx)(`button`,{type:`button`,onClick:n,className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":o(I.BUTTON$CLOSE),"data-testid":`error-message-banner-dismiss`,children:(0,Z.jsx)(Pt,{className:`h-4 w-4`,"aria-hidden":!0})})]})]})}var co={dismissedEventIds:{}},lo=tn()(sn(e=>({...co,dismiss:t=>e(e=>({dismissedEventIds:{...e.dismissedEventIds,...Object.fromEntries(t.map(e=>[e,!0]))}}))}),{name:`SkillInstallBannerStore`})),uo=/^✅ Successfully installed '([^']+)' to (.+)$/m;function fo(e){let t=new Map;for(let n of e){if(!Gr(n))continue;let e=n.observation.content.filter(e=>e.type===`text`).map(e=>e.text).join(`
|
|
18
|
+
`).match(uo);if(!e)continue;let r=e[1],i=e[2].replace(/\\/g,`/`).replace(/\/+$/,``),a=`/.agents/skills/${r}`;if(!i.endsWith(a))continue;let o=i.slice(0,-a.length);if(!o)continue;let s=`${o}::${r}`;t.delete(s),t.set(s,{eventId:n.id,skillName:r,workspacePath:o})}return[...t.values()]}var po=e=>{let t=K(e=>e.events),n=K(e=>e.loadedConversationId),r=lo(e=>e.dismissedEventIds),i=lo(e=>e.dismiss),a=(0,X.useMemo)(()=>!e||e!==n?[]:fo(t).filter(e=>!r[e.eventId]),[e,n,t,r]);return{installs:a,dismissAll:(0,X.useCallback)(()=>i(a.map(e=>e.eventId)),[i,a])}};function mo({conversationId:e}){let{t}=f(`openhands`),{installs:n,dismissAll:r}=po(e),{backend:i}=A(),{mutate:a,isPending:o}=Fn(),s=b(),{navigate:c}=Zt(),{data:l}=J();if(i.kind!==`local`||n.length===0)return null;let u=n[n.length-1],d=n.filter(e=>e.workspacePath===u.workspacePath).map(e=>e.skillName);return(0,Z.jsxs)(`div`,{className:`flex w-full items-start gap-2 rounded-lg border border-[var(--oh-border)] bg-[var(--oh-surface-raised)] p-2 text-[var(--oh-foreground)]`,"data-testid":`skill-install-restart-banner`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`p`,{className:`text-sm text-[var(--oh-foreground)]`,children:t(I.SKILLS$INSTALL_BANNER_MESSAGE,{skills:d.join(`, `)})}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{o||s||a({workingDir:u.workspacePath,workspaceMode:`local_repo`,repository:l?.selected_repository&&l?.git_provider?{name:l.selected_repository,gitProvider:l.git_provider,branch:l.selected_branch??void 0}:void 0,entryPoint:`skill_install_restart_banner`},{onSuccess:e=>c(`/conversations/${e.conversation_id}`),onError:e=>T(e.message)})},disabled:o||s,className:`mt-2 cursor-pointer rounded-md border border-[var(--oh-border)] px-2 py-1 text-xs font-normal text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-50`,"data-testid":`skill-install-restart-action`,children:t(I.SKILLS$INSTALL_BANNER_ACTION)})]}),(0,Z.jsx)(`button`,{type:`button`,onClick:r,className:`shrink-0 cursor-pointer rounded-md p-1 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-hover)] hover:text-[var(--oh-foreground)]`,"aria-label":t(I.BUTTON$CLOSE),"data-testid":`skill-install-restart-dismiss`,children:(0,Z.jsx)(Pt,{className:`h-4 w-4`,"aria-hidden":!0})})]})}function ho(){let{t:e}=f(`openhands`),{conversationId:t}=ri(),n=Y(e=>e.pendingMessages),r=Y(e=>e.markPendingMessageError),i=Y(e=>e.markPendingMessageSending),a=Y(e=>e.removePendingMessage),o=U(e=>e.restoreMessageToInputIfEmpty),{send:s}=xe(),c=X.useMemo(()=>t?n.filter(e=>gr(t,e.conversationId)):[],[n,t]),l=X.useCallback(async t=>{let n=Y.getState().pendingMessages.find(e=>e.id===t);if(n){i(t);try{await s(Ie(n.text,n.imageUrls,n.fileUrls,n.timestamp))}catch(n){r(t,n instanceof Error?n.message:e(I.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))}}},[s,r,i,e]),u=X.useCallback((e,t)=>{o(t),a(e)},[o,a]),d=X.useCallback(e=>{a(e)},[a]);return c.length===0?null:(0,Z.jsx)(Z.Fragment,{children:c.map(e=>(0,Z.jsx)(Me,{type:`user`,message:e.text,pendingStatus:e.status,onRetry:e.status===`error`?()=>l(e.id):void 0,onDismiss:e.status===`error`?()=>d(e.id):void 0,onStop:e.status===`sending`?()=>u(e.id,e.text):void 0,children:e.imageUrls.length>0&&(0,Z.jsx)(Ue,{size:`small`,images:e.imageUrls})},e.id))})}var go=()=>{let{data:e}=J();return _({mutationKey:[`unified-upload-files`],mutationFn:async t=>{let{conversationId:n,files:r}=t;return Cn(n,r,e)},meta:{disableToast:!0}})},_o=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 3.25C9.92893 3.25 8.25 4.92893 8.25 7V10H7C6.44772 10 6 10.4477 6 11V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V11C18 10.4477 17.5523 10 17 10H15.75V7C15.75 4.92893 14.0711 3.25 12 3.25ZM14.25 10V7C14.25 5.75736 13.2426 4.75 12 4.75C10.7574 4.75 9.75 5.75736 9.75 7V10H14.25Z`,fill:`currentColor`})});function vo(){let{t:e}=f(`openhands`),{data:t}=Ht();return t?.confirmation_mode?(0,Z.jsx)(Qt,{closeDelay:100,content:e(I.COMMON$CONFIRMATION_MODE_ENABLED),tooltipClassName:`bg-white text-black hover:bg-transparent`,children:(0,Z.jsx)(`div`,{className:`flex items-center justify-center w-[26px] h-[26px] rounded-lg bg-[var(--oh-surface)]`,children:(0,Z.jsx)(_o,{width:15,height:15})})}):null}var yo=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{d:`M15 12C15 12.7956 14.6839 13.5587 14.1213 14.1213C13.5587 14.6839 12.7956 15 12 15C11.2044 15 10.4413 14.6839 9.87868 14.1213C9.31607 13.5587 9 12.7956 9 12C9 11.2044 9.31607 10.4413 9.87868 9.87868C10.4413 9.31607 11.2044 9 12 9C12.7956 9 13.5587 9.31607 14.1213 9.87868C14.6839 10.4413 15 11.2044 15 12Z`,fill:`currentColor`})});function bo({status:e,statusColor:t}){return(0,Z.jsx)(`div`,{"data-testid":`chat-status-indicator`,className:n(`w-full max-w-full rounded-[100px] p-1 bg-[var(--oh-surface)] flex items-center gap-1`),children:(0,Z.jsxs)(i,{mode:`wait`,children:[(0,Z.jsx)(Ze.span,{className:`flex-shrink-0 animate-[pulse_1.2s_ease-in-out_infinite]`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,Z.jsx)(yo,{className:`w-4 h-4`,color:t})},`dot-${e}`),(0,Z.jsx)(Ze.span,{initial:{opacity:0,y:-2},animate:{opacity:1,y:0},exit:{opacity:0,y:2},transition:{duration:.3},className:`pr-1.5 font-normal text-[11px] leading-[16px] normal-case break-words whitespace-normal`,children:e},`text-${e}`)]})})}var xo=()=>{let e=d(),{navigate:t}=Zt(),{t:n}=f(`openhands`),{data:r}=J(),{trackConversationCreated:i}=Bt();return _({mutationFn:async()=>{if(!r?.id)throw Error(`No active conversation`);let e=await hn.createConversation({sandboxId:r.sandbox_id??void 0});if(e.status===`ERROR`)throw Error(e.detail||`Failed to create new conversation`);return{newConversationId:e.app_conversation_id?e.app_conversation_id:`task-${e.id}`,oldConversationId:r.id,taskId:e.id}},onMutate:()=>{m.loading(n(I.CONVERSATION$CLEARING),{...k,id:`clear-conversation`})},onSuccess:r=>{i({conversationId:r.newConversationId,taskId:r.taskId,hasRepository:!1,hasWorkspace:!1,hasInitialQuery:!1,hasParentConversation:!1,entryPoint:`new_command`}),m.dismiss(`clear-conversation`),E(n(I.CONVERSATION$CLEAR_SUCCESS)),t(`/conversations/${r.newConversationId}`),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`v1-batch-get-app-conversations`]})},onError:e=>{m.dismiss(`clear-conversation`);let t=n(I.CONVERSATION$CLEAR_UNKNOWN_ERROR);e instanceof Error?t=e.message:typeof e==`string`&&(t=e),T(n(I.CONVERSATION$CLEAR_FAILED,{error:t}))}})};function So(e,t){return e?`github`:t?`replay`:`direct`}function Co(){let{trackInitialQuerySubmitted:e,trackUserMessageSent:t}=Bt(),{setMessageToSend:n,conversationMode:r,planContent:i}=U(),{errorMessage:a,errorCode:o,errorClassification:s,removeErrorMessage:c,setErrorMessage:u}=vi(),d=l(),{isTask:p,taskStatus:m,taskDetail:h}=fr(),g=p,_=pi(),{send:v}=xe(),{renderableEvents:y,allConversationEvents:b,totalEvents:x,hasSubstantiveAgentActions:S,userEventsExist:C}=Pa(),w=Y(e=>e.enqueuePendingMessage),E=Y(e=>e.markPendingMessageError),D=Y(e=>e.pendingMessages),{t:O}=f(`openhands`),k=X.useRef(null),{scrollDomToBottom:A,onChatBodyScroll:j,hitBottom:ee,autoScroll:M,setAutoScroll:N,setHitBottom:te}=Ge(k),{mutate:ne,isPending:re}=xo(),{curAgentState:P}=Jr(),{handleBuildPlanClick:F}=Re(),{data:ie}=J(),ae=ie?.sandbox_status??null,oe=Cr(),{isConfigured:se,isLoading:le}=dt(),ue=!le&&!se,de=P===L.RUNNING||P===L.LOADING;X.useEffect(()=>{if(de||r!==`plan`||!i)return;let e=e=>{(e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),F(e),A())};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[de,r,i,F,A]);let{selectedRepository:pe,replayJson:me}=eo(),{conversationId:R}=ri(),he=ii(e=>{let t=R?e.statusByConversation[R]:void 0;return t?.active?`${t.iteration}:${t.status}`:null}),{mutateAsync:ge}=go(),{isLoading:z,hasMore:_e,loadOlder:ve}=Ia(R),ye=X.useRef(null),be=X.useCallback(e=>{if(g||z||!_e)return;let t=e.scrollTop<=80,n=e.scrollHeight<=e.clientHeight+80;!t&&!n||(ye.current={scrollHeight:e.scrollHeight,scrollTop:e.scrollTop},ve().catch(e=>{ye.current=null,u(e instanceof Error&&e.message?e.message:O(I.ERROR$GENERIC))}))},[_e,z,g,ve,u,O]),Se=X.useCallback(e=>{e.deltaY<0&&e.currentTarget.scrollTop<=0&&be(e.currentTarget)},[be]),Ce=X.useMemo(()=>R?D.some(e=>gr(R,e.conversationId)):!1,[D,R]),we=li(e=>R?(e.entriesByConversation[R]?.length??0)>0:!1),Te=_r({isLoadingHistory:_?.isLoadingHistory===!0,hasUserEvents:C,hasPendingUserMessages:Ce,hasSubstantiveAgentActions:S,hasModelEntries:we}),Ee=b.length>0||Ce||!_?.isLoadingHistory,ke=!!R,Ae=!Ee&&!p,je=async(r,i,a)=>{if(r.trim()===`/new`){if(!R){T(O(I.CONVERSATION$CLEAR_NO_ID));return}if(x===0){T(O(I.CONVERSATION$CLEAR_EMPTY));return}if(re)return;ne();return}let o=[...i],s=[...a];x===0?e({entryPoint:So(pe!==null,me!==null),queryCharacterLength:r.length,replayJsonSize:me?.length}):t({sessionMessageCount:x,currentMessageLength:r.length});let c=Vr([...o,...s]);if(!c.isValid){T(`Error: ${c.errorMessage}`);return}let l=o.map(e=>cr(e)),u=await Promise.all(l),d=new Date().toISOString(),{skipped_files:f,uploaded_files:p}=s.length>0?await ge({conversationId:R,files:s}):{skipped_files:[],uploaded_files:[]};f.forEach(e=>T(e.reason));let m=`${O(I.CHAT_INTERFACE$AUGMENTED_PROMPT_FILES_TITLE)}: ${p.join(`
|
|
19
|
+
|
|
20
|
+
`)}`,h=p.length>0?`${r}\n\n${m}`:r,g=w({conversationId:R,text:r,content:h,imageUrls:u,fileUrls:p,timestamp:d});A(),n(``);try{await v(Ie(h,u,p,d))}catch(e){E(g,e instanceof Error?e.message:O(I.CHAT_INTERFACE$FAILED_TO_SEND_MESSAGE))}};X.useEffect(()=>{if(ye.current&&k.current){let{scrollHeight:e,scrollTop:t}=ye.current,n=k.current,r=n.scrollHeight-e;r>0&&(n.scrollTop=t+r),ye.current=null;return}M&&A()},[y.length,Ce,he,A]);let Me=X.useRef(be);X.useEffect(()=>{Me.current=be}),X.useEffect(()=>{let e=k.current;e&&Me.current(e)},[y.length,_e]);let Ne={scrollRef:k,autoScroll:M,setAutoScroll:N,scrollDomToBottom:A,hitBottom:ee,setHitBottom:te,onChatBodyScroll:j},Pe=P===L.LOADING||P===L.INIT,Fe=P===L.STOPPED,Le=P===L.PAUSED,ze=fe({isPausing:Le,isTask:p,taskStatus:m,isStartingStatus:Pe,isStopStatus:Fe,curAgentState:P}),Be=ce({isPausing:Le,isTask:p,taskStatus:m,taskDetail:h,isStartingStatus:Pe,isStopStatus:Fe,curAgentState:P,errorMessage:a,t:O});return(0,Z.jsx)(De,{value:Ne,children:(0,Z.jsxs)(`div`,{className:`relative flex h-full flex-col justify-between px-4`,"data-testid":`chat-interface`,children:[!S&&!Ce&&!C&&!we&&!Ae&&!g&&x===0&&!oe&&!ue&&(0,Z.jsx)(Qa,{onSuggestionsClick:e=>n(e)}),(0,Z.jsxs)(`div`,{ref:k,"data-testid":`chat-scroll-container`,onScroll:e=>{j(e.currentTarget),be(e.currentTarget)},onWheel:Se,className:`custom-scrollbar-always flex min-h-0 grow flex-col gap-2 overflow-x-hidden overflow-y-auto px-0 pt-4 pb-8 md:px-4`,children:[Ae&&ke&&(0,Z.jsx)(ao,{}),Ae&&!ke&&(0,Z.jsx)(`div`,{className:`flex justify-center`,"data-testid":`loading-spinner`,children:(0,Z.jsx)(zt,{size:`small`})}),z&&(0,Z.jsxs)(`div`,{className:`flex items-center justify-center gap-2 py-3 text-sm text-neutral-400`,"data-testid":`loading-older-events`,children:[(0,Z.jsx)(zt,{size:`small`}),(0,Z.jsx)(`span`,{children:O(I.CHAT_INTERFACE$FETCHING_OLDER_MESSAGES)})]}),(0,Z.jsx)(Oe,{conversationId:R,anchorEventId:null}),Ee&&y.length>0&&(0,Z.jsx)(He,{messages:y,allEvents:b}),(0,Z.jsx)(ho,{}),(0,Z.jsx)(ca,{conversationId:R})]}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-[6px] pb-4`,children:[(0,Z.jsx)(mo,{conversationId:R}),(0,Z.jsx)(sa,{conversationId:R}),a&&(0,Z.jsx)(so,{message:a,code:o,classification:s,onDismiss:c,onRetry:a===`Unable to connect to server`?()=>_?.reconnect():void 0,onReauth:na(o)?()=>d(`/settings/agents`):void 0}),ue&&!oe&&(0,Z.jsx)(Ir,{}),oe?(0,Z.jsxs)(`div`,{"data-testid":`archived-conversation-banner`,className:`mx-1 px-4 py-3 rounded-lg bg-[var(--oh-surface)] border border-[var(--oh-border-subtle)]`,children:[(0,Z.jsx)(`p`,{className:`text-xs font-semibold text-[var(--oh-foreground)]`,children:O(ae===`ERROR`?I.CHAT_INTERFACE$ERROR_SANDBOX_TITLE:I.CHAT_INTERFACE$ARCHIVED_SANDBOX_TITLE)}),(0,Z.jsx)(`p`,{className:`text-xs text-[var(--oh-muted)] mt-0.5`,children:O(ae===`ERROR`?I.CHAT_INTERFACE$ERROR_SANDBOX_DESCRIPTION:I.CHAT_INTERFACE$ARCHIVED_SANDBOX_DESCRIPTION)})]}):(0,Z.jsxs)(`div`,{className:`relative`,children:[(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-full mb-1 z-20`,children:(0,Z.jsxs)(`div`,{className:`flex justify-between relative`,children:[(0,Z.jsxs)(`div`,{className:`flex items-end gap-1 pointer-events-auto`,children:[(0,Z.jsx)(vo,{}),Pe&&(0,Z.jsx)(bo,{statusColor:ze,status:Be})]}),ee?P===L.RUNNING&&(0,Z.jsx)(`div`,{className:`pointer-events-none absolute inset-x-9 bottom-0 flex justify-center`,children:(0,Z.jsx)(Ha,{events:b})}):(0,Z.jsx)(`div`,{className:`absolute left-1/2 transform -translate-x-1/2 bottom-0 pointer-events-auto`,children:(0,Z.jsx)(no,{onClick:A})})]})}),(0,Z.jsx)(Na,{onSubmit:je,disabled:re||ue,hasStartedConversation:Te})]})]})]})})}function wo(e){return e?e.replace(/\/+$/,``).split(`/`).pop()||e:null}function To(){let{conversationId:e}=q(),{data:t}=J();return{workspaceName:wo((e?fn(e):null)?.selected_workspace??t?.selected_workspace??null)}}function Eo(){let{data:e}=J(),{repositoryInfo:t}=fr(),{data:n}=Oa(),r=e?.selected_repository||t?.selectedRepository,i=e?.git_provider||t?.gitProvider,a=e?.selected_branch||t?.selectedBranch,o=r||n?.repository||null,s=i||n?.provider||null;return{repository:o,provider:s,branch:a||n?.branch||null,isConnected:!!(o&&s)}}function Do(e){return e.startsWith(`/`)?e:`/${e}`}async function Oo(e,t,n,r){let i=O().backend;if(i.kind===`cloud`&&e){let a=new URLSearchParams({...r,path:Do(r.path)});return Rt({backend:i,method:`GET`,hostOverride:j(e),path:`${n}?${a.toString()}`,authMode:`session-api-key`,sessionApiKey:t??void 0})}return(await new Lt(S({conversationUrl:e,sessionApiKey:t})).client.get(n,{params:r})).data}function ko(e){return D(e,404)||g(e)&&e.response?.status===404}var Ao=class{static async getGitChanges(e,t,n,r){let i=O().backend;if(i.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Do(r));let n=await Rt({backend:i,method:`GET`,path:`/api/v1/app-conversations/${e}/git/changes?${t.toString()}`});if(!Array.isArray(n))throw Error(`Invalid response from runtime - runtime may be unavailable`);return n.map(e=>({status:Hn(String(e.status)),path:e.path}))}let a=await new Lt(S({conversationUrl:t,sessionApiKey:n})).gitChanges(r);if(!Array.isArray(a))throw Error(`Invalid response from runtime - runtime may be unavailable`);return a.map(e=>({status:Hn(String(e.status)),path:e.path}))}static async getGitCommits(e,t,n,r=50){try{let i=await Oo(e,t,`/api/git/commits`,{path:n,limit:String(r)});return{commits:(i?.commits??[]).map(e=>({sha:e.sha,shortSha:e.short_sha,subject:e.subject,author:e.author,timestamp:e.timestamp})),hasMore:!!i?.has_more}}catch(e){if(ko(e))return null;throw e}}static async getCommitChanges(e,t,n,r){let i=await Oo(e,t,`/api/git/commits/${encodeURIComponent(r)}/changes`,{path:n});if(!Array.isArray(i))throw Error(`Invalid response from runtime - runtime may be unavailable`);return i.map(e=>({status:Hn(String(e.status)),path:e.path}))}static async getGitChangeDiff(e,t,n,r,i){if(i){let e=await Oo(t,n,`/api/git/diff`,{path:r,commit:i});return{modified:e?.modified??``,original:e?.original??``,...e?.diff?{diff:e.diff}:{}}}let a=O().backend;if(a.kind===`cloud`&&e){let t=new URLSearchParams;t.set(`path`,Do(r));let n=await Rt({backend:a,method:`GET`,path:`/api/v1/app-conversations/${e}/git/diff?${t.toString()}`});return{modified:n?.modified??``,original:n?.original??``,...n?.diff?{diff:n.diff}:{}}}let o=await new Lt(S({conversationUrl:t,sessionApiKey:n})).gitDiff(r);return{modified:o.modified??``,original:o.original??``,...o.diff?{diff:o.diff}:{}}}},jo=()=>{let{conversationId:e}=q(),{data:t}=J(),[n,r]=X.useState([]),i=X.useRef(null),a=Ti(),o=t?.conversation_url,s=t?.session_api_key,c=t?.selected_repository,l=t?.workspace?.working_dir?.trim(),u=X.useMemo(()=>Ei(c,l),[c,l]),d=y({queryKey:[`file_changes`,e,o,s,u],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Ao.getGitChanges(e,o,s,u)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:a&&!!e,meta:{disableToast:!0}});return X.useEffect(()=>{if(!d.isFetching&&d.isSuccess&&d.data){let e=d.data;if(e!==i.current)if(i.current=e,Array.isArray(e)){let t=new Set(e.map(e=>e.path)),i=new Set(n.map(e=>e.path)),a=e.filter(e=>!i.has(e.path)),o=n.filter(e=>t.has(e.path));r([...a,...o])}else r([e])}},[d.isFetching,d.isSuccess,d.data]),{data:n,isLoading:d.isLoading,isFetching:d.isFetching,isSuccess:d.isSuccess,isError:d.isError,error:d.error,refetch:d.refetch}};function Mo(e){let t=0,n=0;for(let r of e.split(`
|
|
21
|
+
`))r.startsWith(`+++`)||r.startsWith(`---`)||r.startsWith(`@@`)||(r.startsWith(`+`)?t+=1:r.startsWith(`-`)&&(n+=1));return{additions:t,deletions:n}}function No(e,t){let n=e.length===0?[]:e.split(`
|
|
22
|
+
`),r=t.length===0?[]:t.split(`
|
|
23
|
+
`);if(n.length===0)return{additions:r.length,deletions:0};if(r.length===0)return{additions:0,deletions:n.length};let i=0,a=0,o=0,s=0;for(;o<n.length||s<r.length;){let e=n[o],t=r[s];if(o<n.length&&s<r.length&&e===t){o+=1,s+=1;continue}if(s<r.length&&(o>=n.length||!n.slice(o).includes(t))){i+=1,s+=1;continue}o<n.length&&(a+=1,o+=1)}return{additions:i,deletions:a}}function Po(e){return typeof e.diff==`string`&&e.diff.length>0?Mo(e.diff):No(e.original??``,e.modified??``)}function Fo(e){return e.reduce((e,t)=>({additions:e.additions+t.additions,deletions:e.deletions+t.deletions}),{additions:0,deletions:0})}function Io(){let{conversationId:e}=q(),{data:t}=J(),n=Ti(),{data:r,isLoading:i,isSuccess:a,isError:o}=jo(),s=t?.conversation_url,c=t?.session_api_key,l=(0,X.useMemo)(()=>Ei(t?.selected_repository,t?.workspace?.working_dir?.trim()),[t?.selected_repository,t?.workspace?.working_dir]),u=v({queries:(0,X.useMemo)(()=>(r??[]).filter(e=>e.status!==`D`),[r]).map(t=>({queryKey:[`conversation_overview_file_diff`,e,s,c,l,t.path],queryFn:async()=>Ao.getGitChangeDiff(e,s,c,`${l}/${t.path}`),enabled:n&&!!e&&a&&!!t.path,staleTime:1e3*60*5,meta:{disableToast:!0}}))}),d=u.some(e=>e.isLoading),f=Fo(u.flatMap(e=>e.data?[Po(e.data)]:[]));return{additions:f.additions,deletions:f.deletions,changeCount:r?.length??0,isLoading:i||d,isError:o}}var Lo=(0,X.createContext)(null);function Ro({children:e}){let[t,n]=(0,X.useState)(null),[r,i]=(0,X.useState)(!1),[a,o]=(0,X.useState)(0),s=(0,X.useCallback)((e,t)=>{n(e),i(!!t?.openAdd),o(0)},[]),c=(0,X.useCallback)(()=>{n(null),i(!1),o(0)},[]),l=(0,X.useCallback)(()=>{o(e=>e+1)},[]),u=(0,X.useMemo)(()=>({section:t,openAdd:r,addRequestKey:a,openSection:s,closeDrawer:c,requestAdd:l}),[a,c,r,s,l,t]);return(0,Z.jsx)(Lo.Provider,{value:u,children:e})}function zo(){let e=(0,X.useContext)(Lo);if(!e)throw Error(`useConversationOverviewDrawer must be used within ConversationOverviewDrawerProvider`);return e}function Bo(){return(0,X.useContext)(Lo)}var Vo=e(r(),1),Ho=`!w-auto whitespace-nowrap`;function Uo({anchorRef:e,onClose:t,gitProvider:n,testIdPrefix:r=`conversation-git-actions`}){let{t:i}=f(`openhands`),a=Pn(t),o=U(e=>e.setMessageToSend),[s,c]=(0,X.useState)();return(0,X.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let n=()=>{let e=t.getBoundingClientRect();c({position:`fixed`,top:e.bottom+4,right:window.innerWidth-e.right,zIndex:50})};return n(),window.addEventListener(`resize`,n),window.addEventListener(`scroll`,n,!0),()=>{window.removeEventListener(`resize`,n),window.removeEventListener(`scroll`,n,!0)}},[e]),s?Vo.createPortal((0,Z.jsxs)(It,{ref:a,testId:`${r}-menu`,theme:`popover`,style:s,className:`w-max min-w-[8rem]`,children:[(0,Z.jsx)(B,{testId:`${r}-commit`,onClick:()=>{o(de()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(pt,{className:`size-4`,"aria-hidden":!0}),text:i(I.DIFF_VIEWER$COMMITS)})}),(0,Z.jsx)(B,{testId:`${r}-pull`,onClick:()=>{o(oe()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(xr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$PULL)})}),(0,Z.jsx)(B,{testId:`${r}-push`,onClick:()=>{o(se(n)),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(dr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$PUSH)})}),(0,Z.jsx)(B,{testId:`${r}-create-pr`,onClick:()=>{o(ge(n)),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(Rr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$CREATE_PR)})}),(0,Z.jsx)(B,{testId:`${r}-create-new-branch`,onClick:()=>{o(me()),t()},className:Ho,children:(0,Z.jsx)(ur,{icon:(0,Z.jsx)(sr,{width:16,height:16,"aria-hidden":!0}),text:i(I.COMMON$CREATE_NEW_BRANCH)})})]}),document.body):null}var Wo=z(`flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer border-0 bg-transparent text-left`),Go=`size-4 shrink-0 text-[var(--oh-muted)]`,Ko=`conversation-overview-diffs-git-action`,qo=z(Ko,`absolute inset-0 inline-flex items-center justify-center`,`rounded-md text-[var(--oh-muted)] transition-opacity`,`hover:bg-white/10 hover:text-[var(--oh-foreground)]`),Jo=z(`flex items-center rounded-md transition-colors`,`hover:bg-white/5`,`has-[.${Ko}:hover]:bg-transparent`),Yo=z(`pointer-events-none invisible opacity-0`,`group-hover/diffstats:pointer-events-auto group-hover/diffstats:visible group-hover/diffstats:opacity-100`,`group-focus-within/diffstats:pointer-events-auto group-focus-within/diffstats:visible group-focus-within/diffstats:opacity-100`);function Xo(){let{t:e}=f(`openhands`),{navigateToChanges:t}=hi(),n=Bo(),{data:r}=J(),{additions:i,deletions:a,isLoading:o}=Io(),s=r?.git_provider??`github`,[c,l]=(0,X.useState)(!1),u=(0,X.useRef)(null);return(0,X.useEffect)(()=>{if(!c)return;let e=e=>{e.key===`Escape`&&l(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[c]),(0,Z.jsxs)(`li`,{className:Jo,children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-diffs`,"aria-label":e(I.CONVERSATION$OVERVIEW_OPEN_CHANGES),onClick:()=>{n?.closeDrawer(),t()},className:Wo,children:[(0,Z.jsx)(ht,{className:Go,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.COMMON$CHANGES)})]}),(0,Z.jsx)(`div`,{className:`group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center`,children:o?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`span`,{className:z(`flex items-center gap-1.5 text-sm tabular-nums transition-opacity`,c?`opacity-0`:`group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0`),children:[(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-diffs-additions`,style:{color:ie},children:e(I.CONVERSATION$OVERVIEW_DIFF_ADDITIONS,{count:i.toLocaleString()})}),(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-diffs-deletions`,style:{color:ne},children:e(I.CONVERSATION$OVERVIEW_DIFF_DELETIONS,{count:a.toLocaleString()})})]}),(0,Z.jsx)(`button`,{ref:u,type:`button`,"data-testid":`conversation-overview-diffs-git-action`,"aria-label":e(I.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),"aria-expanded":c,"aria-haspopup":`menu`,onClick:e=>{e.stopPropagation(),l(e=>!e)},className:z(qo,!c&&Yo,c&&`pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]`),children:(0,Z.jsx)(pt,{className:`size-4`,"aria-hidden":!0})}),c?(0,Z.jsx)(Uo,{anchorRef:u,gitProvider:s,testIdPrefix:`conversation-overview-diffs-git`,onClose:()=>l(!1)}):null]})})]})}var Zo=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.13832 8.76476C8.25957 8.17949 9.52697 7.9727 10.7515 8.14436L14.9025 2.52826L21.4717 9.09737L15.8555 13.2484C16.0272 14.4729 15.8204 15.7403 15.2351 16.8616C15.1872 16.9535 15.1366 17.0444 15.0836 17.1343C14.8318 17.5605 14.5228 17.9624 14.1566 18.3286L10.4443 14.6163L4.75207 20.3085H3.69141V19.2478L9.38361 13.5556L5.6713 9.84332C6.03755 9.47708 6.43936 9.16808 6.86562 8.91632C6.95547 8.86326 7.04641 8.81274 7.13832 8.76476ZM15.0735 4.82054L19.1794 8.92641L14.2461 12.5727L14.3701 13.4567C14.492 14.3266 14.3596 15.2233 13.9758 16.0265L7.97338 10.0241C8.77665 9.64035 9.67335 9.50789 10.5432 9.62984L11.4272 9.75376L15.0735 4.82054Z`,fill:`currentColor`})}),Qo=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{d:`M10.9706 10.1586C10.2819 10.0621 9.56905 10.1784 8.93842 10.5075C8.88672 10.5345 8.83557 10.5629 8.78504 10.5928C8.54529 10.7344 8.3193 10.9082 8.11331 11.1142L9.83702 12.8372L7.00054 15.75L7 17H8.25064L11.1628 14.1632L12.8857 15.8865C13.0917 15.6805 13.2655 15.4545 13.4071 15.2147C13.437 15.1642 13.4654 15.1131 13.4924 15.0614C13.8215 14.4308 13.9378 13.718 13.8413 13.0293L17 10.6946L13.3053 7L10.9706 10.1586Z`,fill:`currentColor`})}),Q={automations:`automations`,skills:`skills`,mcp:`mcp`,secrets:`secrets`,pull_requests:`pull_requests`,issues:`issues`},$o={[W.workspace]:{section:W.workspace,icon:_t,i18nKey:I.CONVERSATION$OVERVIEW_WORKSPACE}},es=[{part:H.changes,icon:ht,i18nKey:I.COMMON$CHANGES,opensChanges:!0},{part:H.repository,icon:Ye,i18nKey:I.CONVERSATION$REPOSITORY},{part:H.branch,icon:st,i18nKey:I.CONVERSATION$BRANCH},{part:H.commits,icon:pt,i18nKey:I.DIFF_VIEWER$COMMITS,opensCommits:!0},{part:H.pull_requests,icon:Rr,i18nKey:I.CONVERSATION$OVERVIEW_PULL_REQUESTS,drawerSection:Q.pull_requests}];function ts({testId:e,pinned:t,pinnedLabel:n,unpinnedLabel:r,onClick:i}){return(0,Z.jsx)(`button`,{type:`button`,"data-testid":e,className:z(`flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white`,$t,`hover:bg-white/10`),"aria-pressed":t,"aria-label":t?n:r,onClick:i,children:(0,Z.jsx)(`span`,{className:z(`ml-auto overflow-hidden`,en),"aria-hidden":!0,children:t?(0,Z.jsx)(Qo,{className:`size-4`,width:16,height:16}):(0,Z.jsx)(Zo,{className:`size-4`,width:16,height:16})})})}function ns({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Pn(t,n),[a,o]=(0,X.useState)(),{t:s}=f(`openhands`),{conversationId:c}=q(),{state:l,setUnpinnedOverviewSections:u,setUnpinnedOverviewGitParts:d}=rn(c),{navigateToChanges:p,navigateToCommits:m}=hi(),h=Bo();(0,X.useLayoutEffect)(()=>{if(!e||!r?.current){o(void 0);return}let t=()=>{let e=r.current?.getBoundingClientRect();e&&o({position:`fixed`,zIndex:9999,top:e.bottom+8,right:window.innerWidth-e.right})};return t(),window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,!0)}},[e,r]);let g=e=>{if(e.opensChanges){h?.closeDrawer(),p(),t();return}if(e.opensCommits){h?.closeDrawer(),m(),t();return}e.drawerSection&&(h?.openSection(e.drawerSection),t())},_=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=l.unpinnedOverviewSections??[];if(n.includes(e)){u?.(n.filter(t=>t!==e));return}u?.([...n,e])},v=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=l.unpinnedOverviewGitParts??[];if(n.includes(e)){d?.(n.filter(t=>t!==e));return}d?.([...n,e])};if(!e)return null;let y=!!(r?.current&&a),b=ln(W.git,l.unpinnedOverviewSections??[]),x=s(I.CONVERSATION$UNPIN_OVERVIEW_SECTION),S=s(I.CONVERSATION$PIN_OVERVIEW_SECTION),C=({key:e,testIdOpen:t,testIdPin:n,icon:r,label:i,pinned:a,isActionable:o,indent:s=!1,onOpen:c,onPinToggle:l})=>{let u=(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`span`,{className:en,"aria-hidden":!0,children:(0,Z.jsx)(r,{className:`h-4 w-4`})}),(0,Z.jsx)(`span`,{className:`text-sm`,children:i})]});return(0,Z.jsx)(`li`,{className:`list-none`,children:(0,Z.jsxs)(`div`,{className:z(`group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]`,s&&`pl-4`),children:[o?(0,Z.jsx)(`button`,{type:`button`,"data-testid":t,className:z(`flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white`,$t),onClick:c,children:u}):(0,Z.jsx)(`div`,{"data-testid":t,className:z(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,$t),children:u}),(0,Z.jsx)(ts,{testId:n,pinned:a,pinnedLabel:x,unpinnedLabel:S,onClick:l})]})},e)},w=e=>{if(e===W.git)return null;let t=$o[e];return C({key:e,testIdOpen:`conversation-overview-menu-open-${e}`,testIdPin:`conversation-overview-menu-pin-${e}`,icon:t.icon,label:s(t.i18nKey),pinned:ln(e,l.unpinnedOverviewSections??[]),isActionable:!1,onPinToggle:t=>_(e,t)})},T=(0,Z.jsxs)(It,{ref:i,testId:`conversation-overview-context-menu`,theme:y?`popover`:`default`,position:y?`none`:`bottom`,alignment:y?`none`:`right`,spacing:y?`none`:`default`,className:z(`z-[9999] w-fit`,y?`mt-0`:`mt-2`),children:[an.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(ut,{testId:`conversation-overview-menu-divider-${t}`,inset:`menu`}):null,e.sections.map(e=>w(e))]},e.sections.join(`-`))),(0,Z.jsx)(ut,{testId:`conversation-overview-menu-divider-git`,inset:`menu`}),C({key:W.git,testIdOpen:`conversation-overview-menu-open-${W.git}`,testIdPin:`conversation-overview-menu-pin-${W.git}`,icon:st,label:s(I.CONVERSATION$OVERVIEW_GIT),pinned:b,isActionable:!1,onPinToggle:e=>_(W.git,e)}),es.map(e=>C({key:e.part,testIdOpen:`conversation-overview-menu-open-git-${e.part}`,testIdPin:`conversation-overview-menu-pin-git-${e.part}`,icon:e.icon,label:s(e.i18nKey),pinned:on(e.part,l.unpinnedOverviewGitParts??[]),isActionable:!!(e.drawerSection||e.opensCommits||e.opensChanges),indent:!0,onOpen:()=>g(e),onPinToggle:t=>v(e.part,t)}))]});return y&&a&&typeof document<`u`?Vo.createPortal((0,Z.jsx)(`div`,{style:a,children:T}),document.body):T}var rs={github:[`GITHUB_TOKEN`,`GH_TOKEN`,`github`],gitlab:[`GITLAB_TOKEN`,`GL_TOKEN`,`gitlab`],bitbucket:[`BITBUCKET_TOKEN`,`bitbucket`],forgejo:[`FORGEJO_TOKEN`,`forgejo`]},is=30;async function as(e){if(O().backend.kind!==`local`)return null;let t=rs[e]??[];if(t.length===0)return null;let n=await $n.getSecrets(),r=new Set(n.map(e=>e.name)),i=t.find(e=>r.has(e));if(!i)return null;try{return await new h(S()).getSecret(i)}catch{return null}}function os(e,t,n){let r=_e(t);switch(t){case`gitlab`:return`${r}/${n}/-/issues/${e}`;case`bitbucket`:return`${r}/${n}/issues/${e}`;case`forgejo`:return`${r}/${n}/issues/${e}`;default:return`${r}/${n}/issues/${e}`}}function ss(e,t){let n=_e(e);switch(e){case`gitlab`:return`${n}/${t}/-/issues`;case`bitbucket`:return`${n}/${t}/issues`;case`forgejo`:return`${n}/${t}/issues`;default:return`${n}/${t}/issues`}}function cs(e,t){let n=_e(e);switch(e){case`gitlab`:return`${n}/${t}/-/merge_requests`;case`bitbucket`:return`${n}/${t}/pull-requests`;case`forgejo`:return`${n}/${t}/pulls`;default:return`${n}/${t}/pulls`}}async function ls(e,t){let n={Accept:`application/vnd.github+json`,"X-GitHub-Api-Version":`2022-11-28`};t&&(n.Authorization=`Bearer ${t}`);let r=await fetch(`https://api.github.com${e}`,{headers:n});if(!r.ok)throw Error(`GitHub API ${r.status}`);return r.json()}async function us(e,t){let n={Accept:`application/json`};t&&(n[`PRIVATE-TOKEN`]=t);let r=await fetch(`https://gitlab.com/api/v4${e}`,{headers:n});if(!r.ok)throw Error(`GitLab API ${r.status}`);return r.json()}var ds=class{static constructIssuesListUrl=ss;static constructPullRequestsListUrl=cs;static async listPullRequests(e,t){let n=await as(t);if(t===`gitlab`)return(await us(`/projects/${encodeURIComponent(e)}/merge_requests?state=opened&per_page=${is}`,n)).map(e=>({id:e.id,number:e.iid,title:e.title,url:e.web_url,authorLogin:e.author?.username??null,updatedAt:e.updated_at??null}));if(t!==`github`&&t!==`forgejo`)return[];let[r,i]=e.split(`/`);return!r||!i?[]:(await ls(`/repos/${r}/${i}/pulls?state=open&per_page=${is}`,n)).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||he(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}static async listIssues(e,t){let n=await as(t);if(t===`gitlab`)return(await us(`/projects/${encodeURIComponent(e)}/issues?state=opened&per_page=${is}`,n)).map(e=>({id:e.id,number:e.iid,title:e.title,url:e.web_url,authorLogin:e.author?.username??null,updatedAt:e.updated_at??null}));if(t!==`github`&&t!==`forgejo`)return[];let[r,i]=e.split(`/`);return!r||!i?[]:(await ls(`/repos/${r}/${i}/issues?state=open&per_page=${is}`,n)).filter(e=>!e.pull_request).map(n=>({id:n.id,number:n.number,title:n.title,url:n.html_url||os(n.number,t,e),authorLogin:n.user?.login??null,updatedAt:n.updated_at??null}))}};function fs(e,t){return y({queryKey:[`repository-pull-requests`,t,e],queryFn:()=>ds.listPullRequests(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}function ps(e,t){return y({queryKey:[`repository-issues`,t,e],queryFn:()=>ds.listIssues(e,t),enabled:!!(e&&t),staleTime:6e4,meta:{disableToast:!0}})}var ms=()=>{let{conversationId:e}=q(),{data:t}=J(),n=Ti(),r=t?.conversation_url,i=t?.session_api_key,a=t?.selected_repository,o=t?.workspace?.working_dir?.trim(),s=X.useMemo(()=>Ei(a,o),[a,o]),c=y({queryKey:[`git_commits`,e,r,i,s],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return Ao.getGitCommits(r,i,s,50)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:n&&!!e,meta:{disableToast:!0}});return{commits:c.data?.commits??[],hasMore:c.data?.hasMore??!1,isUnsupported:c.data===null,isLoading:c.isLoading,isFetching:c.isFetching,isSuccess:c.isSuccess,isError:c.isError}},hs=`size-4 shrink-0 text-[var(--oh-muted)]`,gs=z(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`),_s=`-`;function vs(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{state:n}=rn(t),{navigateToCommits:r}=hi(),i=Bo(),{data:a}=Ht(),{repository:o,provider:s,branch:c,isConnected:l}=Eo(),u=on(H.repository,n.unpinnedOverviewGitParts??[]),d=on(H.branch,n.unpinnedOverviewGitParts??[]),p=on(H.commits,n.unpinnedOverviewGitParts??[]),m=on(H.pull_requests,n.unpinnedOverviewGitParts??[]),h=fs(m?o:null,m?s:null),g=ms();if(!l||!o||!s||!u&&!d&&!p&&!m)return null;let _=a?.provider_tokens_set?.[s]??null,v=le(s,o,_),y=c?pe(s,o,c,_):null,b=h.data?.length??null,x=g.isUnsupported?null:g.commits.length,S=x!==null&&x>0?g.hasMore?`${x}+`:String(x):_s,C=()=>{i?.openSection(Q.pull_requests)},w=()=>{i?.closeDrawer(),r()},T=u||d,E=p||m;return(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-section`,children:[T?(0,Z.jsxs)(`div`,{className:`px-2 pb-1`,children:[u?(0,Z.jsxs)(`a`,{href:v,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-git-repo`,className:z(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(ct,{gitProvider:s,className:hs}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:o}),(0,Z.jsx)(rt,{className:gs,"aria-hidden":!0})]}):null,d?c&&y?(0,Z.jsxs)(`a`,{href:y,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-git-branch`,className:z(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(In,{size:14,className:`shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:c}),(0,Z.jsx)(rt,{className:gs,"aria-hidden":!0})]}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-branch`,className:`flex min-w-0 items-center gap-2 px-2 py-1.5`,children:[(0,Z.jsx)(st,{className:`size-3.5 shrink-0 text-[var(--oh-muted)]`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:z(`text-sm`,c?`text-[var(--oh-foreground)]`:`text-[var(--oh-muted)]`),children:c||e(I.CONVERSATION$OVERVIEW_NONE)})]}):null]}):null,E?(0,Z.jsxs)(`ul`,{className:`px-2`,children:[p?(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-commits`,onClick:w,className:z(`flex w-full min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer bg-transparent text-left transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(pt,{className:hs,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.DIFF_VIEWER$COMMITS)}),g.isLoading?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-commits-count`,className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:S})]})}):null,m?(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-pull-requests`,onClick:C,className:z(`flex w-full min-w-0 items-center gap-2 rounded-md px-2 py-1.5`,`cursor-pointer bg-transparent text-left transition-colors hover:bg-white/5`),children:[(0,Z.jsx)(Rr,{className:hs,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(I.CONVERSATION$OVERVIEW_PULL_REQUESTS)}),h.isLoading?(0,Z.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,Z.jsx)(`span`,{"data-testid":`conversation-overview-pull-requests-count`,className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:b!==null&&b>0?b:_s})]})}):null]}):null]})}var ys=z(`w-full max-w-[240px] rounded-xl border border-[var(--oh-border)]`,`bg-[var(--oh-surface)] pb-1`),bs=z(`flex items-center gap-2 rounded-md px-2 py-1.5`,`transition-colors hover:bg-white/5`),xs=`size-4 shrink-0 text-[var(--oh-muted)]`;function Ss({icon:e,label:t,value:n,testId:r}){return(0,Z.jsxs)(`li`,{"data-testid":r,className:bs,children:[e,(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:t}),(0,Z.jsx)(`span`,{className:`max-w-[45%] shrink-0 truncate text-right text-sm text-[var(--oh-muted)]`,children:n})]})}function Cs(){return(0,Z.jsx)(`div`,{className:`px-1`,children:(0,Z.jsx)(ut,{inset:`menu`})})}function ws(){let{t:e}=f(`openhands`),t=To(),{conversationId:n}=q(),{state:r}=rn(n),{isConnected:i}=Eo(),[a,o]=(0,X.useState)(!1),s=(0,X.useRef)(null),c=e=>ln(e,r.unpinnedOverviewSections??[]),l=on(H.changes,r.unpinnedOverviewGitParts??[]),u=c(W.git)&&(l||i),d=an.flatMap(e=>e.sections.filter(e=>c(e))),p=[];u&&p.push({kind:`git`,key:`git`}),d.length>0&&p.push({kind:`sections`,key:d.join(`-`),sections:d});let m=n=>{switch(n){case W.workspace:return(0,Z.jsx)(Ss,{testId:`conversation-overview-workspace`,icon:(0,Z.jsx)(_t,{className:xs}),label:e(I.CONVERSATION$OVERVIEW_WORKSPACE),value:t.workspaceName??e(I.CONVERSATION$OVERVIEW_NONE)},n);case W.git:return null;default:return n}};return(0,Z.jsxs)(`aside`,{"data-testid":`conversation-overview-panel`,"aria-label":e(I.CONVERSATION$OVERVIEW),className:ys,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between px-4 pb-0.5 pt-2.5`,children:[(0,Z.jsx)(`span`,{className:`text-xs font-medium text-[var(--oh-muted)]`,children:e(I.CONVERSATION$OVERVIEW)}),(0,Z.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,Z.jsx)(Rn,{ref:s,testId:`conversation-overview-ellipsis`,onClick:()=>o(e=>!e),ariaLabel:e(I.COMMON$MORE_OPTIONS)}),(0,Z.jsx)(ns,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:s,anchorRef:s})]})]}),p.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[t>0?(0,Z.jsx)(Cs,{}):null,e.kind===`git`?(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-git-block`,children:[l?(0,Z.jsx)(`ul`,{className:`px-2`,children:(0,Z.jsx)(Xo,{})}):null,i?(0,Z.jsx)(vs,{}):null]}):(0,Z.jsx)(`ul`,{className:`px-2`,children:e.sections.map(e=>m(e))})]},e.key))]})}var Ts={duration:.2,ease:`easeInOut`};function Es(e){return e>=596}var Ds=typeof window<`u`?X.useLayoutEffect:X.useEffect;function Os(e,t){let[n,r]=(0,X.useState)(!1);return Ds(()=>{if(!t){r(!1);return}let n=e.current;if(!n)return;let i=()=>{r(Es(n.clientWidth))};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[e,t]),n}var ks=`w-full min-w-0 max-w-[800px] h-full flex flex-col min-h-0`;function As({isRightPanelShown:e}){let t=Oi(),n=!Te()&&!0,r=U(e=>e.isOverviewPanelShown),a=(0,X.useRef)(null),o=!t&&r,s=Os(a,o);return(0,Z.jsxs)(`div`,{ref:a,className:`flex h-full min-h-0 w-full overflow-hidden`,children:[(0,Z.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 justify-center overflow-hidden`,children:(0,Z.jsx)(`div`,{className:ks,children:(0,Z.jsx)(Co,{})})}),(0,Z.jsx)(i,{children:o&&s?(0,Z.jsx)(Ze.div,{"data-testid":`conversation-overview-column`,initial:n?{width:0,opacity:0}:!1,animate:{width:268,opacity:1},exit:n?{width:0,opacity:0}:{opacity:0},transition:Ts,className:`flex shrink-0 flex-col items-start overflow-hidden pt-4 pl-3 pr-4`,children:(0,Z.jsx)(`div`,{className:`w-full shrink-0`,style:{width:268},children:(0,Z.jsx)(ws,{})})},`conversation-overview-column`):null})]})}function js({children:e}){return(0,Z.jsx)(`div`,{className:`absolute inset-0`,children:e})}function Ms({children:e}){return(0,Z.jsx)(`div`,{className:`flex flex-col h-full w-full`,children:e})}function Ns({children:e}){return(0,Z.jsx)(`div`,{className:`overflow-hidden flex-grow h-full w-full relative`,children:e})}function Ps({className:e}){let{t}=f(`openhands`);return(0,Z.jsxs)(`div`,{className:z(`bg-[var(--oh-surface)] flex h-full w-full flex-col items-center justify-center gap-3`,e),children:[(0,Z.jsx)(St,{className:`h-8 w-8 shrink-0 animate-spin text-tertiary-light`,"aria-hidden":!0}),(0,Z.jsx)(Be,{as:`p`,role:`status`,"aria-live":`polite`,className:`block w-full text-center text-base font-normal leading-5`,duration:1,spread:2,children:t(I.HOME$LOADING)})]})}function Fs({children:e,onReady:t}){return(0,X.useLayoutEffect)(()=>{t()},[t]),e}function Is({onPending:e}){return(0,X.useLayoutEffect)(()=>{e()},[e]),(0,Z.jsx)(Ps,{})}var Ls={duration:.35,ease:`easeInOut`};function Rs({showAgentLoading:e,tabKey:t,children:n}){let r=Te(),[a,o]=(0,X.useState)(!1);(0,X.useLayoutEffect)(()=>{o(!1)},[t]);let s=(0,X.useCallback)(()=>{o(!0)},[]),c=(0,X.useCallback)(()=>{o(!1)},[]),l=e||a;return r?(0,Z.jsx)(`div`,{className:`relative h-full w-full overflow-hidden`,children:l?(0,Z.jsx)(Ps,{}):(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(Is,{onPending:s}),children:(0,Z.jsx)(Fs,{onReady:c,children:n})})}):(0,Z.jsxs)(`div`,{className:`relative h-full w-full overflow-hidden`,children:[(0,Z.jsx)(Ze.div,{className:`absolute inset-0 h-full w-full`,initial:!1,animate:{opacity:+!l},transition:Ls,"aria-hidden":l,children:(0,Z.jsx)(X.Suspense,{fallback:(0,Z.jsx)(Is,{onPending:s}),children:(0,Z.jsx)(Fs,{onReady:c,children:n})})}),(0,Z.jsx)(i,{children:l?(0,Z.jsx)(Ze.div,{className:`absolute inset-0 z-10 h-full w-full`,initial:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:Ls,children:(0,Z.jsx)(Ps,{})},`conversation-tab-loading-overlay`):null})]})}var zs=(0,X.lazy)(()=>a(()=>import(`./files-tab-CL3J9b3p.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64]))),Bs=(0,X.lazy)(()=>a(()=>import(`./commits-tab-DZtJgaDM.js`),__vite__mapDeps([65,1,2,66,9,5,6,10,67,4,17,68,11,3,7,12,13,14,15,8,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,69,70,71,72,53,73,52,54,74,75,76,77,78,79,80,81,82,83,84,85,86,51,87,55,88,89,90,91,92,93,94,50,56,57,58,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,64,113,114,60,63,115]))),Vs=(0,X.lazy)(()=>a(()=>import(`./browser-tab-BAl4ckJE.js`),__vite__mapDeps([116,2,1,9,5,6,15,3,4,7,12,8,13,10,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,117,118,60]))),Hs=(0,X.lazy)(()=>a(()=>import(`./planner-tab-DQvDU3ap.js`),__vite__mapDeps([119,1,2,9,5,6,11,3,4,7,12,13,14,15,8,10,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,120,69,70,71,72,53,73,52,54,74,75,76,77,78,79,80,81,82,83,84,85,86,51,87,55,88,89,90,91,92,93,94,50,56,57,58,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,64,113,114,60]))),Us=(0,X.lazy)(()=>a(()=>import(`./task-list-tab-04GNQuii.js`),__vite__mapDeps([121,1,2,9,5,6,11,3,4,7,12,13,14,15,8,10,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,60]))),Ws=(0,X.lazy)(()=>a(()=>import(`./usage-tab-BcfWV6db.js`),__vite__mapDeps([122,1,2,3,4,5,6,7,70,9,10,15,12,8,13,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,50,47,51,52,53,54,40,55,42,56,57,123,38,96,69,71,72,73,74,75,76,48,77,41,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,36,37,94,58,95,97,98,99,100,101,102,103,104,105,46,106,107,108,109,110,111,112,64,113,44,114,49,60]))),Gs=(0,X.lazy)(()=>a(()=>import(`./terminal-Cj0iHIW7.js`),__vite__mapDeps([124,1,2,9,5,6,125,126,67,4,17,15,3,7,12,8,13,10,16,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,69,70,71,72,53,73,52,54,74,75,76,48,77,41,78,79,42,80,81,82,83,84,85,86,51,87,55,88,89,90,47,91,92,93,36,37,94,50,40,56,57,58,38,95,96,97,98,99,100,101,102,103,104,105,46,106,107,108,109,110,111,112,64,113,44,114,49,60]))),Ks={tasklist:{component:Us},files:{component:zs},commits:{component:Bs},browser:{component:Vs},terminal:{component:Gs},planner:{component:Hs},usage:{component:Ws}};function qs(){let{selectedTab:e,shouldShownAgentLoading:t}=U(),{conversationId:n}=q(),r=(0,X.useMemo)(()=>Ks[e]??Ks.files,[e]).component,i=e===`terminal`?`${e}-${n}`:e??`files`;return(0,Z.jsx)(Ms,{children:(0,Z.jsx)(Ns,{children:(0,Z.jsx)(Rs,{showAgentLoading:t,tabKey:i,children:(0,Z.jsx)(js,{children:(0,Z.jsx)(r,{})},i)})})})}var Js=()=>{let e=d(),t=vi(e=>e.removeErrorMessage);return _({mutationKey:[`start-conversation`],mutationFn:async e=>yn(e.conversationId),onMutate:async()=>(await e.cancelQueries({queryKey:[`user`,`conversations`]}),{previousConversations:e.getQueryData([`user`,`conversations`])}),onError:(t,n,r)=>{r?.previousConversations&&e.setQueryData([`user`,`conversations`],r.previousConversations)},onSettled:(t,n,r)=>{xn(e,r.conversationId)},onSuccess:(n,r)=>{t(),bn(e,r.conversationId,N.RUNNING)}})},Ys=e=>(0,Z.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22ZM10 9H14A1 1 0 0 1 15 10V14A1 1 0 0 1 14 15H10A1 1 0 0 1 9 14V10A1 1 0 0 1 10 9Z`,fill:`currentColor`})}),Xs=e=>(0,Z.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,...e,children:[(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.9 1.50004C15.3 1.65004 17.55 2.85004 19.2 4.50004C21.15 6.60004 22.2 9.15004 22.2 12.15C22.2 14.55 21.3 16.8 19.8 18.75C18.3 20.55 16.2 21.9 13.8 22.35C11.4 22.8 9 22.5 6.9 21.3C4.8 20.1 3.15 18.3 2.25 16.05C1.35 13.8 1.2 11.25 1.95 9.00004C2.7 6.60004 4.05 4.65004 6.15 3.30004C8.1 1.95004 10.5 1.35004 12.9 1.50004ZM13.65 20.85C15.6 20.4 17.4 19.35 18.75 17.7C19.95 16.05 20.7 14.1 20.55 12C20.55 9.60004 19.65 7.20004 18 5.55004C16.5 4.05004 14.7 3.15004 12.6 3.00004C10.65 2.85004 8.55 3.30004 6.9 4.50004C5.25 5.70004 4.05 7.35004 3.45 9.45004C2.85 11.4 2.85 13.5 3.75 15.45C4.65 17.4 6 18.9 7.8 19.95C9.6 21 11.7 21.3 13.65 20.85Z`,fill:`currentColor`}),(0,Z.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9 7.49998L10.1655 6.87598L16.9155 11.376V12.624L10.1655 17.124L9 16.5V7.49998ZM10.5 8.90098V15.099L15.1485 12L10.5 8.90098Z`,fill:`currentColor`})]});function Zs({icon:e,text:t,onClick:n,testId:r}){return(0,Z.jsx)(B,{testId:r,onClick:n,children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 w-full items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`min-w-0 truncate`,children:t}),(0,Z.jsx)(`span`,{className:en,"aria-hidden":!0,children:e})]})})}function Qs({className:e=``,executionStatus:t,isPausing:n=!1}){let{curAgentState:r}=Jr(),{isTask:i,taskStatus:a,taskDetail:o}=fr(),{t:s}=f(`openhands`),{errorMessage:c}=vi(),l=r===L.LOADING||r===L.INIT,u=F(t)||te(t),d=fe({isPausing:n,isTask:i,taskStatus:a,isStartingStatus:l,isStopStatus:u,curAgentState:r}),p=ce({isPausing:n,isTask:i,taskStatus:a,taskDetail:o,isStartingStatus:l,isStopStatus:u,curAgentState:r,errorMessage:c,t:s});return(0,Z.jsx)(`div`,{className:e,"data-testid":`server-status`,children:(0,Z.jsxs)(`div`,{className:`flex items-center`,children:[(0,Z.jsx)(yo,{className:`w-6 h-6 shrink-0`,color:d}),(0,Z.jsx)(`span`,{className:`text-[13px] text-white font-normal`,children:p})]})})}function $s({onClose:e,onStopServer:t,onStartServer:n,executionStatus:r,position:i=`top`,className:a=``,isPausing:o=!1,ignoreOutsideClickRef:s}){let{t:c}=f(`openhands`),l=Pn(e,s),u=ve(r),d=te(r),p=u||d;return(0,Z.jsxs)(It,{ref:l,testId:`server-status-context-menu`,position:i,alignment:`left`,size:`default`,className:z(`left-2 w-fit min-w-42`,a),children:[(0,Z.jsx)(Qs,{executionStatus:r,isPausing:o,className:`pl-0 pr-2 py-1`}),p&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ut,{inset:`menu`}),u&&t&&(0,Z.jsx)(Zs,{icon:(0,Z.jsx)(Ys,{width:18,height:18}),text:c(I.COMMON$STOP_RUNTIME),onClick:t,testId:`stop-server-button`}),d&&n&&(0,Z.jsx)(Zs,{icon:(0,Z.jsx)(Xs,{width:18,height:18}),text:c(I.COMMON$START_RUNTIME),onClick:n,testId:`start-server-button`})]})]})}function ec({isPublic:e,onToggle:t,ariaLabel:n}){return(0,Z.jsxs)(`label`,{className:`relative inline-flex shrink-0 cursor-pointer items-center`,children:[(0,Z.jsx)(`input`,{hidden:!0,type:`checkbox`,"data-testid":`share-publicly-button`,checked:e,"aria-label":n,onChange:e=>t(e.target.checked)}),(0,Z.jsx)(`span`,{"aria-hidden":!0,className:z(`inline-flex h-3.5 w-7 items-center rounded-full px-0.5 py-px transition-colors duration-200 ease-in-out`,e?`bg-white`:`bg-base-secondary`),children:(0,Z.jsx)(`span`,{className:z(`block h-2 w-2 shrink-0 rounded-full transition-transform duration-200 ease-in-out`,e?`translate-x-[calc(1rem-1px)] bg-base-secondary`:`translate-x-px bg-tertiary-light`)})})]})}function tc({onClose:e,onRename:t,onDelete:n,onStop:r,onDisplayCost:i,onShowAgentTools:a,onShowSkills:o,onShowHooks:s,onTogglePublic:c,onCopyShareLink:l,onExportTranscript:u,onDownloadConversation:d,shareUrl:p,position:m=`bottom`,anchorRef:h}){let g=Oi(),{t:_}=f(`openhands`),{backend:v}=A(),{data:y}=J(),b=Cr(),x=Pn(e,h),S=h?.current??null,[C,w]=X.useState();X.useLayoutEffect(()=>{if(!S)return;let e=()=>{let e=S.getBoundingClientRect();if(!e)return;let t={position:`fixed`,zIndex:9999};m===`top`?t.bottom=window.innerHeight-e.top+8:t.top=e.bottom+8,t.left=e.left,w(t)};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[S,m]);let T=!!(a||o||s),E=!!i,D=!!(r||n),O=v.kind===`cloud`?I.COMMON$CLOSE_CONVERSATION_STOP_RUNTIME:I.COMMON$STOP_CONVERSATION,k=v.kind===`cloud`&&!!c,j=y?.public||!1,ee=!!S,M=(0,Z.jsxs)(It,{ref:x,testId:`conversation-name-context-menu`,position:m,alignment:`left`,className:z(g?`right-0 translate-x-[34%] left-auto`:``,ee?`!static !top-auto !bottom-auto !left-auto !right-auto !mt-0`:``),children:[t&&(0,Z.jsx)(B,{testId:`rename-button`,onClick:t,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(zn,{width:16,height:16}),text:_(I.BUTTON$RENAME)})}),T&&(0,Z.jsx)(ut,{testId:`separator-tools`,inset:`menu`}),o&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-skills-button`,onClick:o,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Bn,{width:16,height:16,className:`stroke-[1.75]`,"aria-hidden":!0}),text:_(I.CONVERSATION$SHOW_SKILLS)})})}),s&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-hooks-button`,onClick:s,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(vr,{width:16,height:16,"aria-hidden":!0}),text:_(I.CONVERSATION$SHOW_HOOKS)})})}),a&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`show-agent-tools-button`,onClick:a,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(lt,{width:16,height:16}),text:_(I.BUTTON$SHOW_AGENT_TOOLS_AND_METADATA)})})}),u&&(0,Z.jsx)(B,{testId:`export-transcript-button`,onClick:u,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(jn,{width:16,height:16}),text:_(I.BUTTON$EXPORT_TRANSCRIPT)})}),d&&(0,Z.jsx)(B,{testId:`download-trajectory-button`,onClick:d,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(jn,{width:16,height:16}),text:_(I.BUTTON$DOWNLOAD_CONVERSATION_DATA)})}),(E||D)&&(0,Z.jsx)(ut,{testId:`separator-info-control`,inset:`menu`}),i&&(0,Z.jsx)(B,{testId:`display-cost-button`,onClick:i,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(ot,{size:16}),text:_(I.BUTTON$DISPLAY_COST)})}),k&&c&&(0,Z.jsxs)(`li`,{className:`flex w-full items-center gap-2 rounded px-2 py-2 hover:bg-[var(--oh-interactive-hover)]`,children:[(0,Z.jsx)(`span`,{className:`flex shrink-0 items-center text-[var(--oh-muted)]`,"aria-hidden":!0,children:(0,Z.jsx)(mt,{size:16})}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm`,children:_(I.CONVERSATION$SHARE_PUBLICLY)}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-center`,children:[j&&p&&l&&(0,Z.jsxs)(`div`,{className:`mr-2 flex items-center gap-0.5`,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`copy-share-link-button`,onClick:l,className:`rounded p-0.5 text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current`,title:_(I.BUTTON$COPY_TO_CLIPBOARD),children:(0,Z.jsx)(Jn,{width:14,height:14})}),(0,Z.jsx)(`a`,{"data-testid":`open-share-link-button`,href:p,target:`_blank`,rel:`noopener noreferrer`,onClick:e=>e.stopPropagation(),className:`rounded p-0.5 text-[var(--oh-muted)] no-underline visited:text-[var(--oh-muted)] hover:bg-[var(--oh-interactive-selected)] hover:text-[var(--oh-foreground)] cursor-pointer [&_svg]:text-current`,title:_(I.BUTTON$OPEN_IN_NEW_TAB),children:(0,Z.jsx)(rt,{size:14,"aria-hidden":!0})})]}),(0,Z.jsx)(ec,{isPublic:j,onToggle:c,ariaLabel:_(I.CONVERSATION$SHARE_PUBLICLY)})]})]}),r&&(0,Z.jsx)(Lr,{isDisabled:b,children:(0,Z.jsx)(B,{testId:`stop-button`,onClick:r,isDisabled:b,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(it,{width:16,height:16}),text:_(O)})})}),n&&(0,Z.jsx)(B,{testId:`delete-button`,onClick:n,children:(0,Z.jsx)(G,{icon:(0,Z.jsx)(Ln,{width:16,height:16}),text:_(I.COMMON$DELETE_CONVERSATION)})})]});return ee?typeof document>`u`||!C?null:Vo.createPortal((0,Z.jsx)(`div`,{style:C,children:M}),document.body):M}var nc=new Set([`BrowserClickAction`,`BrowserCloseTabAction`,`BrowserGetContentAction`,`BrowserGetStateAction`,`BrowserGoBackAction`,`BrowserListTabsAction`,`BrowserNavigateAction`,`BrowserScrollAction`,`BrowserSwitchTabAction`,`BrowserTypeAction`,`ExecuteBashAction`,`FileEditorAction`,`GlobAction`,`GrepAction`,`InvokeSkillAction`,`MCPToolAction`,`StrReplaceEditorAction`,`TaskAction`,`TaskTrackerAction`,`TerminalAction`,`ThinkAction`]),rc=new Set([`BrowserObservation`,`CanvasUIObservation`,`ExecuteBashObservation`,`FileEditorObservation`,`GlobObservation`,`GrepObservation`,`InvokeSkillObservation`,`MCPToolObservation`,`StrReplaceEditorObservation`,`SwitchLLMObservation`,`TaskTrackerObservation`,`TaskObservation`,`TerminalObservation`]),ic=e=>e.replace(/[\r\n]+/g,` `).replace(/\s+/g,` `).trim(),ac=(e,t=100)=>e.length>t?`${e.slice(0,t)}…`:e,oc=e=>{let t=new Date(e);return Number.isNaN(t.getTime())?e:t.toISOString()},$=e=>e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replaceAll(`"`,`"`).replaceAll(`'`,`'`),sc=e=>e.replaceAll(`&`,`&`).replaceAll(`<`,`<`).replaceAll(`>`,`>`).replace(/(!?)\[([^\]]*)\]\(\s*((?:javascript|data|vbscript):[^)]*)\)/gi,`$1\\[$2\\]($3)`).replace(/^(\s{0,3})\[([^\]]+)\]:(\s*<?(?:javascript|data|vbscript):)/gim,`$1\\[$2\\]:$3`),cc=e=>ic(e||C.t(I.TRANSCRIPT_EXPORT$DEFAULT_TITLE))||C.t(I.TRANSCRIPT_EXPORT$DEFAULT_TITLE),lc=(e,t)=>ic(C.t(e,t).replace(/<\/?(?:cmd|path)>/g,``)),uc=e=>/^[a-z][a-z0-9_]*\s*:\s*[[{]/i.test(e),dc=e=>e.replace(/(?:Action|Observation)$/,``).replace(/([a-z])([A-Z])/g,`$1 $2`).trim(),fc=e=>{let t=ic(e.summary||``);return t&&!uc(t)?t:ic(e.tool_name)||dc(e.action.kind)},pc=(e,t)=>t?fc(t):ic(e.tool_name)||dc(e.observation.kind),mc=e=>e.filter(e=>e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(`
|
|
24
|
+
`),hc=e=>[`${C.t(I.TASK$SUBAGENT)}: ${e.subagent_type}`,`${C.t(I.TASK$QUERY)}:\n${e.prompt}`].join(`
|
|
25
|
+
|
|
26
|
+
`),gc=(e,t)=>{let n=t?.action.kind===`TaskAction`?t.action:void 0;return[`${C.t(I.TASK$SUBAGENT)}: ${e.subagent}`,`${C.t(I.TASK$TASK_ID)}: ${e.task_id}`,n?`${C.t(I.TASK$QUERY)}:\n${n.prompt}`:``,`${C.t(I.TASK$RESULT)}:\n${mc(e.content)}`].filter(Boolean).join(`
|
|
27
|
+
|
|
28
|
+
`)},_c=e=>e.action.kind===`TaskAction`?hc(e.action):nc.has(e.action.kind)?je(e):``,vc=(e,t)=>e.observation.kind===`TaskObservation`?gc(e.observation,t):rc.has(e.observation.kind)?Ve(e):``,yc=e=>Xr(e)?[e.reason,e.error,e.stdout,e.stderr].filter(e=>!!e?.trim()).join(`
|
|
29
|
+
|
|
30
|
+
`):``,bc=e=>[ei(e),_i(e)].map(e=>e.trim()).filter(Boolean).join(`
|
|
31
|
+
|
|
32
|
+
`),xc=e=>![`FinishAction`,`SwitchLLMAction`,`ThinkAction`].includes(e.action.kind),Sc=(e,t)=>{let n=e.reduce((e,t)=>{try{return Ur(t,e)}catch{return e}},[]),r=new Map(e.filter(di).map(e=>[e.id,e])),i=[],a=new Set,o=ze(n.filter(e=>Kr(e)&&!e.observation.is_error||si(e)),2**53-1,e),s=e=>{if(a.has(e.id)||!xc(e))return;a.add(e.id);let t=bc(e);t&&i.push({kind:`message`,author:`assistant`,content:t,timestamp:e.timestamp})};for(let e of o){if(e.kind===`group`)continue;if(e.kind===`thought`){s(e.action);continue}let{event:n}=e;try{let e=di(n)?n:bi(n)?r.get(n.action_id):void 0;if(e&&s(e),Kr(n)&&!n.observation.is_error){i.push({kind:`note`,summary:lc(I.MODEL$SWITCHED_TO_PROFILE,{name:n.observation.profile_name}),content:[n.observation.active_model?`${C.t(I.TRANSCRIPT_EXPORT$MODEL)}: ${n.observation.active_model}`:``,n.observation.reason?`${C.t(I.TRANSCRIPT_EXPORT$REASON)}: ${n.observation.reason}`:``].filter(Boolean).join(`
|
|
33
|
+
`),timestamp:n.timestamp??``});continue}if($r(n)){let e=Le(n).trim();if(n.source===`agent`){let{reasoning:t,message:r}=Wr(e);[t,r].filter(Boolean).forEach(e=>{i.push({kind:`message`,author:`assistant`,content:e,timestamp:n.timestamp??``})})}else e&&i.push({kind:`message`,author:`user`,content:e,timestamp:n.timestamp??``});continue}if(ni(n)){let{reasoning:e,message:t}=Wr(n.content??``,{streaming:!0}),r=[n.reasoning_content?.trim()||``,e].filter(Boolean).join(`
|
|
34
|
+
|
|
35
|
+
`);r&&i.push({kind:`message`,author:`assistant`,content:r,timestamp:n.timestamp??``}),t.trim()&&i.push({kind:`message`,author:`assistant`,content:t.trim(),timestamp:n.timestamp??``});continue}if(Hr(n)){i.push({kind:`error`,content:n.error,timestamp:n.timestamp??``});continue}if(di(n)){if(n.action.kind===`FinishAction`){let e=n.action.message.trim();e&&i.push({kind:`message`,author:`assistant`,content:e,timestamp:n.timestamp??``})}else i.push({kind:`tool`,summary:fc(n),details:t?_c(n):``,timestamp:n.timestamp??``});continue}if(bi(n)){let e=r.get(n.action_id);i.push({kind:`tool`,summary:pc(n,e),details:t?vc(n,e):``,timestamp:n.timestamp??``});continue}if(Zr(n)){i.push({kind:`tool`,summary:Ke(n)||C.t(I.ACTION_MESSAGE$ACP_TOOL),details:t?qe(n):``,timestamp:n.timestamp??``});continue}if(Xr(n)){i.push({kind:`tool`,summary:C.t(I.TRANSCRIPT_EXPORT$HOOK,{command:ac(ic(n.hook_command),100)}),details:t?yc(n):``,timestamp:n.timestamp??``});continue}Qr(n)&&qr(n)&&i.push({kind:`note`,summary:`${C.t(I.GOAL$PREFIX)} ${C.t({running:I.GOAL$STATUS_RUNNING,complete:I.GOAL$STATUS_COMPLETE,capped:I.GOAL$STATUS_CAPPED,interrupted:I.GOAL$STATUS_INTERRUPTED}[n.value.status])}`,content:[n.value.objective,n.value.verdict?.missing||``].filter(Boolean).join(`
|
|
36
|
+
|
|
37
|
+
`),timestamp:n.timestamp??``})}catch{}}return i},Cc=(e,t)=>t.includeTimestamps?`<sub>${$(oc(e.timestamp))}</sub>\n\n`:``,wc=e=>{let t=Math.max(0,...Array.from(e.matchAll(/`+/g),e=>e[0].length)),n="`".repeat(Math.max(3,t+1));return`${n}text\n${e}\n${n}`},Tc=(e,t)=>{let n=[`# ${sc(cc(t.title))}`,``];t.model&&n.push(`**${C.t(I.TRANSCRIPT_EXPORT$MODEL)}:** ${sc(ic(t.model))}`,``);for(let r of Sc(e,t.includeToolDetails)){let e=Cc(r,t);if(r.kind===`message`){let t=r.author===`user`?C.t(I.TRANSCRIPT_EXPORT$USER):C.t(I.CHAT_INTERFACE$ASSISTANT);n.push(`## ${t}`,``,e+sc(r.content),``)}else if(r.kind===`error`){let t=r.content.split(`
|
|
38
|
+
`).map(e=>`> ${sc(e)}`).join(`
|
|
39
|
+
`);n.push(`## ${C.t(I.COMMON$ERROR)}`,``,e+t,``)}else if(r.kind===`note`)n.push(`> **${$(r.summary)}**`,``,e+sc(r.content),``);else if(t.includeToolDetails&&r.details)n.push(`<details>`,`<summary><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}</summary>`,``,e+wc(r.details),``,`</details>`,``);else{let t=e?`<br>${e.trimEnd()}`:``;n.push(`<p><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(r.summary)}${t}</p>`,``)}}return`${n.join(`
|
|
40
|
+
`).trim()}\n`},Ec=(e,t)=>{if(!t.includeTimestamps)return``;let n=oc(e.timestamp);return`<time datetime="${$(n)}">${$(n)}</time>`},Dc=(e,t)=>{let n=cc(t.title),r=Sc(e,t.includeToolDetails).map(e=>{let n=Ec(e,t);if(e.kind===`message`){let t=e.author===`user`?C.t(I.TRANSCRIPT_EXPORT$USER):C.t(I.CHAT_INTERFACE$ASSISTANT);return`<section class="message ${e.author.toLowerCase()}">
|
|
41
|
+
<header><h2>${$(t)}</h2>${n}</header>
|
|
42
|
+
<div class="content">${$(e.content)}</div>
|
|
43
|
+
</section>`}return e.kind===`error`?`<section class="message error">
|
|
44
|
+
<header><h2>${$(C.t(I.COMMON$ERROR))}</h2>${n}</header>
|
|
45
|
+
<div class="content">${$(e.content)}</div>
|
|
46
|
+
</section>`:e.kind===`note`?`<aside class="note">
|
|
47
|
+
<header><strong>${$(e.summary)}</strong>${n}</header>
|
|
48
|
+
${e.content?`<div class="content">${$(e.content)}</div>`:``}
|
|
49
|
+
</aside>`:t.includeToolDetails&&e.details?`<details>
|
|
50
|
+
<summary><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</summary>
|
|
51
|
+
<pre>${$(e.details)}</pre>
|
|
52
|
+
</details>`:`<div class="tool-summary"><strong>${$(C.t(I.TRANSCRIPT_EXPORT$TOOL))}:</strong> ${$(e.summary)}${n}</div>`}).join(`
|
|
53
|
+
`),i=t.model?`<p class="model"><strong>${$(C.t(I.TRANSCRIPT_EXPORT$MODEL))}:</strong> ${$(ic(t.model))}</p>`:``;return`<!doctype html>
|
|
54
|
+
<html lang="${$(C.resolvedLanguage||C.language||`en`)}">
|
|
55
|
+
<head>
|
|
56
|
+
<meta charset="utf-8">
|
|
57
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
58
|
+
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:">
|
|
59
|
+
<title>${$(n)}</title>
|
|
60
|
+
<style>
|
|
61
|
+
:root { color-scheme: light dark; font-family: ui-sans-serif, system-ui, sans-serif; }
|
|
62
|
+
body { margin: 0; background: #111827; color: #e5e7eb; line-height: 1.55; }
|
|
63
|
+
main { box-sizing: border-box; width: min(860px, 100%); margin: 0 auto; padding: 48px 24px 80px; }
|
|
64
|
+
h1 { margin: 0; font-size: 2rem; }
|
|
65
|
+
h2 { margin: 0; font-size: 1rem; }
|
|
66
|
+
.model { margin: 8px 0 32px; color: #9ca3af; }
|
|
67
|
+
.message, details, .tool-summary, .note { margin: 16px 0; border: 1px solid #374151; border-radius: 10px; padding: 16px; background: #1f2937; }
|
|
68
|
+
.user { border-left: 4px solid #60a5fa; }
|
|
69
|
+
.assistant { border-left: 4px solid #34d399; }
|
|
70
|
+
.error { border-left: 4px solid #f87171; }
|
|
71
|
+
.note { border-left: 4px solid #a78bfa; }
|
|
72
|
+
header, summary, .tool-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
|
|
73
|
+
summary { cursor: pointer; }
|
|
74
|
+
time { flex: none; color: #9ca3af; font-size: .75rem; font-weight: 400; }
|
|
75
|
+
.content { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
76
|
+
pre { margin: 14px 0 0; padding: 14px; overflow-x: auto; border-radius: 7px; background: #111827; color: #d1d5db; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
77
|
+
@media (prefers-color-scheme: light) {
|
|
78
|
+
body { background: #f9fafb; color: #111827; }
|
|
79
|
+
.message, details, .tool-summary, .note { border-color: #d1d5db; background: #fff; }
|
|
80
|
+
pre { background: #f3f4f6; color: #1f2937; }
|
|
81
|
+
.model, time { color: #6b7280; }
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
84
|
+
</head>
|
|
85
|
+
<body>
|
|
86
|
+
<main>
|
|
87
|
+
<h1>${$(n)}</h1>
|
|
88
|
+
${i}
|
|
89
|
+
${r}
|
|
90
|
+
</main>
|
|
91
|
+
</body>
|
|
92
|
+
</html>
|
|
93
|
+
`},Oc=(e,t)=>(e.timestamp??``).localeCompare(t.timestamp??``),kc=async(e,t,n)=>{let r=[],i=new Set,a=[],o=0,s=new Set,c,l,u=!1,d=!1;for(;;){let e=await t({limit:100,sortOrder:`TIMESTAMP_DESC`,strictPagination:!0,...l?{pageId:l}:{},...c?{timestampLt:c}:{}});if(!Array.isArray(e.items))throw Error(`Invalid transcript history response: expected page.items to be an array.`);r.push(...e.items);let a,f=!1;if(e.items.forEach(e=>{i.has(e.id??``)||(e.id?i.add(e.id):o+=1,f=!0),(!a||(e.timestamp??``)<a)&&(a=e.timestamp??``)}),e.next_page_id){if(s.has(e.next_page_id))throw Error(`Transcript history pagination repeated a page cursor.`);s.add(e.next_page_id),l=e.next_page_id,c=void 0,u=!0;continue}if(u&&!d||e.items.length<100)break;if(n===void 0)throw Error(`Transcript history pagination cannot prove that all events were loaded.`);if(!a||c&&(!f||a>=c))throw Error(`Transcript history pagination did not advance.`);l=void 0,c=a,d=!0}let f=new Map;r.slice().reverse().forEach(e=>{if(e.id!==void 0){f.has(e.id)||f.set(e.id,e);return}a.push(e)}),e.forEach(e=>{if(e.id!==void 0){f.has(e.id)||f.set(e.id,e);return}a.push(e)});let p=[...a,...f.values()].sort(Oc);if(n!==void 0&&i.size+o<n)throw Error(`Transcript history is incomplete: expected ${n} persisted events, received ${i.size+o}.`);return p},Ac=`transcript-export-format`;function jc({conversationId:e,conversationUrl:t,sessionApiKey:n,conversationTitle:r,model:i,onClose:a}){let{t:o}=f(`openhands`),{trackConversationExported:s}=Bt(),[c,l]=X.useState(`markdown`),[u,d]=X.useState(!0),[p,m]=X.useState(!0),[h,g]=X.useState(!1),_=X.useRef(!1),v=X.useRef(!1),y=X.useRef(!0);X.useEffect(()=>(y.current=!0,()=>{y.current=!1,v.current=!0}),[]);let b=()=>{_.current&&(v.current=!0),a()};return(0,Z.jsx)(Wt,{onClose:b,"aria-label":o(I.TRANSCRIPT_EXPORT$TITLE),children:(0,Z.jsxs)(Gt,{testID:`transcript-export-modal`,className:`relative items-start border border-[var(--oh-border)]`,children:[(0,Z.jsx)(un,{onClose:b,testId:`close-transcript-export-modal`,className:`absolute right-4 top-4`}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-2 pr-8`,children:[(0,Z.jsx)(qt,{title:o(I.TRANSCRIPT_EXPORT$TITLE)}),(0,Z.jsx)(Kt,{description:o(I.TRANSCRIPT_EXPORT$DESCRIPTION)})]}),(0,Z.jsxs)(`fieldset`,{className:`flex w-full flex-col gap-2`,children:[(0,Z.jsx)(`legend`,{className:`mb-2 text-sm font-medium text-white`,children:o(I.TRANSCRIPT_EXPORT$FORMAT)}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white`,children:[(0,Z.jsx)(`input`,{type:`radio`,name:Ac,value:`markdown`,disabled:h,checked:c===`markdown`,onChange:()=>l(`markdown`)}),o(I.TRANSCRIPT_EXPORT$MARKDOWN)]}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3 rounded-md border border-[var(--oh-border)] px-3 py-2 text-sm text-white`,children:[(0,Z.jsx)(`input`,{type:`radio`,name:Ac,value:`html`,disabled:h,checked:c===`html`,onChange:()=>l(`html`)}),o(I.TRANSCRIPT_EXPORT$HTML)]})]}),(0,Z.jsxs)(`div`,{className:`flex w-full flex-col gap-3 text-sm text-white`,children:[(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,disabled:h,checked:u,onChange:e=>d(e.target.checked)}),o(I.TRANSCRIPT_EXPORT$INCLUDE_TOOL_DETAILS)]}),(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-3`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,disabled:h,checked:p,onChange:e=>m(e.target.checked)}),o(I.TRANSCRIPT_EXPORT$INCLUDE_TIMESTAMPS)]})]}),(0,Z.jsxs)(`div`,{className:`flex w-full justify-end gap-2`,children:[(0,Z.jsx)(V,{type:`button`,variant:`secondary`,onClick:b,testId:`cancel-transcript-export`,children:o(I.BUTTON$CANCEL)}),(0,Z.jsx)(V,{type:`button`,variant:`primary`,onClick:async()=>{if(!_.current){v.current=!1,_.current=!0,g(!0);try{let o=await fi.getEventCount(e,t??``,n).catch(()=>void 0);if(v.current)return;let l=K.getState(),d=await kc(l.loadedConversationId===e?l.events:[],r=>fi.searchEvents(e,t,n,r),o);if(v.current)return;let f={includeToolDetails:u,includeTimestamps:p,title:r,model:i},m=c===`markdown`,h=m?Tc(d,f):Dc(d,f),g=m?`md`:`html`;ae(new Blob([h],{type:m?`text/markdown;charset=utf-8`:`text/html;charset=utf-8`}),`conversation-${e}.${g}`),s(c),a()}catch{v.current||T(o(I.ERROR$GENERIC))}finally{_.current=!1,y.current&&g(!1)}}},testId:`confirm-transcript-export`,isDisabled:h,"aria-busy":h,children:o(I.BUTTON$EXPORT_CONVERSATION)})]})]})})}function Mc(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{data:n}=J(),{mutate:r}=On(),[i,a]=X.useState(`view`),[o,s]=X.useState(!1),[c,l]=X.useState(!1),u=X.useRef(null),d=X.useRef(null),{handleDelete:p,handleStop:m,handleDownloadConversation:h,handleDisplayCost:g,handleShowAgentTools:_,handleShowSkills:v,handleShowHooks:y,handleTogglePublic:b,handleCopyShareLink:x,shareUrl:S,handleConfirmDelete:C,handleConfirmStop:w,systemModalVisible:T,setSystemModalVisible:D,skillsModalVisible:O,setSkillsModalVisible:k,hooksModalVisible:A,setHooksModalVisible:j,confirmDeleteModalVisible:ee,setConfirmDeleteModalVisible:M,confirmStopModalVisible:N,setConfirmStopModalVisible:te,systemMessage:ne,shouldShowStop:re,shouldShowDownloadConversation:P,shouldShowDisplayCost:F,shouldShowAgentTools:ie,shouldShowSkills:ae,shouldShowHooks:oe}=Ar({conversationId:t,executionStatus:n?.execution_status,showOptions:!0,onContextMenuToggle:s});return X.useEffect(()=>{i===`edit`&&u.current?.focus()},[i]),n?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 h-[22px] text-base font-normal text-left pl-0 lg:pl-1 min-w-0`,"data-testid":`conversation-name`,children:[i===`edit`?(0,Z.jsx)(`input`,{ref:u,"data-testid":`conversation-name-input`,onClick:e=>{i===`edit`&&(e.preventDefault(),e.stopPropagation())},onBlur:()=>{if(u.current?.value&&t){let i=u.current.value.trim();i!==n?.title&&r({conversationId:t,newTitle:i},{onSuccess:()=>{E(e(I.CONVERSATION$TITLE_UPDATED))}})}else u.current&&(u.current.value=n?.title??``);a(`view`)},onKeyUp:e=>{e.nativeEvent.isComposing||e.key===`Enter`&&e.currentTarget.blur()},type:`text`,defaultValue:n.title||``,className:`text-white leading-5 bg-transparent border-none outline-none text-base font-normal w-fit max-w-fit field-sizing-content`}):(0,Z.jsx)(`div`,{className:`text-white leading-5 truncate`,"data-testid":`conversation-name-title`,onDoubleClick:()=>{a(`edit`)},title:n.title||``,children:n.title}),i!==`edit`&&(0,Z.jsxs)(`div`,{ref:d,className:`relative flex items-center shrink-0`,children:[(0,Z.jsx)(Rn,{onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!o)},ariaLabel:e(I.COMMON$MORE_OPTIONS)}),o&&(0,Z.jsx)(tc,{onClose:()=>s(!1),onRename:e=>{e.preventDefault(),e.stopPropagation(),a(`edit`),s(!1)},onDelete:p,onStop:re?m:void 0,onDisplayCost:F?g:void 0,onShowAgentTools:ie?_:void 0,onShowSkills:ae?v:void 0,onShowHooks:oe?y:void 0,onTogglePublic:b,onCopyShareLink:x,shareUrl:S,onExportTranscript:e=>{e.preventDefault(),e.stopPropagation(),l(!0),s(!1)},onDownloadConversation:P?h:void 0,position:`bottom`,anchorRef:d})]})]}),c&&t&&(0,Z.jsx)(jc,{conversationId:t,conversationUrl:n.conversation_url,sessionApiKey:n.session_api_key,conversationTitle:n.title,model:n.llm_model,onClose:()=>l(!1)}),(0,Z.jsx)(Dr,{isOpen:T,onClose:()=>D(!1),systemMessage:ne||null}),O&&(0,Z.jsx)(Or,{onClose:()=>k(!1)}),A&&(0,Z.jsx)(Nr,{onClose:()=>j(!1)}),ee&&(0,Z.jsx)(En,{onConfirm:C,onCancel:()=>M(!1),conversationTitle:n?.title||``}),N&&(0,Z.jsx)(Nn,{onConfirm:w,onCancel:()=>te(!1)})]}):null}function Nc({children:e,tooltip:t,ariaLabel:n}){return(0,Z.jsx)(Qt,{content:t,placement:`bottom`,tooltipClassName:`bg-white text-black text-xs font-medium leading-5`,children:(0,Z.jsx)(`span`,{"data-aria-label":n,children:e})})}var Pc=z(`inline-flex h-7 min-h-7 w-fit shrink-0 cursor-pointer items-center justify-center gap-1.5 px-2.5`,`rounded-md text-xs font-normal leading-none`,Yt,Jt,`text-[var(--oh-muted)]`,Xt,`disabled:cursor-not-allowed disabled:opacity-30`);function Fc({className:e}){let{t}=f(`openhands`),n=Cr(),{data:r}=J(),[i,a]=(0,X.useState)(!1),o=(0,X.useRef)(null),s=r?.git_provider??`github`;(0,X.useEffect)(()=>{if(!i)return;let e=e=>{e.key===`Escape`&&a(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[i]);let c=t(I.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),l=(0,Z.jsxs)(`button`,{ref:o,type:`button`,onClick:()=>{n||a(e=>!e)},disabled:n,className:z(Pc,i&&`bg-white/10 text-[var(--oh-foreground)]`,n&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-expanded":i,"aria-haspopup":`menu`,"aria-disabled":n,"data-testid":`conversation-git-actions-toggle`,children:[(0,Z.jsx)(pt,{className:`size-4 shrink-0`,size:16,"aria-hidden":!0}),(0,Z.jsx)(`span`,{className:`whitespace-nowrap`,children:c})]});return(0,Z.jsxs)(`div`,{className:`relative inline-flex items-center self-center`,children:[n?(0,Z.jsx)(Nc,{tooltip:t(I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),ariaLabel:t(I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES),children:l}):l,i?(0,Z.jsx)(Uo,{anchorRef:o,gitProvider:s,onClose:()=>a(!1)}):null]})}var Ic=null;function Lc(){Ic!==null&&(clearTimeout(Ic),Ic=null)}function Rc(){let{isRightPanelShown:e,isOverviewPanelShown:t,setIsOverviewPanelPeeked:n}=U.getState();!e||t||(Lc(),n(!0))}function zc(){Lc(),Ic=setTimeout(()=>{Ic=null,U.getState().setIsOverviewPanelPeeked(!1)},150)}function Bc(){Lc(),U.getState().setIsOverviewPanelPeeked(!1)}function Vc(){let e=U(e=>e.isRightPanelShown),t=U(e=>e.isOverviewPanelShown),n=U(e=>e.isOverviewPanelPeeked);(0,X.useEffect)(()=>{n&&(!e||t)&&Bc()},[n,t,e])}function Hc({className:e}){let{t}=f(`openhands`),n=Cr(),{conversationId:r}=ri(),i=(0,X.useRef)(null),[a,o]=(0,X.useState)(null),{isOverviewPanelShown:s,isOverviewPanelPeeked:c,isRightPanelShown:l,setIsOverviewPanelShown:u,setHasRightPanelToggled:d,setIsRightPanelShown:p}=U();Vc(),(0,X.useEffect)(()=>{l&&s&&u(!1)},[s,l,u]);let m=!n&&l&&!s,h=m&&c;(0,X.useLayoutEffect)(()=>{if(!h){o(null);return}let e=()=>{let e=i.current?.getBoundingClientRect();e&&o({top:e.bottom+4,left:Math.max(8,e.right-240)})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[h]);let g=()=>{if(!n){if(l){d(!1),p(!1),r&&cn(r,{rightPanelShown:!1}),u(!0);return}u(!s)}},_=s||h,v=t(n?I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:s?I.CONVERSATION$HIDE_OVERVIEW:I.CONVERSATION$SHOW_OVERVIEW),y=h&&a?Vo.createPortal((0,Z.jsx)(`div`,{"data-testid":`conversation-overview-peek`,className:`fixed z-50`,style:{top:a.top,left:a.left,width:240},onMouseEnter:Rc,onMouseLeave:zc,children:(0,Z.jsx)(`div`,{className:`shadow-lg`,children:(0,Z.jsx)(ws,{})})}),document.body):null;return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(`div`,{ref:i,className:`relative inline-flex items-center self-center`,onMouseEnter:()=>{m&&Rc()},onMouseLeave:()=>{(m||c)&&zc()},children:(0,Z.jsx)(Nc,{tooltip:v,ariaLabel:v,children:(0,Z.jsx)(`button`,{type:`button`,onClick:g,disabled:n,className:z(An,`size-7`,_&&`bg-white/10 text-[var(--oh-foreground)]`,n&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-label":v,"aria-pressed":s,"aria-disabled":n,"data-testid":`conversation-overview-toggle`,children:(0,Z.jsx)(bt,{className:`h-4 w-4 shrink-0`,size:16,"aria-hidden":!0})})})}),y]})}function Uc({className:e}){let{t}=f(`openhands`),n=Oi(),r=Cr(),i=l(),{conversationId:a}=q(),{isRightPanelShown:o,setHasRightPanelToggled:s,setIsRightPanelShown:c,setSelectedTab:u}=U(),d=()=>{if(r)return;if(n){if(!a)return;s(!0),c(!0),cn(a,{rightPanelShown:!0});let{selectedTab:e}=U.getState();e||u(`files`),i(`/conversations/${a}/panel`);return}let e=!o;if(s(e),c(e),a&&cn(a,{rightPanelShown:e}),e){let{selectedTab:e}=U.getState();e||u(`files`)}},p=t(r?I.CONVERSATION$UNAVAILABLE_FOR_ARCHIVES:n?I.COMMON$SHOW_PANEL:o?I.COMMON$HIDE_PANEL:I.COMMON$SHOW_PANEL),m=n?!1:o;return(0,Z.jsx)(Nc,{tooltip:p,ariaLabel:p,children:(0,Z.jsx)(`button`,{type:`button`,onClick:d,disabled:r,className:z(An,`size-7 self-center`,r&&`cursor-not-allowed opacity-50 hover:bg-transparent hover:text-[var(--oh-muted)]`,e),"aria-label":p,"aria-pressed":m,"aria-disabled":r,"data-testid":`right-panel-toggle`,children:(0,Z.jsx)(kn,{className:`size-5 -scale-x-100`})})})}function Wc(){let{t:e}=f(`openhands`),{conversationId:t}=q(),{data:n}=J(),{curAgentState:r}=Jr(),{isTask:i,taskStatus:a}=fr(),{mutate:o}=at(),{mutate:s}=Js(),{providers:c}=Un(),[l,u]=X.useState(!1),[d,p]=X.useState(!1),m=X.useRef(null),h=n?.execution_status??null,g=fe({isPausing:!1,isTask:i,taskStatus:a,isStartingStatus:r===L.LOADING||r===L.INIT,isStopStatus:F(h),curAgentState:r}),_=l||d,v=()=>{u(!1),p(!1)};return(0,Z.jsxs)(`div`,{className:`flex items-center justify-between w-full`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center min-w-0`,children:[(0,Z.jsxs)(`div`,{className:`relative shrink-0`,onPointerEnter:e=>{e.pointerType===`mouse`&&p(!0)},onPointerLeave:e=>{e.pointerType===`mouse`&&p(!1)},children:[(0,Z.jsx)(`button`,{ref:m,type:`button`,"data-testid":`server-status-menu-trigger`,"aria-label":e(I.COMMON$SERVER_STATUS),"aria-expanded":_,"aria-haspopup":`menu`,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),_){v();return}u(!0)},className:z(`flex items-center justify-center rounded-md`,`text-[var(--oh-muted)] hover:bg-white/10`),children:(0,Z.jsx)(yo,{className:`ml-[3.5px] w-6 h-6 cursor-pointer`,color:g,"aria-hidden":!0})}),_?(0,Z.jsx)($s,{onClose:v,ignoreOutsideClickRef:m,onStopServer:ve(h)?e=>{e.preventDefault(),e.stopPropagation(),t&&o({conversationId:t}),v()}:void 0,onStartServer:te(h)?e=>{e.preventDefault(),e.stopPropagation(),t&&s({conversationId:t,providers:c}),v()}:void 0,executionStatus:h,position:`bottom`,className:`bottom-full left-0 mt-0 min-h-fit`,isPausing:!1}):null]}),(0,Z.jsx)(Mc,{})]}),(0,Z.jsxs)(`div`,{className:`mr-2 flex shrink-0 items-center gap-1`,children:[(0,Z.jsx)(Fc,{}),(0,Z.jsx)(Hc,{}),(0,Z.jsx)(Uc,{})]})]})}var Gc=e=>(0,Z.jsxs)(`svg`,{width:20,height:20,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,Z.jsx)(`path`,{d:`M3 10.5L6.5 14L14 6`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,Z.jsx)(`path`,{d:`M7 10.5L10.5 14L18 6`,stroke:`currentColor`,strokeWidth:2.2,strokeLinecap:`round`,strokeLinejoin:`round`})]}),Kc=160,qc={duration:.22,ease:[.4,0,.2,1]};function Jc({tabValue:e,icon:t,onClick:n,isActive:r,label:i,className:a,measureOnly:o,suppressLayoutAnimation:s=!1}){let c=Te(),l=o||c||!1,u=!l&&!s,d=z(`flex items-center rounded-md cursor-pointer`,`pl-1.5 pr-2 py-1 lg:py-1.5`,`text-[var(--oh-muted)] bg-transparent`,r&&`bg-[var(--oh-interactive-active)] text-white`,r?`hover:text-white hover:bg-[var(--oh-interactive-hover)]`:`hover:text-white hover:bg-white/5`,r?`focus-within:text-white`:`focus-within:text-[var(--oh-muted)]`,a),f=(0,Z.jsx)(t,{className:z(`h-4 w-4 shrink-0 text-inherit`)}),p=i&&r?(0,Z.jsx)(`span`,{className:`whitespace-nowrap text-sm font-normal`,children:i}):null,m=i?(0,Z.jsx)(Ze.span,{initial:!1,animate:{maxWidth:r?Kc:0,opacity:+!!r,marginLeft:r?8:0},transition:qc,className:`block overflow-hidden whitespace-nowrap text-sm font-normal`,"aria-hidden":!r,children:i}):null;return l?(0,Z.jsxs)(`button`,{type:`button`,onClick:n,...o?{}:{"data-testid":`conversation-tab-${e}`},"data-tab-measure":o?`true`:void 0,className:z(d,`gap-2`),children:[f,p]}):(0,Z.jsxs)(Ze.button,{layout:u?`position`:!1,type:`button`,onClick:n,...o?{}:{"data-testid":`conversation-tab-${e}`},"data-tab-measure":o?`true`:void 0,className:d,transition:u?{layout:qc}:void 0,children:[f,m]})}var Yc=e=>(0,Z.jsx)(`svg`,{viewBox:`0 0 128 128`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,Z.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`,d:`M90.767 127.126a7.968 7.968 0 0 0 6.35-.244l26.353-12.681a8 8 0 0 0 4.53-7.209V21.009a8 8 0 0 0-4.53-7.21L97.117 1.12a7.97 7.97 0 0 0-9.093 1.548l-50.45 46.026L15.6 32.013a5.328 5.328 0 0 0-6.807.302l-7.048 6.411a5.335 5.335 0 0 0-.006 7.888L20.796 64 1.74 81.387a5.336 5.336 0 0 0 .006 7.887l7.048 6.411a5.327 5.327 0 0 0 6.807.303l21.974-16.68 50.45 46.025a7.96 7.96 0 0 0 2.743 1.793Zm5.252-92.183L57.74 64l38.28 29.058V34.943Z`})});function Xc(){let e=O().backend;if(e.kind!==`cloud`)throw Error(`Cloud sandboxes call requires a cloud backend.`);return e}async function Zc(e){if(e.length===0)return[];let t=Xc(),n=new URLSearchParams;for(let t of e)n.append(`id`,t);return await Rt({backend:t,method:`GET`,path:`/api/v1/sandboxes?${n.toString()}`})??[]}var Qc=e=>{let t=A(),n=t.backend.kind===`cloud`;return y({queryKey:[`cloud`,`sandbox`,t.backend.id,t.orgId,e],queryFn:async()=>{if(!e)return null;let[t]=await Zc([e]);return t??null},enabled:n&&!!e,staleTime:1e3*60*5,gcTime:1e3*60*15})},$c=`VSCODE`,el=()=>{let{t:e}=f(`openhands`),{conversationId:t}=q(),n=Ti({allowAgentError:!0}),{data:r}=J(),i=A(),a=r?.conversation_url??null,o=r?.session_api_key??null,s=r?.sandbox_id??null,c=i.backend.kind===`cloud`,l=Qc(c?s:null),u=y({queryKey:[`unified`,`vscode_url`,`local`,t,a,o],queryFn:async()=>{if(!t)throw Error(`No conversation ID`);return{url:Tn((await hn.getVSCodeUrl(t,a,o).catch(()=>_n.getVSCodeUrl(t))).vscode_url)}},enabled:!c&&n&&!!t,refetchOnMount:!0,retry:3}),d,p,m,h,g,_,v;if(c){let e=l.data?.exposed_urls?.find(e=>e.name===$c)?.url??null;d=l.isSuccess?{url:Tn(e)}:void 0,p=l.isLoading,m=l.isError,h=l.isSuccess,g=l.status,_=l.error,v=async()=>{let e=await l.refetch(),t=e.data?.exposed_urls?.find(e=>e.name===$c)?.url??null;return{data:e.data?{url:Tn(t)}:void 0}}}else d=u.data,p=u.isLoading,m=u.isError,h=u.isSuccess,g=u.status,_=u.error,v=async()=>({data:(await u.refetch()).data});let b=d&&!d.url?e(I.VSCODE$URL_NOT_AVAILABLE):null;return{data:d?{...d,error:b}:void 0,error:_,isLoading:p,isError:m,isSuccess:h,status:g,refetch:v}};function tl(){let{t:e}=f(`openhands`),{curAgentState:t}=Jr(),{data:n,refetch:r,isLoading:i}=el(),a=ue.includes(t);return(0,Z.jsxs)(`button`,{type:`button`,onClick:async()=>{let e=n?.url;e||=(await r()).data?.url??null,e&&window.open(e,`_blank`,`noopener,noreferrer`)},disabled:i||a,"aria-label":e(I.VSCODE$OPEN),title:e(I.VSCODE$OPEN),"data-testid":`drawer-vscode-link`,className:z(`inline-flex items-center gap-1.5 rounded-[7px] border border-[var(--oh-border)] bg-base-secondary px-2 py-1 text-xs`,`text-[var(--oh-muted)] transition-colors hover:enabled:bg-surface-raised hover:enabled:text-white`,`cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed`),children:[(0,Z.jsx)(Yc,{className:`h-[15px] w-[15px] shrink-0`,"aria-hidden":!0}),(0,Z.jsx)(`span`,{children:e(I.FILES$VSCODE)}),(0,Z.jsx)(rt,{className:`h-3.5 w-3.5 shrink-0`,"aria-hidden":!0,strokeWidth:2})]})}function nl(e){if(bi(e)&&e.observation.kind===`TaskTrackerObservation`){let t=e.observation;if(t.command===`plan`)return t.task_list.map((e,t)=>({id:String(t+1),title:e.title,status:e.status,notes:e.notes||void 0}))}return null}function rl(){let e=K(e=>e.events);return(0,X.useMemo)(()=>{for(let t=e.length-1;t>=0;--t){let n=nl(e[t]);if(n)return{taskList:n,hasTaskList:n.length>0}}return{taskList:[],hasTaskList:!1}},[e])}function il({isOpen:e,onClose:t,ignoreOutsideClickRef:n,anchorRef:r}){let i=Pn(t,n),[a,o]=(0,X.useState)();(0,X.useLayoutEffect)(()=>{if(!e||!r?.current){o(void 0);return}let t=()=>{let e=r.current?.getBoundingClientRect();e&&o({position:`fixed`,zIndex:9999,top:e.bottom+8,left:e.left})};return t(),window.addEventListener(`resize`,t),window.addEventListener(`scroll`,t,!0),()=>{window.removeEventListener(`resize`,t),window.removeEventListener(`scroll`,t,!0)}},[e,r]);let{t:s}=f(`openhands`),{conversationId:c}=q(),{state:l,setUnpinnedTabs:u,setSelectedTab:d}=rn(c),{selectedTab:p,isRightPanelShown:m,setSelectedTab:h}=U(),{navigateToTab:g}=hi(),{hasTaskList:_}=rl(),{backend:v}=A(),y=Cr(),b=[{tab:`planner`,icon:xt,i18nKey:I.COMMON$PLANNER},{tab:`files`,icon:zr,i18nKey:I.COMMON$FILES},{tab:`commits`,icon:ht,i18nKey:I.DIFF_VIEWER$COMMITS},{tab:`terminal`,icon:ft,i18nKey:I.COMMON$TERMINAL},{tab:`browser`,icon:vt,i18nKey:I.COMMON$BROWSER},{tab:`usage`,icon:ot,i18nKey:I.COMMON$USAGE}];_&&b.unshift({tab:`tasklist`,icon:Gc,i18nKey:I.COMMON$TASK_LIST});let x=b.filter(({tab:e})=>e!==`planner`||v.kind===`cloud`),S=e=>{y||(g(e),t())},C=(e,t)=>{if(y){t.preventDefault(),t.stopPropagation();return}if(t.preventDefault(),t.stopPropagation(),l.unpinnedTabs.includes(e))u(l.unpinnedTabs.filter(t=>t!==e));else{let t=[...l.unpinnedTabs,e];if(u(t),p===e&&m){let n=x.find(({tab:n})=>n!==e&&!t.includes(n));n&&(h(n.tab),d(n.tab))}}};if(!e)return null;let w=!!(r?.current&&a),T=(0,Z.jsx)(It,{ref:i,theme:w?`popover`:`default`,position:w?`none`:`bottom`,alignment:w?`none`:`left`,spacing:w?`none`:`default`,className:z(`z-[9999] w-fit`,w?`mt-0`:`mt-2`),children:x.map(({tab:e,icon:t,i18nKey:n})=>{let r=!l.unpinnedTabs.includes(e);return(0,Z.jsx)(`li`,{className:`list-none`,children:(0,Z.jsx)(Lr,{isDisabled:y,children:(0,Z.jsxs)(`div`,{className:z(`group flex h-[30px] w-full min-w-0 items-stretch rounded`,!y&&`hover:bg-[var(--oh-interactive-hover)]`,y&&`opacity-50`),children:[(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`conversation-tabs-menu-open-${e}`,disabled:y,className:z(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,$t,y?`cursor-not-allowed`:`cursor-pointer`),onClick:()=>S(e),children:[(0,Z.jsx)(`span`,{className:en,"aria-hidden":!0,children:(0,Z.jsx)(t,{className:`h-4 w-4`})}),(0,Z.jsx)(`span`,{className:`text-sm`,children:s(n)})]}),(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-tabs-menu-pin-${e}`,disabled:y,className:z(`flex shrink-0 items-center justify-center rounded-r px-2 text-white`,$t,y?`cursor-not-allowed`:`cursor-pointer hover:bg-white/10`),"aria-pressed":r,"aria-label":s(r?I.CONVERSATION$UNPIN_TAB:I.CONVERSATION$PIN_TAB),onClick:t=>C(e,t),children:r?(0,Z.jsx)(`span`,{className:z(`-mr-[5px] ml-auto`,en),"aria-hidden":!0,children:(0,Z.jsx)(Qo,{className:`h-7 w-7`})}):(0,Z.jsx)(`span`,{className:z(`ml-auto`,en),"aria-hidden":!0,children:(0,Z.jsx)(Zo,{className:`h-4.5 w-4.5`})})})]})})},e)})});return w&&a&&typeof document<`u`?Vo.createPortal((0,Z.jsx)(`div`,{style:a,children:T}),document.body):T}function al({variant:e=`default`,isPanelResizing:t=!1}){let{conversationId:n}=q(),{setSelectedTab:r,planContent:i}=U(),[a,o]=(0,X.useState)(!1),{state:s}=rn(n),{hasTaskList:c}=rl(),{backend:l}=A(),{handleBuildPlanClick:u}=Re(),{curAgentState:d}=Jr(),{selectTab:p,isTabActive:m,onTabChange:h,selectedTab:g,isRightPanelShown:_}=hi();(0,X.useEffect)(()=>{r(s.selectedTab)},[r,s.selectedTab]),(0,X.useEffect)(()=>{_&&(g||h(`files`))},[_,g,h]);let{t:v,i18n:y}=f(`openhands`),b=[{tabValue:`files`,isActive:m(`files`),icon:zr,onClick:()=>p(`files`),tooltipContent:v(I.COMMON$FILES),tooltipAriaLabel:v(I.COMMON$FILES),label:v(I.COMMON$FILES)},{tabValue:`commits`,isActive:m(`commits`),icon:ht,onClick:()=>p(`commits`),tooltipContent:v(I.DIFF_VIEWER$COMMITS),tooltipAriaLabel:v(I.DIFF_VIEWER$COMMITS),label:v(I.DIFF_VIEWER$COMMITS)},{tabValue:`planner`,isActive:m(`planner`),icon:xt,onClick:()=>p(`planner`),tooltipContent:v(I.COMMON$PLANNER),tooltipAriaLabel:v(I.COMMON$PLANNER),label:v(I.COMMON$PLANNER)},{tabValue:`terminal`,isActive:m(`terminal`),icon:ft,onClick:()=>p(`terminal`),tooltipContent:v(I.COMMON$TERMINAL),tooltipAriaLabel:v(I.COMMON$TERMINAL),label:v(I.COMMON$TERMINAL),className:`pl-2`},{tabValue:`browser`,isActive:m(`browser`),icon:vt,onClick:()=>p(`browser`),tooltipContent:v(I.COMMON$BROWSER),tooltipAriaLabel:v(I.COMMON$BROWSER),label:v(I.COMMON$BROWSER)},{tabValue:`usage`,isActive:m(`usage`),icon:ot,onClick:()=>p(`usage`),tooltipContent:v(I.COMMON$USAGE),tooltipAriaLabel:v(I.COMMON$USAGE),label:v(I.COMMON$USAGE)}];c&&b.splice(2,0,{tabValue:`tasklist`,isActive:m(`tasklist`),icon:Gc,onClick:()=>p(`tasklist`),tooltipContent:v(I.COMMON$TASK_LIST),tooltipAriaLabel:v(I.COMMON$TASK_LIST),label:v(I.COMMON$TASK_LIST)});let x=b.filter(e=>e.tabValue===`planner`&&l.kind!==`cloud`?!1:s.unpinnedTabs.includes(e.tabValue)?g===e.tabValue:!0),S=s.unpinnedTabs.join(`,`),C=d===L.RUNNING||d===L.LOADING||!i,w=(0,X.useRef)(null),T=(0,X.useRef)(null),E=(0,X.useRef)(null),D=(0,X.useRef)(null),O=(0,X.useRef)(null),[k,j]=(0,X.useState)(x.length);(0,X.useLayoutEffect)(()=>{let e=w.current,t=T.current,n=E.current,r=D.current;if(!e||!t||!n||!r)return;let i=()=>{let i=t.querySelectorAll(`[data-tab-measure="true"]`),a=i.length,o=e.getBoundingClientRect().width;if(o===0){j(a);return}let s=Array.from(i).map(e=>e.getBoundingClientRect().width);if(s.length!==a||a===0){j(Math.max(0,a));return}let c=n.getBoundingClientRect().width,l=r.getBoundingClientRect().width,u=getComputedStyle(e).columnGap||getComputedStyle(e).gap,d=parseFloat(u)||6,f=0;for(let e=a;e>=0;--e){let t=c+l;for(let n=0;n<e;n+=1)t+=s[n]??0;if(e>0&&(t+=e*d),t<=o+.5){f=e;break}}j(e=>e===f?e:f)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(e),()=>a.disconnect()},[S,x.length,c,l.kind,g,_,y.language]);let ee=Math.min(k,x.length);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:z(`relative w-full min-w-0`,e===`compact`?`flex h-full min-h-0 items-center py-0 pl-0 pr-1`:`min-h-10 p-1`),children:[(0,Z.jsx)(`div`,{ref:T,"aria-hidden":!0,className:`pointer-events-none absolute top-0 left-[-10000px] flex flex-nowrap items-center gap-1.5`,children:x.map(({tabValue:e,icon:t,isActive:n,tooltipContent:r,tooltipAriaLabel:i,label:a,className:o},s)=>(0,Z.jsx)(Nc,{tooltip:r,ariaLabel:i,children:(0,Z.jsx)(Jc,{tabValue:e,icon:t,onClick:()=>{},isActive:n,label:a,className:z(o,`shrink-0`),measureOnly:!0})},`measure-${e}-${s}`))}),(0,Z.jsxs)(`div`,{ref:w,className:`flex w-full min-w-0 flex-nowrap items-center justify-start`,children:[(0,Z.jsx)(`div`,{className:`flex min-w-0 flex-1 items-center justify-start overflow-hidden`,children:(0,Z.jsxs)(`div`,{className:`flex w-fit max-w-full min-w-0 items-center gap-1.5`,children:[(0,Z.jsx)(gt,{id:`conversation-drawer-tabs`,children:(0,Z.jsx)(`div`,{className:`flex w-fit max-w-full min-w-0 flex-nowrap items-center gap-1.5 overflow-x-hidden`,children:x.slice(0,ee).map(({tabValue:e,icon:n,onClick:r,isActive:i,tooltipContent:a,tooltipAriaLabel:o,label:s,className:c},l)=>(0,Z.jsx)(Nc,{tooltip:a,ariaLabel:o,children:(0,Z.jsx)(Jc,{tabValue:e,icon:n,onClick:r,isActive:i,label:s,className:z(c,`shrink-0`),suppressLayoutAnimation:t})},`${e}-${l}`))})}),(0,Z.jsxs)(`div`,{ref:E,className:`relative shrink-0`,children:[(0,Z.jsx)(Rn,{ref:O,onClick:()=>o(!a),ariaLabel:v(I.COMMON$MORE_OPTIONS),iconClassName:e===`compact`?Dn:void 0}),(0,Z.jsx)(il,{isOpen:a,onClose:()=>o(!1),ignoreOutsideClickRef:O,anchorRef:O})]})]})}),(0,Z.jsx)(`div`,{ref:D,className:z(`ml-auto shrink-0`,l.kind===`cloud`&&`pr-1`),children:l.kind===`cloud`&&(0,Z.jsx)(tl,{})})]})]}),m(`planner`)&&(0,Z.jsx)(`div`,{className:z(`flex h-10 min-h-10 shrink-0 items-center border-t border-[var(--oh-border)] pl-[10px] pr-1`),children:(0,Z.jsx)(`button`,{type:`button`,onClick:u,disabled:C,className:z(`flex h-5 min-w-17 items-center justify-center rounded bg-white px-2 transition-opacity`,C?`cursor-not-allowed opacity-50`:`cursor-pointer hover:opacity-90`),"data-testid":`planner-tab-build-button`,children:(0,Z.jsxs)(Yn.Text,{className:`text-[11px] font-normal leading-5 text-black`,children:[v(I.COMMON$BUILD),` ⌘↩`]})})})]})}function ol({onMouseDown:e,className:t,isDragging:n=!1,testId:r}){let[i,a]=(0,X.useState)(!1),o=n||i;return(0,Z.jsxs)(`div`,{"data-testid":r,className:z(`relative z-10 w-0 shrink-0 self-stretch`,t),"aria-hidden":!0,children:[(0,Z.jsx)(`div`,{className:`absolute inset-y-0 left-1/2 w-3 min-w-[12px] -translate-x-1/2 cursor-ew-resize`,onMouseDown:e,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1)}),(0,Z.jsx)(`div`,{className:z(`pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 transition-colors`,o?`bg-white`:`bg-transparent`),"aria-hidden":!0})]})}var sl=200;function cl({defaultLeftWidth:e=50,minLeftWidth:t=30,maxLeftWidth:n=80,storageKey:r=`desktop-layout-panel-width`}={}){let[i,a]=Ci(r,e),o=(0,X.useCallback)(e=>Math.max(t,Math.min(n,e)),[t,n]),[s,c]=(0,X.useState)(()=>o(i)),[l,u]=(0,X.useState)(!1),d=(0,X.useRef)(null),f=(0,X.useCallback)(e=>{e.preventDefault(),u(!0)},[]),p=(0,X.useCallback)(e=>{if(!l||!d.current)return;let t=d.current.getBoundingClientRect();c(o((e.clientX-t.left)/t.width*100))},[l,o]),m=(0,X.useCallback)(()=>{l&&(u(!1),a(s))},[l,s,a]);return(0,X.useLayoutEffect)(()=>{if(!l)return;let e=document.createElement(`div`);return e.setAttribute(`aria-hidden`,`true`),e.dataset.panelDragShield=``,Object.assign(e.style,{position:`fixed`,inset:`0`,zIndex:String(sl),cursor:`ew-resize`}),document.body.appendChild(e),document.addEventListener(`mousemove`,p),document.addEventListener(`mouseup`,m),document.body.style.cursor=`ew-resize`,document.body.style.userSelect=`none`,()=>{document.removeEventListener(`mousemove`,p),document.removeEventListener(`mouseup`,m),document.body.style.cursor=``,document.body.style.userSelect=``,e.remove()}},[l,p,m]),{leftWidth:s,rightWidth:100-s,isDragging:l,containerRef:d,handleMouseDown:f}}var ll=200;function ul({containerRef:e,defaultWidth:t,minWidth:n,maxWidth:r,storageKey:i,enabled:a=!0,edge:o=`right`}){let[s,c]=Ci(i,t),l=(0,X.useCallback)(e=>Math.max(n,Math.min(r,e)),[n,r]),[u,d]=(0,X.useState)(()=>l(s)),[f,p]=(0,X.useState)(!1),m=(0,X.useRef)(u);m.current=u;let h=(0,X.useCallback)(e=>{a&&(e.preventDefault(),p(!0))},[a]),g=(0,X.useCallback)(t=>{if(!f||!e.current)return;let n=e.current.getBoundingClientRect();d(l(o===`left`?t.clientX-n.left:n.right-t.clientX))},[l,e,o,f]),_=(0,X.useCallback)(()=>{f&&(p(!1),c(m.current))},[f,c]);return(0,X.useLayoutEffect)(()=>{if(!f)return;let e=document.createElement(`div`);return e.setAttribute(`aria-hidden`,`true`),e.dataset.panelDragShield=``,Object.assign(e.style,{position:`fixed`,inset:`0`,zIndex:String(ll),cursor:`ew-resize`}),document.body.appendChild(e),document.addEventListener(`mousemove`,g),document.addEventListener(`mouseup`,_),document.body.style.cursor=`ew-resize`,document.body.style.userSelect=`none`,()=>{document.removeEventListener(`mousemove`,g),document.removeEventListener(`mouseup`,_),document.body.style.cursor=``,document.body.style.userSelect=``,e.remove()}},[g,_,f]),{drawerWidth:u,isDragging:f,handleMouseDown:h}}var dl=()=>void 0;function fl({openAdd:e}){let{t}=f(`openhands`),[n,r]=(0,X.useState)(e),{data:i,isLoading:a,refetch:o}=Gn(),{data:s,isLoading:c,isError:l,refetch:u}=Kn({limit:50,offset:0,enabled:i?.status===`ok`});(0,X.useEffect)(()=>{e&&r(!0)},[e]);let d;return d=a||i?.status===`ok`&&c?(0,Z.jsx)($e,{}):i?.status===`ok`?l?(0,Z.jsx)(Ai,{onRetry:u}):s?.automations.length?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(tt,{title:t(I.CONVERSATION_PANEL$AUTOMATIONS),count:s.automations.length,automations:s.automations,view:`list`,onToggle:dl,onRunNow:dl,onDelete:dl,onExport:dl}),(0,Z.jsx)(et,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(nt,{}),(0,Z.jsx)(et,{isOpen:n,onClose:()=>r(!1)})]}):(0,Z.jsx)(ki,{onRetry:o}),(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-automations-panel`,children:d})}var pl={project:`project`,all:`all`};function ml(e,t){return xi(e,t)===`project`}function hl(e,t,n){return t===pl.all?e:e.filter(e=>ml(e,n))}function gl(e,t){return[...e].sort((e,n)=>{let r=xi(e,t),i=xi(n,t),a=Si.indexOf(r),o=Si.indexOf(i);return a===o?e.name.localeCompare(n.name):a-o})}function _l({value:e,onChange:t,testId:n}){let{t:r}=f(`openhands`);return(0,Z.jsx)(`div`,{className:`flex w-full justify-center [&>[role=radiogroup]]:w-full`,children:(0,Z.jsx)(yt,{value:e,onChange:t,ariaLabel:r(I.CONVERSATION$OVERVIEW_SCOPE_FILTER),testId:n,options:[{value:pl.project,label:r(I.CONVERSATION$OVERVIEW_SCOPE_PROJECT)},{value:pl.all,label:r(I.CONVERSATION$OVERVIEW_SCOPE_ALL)}]})})}function vl({openAdd:e}){let{t}=f(`openhands`),{mutate:n}=Ut(),{data:r,isLoading:i}=Ht(),{data:a}=J(),{data:o,isLoading:s}=Sr(),c=Bo()?.addRequestKey??0,l=a?.selected_workspace??null,[u,d]=(0,X.useState)(new Set),[p,m]=(0,X.useState)(!1),[h,g]=(0,X.useState)(pl.project),[_,v]=(0,X.useState)(Nt),[y,b]=(0,X.useState)(!1),[x,S]=(0,X.useState)(null),[C,E]=(0,X.useState)(!1);(0,X.useEffect)(()=>{i||!r||(d(new Set(r.disabled_skills??[])),m(!0))},[i,r?.disabled_skills]),(0,X.useEffect)(()=>{e&&E(!0)},[e]),(0,X.useEffect)(()=>{c!==0&&E(!0)},[c]),(0,X.useEffect)(()=>{p&&n({disabled_skills:Array.from(u)},{onError:e=>{T(w(e)||t(I.ERROR$GENERIC))}})},[u,p,n,t]);let D=(0,X.useMemo)(()=>{if(!o)return[];let e=hl(o,h,l);return h===pl.all?gl(e,l):e},[o,h,l]),O=(0,X.useMemo)(()=>At(D,u,_),[D,u,_]),k=(e,t)=>{d(n=>{let r=new Set(n);return t?r.delete(e):r.add(e),r})};return s||i?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`text-sm text-muted`,children:`…`}):!o||o.length===0?(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-empty`,className:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.SETTINGS$SKILLS_NO_SKILLS)})}),C?(0,Z.jsx)(Et,{onClose:()=>E(!1)}):null]}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-skills-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(_l,{value:h,onChange:g,testId:`conversation-overview-skills-scope`}),(0,Z.jsx)(Tt,{search:_.query,onSearchChange:e=>v(t=>({...t,query:e})),activeFilterCount:Ct(_),onOpenFilters:()=>b(!0)}),D.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-project-empty`,className:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.CONVERSATION$OVERVIEW_SCOPE_PROJECT_EMPTY_SKILLS)})}):O.length===0?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-skills-no-match`,className:Zn,children:(0,Z.jsx)(`p`,{className:`text-sm text-tertiary-light`,children:t(I.SETTINGS$SKILLS_NO_MATCH)})}):(0,Z.jsx)(`section`,{className:z(`flex min-w-0 flex-col gap-3`,Xn),children:(0,Z.jsx)(`div`,{className:z(Qn,`grid-cols-1`),children:O.map(e=>(0,Z.jsx)(kt,{skill:e,enabled:!u.has(e.name),onOpen:()=>S(e),onToggle:t=>k(e.name,t)},e.name))})}),x?(0,Z.jsx)(jt,{skill:x,enabled:!u.has(x.name),onToggle:e=>k(x.name,e),onClose:()=>S(null)}):null,C?(0,Z.jsx)(Et,{onClose:()=>E(!1)}):null,y?(0,Z.jsx)(Ot,{groups:Mt(D,u,_),activeCount:Ct(_),onToggle:(e,t)=>v(n=>wt(n,e,t)),onClearAll:()=>v(e=>Dt(e)),onClose:()=>b(!1)}):null]})}function yl({openAdd:e}){let{t}=f(`openhands`),{data:n,isLoading:r}=Ht(),{mutate:i,isPending:a}=Pi(),{mutate:o}=ji(),s=Bo()?.addRequestKey??0,[c,l]=(0,X.useState)(null),[u,d]=(0,X.useState)(null),[p,m]=(0,X.useState)(null),[h,g]=(0,X.useState)(``),[_,v]=(0,X.useState)(`all`);(0,X.useEffect)(()=>{e&&d({id:``,type:`sse`})},[e]),(0,X.useEffect)(()=>{s!==0&&d({id:``,type:`sse`})},[s]);let y=tr(Vt(n?.agent_settings?.mcp_config)),b=rr(ar),x=y.filter(e=>nr(e,ir(e,b),h));return r||!n?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-mcp-panel`,className:`text-sm text-muted`,children:`…`}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-mcp-panel`,className:`flex flex-col gap-4`,children:[(0,Z.jsx)(Ii,{search:h,onSearchChange:g,sectionFilter:_,onSectionFilterChange:v}),_===`library`?null:(0,Z.jsxs)(`section`,{className:`flex flex-col gap-3`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-semibold text-foreground`,children:t(I.MCP$INSTALLED_TITLE)}),(0,Z.jsx)(Mi,{servers:x,hasAnyInstalled:y.length>0,query:h,onEdit:d,onToggleEnabled:(e,t)=>{o({serverId:e.id,server:{...e,enabled:t}})}})]}),_===`installed`?null:(0,Z.jsx)(Fi,{onSelect:l,onAdd:l,query:h}),c?(0,Z.jsx)(Vn,{entry:c,existingServers:y,onClose:()=>l(null)}):null,u?(0,Z.jsx)(Ni,{server:u,existingServers:y,onClose:()=>d(null)}):null,p?(0,Z.jsx)(dn,{text:t(I.SETTINGS$MCP_CONFIRM_DELETE),onCancel:()=>m(null),onConfirm:()=>{p&&i(p,{onSuccess:()=>{E(t(I.MCP$REMOVE_SUCCESS)),m(null)},onError:e=>{T(w(e)||t(I.ERROR$GENERIC)),m(null)}})},isConfirming:a}):null]})}function bl({openAdd:e}){let t=d(),{t:n}=f(`openhands`),r=Bo()?.addRequestKey??0,{data:i,isLoading:a}=er(),{mutate:o,isPending:s}=Li(),[c,l]=(0,X.useState)(`list`),[u,p]=(0,X.useState)(null);(0,X.useEffect)(()=>{e&&l(`add-secret-form`)},[e]),(0,X.useEffect)(()=>{r!==0&&l(`add-secret-form`)},[r]);let m=()=>{t.invalidateQueries({queryKey:[`secrets-search`]}),t.invalidateQueries({queryKey:[`secrets`]})};return c===`add-secret-form`?(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-secrets-add-form`,className:`flex h-full min-h-0 flex-col overflow-y-auto p-4`,children:(0,Z.jsx)(Ri,{mode:`add`,selectedSecret:null,onCancel:()=>l(`list`)})}):(0,Z.jsxs)(`div`,{"data-testid":`conversation-overview-secrets-panel`,className:`flex h-full min-h-0 flex-col`,children:[(0,Z.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-2 py-2`,children:a?(0,Z.jsx)(`p`,{className:`px-2 py-4 text-sm text-[var(--oh-muted)]`,children:n(I.HOME$LOADING)}):i&&i.length>0?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:i.map(e=>(0,Z.jsxs)(`li`,{"data-testid":`conversation-overview-secret-item`,className:`group flex items-center gap-2 rounded-md px-2 py-2 hover:bg-white/5`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`p`,{className:`truncate text-sm text-[var(--oh-foreground)]`,children:e.name}),e.description?(0,Z.jsx)(`p`,{className:`truncate text-xs text-[var(--oh-muted)]`,children:e.description}):null]}),(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-secret-delete-${e.name}`,"aria-label":n(I.BUTTON$DELETE),onClick:()=>p(e.name),className:z(`shrink-0 rounded-md p-1 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100`,`hover:bg-white/10 hover:text-[var(--oh-foreground)]`),children:(0,Z.jsx)(Ft,{className:`size-3.5`,"aria-hidden":!0})})]},e.name))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-secrets-empty`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:n(I.SECRETS$EMPTY)})}),u?(0,Z.jsx)(dn,{text:n(I.SECRETS$CONFIRM_DELETE_KEY),isConfirming:s,onCancel:()=>p(null),onConfirm:()=>{o(u,{onSettled:()=>p(null),onSuccess:m,onError:m})}}):null]})}var xl=z(`size-3.5 shrink-0 text-[var(--oh-muted)]`,`opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100`);function Sl(e){let{repository:t,provider:n}=Eo();return!t||!n?null:e===Q.pull_requests?ds.constructPullRequestsListUrl(n,t):ds.constructIssuesListUrl(n,t)}function Cl({kind:e}){let{t}=f(`openhands`),{provider:n}=Eo(),r=Sl(e);return!r||!n?null:(0,Z.jsxs)(`a`,{href:r,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-${e}-open-external`,className:z(`inline-flex h-7 min-h-7 shrink-0 items-center gap-1.5 whitespace-nowrap`,`px-1 text-xs text-[var(--oh-muted)] transition-colors`,`hover:text-[var(--oh-foreground)]`),children:[t(I.CONVERSATION$OVERVIEW_VIEW_ON_PROVIDER,{provider:R(n)}),(0,Z.jsx)(rt,{className:`size-3.5`,"aria-hidden":!0})]})}function wl({kind:e}){let{t}=f(`openhands`),{repository:n,provider:r,isConnected:i}=Eo(),a=fs(n,r),o=ps(n,r),s=e===Q.pull_requests?a:o;return!i||!n||!r?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-git-items-unavailable`,className:z(Zn,`px-4 py-6 text-center text-sm`),children:t(I.CONVERSATION$OVERVIEW_GIT_UNAVAILABLE)}):(0,Z.jsx)(`div`,{"data-testid":`conversation-overview-${e}-panel`,className:`min-h-0 flex-1 overflow-y-auto px-2 py-2`,children:s.isLoading?(0,Z.jsx)(`p`,{className:`px-2 py-4 text-sm text-[var(--oh-muted)]`,children:t(I.HOME$LOADING)}):s.isError?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-error`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:t(I.CONVERSATION$OVERVIEW_GIT_ITEMS_ERROR)}):s.data&&s.data.length>0?(0,Z.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:s.data.map(t=>(0,Z.jsx)(`li`,{children:(0,Z.jsxs)(`a`,{href:t.url,target:`_blank`,rel:`noreferrer`,"data-testid":`conversation-overview-${e}-item-${t.number}`,className:z(`group flex min-w-0 items-center gap-2 rounded-md px-2 py-2`,`transition-colors hover:bg-white/5`),children:[(0,Z.jsxs)(`span`,{className:`shrink-0 text-sm tabular-nums text-[var(--oh-muted)]`,children:[`#`,t.number]}),(0,Z.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:t.title}),(0,Z.jsx)(rt,{className:xl,"aria-hidden":!0})]})},t.id))}):(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-${e}-empty`,className:z(Zn,`px-2 py-6 text-center text-sm`),children:e===Q.pull_requests?t(I.CONVERSATION$OVERVIEW_PULL_REQUESTS_EMPTY):t(I.CONVERSATION$OVERVIEW_ISSUES_EMPTY)})})}var Tl=z(`flex h-10 min-h-10 shrink-0 items-center gap-1.5`,`border-b border-[var(--oh-border)] py-1 pl-1 pr-4`),El=z(`h-7 min-h-7 shrink-0 whitespace-nowrap px-2.5 text-xs`),Dl=z(`inline-flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md`,`text-muted transition-colors hover:bg-white/10 hover:text-white`);function Ol(e){switch(e){case Q.automations:return I.CONVERSATION_PANEL$AUTOMATIONS;case Q.skills:return I.SETTINGS$NAV_SKILLS;case Q.mcp:return I.CONVERSATION$OVERVIEW_MCP;case Q.secrets:return I.SETTINGS$NAV_SECRETS;case Q.pull_requests:return I.CONVERSATION$OVERVIEW_PULL_REQUESTS;case Q.issues:return I.CONVERSATION$OVERVIEW_ISSUES;default:return e}}function kl({section:e}){let{t}=f(`openhands`),{requestAdd:n}=zo();switch(e){case Q.automations:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-automations-add`,className:El,onClick:n,children:t(I.AUTOMATIONS$ADD_AUTOMATION)});case Q.skills:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-skills-add-skill-button`,className:El,onClick:n,children:t(I.SETTINGS$SKILLS_ADD_BUTTON)});case Q.mcp:return(0,Z.jsx)(V,{type:`button`,variant:`secondary`,testId:`conversation-overview-mcp-add-server`,className:El,onClick:n,children:t(I.MCP$ADD_CUSTOM)});case Q.secrets:return(0,Z.jsx)(V,{type:`button`,variant:`primary`,testId:`conversation-overview-secrets-add-button`,className:El,onClick:n,children:t(I.SECRETS$ADD_NEW_SECRET)});case Q.pull_requests:return(0,Z.jsx)(Cl,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(Cl,{kind:`issues`});default:return null}}function Al({section:e,openAdd:t}){switch(e){case Q.automations:return(0,Z.jsx)(fl,{openAdd:t});case Q.skills:return(0,Z.jsx)(vl,{openAdd:t});case Q.mcp:return(0,Z.jsx)(yl,{openAdd:t});case Q.secrets:return(0,Z.jsx)(bl,{openAdd:t});case Q.pull_requests:return(0,Z.jsx)(wl,{kind:`pull_requests`});case Q.issues:return(0,Z.jsx)(wl,{kind:`issues`});default:return e}}function jl({className:e}){let{t}=f(`openhands`),{section:n,openAdd:r,closeDrawer:i}=zo(),{workspaceName:a}=To();if((0,X.useEffect)(()=>{if(!n)return;let e=e=>{e.key===`Escape`&&i()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,n]),!n)return null;let o=n===Q.pull_requests||n===Q.issues||n===Q.secrets;return(0,Z.jsxs)(`aside`,{"data-testid":`conversation-overview-drawer-content`,"aria-label":t(Ol(n)),className:z(`flex h-full w-full min-h-0 flex-col overflow-hidden bg-base-secondary`,e),children:[(0,Z.jsxs)(`header`,{className:Tl,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-drawer-close`,"aria-label":t(I.BUTTON$CLOSE),onClick:i,className:Dl,children:(0,Z.jsx)(or,{className:`size-4`,"aria-hidden":!0})}),(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[(0,Z.jsx)(`h2`,{className:`truncate text-sm font-medium text-content`,children:t(Ol(n))}),a?(0,Z.jsx)(`p`,{"data-testid":`conversation-overview-drawer-workspace`,className:`truncate text-xs text-muted`,children:a}):null]}),(0,Z.jsx)(`div`,{className:`shrink-0`,children:(0,Z.jsx)(kl,{section:n})})]}),(0,Z.jsx)(`div`,{className:z(`min-h-0 flex-1 custom-scrollbar-always`,o?`flex flex-col overflow-hidden`:`overflow-y-auto px-4 py-4`),children:(0,Z.jsx)(Al,{section:n,openAdd:r})})]})}var Ml=`conversation-overview-drawer-width`,Nl=`conversation-overview-drawer-resize-handle`,Pl=`conversation-overview-drawer`;function Fl(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function Il({isMobile:e,resizeContainerRef:t}){let n=Bo(),r=!!n?.section,{drawerWidth:i,isDragging:a,handleMouseDown:o}=ul({containerRef:t??{current:null},defaultWidth:420,minWidth:300,maxWidth:640,storageKey:Ml,enabled:r&&!e&&t!=null});return n?e?r?(0,Z.jsx)(jl,{className:`max-h-[min(50vh,420px)] w-full border-t border-[var(--oh-border)]`}):null:(0,Z.jsxs)(Z.Fragment,{children:[r&&t?(0,Z.jsx)(`div`,{"data-testid":Nl,children:(0,Z.jsx)(ol,{onMouseDown:o,isDragging:a})}):null,(0,Z.jsx)(`div`,{"data-testid":Pl,"aria-hidden":!r,className:z(`shrink-0 overflow-hidden ease-in-out`,a?`transition-[transform,opacity] duration-300`:`transition-all duration-300`,Fl(r)),style:{width:r?`${i}px`:`0px`,transitionProperty:a?`transform, opacity`:`width, transform, opacity`},children:(0,Z.jsx)(`div`,{className:`flex h-full flex-col overflow-hidden border-l border-[var(--oh-border)] bg-base-secondary`,style:{width:`${i}px`},children:r?(0,Z.jsx)(jl,{className:`h-full`}):null})})]}):null}function Ll(e){return e?`translate-x-0 opacity-100`:`w-0 translate-x-full opacity-0`}function Rl(){let e=Oi(),t=Oi(767),{isRightPanelShown:n}=U(),r=!!Bo()?.section,{leftWidth:i,rightWidth:a,isDragging:o,containerRef:s,handleMouseDown:c}=cl({defaultLeftWidth:50,minLeftWidth:30,maxLeftWidth:80,storageKey:`desktop-layout-panel-width`});return(0,Z.jsx)(`div`,{className:z(e?`relative min-h-0 flex-1 flex flex-col`:`h-full flex flex-col overflow-hidden`),children:(0,Z.jsxs)(`div`,{ref:s,className:z(`flex flex-1 overflow-hidden`,e?`flex-col`:`transition-all duration-300 ease-in-out`),style:e?void 0:{transitionProperty:o?`none`:`all`},children:[(0,Z.jsxs)(`div`,{className:z(`flex flex-col bg-base overflow-hidden`,e?`flex-1`:z(`min-w-0`,!r&&`transition-[width] duration-300 ease-in-out`)),style:e?void 0:{width:n?`${i}%`:`100%`,transitionProperty:o||r?`none`:`width`},children:[(0,Z.jsxs)(`div`,{"data-testid":`chat-pane-header`,className:z(`flex h-10 min-h-10 shrink-0 items-center`,t&&`gap-2 pl-2.5`),children:[t?(0,Z.jsx)(Mn,{}):null,(0,Z.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Z.jsx)(Wc,{})})]}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(As,{isRightPanelShown:!e&&n})})]}),!e&&n&&(0,Z.jsx)(ol,{onMouseDown:c,isDragging:o}),!e&&(0,Z.jsx)(`div`,{className:z(`transition-all duration-300 ease-in-out overflow-hidden`,Ll(n)),style:{width:n?`${a}%`:`0%`,transitionProperty:o?`opacity, transform`:`all`},children:(0,Z.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:(0,Z.jsxs)(`div`,{className:`flex flex-col flex-1 min-h-0 bg-[var(--oh-surface)] border-l border-[var(--oh-border)] overflow-hidden`,children:[(0,Z.jsx)(`div`,{"data-testid":`tabs-pane-header`,className:`flex shrink-0 flex-col border-b border-[var(--oh-border)]`,children:(0,Z.jsx)(al,{isPanelResizing:o})}),(0,Z.jsx)(`div`,{className:`flex-1 min-h-0 flex flex-col`,children:(0,Z.jsx)(qs,{})})]})})}),(0,Z.jsx)(Il,{isMobile:e,resizeContainerRef:s})]})})}function zl({onNavigateBack:e}){let{t}=f(`openhands`),{setIsRightPanelShown:n,setHasRightPanelToggled:r,setSelectedTab:i}=U();return X.useLayoutEffect(()=>(n(!0),r(!0),U.getState().selectedTab||i(`files`),()=>{n(!1),r(!1)}),[n,r,i]),(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 flex-col bg-[var(--oh-surface)]`,children:[(0,Z.jsxs)(`div`,{"data-testid":`conversation-mobile-panel-top`,className:`flex h-10 min-h-10 shrink-0 items-center gap-1.5 border-b border-[var(--oh-border)] pl-2.5`,children:[(0,Z.jsx)(`button`,{type:`button`,"data-testid":`conversation-mobile-panel-back`,onClick:()=>{e()},"aria-label":t(I.COMMON$BACK),className:An,children:(0,Z.jsx)(Xe,{size:20,className:Dn,"aria-hidden":!0,strokeWidth:2})}),(0,Z.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 items-center self-stretch`,children:(0,Z.jsx)(`div`,{"data-testid":`tabs-pane-header`,className:`flex h-full min-h-0 w-full min-w-0 flex-col justify-center`,children:(0,Z.jsx)(al,{variant:`compact`})})})]}),(0,Z.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col bg-[var(--oh-surface)]`,children:(0,Z.jsx)(qs,{})})]})}var Bl=1e3*60*5,Vl=1e3*60*15,Hl=e=>{let t=e||[],n=A();return y({queryKey:[`v1`,`sub-conversations`,t,n.backend.id,n.orgId],queryFn:async()=>t.length===0?[]:hn.batchGetAppConversations(t),enabled:t.length>0,staleTime:Bl,gcTime:Vl,retry:!1})};function Ul({children:e,conversationId:t}){let{data:n}=J(),{data:r}=Hl(n?.sub_conversation_ids??[]),i=r?.filter(e=>e!==null);return(0,Z.jsx)(ai,{conversationId:t,conversationUrl:n?.sandbox_status===`PAUSED`?null:n?.conversation_url,sessionApiKey:n?.session_api_key,subConversationIds:n?.sub_conversation_ids,subConversations:i,children:e})}function Wl(){let{t:e}=f(`openhands`),{conversationId:t}=q(),n=c(`/conversations/:conversationId/panel`),{isTask:r,taskStatus:i,taskDetail:a}=hr(),o=A(),u=X.useRef(o.backend.id),d=X.useRef(o.orgId),p=u.current!==o.backend.id||d.current!==o.orgId,{data:m,isFetched:h}=J(),{data:g}=gn(),{resetConversationState:_}=U(),v=l(),y=s(),b=yi(e=>e.clearTerminal),x=wn(e=>e.reset),S=Bi(e=>e.setCurrentAgentState),C=vi(e=>e.removeErrorMessage);X.useEffect(()=>{b(),_(),x(),S(L.LOADING),C()},[t,b,_,x,S,C]),X.useEffect(()=>{if(r&&i===`ERROR`){T(a||e(I.CONVERSATION$FAILED_TO_START_FROM_TASK));let t=y.state?.resumedFromConversationId;v(t?`/conversations/${t}`:`/conversations`,{replace:!0})}},[r,i,a,e,v,y.state]),X.useEffect(()=>{!h||!g||p||m||(Ki(o.backend.id,o.orgId),T(e(I.CONVERSATION$NOT_EXIST_OR_NO_PERMISSION)),v(`/conversations`))},[m,h,g,v,e,p,o.backend.id,o.orgId]),X.useEffect(()=>{p||t&&(t.startsWith(`task-`)||Gi(o.backend.id,o.orgId,t))},[t,p,o.backend.id,o.orgId]);let w=X.useRef(null);return X.useEffect(()=>{!h||!m||o.backend.kind===`cloud`&&m.sandbox_status===`PAUSED`&&m.sandbox_id&&w.current!==m.id&&(w.current=m.id,mn(m.sandbox_id).catch(()=>{T(e(I.CONVERSATION$FAILED_TO_START_FROM_TASK))}))},[h,m?.id,m?.sandbox_status,m?.sandbox_id,o.backend.kind,e]),p?null:(0,Z.jsx)(Ul,{conversationId:t,children:(0,Z.jsx)(Qi,{children:(0,Z.jsx)(Ro,{children:(0,Z.jsx)(`div`,{"data-testid":`app-route`,className:`flex h-full flex-col`,children:n?(0,Z.jsx)(zl,{onNavigateBack:()=>v(`/conversations/${t}`)}):(0,Z.jsx)(Rl,{})})})})})}function Gl(){return(0,Z.jsx)(Wl,{})}var Kl=u(Gl);export{ms as a,rl as i,ul as n,jo as o,ol as r,Ao as s,Kl as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./conversation-Dpzftz57.js";export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./rolldown-runtime-Cyuzqnbw.js";import{St as e,yt as t}from"./vendor-styling-Ck5D_A2Q.js";import{l as n,v as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js";import{$ as i,ct as a,et as o,xt as s}from"./active-backend-context-DKFSMbn3.js";import{a as c,i as l}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js";import{_ as u}from"./conversation-store-Ca3ghXap.js";import{C as d,E as f,h as p,t as m,y as h}from"./agent-server-conversation-service.api-DozDKIW_.js";var g=async e=>{let t=(await m.batchGetAppConversations([e]))[0];if(!t)throw Error(`V1 conversation not found: ${e}`);return{conversationUrl:t.conversation_url,sessionApiKey:t.session_api_key,sandboxId:t.sandbox_id}},_=async e=>{let{conversationUrl:t,sessionApiKey:n,sandboxId:o}=await g(e);if(a().backend.kind===`cloud`){if(!o)throw Error(`Cannot stop runtime: cloud conversation ${e} has no sandbox_id.`);return await h(o),{success:!0}}return new r(i({conversationUrl:t,sessionApiKey:n})).interruptConversation(e)},v=async(e,t)=>{let{conversationUrl:n,sessionApiKey:a}=await g(e);return new r(i({conversationUrl:n,sessionApiKey:a})).askAgent(e,t)},y=async(e,t)=>{let{conversationUrl:n,sessionApiKey:a}=await g(e);await new r(i({conversationUrl:n,sessionApiKey:a})).startGoal(e,t)},b=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);await new r(i({conversationUrl:t,sessionApiKey:n})).stopGoal(e)},x=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);await new r(i({conversationUrl:t,sessionApiKey:n})).resumeGoal(e)},S=async e=>{let{conversationUrl:t,sessionApiKey:n}=await g(e);return new r(i({conversationUrl:t,sessionApiKey:n})).runConversation(e)},C=(e,t,n)=>{e.setQueriesData({queryKey:[`user`,`conversation`,t]},e=>e&&{...e,...n}),e.setQueriesData({queryKey:[`user`,`conversations`]},e=>e&&{...e,pages:e.pages.map(e=>({...e,items:e.items.map(e=>e.id===t?{...e,...n}:e)}))})},w=(e,t,n)=>C(e,t,{execution_status:n}),T=(e,t,n)=>C(e,t,{llm_model:n}),E=(e,t)=>{e.invalidateQueries({queryKey:[`user`,`conversation`,t]}),e.invalidateQueries({queryKey:[`user`,`conversations`]}),e.invalidateQueries({queryKey:[`v1-batch-get-app-conversations`]}),e.invalidateQueries({queryKey:[`unified`,`vscode_url`]})},D=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function O(e){let t=e.split(/[\\/]+/).filter(Boolean),n=t[t.length-1];if(!n||n===`.`||n===`..`)throw Error(`Invalid file name`);return n}async function k(e,t={}){return f(e,t)}async function A(e,t,n={}){let r=O(e);return`${(await k(t,n)).replace(/[/\\]+$/,``)}/${r}`}async function j(e,t){if(t?.id===e&&t.workspace?.working_dir?.trim())return t.workspace.working_dir.trim();let n=d(e);return n?.selected_workspace?.trim()?n.selected_workspace.trim():D.test(e)?m.resolveConversationWorkingDir(e):s()}var M=5;async function N(e,t){if(t?.id===e&&t.conversation_url?.trim()&&t.session_api_key?.trim())return{conversationUrl:t.conversation_url.trim(),sessionApiKey:t.session_api_key.trim()};if(a().backend.kind===`cloud`){let[t]=await p([e]);return{conversationUrl:t?.conversation_url?.trim()??null,sessionApiKey:t?.session_api_key?.trim()??null}}return{conversationUrl:null,sessionApiKey:null}}function P(e){if(!e.conversationUrl||!e.sessionApiKey)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return{conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey}}async function F(e,t,n){let r=await j(e,n),i=await N(e,n),o=a().backend.kind===`cloud`,s=n?.id===e?n.session_api_key??i.sessionApiKey:i.sessionApiKey,c=n?.id===e?n.conversation_url??i.conversationUrl:i.conversationUrl;if(o){let e=P({conversationUrl:c,sessionApiKey:s});return I({files:t,workingDir:r,conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey})}return I({files:t,workingDir:r,conversationUrl:c,sessionApiKey:s})}async function I(e){let{files:t,workingDir:n,conversationUrl:r,sessionApiKey:a}=e,o=new l(i({conversationUrl:r,sessionApiKey:a,workingDir:n})),s=async e=>{try{let t=O(e.name),i=await A(e.name,n,{conversationUrl:r,sessionApiKey:a});return await o.fileUpload(e,i),{uploadedFile:t,skippedFile:null}}catch(t){return{uploadedFile:null,skippedFile:{name:e.name,reason:t instanceof Error?t.message:`Upload failed`}}}},c=[];for(let e=0;e<t.length;e+=M){let n=t.slice(e,e+M);c.push(...await Promise.all(n.map(s)))}return{uploaded_files:c.flatMap(e=>e.uploadedFile?[e.uploadedFile]:[]),skipped_files:c.flatMap(e=>e.skippedFile?[e.skippedFile]:[])}}var L=class{static currentConversation=null;static setCurrentConversation(e){this.currentConversation=e}static getCurrentConversation(){return this.currentConversation}static getClientOverrides(){return{sessionApiKey:this.currentConversation?.session_api_key}}static async getVSCodeUrl(e){let t=this.currentConversation?.id===e?this.currentConversation?.workspace?.working_dir??s():s();return{vscode_url:await new n(i(this.getClientOverrides())).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:t})}}static async getTrajectory(e){return{trajectory:(await new c(o(this.getClientOverrides()),e).search({limit:1e4})).items??[]}}static async uploadFiles(e,t){return F(e,t,this.currentConversation)}};e();var R=t(),z=e=>(0,R.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,R.jsx)(`path`,{d:`M21.0004 6.00001C21.0016 5.43668 20.8441 4.88442 20.5459 4.40644C20.2478 3.92846 19.8212 3.54406 19.3148 3.29726C18.8084 3.05046 18.2428 2.95122 17.6826 3.0109C17.1224 3.07059 16.5904 3.28678 16.1474 3.63473C15.7044 3.98269 15.3683 4.44835 15.1776 4.97841C14.9869 5.50848 14.9493 6.08152 15.0691 6.63197C15.1888 7.18241 15.4612 7.688 15.8549 8.09088C16.2487 8.49375 16.7479 8.77762 17.2954 8.91001V10.5C17.2978 10.6372 17.261 10.7722 17.1892 10.8891C17.1175 11.006 17.0138 11.1 16.8904 11.16L12.7354 13.32L8.59544 11.22C8.46356 11.1544 8.35443 11.0507 8.28221 10.9223C8.21 10.7939 8.17802 10.6468 8.19044 10.5V8.91001C8.89743 8.72746 9.51358 8.29333 9.92339 7.689C10.3332 7.08467 10.5085 6.35161 10.4165 5.62725C10.3245 4.90289 9.97149 4.23695 9.42361 3.75426C8.87573 3.27157 8.17062 3.00527 7.44044 3.00527C6.71026 3.00527 6.00514 3.27157 5.45726 3.75426C4.90938 4.23695 4.55635 4.90289 4.46435 5.62725C4.37234 6.35161 4.54768 7.08467 4.95749 7.689C5.36729 8.29333 5.98344 8.72746 6.69044 8.91001V10.5C6.6913 10.9156 6.80651 11.323 7.02346 11.6776C7.24041 12.0321 7.55073 12.3201 7.92044 12.51L12.0004 14.61V16.59C11.2934 16.7726 10.6773 17.2067 10.2675 17.811C9.85768 18.4153 9.68234 19.1484 9.77435 19.8728C9.86635 20.5971 10.2194 21.2631 10.7673 21.7457C11.3151 22.2284 12.0203 22.4947 12.7504 22.4947C13.4806 22.4947 14.1857 22.2284 14.7336 21.7457C15.2815 21.2631 15.6345 20.5971 15.7265 19.8728C15.8185 19.1484 15.6432 18.4153 15.2334 17.811C14.8236 17.2067 14.2074 16.7726 13.5004 16.59V14.61L17.5504 12.57C17.9317 12.3784 18.2501 12.0816 18.468 11.7148C18.686 11.348 18.7944 10.9265 18.7804 10.5V8.88001C19.4147 8.70922 19.9755 8.33496 20.3765 7.81469C20.7776 7.29442 20.9967 6.6569 21.0004 6.00001ZM6.00044 6.00001C6.00044 5.60218 6.15847 5.22065 6.43978 4.93934C6.72108 4.65804 7.10261 4.5 7.50044 4.5C7.89826 4.5 8.27979 4.65804 8.5611 4.93934C8.8424 5.22065 9.00044 5.60218 9.00044 6.00001C9.00044 6.39783 8.8424 6.77936 8.5611 7.06067C8.27979 7.34197 7.89826 7.50001 7.50044 7.50001C7.10261 7.50001 6.72108 7.34197 6.43978 7.06067C6.15847 6.77936 6.00044 6.39783 6.00044 6.00001ZM14.2054 19.5C14.2054 19.8978 14.0474 20.2794 13.7661 20.5607C13.4848 20.842 13.1033 21 12.7054 21C12.3076 21 11.9261 20.842 11.6448 20.5607C11.3635 20.2794 11.2054 19.8978 11.2054 19.5C11.2054 19.1022 11.3635 18.7207 11.6448 18.4393C11.9261 18.158 12.3076 18 12.7054 18C13.1033 18 13.4848 18.158 13.7661 18.4393C14.0474 18.7207 14.2054 19.1022 14.2054 19.5ZM18.0004 7.50001C17.6026 7.50001 17.2211 7.34197 16.9398 7.06067C16.6585 6.77936 16.5004 6.39783 16.5004 6.00001C16.5004 5.60218 16.6585 5.22065 16.9398 4.93934C17.2211 4.65804 17.6026 4.5 18.0004 4.5C18.3983 4.5 18.7798 4.65804 19.0611 4.93934C19.3424 5.22065 19.5004 5.60218 19.5004 6.00001C19.5004 6.39783 19.3424 6.77936 19.0611 7.06067C18.7798 7.34197 18.3983 7.50001 18.0004 7.50001Z`,fill:`currentColor`})}),B=e=>{let t=e.match(/^\/workspace\/[^/]+\/(.*)$/);return t?t[1]:e},V=e=>{let t=e.trim();if(!t)return``;let n=t.replace(/[\\/]+$/,``);if(!n||/^[A-Za-z]:$/.test(n))return``;let r=Math.max(n.lastIndexOf(`/`),n.lastIndexOf(`\\`));return r>=0?n.slice(r+1):n},H=u(e=>({execution_status:null,setExecutionStatus:t=>e({execution_status:t}),reset:()=>e({execution_status:null})}));export{T as _,L as a,v as c,_ as d,S as f,w as g,b as h,z as i,E as l,y as m,V as n,N as o,x as p,B as r,F as s,H as t,C as u};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t}from"./vendor-styling-Ck5D_A2Q.js";var n=e(t(),1),r=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},i=(e=>e?r(e):r),a=e=>e;function o(e,t=a){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r}var s=e=>{let t=i(e),n=e=>o(t,e);return Object.assign(n,t),n},c=(e=>e?s(e):s),l=e=>!!e.dispatchFromDevtools&&typeof e.dispatch==`function`,u=new Map,d=e=>{let t=u.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},f=(e,t,n)=>{if(e===void 0)return{type:`untracked`,connection:t.connect(n)};let r=u.get(n.name);if(r)return{type:`tracked`,store:e,...r};let i={connection:t.connect(n),stores:{}};return u.set(n.name,i),{type:`tracked`,store:e,...i}},p=(e,t)=>{if(t===void 0)return;let n=u.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&u.delete(e))},m=/.+ (.+) .+/,h=/^([^@]+)@/;function g(e){if(!e)return;let t=e.split(`
|
|
2
|
+
`),n=t.findIndex(e=>e.includes(`api.setState`));if(n<0)return;let r=t[n+1]?.trim()||``;return m.exec(r)?.[1]||h.exec(r)?.[1]}var _=(e,t={})=>(n,r,i)=>{let{enabled:a,anonymousActionType:o,store:s,...c}=t,u;try{u=(a??!1)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,i);let{connection:m,...h}=f(s,u,c),_=!0;i.setState=((e,t,a)=>{let l=n(e,t);if(!_)return l;let u=a===void 0?{type:o||g(Error().stack)||`anonymous`}:typeof a==`string`?{type:a}:a;return s===void 0?(m?.send(u,r()),l):(m?.send({...u,type:`${s}/${u.type}`},{...d(c.name),[s]:i.getState()}),l)}),i.devtools={cleanup:()=>{m&&typeof m.unsubscribe==`function`&&m.unsubscribe(),p(c.name,s)}};let y=(...e)=>{let t=_;_=!1,n(...e),_=t},b=e(i.setState,r,i);if(h.type===`untracked`?m?.init(b):(h.stores[h.store]=i,m?.init(Object.fromEntries(Object.entries(h.stores).map(([e,t])=>[e,e===h.store?b:t.getState()])))),l(i)){let e=i.dispatch;i.dispatch=(...t)=>{e(...t)}}return m.subscribe(e=>{switch(e.type){case`ACTION`:if(typeof e.payload!=`string`){console.error(`[zustand devtools middleware] Unsupported action format`);return}return v(e.payload,e=>{if(e.type===`__setState`){if(s===void 0){y(e.state);return}Object.keys(e.state).length!==1&&console.error(`
|
|
3
|
+
[zustand devtools middleware] Unsupported __setState action format.
|
|
4
|
+
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
5
|
+
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
6
|
+
`);let t=e.state[s];if(t==null)return;JSON.stringify(i.getState())!==JSON.stringify(t)&&y(t);return}l(i)&&i.dispatch(e)});case`DISPATCH`:switch(e.payload.type){case`RESET`:return y(b),s===void 0?m?.init(i.getState()):m?.init(d(c.name));case`COMMIT`:if(s===void 0){m?.init(i.getState());return}return m?.init(d(c.name));case`ROLLBACK`:return v(e.state,e=>{if(s===void 0){y(e),m?.init(i.getState());return}y(e[s]),m?.init(d(c.name))});case`JUMP_TO_STATE`:case`JUMP_TO_ACTION`:return v(e.state,e=>{if(s===void 0){y(e);return}JSON.stringify(i.getState())!==JSON.stringify(e[s])&&y(e[s])});case`IMPORT_STATE`:{let{nextLiftedState:t}=e.payload,n=t.computedStates.slice(-1)[0]?.state;if(!n)return;y(s===void 0?n:n[s]),m?.send(null,t);return}case`PAUSE_RECORDING`:return _=!_}return}}),b},v=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error(`[zustand devtools middleware] Could not parse the received json`,e)}n!==void 0&&t(n)};function y(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var b=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return b(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return b(t)(e)}}}},x=(e,t)=>(n,r,i)=>{let a={storage:y(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return b(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p},S={workspace:`workspace`,git:`git`},C=[S.workspace,S.git],w=new Set(C),T={changes:`changes`,repository:`repository`,branch:`branch`,commits:`commits`,pull_requests:`pull_requests`},E=[T.changes,T.repository,T.branch,T.commits,T.pull_requests],D=new Set(E),O=[],k=[],A=[{sections:[S.workspace]}];function j(e,t){return!t.includes(e)}function M(e,t){return!t.includes(e)}var N={CONVERSATION_STATE:`conversation-state`,PENDING_TASK_DRAFT:`pending-task-draft`},P=`conversation-state-updated`,F={selectedTab:`files`,unpinnedTabs:[],unpinnedOverviewSections:[...O],unpinnedOverviewGitParts:[...k],conversationMode:`code`,subConversationTaskId:null,draftMessage:null,rightPanelShown:!1,filesTabDiffView:null,filesTabContentViewMode:`rich`,filesTabTreeVisible:!0,filesTabOpenPaths:[],filesTabSelectedPath:null},I=new Set([`files`,`commits`,`browser`,`terminal`,`planner`,`tasklist`,`usage`]),L=new Set([`editor`,`served`,`app`,`vscode`]),R=new Set([`rich`,`plain`]);function z(e){let t=e;if(t.selectedTab!=null&&(L.has(t.selectedTab)||t.selectedTab===`changes`||!I.has(t.selectedTab))){let e=t.selectedTab;t={...t},e===`changes`?t.selectedTab=`commits`:delete t.selectedTab}if(t.unpinnedTabs){let e=t.unpinnedTabs.filter(e=>e!==`changes`&&!L.has(e));e.length!==t.unpinnedTabs.length&&(t={...t,unpinnedTabs:e})}if(t.unpinnedOverviewSections){let e=t.unpinnedOverviewSections.filter(e=>w.has(e));e.length!==t.unpinnedOverviewSections.length&&(t={...t,unpinnedOverviewSections:e})}if(t.unpinnedOverviewGitParts){let e=t.unpinnedOverviewGitParts.filter(e=>D.has(e));e.length!==t.unpinnedOverviewGitParts.length&&(t={...t,unpinnedOverviewGitParts:e})}if(t.filesTabContentViewMode!=null&&!R.has(t.filesTabContentViewMode)&&(t={...t},delete t.filesTabContentViewMode),t.rightPanelShown!=null&&typeof t.rightPanelShown!=`boolean`&&(t={...t},delete t.rightPanelShown),t.filesTabTreeVisible!=null&&typeof t.filesTabTreeVisible!=`boolean`&&(t={...t},delete t.filesTabTreeVisible),t.filesTabOpenPaths!=null)if(!Array.isArray(t.filesTabOpenPaths))t={...t},delete t.filesTabOpenPaths;else{let e=t.filesTabOpenPaths.filter(e=>typeof e==`string`&&e.length>0);e.length!==t.filesTabOpenPaths.length&&(t={...t,filesTabOpenPaths:e})}return t.filesTabSelectedPath!=null&&typeof t.filesTabSelectedPath!=`string`&&(t={...t},delete t.filesTabSelectedPath),t}function B(e){return e.startsWith(`task-`)}function V(e){return e===``||B(e)}function H(e){if(V(e))return F;try{let t=`${N.CONVERSATION_STATE}-${e}`,n=localStorage.getItem(t);return n===null?F:{...F,...z(JSON.parse(n))}}catch{return F}}function U(e,t){if(!V(e))try{let n=`${N.CONVERSATION_STATE}-${e}`,r={...H(e),...t};localStorage.setItem(n,JSON.stringify(r)),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(e){console.warn(`Failed to set conversation localStorage`,e)}}function W(e){return`${N.PENDING_TASK_DRAFT}-${e}`}function G(e,t){if(e)try{localStorage.setItem(W(e),t)}catch(e){console.warn(`Failed to store pending task draft`,e)}}function K(e){if(!e)return null;try{let t=W(e),n=localStorage.getItem(t);return localStorage.removeItem(t),n}catch(e){return console.warn(`Failed to consume pending task draft`,e),null}}function q(e){try{let t=`${N.CONVERSATION_STATE}-${e}`;localStorage.removeItem(t),typeof window<`u`&&window.dispatchEvent(new CustomEvent(P,{detail:{conversationId:e}}))}catch(t){console.warn(`Failed to clear conversation localStorage`,e,t)}}function J(e){let[t,r]=(0,n.useState)(()=>H(e));(0,n.useEffect)(()=>{if(typeof window>`u`)return;let t=`${N.CONVERSATION_STATE}-${e}`,n=()=>{r(H(e))},i=e=>{e.key===t&&n()},a=t=>{t.detail?.conversationId===e&&n()};return n(),window.addEventListener(`storage`,i),window.addEventListener(P,a),()=>{window.removeEventListener(`storage`,i),window.removeEventListener(P,a)}},[e]);let i=t=>{if(V(e)){r(e=>({...e,...t}));return}U(e,t)};return{state:t,setSelectedTab:e=>i({selectedTab:e}),setUnpinnedTabs:e=>i({unpinnedTabs:e}),setUnpinnedOverviewSections:e=>i({unpinnedOverviewSections:e}),setUnpinnedOverviewGitParts:e=>i({unpinnedOverviewGitParts:e}),setConversationMode:e=>i({conversationMode:e}),setDraftMessage:e=>i({draftMessage:e}),setRightPanelShown:e=>i({rightPanelShown:e}),setFilesTabDiffView:e=>i({filesTabDiffView:e}),setFilesTabContentViewMode:e=>i({filesTabContentViewMode:e}),setFilesTabTreeVisible:e=>i({filesTabTreeVisible:e}),setFilesTabOpenState:(e,t)=>i({filesTabOpenPaths:e,filesTabSelectedPath:t})}}var Y=()=>{if(typeof window>`u`)return null;let e=window.location.pathname.match(/\/conversations\/([^/]+)/);return e?e[1]:null},X=()=>{if(typeof window>`u`)return`code`;let e=Y();return e?H(e).conversationMode:`code`},Z=c()(_(e=>({isRightPanelShown:!1,isOverviewPanelShown:!1,isOverviewPanelPeeked:!1,selectedTab:`files`,commitsAutoExpandSection:null,images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[],messageToSend:null,messageRestoreIfEmpty:null,shouldShownAgentLoading:!1,submittedMessage:null,shouldHideSuggestions:!1,hasRightPanelToggled:!1,planContent:null,conversationMode:X(),subConversationTaskId:null,setIsRightPanelShown:t=>e({isRightPanelShown:t},!1,`setIsRightPanelShown`),setIsOverviewPanelShown:t=>e({isOverviewPanelShown:t,isOverviewPanelPeeked:!1},!1,`setIsOverviewPanelShown`),setIsOverviewPanelPeeked:t=>e({isOverviewPanelPeeked:t},!1,`setIsOverviewPanelPeeked`),setSelectedTab:t=>e({selectedTab:t},!1,`setSelectedTab`),setCommitsAutoExpandSection:t=>e({commitsAutoExpandSection:t},!1,`setCommitsAutoExpandSection`),setShouldShownAgentLoading:t=>e({shouldShownAgentLoading:t},!1,`setShouldShownAgentLoading`),setShouldHideSuggestions:t=>e({shouldHideSuggestions:t},!1,`setShouldHideSuggestions`),addImages:t=>e(e=>({images:[...e.images,...t]}),!1,`addImages`),addFiles:t=>e(e=>({files:[...e.files,...t]}),!1,`addFiles`),toggleImageUploadAsFile:t=>e(e=>{let n=new Set(e.imagesMarkedUploadAsFile);return n.has(t)?n.delete(t):n.add(t),{imagesMarkedUploadAsFile:[...n]}},!1,`toggleImageUploadAsFile`),markImagesAsPasted:t=>e(e=>({pastedImageNames:[...new Set([...e.pastedImageNames,...t])]}),!1,`markImagesAsPasted`),removeImage:t=>e(e=>{let n=e.images[t],r=[...e.images];return r.splice(t,1),{images:r,imagesMarkedUploadAsFile:n?e.imagesMarkedUploadAsFile.filter(e=>e!==n.name):e.imagesMarkedUploadAsFile,pastedImageNames:n?e.pastedImageNames.filter(e=>e!==n.name):e.pastedImageNames}},!1,`removeImage`),removeFile:t=>e(e=>{let n=[...e.files];return n.splice(t,1),{files:n}},!1,`removeFile`),clearImages:()=>e({images:[]},!1,`clearImages`),clearFiles:()=>e({files:[]},!1,`clearFiles`),clearAllFiles:()=>e({images:[],files:[],imagesMarkedUploadAsFile:[],pastedImageNames:[],loadingFiles:[],loadingImages:[]},!1,`clearAllFiles`),addFileLoading:t=>e(e=>e.loadingFiles.includes(t)?e:{loadingFiles:[...e.loadingFiles,t]},!1,`addFileLoading`),removeFileLoading:t=>e(e=>({loadingFiles:e.loadingFiles.filter(e=>e!==t)}),!1,`removeFileLoading`),addImageLoading:t=>e(e=>e.loadingImages.includes(t)?e:{loadingImages:[...e.loadingImages,t]},!1,`addImageLoading`),removeImageLoading:t=>e(e=>({loadingImages:e.loadingImages.filter(e=>e!==t)}),!1,`removeImageLoading`),clearAllLoading:()=>e({loadingFiles:[],loadingImages:[]},!1,`clearAllLoading`),setMessageToSend:t=>e({messageToSend:{text:t,timestamp:Date.now()}},!1,`setMessageToSend`),clearMessageToSend:()=>e({messageToSend:null},!1,`clearMessageToSend`),restoreMessageToInputIfEmpty:t=>e({messageRestoreIfEmpty:{text:t,timestamp:Date.now()}},!1,`restoreMessageToInputIfEmpty`),clearMessageRestoreIfEmpty:()=>e({messageRestoreIfEmpty:null},!1,`clearMessageRestoreIfEmpty`),setSubmittedMessage:t=>e({submittedMessage:t},!1,`setSubmittedMessage`),resetConversationState:()=>e({shouldHideSuggestions:!1,conversationMode:X(),subConversationTaskId:null,planContent:null},!1,`resetConversationState`),setHasRightPanelToggled:t=>e({hasRightPanelToggled:t},!1,`setHasRightPanelToggled`),setConversationMode:t=>{let n=Y();n&&U(n,{conversationMode:t}),e({conversationMode:t},!1,`setConversationMode`)},setSubConversationTaskId:t=>e({subConversationTaskId:t},!1,`setSubConversationTaskId`),setPlanContent:t=>e({planContent:t},!1,`setPlanContent`)}),{name:`conversation-store`}));export{c as _,B as a,J as c,A as d,M as f,x as g,_ as h,H as i,T as l,y as m,q as n,U as o,j as p,K as r,G as s,Z as t,S as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./utils-DaCIEEQP.js";var n=e();function r({icon:e,children:r,action:i,className:a}){return(0,n.jsxs)(`div`,{className:t(`flex flex-col items-center justify-center w-full h-full p-10 gap-4 text-center`,a),children:[(0,n.jsx)(`div`,{className:`shrink-0 text-[var(--oh-muted)] [&_svg]:size-10 [&_svg]:max-h-10 [&_svg]:max-w-10 [&_svg]:shrink-0`,"aria-hidden":!0,children:e}),(0,n.jsx)(`p`,{className:`max-w-sm text-center text-sm font-normal leading-5 text-[var(--oh-muted)]`,children:r}),i?(0,n.jsx)(`div`,{className:`flex justify-center pt-1`,children:i}):null]})}export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{t}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{W as n}from"./utils-DaCIEEQP.js";import{t as r}from"./checkmark-XZyokq_Y.js";import{t as i}from"./copy-Drmhc2jD.js";var a=e();function o({isHidden:e,isDisabled:o,onClick:s,mode:c}){let{t:l}=t(`openhands`);return(0,a.jsxs)(`button`,{hidden:e,disabled:o,"data-testid":`copy-to-clipboard`,type:`button`,onClick:s,"aria-label":l(c===`copy`?n.BUTTON$COPY:n.BUTTON$COPIED),className:`button-base p-1 cursor-pointer`,children:[c===`copy`&&(0,a.jsx)(i,{width:15,height:15}),c===`copied`&&(0,a.jsx)(r,{width:15,height:15})]})}export{o as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{H as r,U as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as a}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{W as o,t as s}from"./utils-DaCIEEQP.js";import{t as c}from"./use-is-authed-CFGkY3-Z.js";import{t as l}from"./typography-SgFy466J.js";var u=e(t(),1),d=n(),f=i(function(){let{t:e}=a(`openhands`),[t]=r(),{data:n,isLoading:i}=c(),[f,p]=(0,u.useState)(null),[m,h]=(0,u.useState)(!1),g=t.get(`user_code`),_=async e=>{try{h(!0),(await fetch(`/oauth/device/verify-authenticated`,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:`user_code=${encodeURIComponent(e)}`,credentials:`include`})).ok?p({success:!0,messageKey:o.DEVICE$SUCCESS_MESSAGE}):p({success:!1,messageKey:o.DEVICE$ERROR_FAILED})}catch{p({success:!1,messageKey:o.DEVICE$ERROR_OCCURRED})}finally{h(!1)}};return f?(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,d.jsx)(`div`,{className:`max-w-md w-full mx-auto p-6 bg-card rounded-lg shadow-lg`,children:(0,d.jsxs)(`div`,{className:`text-center`,children:[(0,d.jsx)(`div`,{className:s(`mb-4`,f.success?`text-green-600`:`text-red-600`),children:f.success?(0,d.jsx)(`svg`,{className:`w-12 h-12 mx-auto`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,d.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M5 13l4 4L19 7`})}):(0,d.jsx)(`svg`,{className:`w-12 h-12 mx-auto`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`,children:(0,d.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M6 18L18 6M6 6l12 12`})})}),(0,d.jsx)(`h2`,{className:`text-xl font-medium mb-2`,children:f.success?e(o.DEVICE$SUCCESS_TITLE):e(o.DEVICE$ERROR_TITLE)}),(0,d.jsx)(`p`,{className:`text-muted-foreground mb-4`,children:e(f.messageKey)}),!f.success&&(0,d.jsx)(`button`,{type:`button`,onClick:()=>window.location.reload(),className:`px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90`,children:e(o.DEVICE$TRY_AGAIN)})]})})}):m?(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,d.jsx)(`div`,{className:`max-w-md w-full mx-auto p-6 bg-card rounded-lg shadow-lg`,children:(0,d.jsxs)(`div`,{className:`text-center`,children:[(0,d.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-b-2 border-white mx-auto mb-4`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:e(o.DEVICE$PROCESSING)})]})})}):n&&g?(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background p-4`,children:(0,d.jsx)(`div`,{className:`flex flex-col items-center gap-6 w-full max-w-md`,children:(0,d.jsxs)(`div`,{className:`flex-1 min-w-0 max-w-md w-full mx-auto p-6 bg-card rounded-2xl shadow-lg border border-[var(--oh-border-subtle)]`,children:[(0,d.jsx)(l,{className:`text-2xl mb-4 text-center`,children:e(o.DEVICE$AUTHORIZATION_REQUEST)}),(0,d.jsxs)(`div`,{className:`mb-6 p-4 bg-base rounded-lg border border-[var(--oh-border-subtle)]`,children:[(0,d.jsx)(`p`,{className:`text-xs text-[var(--oh-text-subtle)] mb-2 text-center uppercase tracking-wider`,children:e(o.DEVICE$CODE_LABEL)}),(0,d.jsx)(`p`,{className:`text-xl font-mono font-semibold text-center tracking-[0.3em]`,children:g})]}),(0,d.jsxs)(`div`,{className:`mb-6 p-4 bg-amber-950/50 border-l-2 border-amber-500 rounded-r-lg`,children:[(0,d.jsx)(`p`,{className:`text-sm font-medium text-amber-500 mb-1`,children:e(o.DEVICE$SECURITY_NOTICE)}),(0,d.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:e(o.DEVICE$SECURITY_WARNING)})]}),(0,d.jsx)(`p`,{className:`text-muted-foreground mb-6 text-center`,children:e(o.DEVICE$CONFIRM_PROMPT)}),(0,d.jsxs)(`div`,{className:`flex gap-3`,children:[(0,d.jsx)(`button`,{type:`button`,onClick:()=>window.close(),className:`flex-1 px-4 py-2 border border-[var(--oh-border)] rounded-md hover:bg-muted text-[var(--oh-text-tertiary)]`,children:e(o.DEVICE$CANCEL)}),(0,d.jsx)(`button`,{type:`button`,onClick:()=>_(g),className:`flex-1 px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700`,children:e(o.DEVICE$AUTHORIZE)})]})]})})}):n&&!g?(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,d.jsxs)(`div`,{className:`max-w-md w-full mx-auto p-6 bg-card rounded-lg shadow-lg`,children:[(0,d.jsx)(l,{className:`text-2xl mb-4 text-center`,children:e(o.DEVICE$AUTHORIZATION_TITLE)}),(0,d.jsx)(`p`,{className:`text-muted-foreground mb-6 text-center`,children:e(o.DEVICE$ENTER_CODE_PROMPT)}),(0,d.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget).get(`user_code`);t&&n&&_(t)},children:[(0,d.jsxs)(`div`,{className:`mb-4`,children:[(0,d.jsx)(`label`,{htmlFor:`user_code`,className:`block text-sm font-medium mb-2`,children:e(o.DEVICE$CODE_INPUT_LABEL)}),(0,d.jsx)(`input`,{type:`text`,id:`user_code`,name:`user_code`,required:!0,className:`w-full px-3 py-2 border border-input rounded-md focus:outline-none focus:ring-2 focus:ring-ring`,placeholder:e(o.DEVICE$CODE_PLACEHOLDER)})]}),(0,d.jsx)(`button`,{type:`submit`,className:`w-full px-4 py-2 bg-primary text-primary-foreground rounded-md hover:bg-primary/90`,children:e(o.DEVICE$CONTINUE)})]})]})}):i?(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,d.jsxs)(`div`,{className:`text-center`,children:[(0,d.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-b-2 border-white mx-auto mb-4`}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:e(o.DEVICE$PROCESSING)})]})}):(0,d.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-background`,children:(0,d.jsxs)(`div`,{className:`max-w-md w-full mx-auto p-6 bg-card rounded-lg shadow-lg text-center`,children:[(0,d.jsx)(l,{className:`text-2xl mb-4`,children:e(o.DEVICE$AUTH_REQUIRED)}),(0,d.jsx)(`p`,{className:`text-muted-foreground`,children:e(o.DEVICE$SIGN_IN_PROMPT)})]})})});export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./utils-DaCIEEQP.js";import{p as t}from"./form-control-classes-CGw40z5h.js";var n=`transition-none`,r=`gap-0.5`,i=`gap-2`,a=e(`flex flex-col`,r),o=e(`bg-tertiary border border-[var(--oh-border-input)] rounded p-2`,`flex items-center gap-2`,t,n,`group w-full gap-2 px-3 text-[var(--oh-muted)] hover:text-white`),s=e(`group flex w-full cursor-pointer items-center rounded px-2 py-2 text-left text-sm font-normal text-white`,i,`hover:bg-[var(--oh-interactive-hover)] disabled:cursor-not-allowed disabled:opacity-60`,n),c=e(`group flex w-full cursor-pointer items-center rounded px-2 py-2 text-start text-sm font-normal`,i,`text-[var(--oh-foreground)] hover:bg-[var(--oh-interactive-hover)]`,`disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent`,n),l=e(`shrink-0 text-[var(--oh-muted)] group-hover:text-white group-focus-visible:text-white`,n),u=e(`flex size-4 shrink-0 items-center justify-center [&_svg]:text-current`,l),d=e(`inline-flex cursor-pointer items-center gap-1.5 rounded-lg border px-3 py-2 text-sm font-medium`,`border-[var(--oh-border)] bg-base-secondary text-white`,`focus-visible:border-white/40 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-white/20`,n);e(a,`overflow-y-auto custom-scrollbar-always`,`max-h-[13.875rem]`);var f=e(`overflow-y-auto custom-scrollbar`,`max-h-[min(60vh,calc(100dvh-5rem))]`),p=e(`group flex w-full items-center rounded-md px-2 py-2 text-sm font-normal text-white`,i,`hover:bg-[var(--oh-interactive-hover)]`,n);export{r as a,i as c,f as d,o as f,a as i,l,p as n,s as o,n as r,c as s,d as t,u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{t as r}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js";import{Mt as i,Nt as a}from"./active-backend-context-DKFSMbn3.js";import{W as o,t as s}from"./utils-DaCIEEQP.js";import{E as c,x as l}from"./use-tracking-D5t9otIF.js";import{r as u}from"./modal-classes-BAb4Y_BG.js";import{f as d,l as f}from"./form-control-classes-CGw40z5h.js";import{t as p}from"./brand-button-Dxv6PDeN.js";import{t as m}from"./settings-dropdown-input-tM0A0ipy.js";import{t as h}from"./settings-input-C03KUoSC.js";import{t as g}from"./use-llm-profiles-djGAhTWL.js";import{s as _}from"./use-automations-zYb0dUny.js";import{n as v}from"./api-error-message-BJyfWp6p.js";import{t as y}from"./x-mark-BopmFoBq.js";import{c as b,d as x,f as S,l as C,u as w}from"./kebab-menu-item-content-BYokkRHi.js";import{t as T}from"./use-manifest-capabilities-3z0-1G59.js";var E=e(t(),1);function D(e,t){let n=e.trim();if(!n)return{value:null};let r=Number(n);return Number.isInteger(r)?r<=0?{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_POSITIVE}:t!==void 0&&r>t?{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_MAX_EXCEEDED}:{value:r}:{errorKey:o.AUTOMATIONS$ERROR_TIMEOUT_INVALID_NUMBER}}var O=n(),k=`__active__`,A=[o.AUTOMATIONS$WEEKDAY_SUN,o.AUTOMATIONS$WEEKDAY_MON,o.AUTOMATIONS$WEEKDAY_TUE,o.AUTOMATIONS$WEEKDAY_WED,o.AUTOMATIONS$WEEKDAY_THU,o.AUTOMATIONS$WEEKDAY_FRI,o.AUTOMATIONS$WEEKDAY_SAT];function j(e){let t=e.timeout==null?``:String(e.timeout);if(e.trigger.type===`event`)return{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:`custom`,weekday:1,timeOfDay:``,isCustomSchedule:!0,rawSchedule:``,timeout:t};let n=x(e.trigger.schedule);return n.kind===`custom`?{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:`custom`,weekday:1,timeOfDay:n.hour!==void 0&&n.minute!==void 0?w(n.hour,n.minute):``,isCustomSchedule:!0,rawSchedule:n.raw,timeout:t}:{name:e.name,prompt:e.prompt??``,model:e.model??``,frequency:n.kind,weekday:n.kind===`weekly`?n.weekday??1:1,timeOfDay:w(n.hour,n.minute),isCustomSchedule:!1,rawSchedule:e.trigger.schedule??``,timeout:t}}function M({automation:e,isOpen:t,onClose:n}){let{t:x}=r(`openhands`),w=_(),M=c().editTitle,N=l(`name`),P=l(`prompt`),F=l(`model`),I=l(`timeout`),L=l(`schedule`),{data:R}=T(),z=R?.maxAutomationTimeoutSeconds,B=z===void 0?void 0:Math.min(z,I.max??z),{data:V,isLoading:H}=g(),U=V?.profiles??[],W=[{key:k,label:x(o.COMMON$ACTIVE_PROFILE)},...U.map(e=>({key:e.name,label:e.name}))],G=(0,E.useMemo)(()=>j(e),[e]),[K,q]=(0,E.useState)(G),[J,Y]=(0,E.useState)(null),[X,Z]=(0,E.useState)(null);if((0,E.useEffect)(()=>{t&&(q(G),Y(null),Z(null))},[t,G]),!t)return null;let Q=[{key:`daily`,label:x(o.AUTOMATIONS$FREQUENCY_DAILY)},{key:`weekdays`,label:x(o.AUTOMATIONS$FREQUENCY_WEEKDAYS)},{key:`weekly`,label:x(o.AUTOMATIONS$FREQUENCY_WEEKLY)},...K.isCustomSchedule?[{key:`custom`,label:x(o.AUTOMATIONS$FREQUENCY_CUSTOM)}]:[]],$=A.map((e,t)=>({key:String(t),label:x(e)})),ee=!K.isCustomSchedule||S(K.timeOfDay)!==null||K.timeOfDay===``;return(0,O.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[(0,O.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:n,onKeyDown:e=>{e.key===`Escape`&&n()},role:`presentation`}),(0,O.jsxs)(`div`,{className:`relative w-full max-w-md rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6`,children:[(0,O.jsx)(`button`,{type:`button`,onClick:n,className:`absolute right-4 top-4 text-muted hover:text-foreground`,"aria-label":x(o.AUTOMATIONS$CANCEL),children:(0,O.jsx)(y,{className:`size-5`})}),(0,O.jsx)(`h2`,{className:u,children:M}),(0,O.jsxs)(`form`,{onSubmit:t=>{t.preventDefault();let r=K.name.trim();if(!r){Y(x(o.AUTOMATIONS$NAME_REQUIRED));return}Y(null);let s=D(K.timeout,B);if(`errorKey`in s){Z(x(s.errorKey,{max:B}));return}Z(null);let c={};r!==e.name&&(c.name=r);let l=K.prompt.trim();l!==(e.prompt??``).trim()&&(c.prompt=l.length===0?null:l);let u=K.model.trim();if(u!==(e.model??``)&&(c.model=u===``?null:u),(s.value??null)!==(e.timeout??null)&&(c.timeout=s.value),!K.isCustomSchedule&&K.frequency!==`custom`){let t=S(K.timeOfDay);if(t){let n=b({kind:K.frequency,hour:t.hour,minute:t.minute,weekday:K.frequency===`weekly`?K.weekday:void 0});n!==e.trigger.schedule&&(c.trigger={...e.trigger,schedule:n})}}if(Object.keys(c).length===0){n();return}w.mutate({id:e.id,body:c},{onSuccess:()=>{a(x(o.AUTOMATIONS$EDIT_SUCCESS)),n()},onError:e=>{i(v(e,x(o.AUTOMATIONS$EDIT_ERROR)))}})},noValidate:!0,className:`mt-4 flex flex-col gap-4`,"aria-label":M,children:[N.present&&(0,O.jsx)(h,{testId:`edit-automation-name`,name:`name`,type:`text`,label:N.label,value:K.name,onChange:e=>q(t=>({...t,name:e})),error:J??void 0,showRequiredTag:N.required}),P.present&&(0,O.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(`span`,{className:`text-sm`,children:P.label}),(0,O.jsx)(`textarea`,{"data-testid":`edit-automation-prompt`,name:`prompt`,value:K.prompt,onChange:e=>q(t=>({...t,prompt:e.target.value})),rows:4,className:s(f,`placeholder:italic`)}),P.help!==null&&(0,O.jsx)(`span`,{className:`text-xs text-muted`,children:P.help})]}),F.present&&(H||U.length>0)&&(0,O.jsx)(m,{testId:`edit-automation-model`,name:`model`,label:F.label,items:W,selectedKey:K.model||k,isLoading:H,placeholder:x(o.COMMON$ACTIVE_PROFILE),onSelectionChange:e=>q(t=>({...t,model:e&&e!==k?String(e):``}))}),I.present&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(h,{testId:`edit-automation-timeout`,name:`timeout`,type:`number`,label:I.label,value:K.timeout,onChange:e=>q(t=>({...t,timeout:e})),error:X??void 0,showOptionalTag:!0,min:I.min??1,max:B,step:1,placeholder:`600`}),I.help!==null&&(0,O.jsx)(`span`,{"data-testid":`edit-automation-timeout-hint`,className:`text-xs text-muted`,children:I.help})]}),e.trigger.type===`event`?(0,O.jsxs)(`div`,{className:`flex flex-col gap-3 rounded-lg bg-[var(--oh-surface-raised)] p-3`,children:[(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$TRIGGER)}),(0,O.jsx)(`span`,{className:`text-sm text-content`,children:x(o.AUTOMATIONS$DETAIL$TRIGGER_EVENT)})]}),e.trigger.source&&(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_SOURCE)}),(0,O.jsx)(`span`,{className:`text-sm text-content`,children:e.trigger.source})]}),e.trigger.on&&(0,O.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_TYPE)}),(0,O.jsx)(`code`,{className:`text-xs font-mono text-content`,children:C(e.trigger.on)})]}),e.trigger.filter&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,O.jsx)(`span`,{className:`text-xs font-medium text-muted`,children:x(o.AUTOMATIONS$DETAIL$EVENT_FILTER)}),(0,O.jsx)(`code`,{className:`text-xs font-mono text-content break-all`,children:e.trigger.filter})]})]}):L.present?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(m,{testId:`edit-automation-frequency`,name:`frequency`,label:L.label,items:Q,selectedKey:K.frequency,isDisabled:K.isCustomSchedule,onSelectionChange:e=>{!e||K.isCustomSchedule||q(t=>({...t,frequency:e}))}}),K.frequency===`weekly`&&!K.isCustomSchedule&&(0,O.jsx)(m,{testId:`edit-automation-weekday`,name:`weekday`,label:x(o.AUTOMATIONS$WEEKDAY),items:$,selectedKey:String(K.weekday),onSelectionChange:e=>{e!==null&&q(t=>({...t,weekday:Number(e)}))}}),(0,O.jsxs)(`label`,{className:`flex flex-col gap-2.5 w-full min-w-0`,children:[(0,O.jsx)(`span`,{className:`text-sm`,children:x(o.AUTOMATIONS$TIME_OF_DAY)}),(0,O.jsx)(`input`,{"data-testid":`edit-automation-time`,name:`timeOfDay`,type:`time`,value:K.timeOfDay,onChange:e=>q(t=>({...t,timeOfDay:e.target.value})),disabled:K.isCustomSchedule&&!ee,className:s(d,`disabled:bg-[var(--oh-surface-raised)]`)}),e.timezone&&(0,O.jsxs)(`span`,{className:`text-xs text-muted`,children:[x(o.AUTOMATIONS$TIMEZONE),`: `,e.timezone]})]}),K.isCustomSchedule&&(0,O.jsxs)(`p`,{className:`text-xs text-muted`,"data-testid":`custom-schedule-hint`,children:[x(o.AUTOMATIONS$CUSTOM_SCHEDULE_HINT),K.rawSchedule&&(0,O.jsxs)(O.Fragment,{children:[` `,(0,O.jsx)(`code`,{className:`text-xs text-content`,children:K.rawSchedule})]})]})]}):null,(0,O.jsxs)(`div`,{className:`mt-2 flex justify-end gap-3`,children:[(0,O.jsx)(p,{testId:`edit-automation-cancel`,type:`button`,variant:`secondary`,onClick:n,isDisabled:w.isPending,children:x(o.AUTOMATIONS$CANCEL)}),(0,O.jsx)(p,{testId:`edit-automation-save`,type:`submit`,variant:`primary`,isDisabled:w.isPending,"aria-busy":w.isPending,children:w.isPending?x(o.AUTOMATIONS$SAVING):x(o.AUTOMATIONS$SAVE)})]})]})]})]})}export{M as t};
|