@openhands/agent-canvas 1.14.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/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-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~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 +124 -43
- package/build/locales/ca/openhands.json +124 -43
- package/build/locales/de/openhands.json +124 -43
- package/build/locales/en/openhands.json +124 -43
- package/build/locales/es/openhands.json +124 -43
- package/build/locales/fr/openhands.json +124 -43
- package/build/locales/it/openhands.json +124 -43
- package/build/locales/ja/openhands.json +124 -43
- package/build/locales/ko-KR/openhands.json +124 -43
- package/build/locales/no/openhands.json +124 -43
- package/build/locales/pt/openhands.json +124 -43
- package/build/locales/tr/openhands.json +124 -43
- package/build/locales/uk/openhands.json +124 -43
- package/build/locales/zh-CN/openhands.json +124 -43
- package/build/locales/zh-TW/openhands.json +124 -43
- 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 +13 -2
- package/dist/api/automation-service/automation-service.api.js +99 -84
- 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/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.map +1 -1
- package/dist/api/profiles-service/profiles-service.api.d.ts +16 -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/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.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/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.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 +179 -177
- package/dist/components/features/chat/chat-interface.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/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 +252 -225
- 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/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/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 +174 -149
- 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-commit-changes.cjs +1 -1
- package/dist/hooks/query/use-commit-changes.js +4 -4
- 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-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-unified-get-git-changes.cjs +1 -1
- package/dist/hooks/query/use-unified-get-git-changes.js +4 -4
- package/dist/hooks/query/use-unified-git-commits.cjs +1 -1
- package/dist/hooks/query/use-unified-git-commits.js +4 -4
- package/dist/hooks/query/use-unified-git-diff.cjs +1 -1
- package/dist/hooks/query/use-unified-git-diff.js +4 -4
- package/dist/hooks/query/use-workspace-files.cjs +1 -1
- package/dist/hooks/query/use-workspace-files.js +6 -6
- 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.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 +17 -0
- package/dist/hooks/use-tracking.js +10 -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 +124 -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 +2091 -714
- 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 +124 -43
- package/dist/locales/ca/openhands.json +124 -43
- package/dist/locales/de/openhands.json +124 -43
- package/dist/locales/en/openhands.json +124 -43
- package/dist/locales/es/openhands.json +124 -43
- package/dist/locales/fr/openhands.json +124 -43
- package/dist/locales/it/openhands.json +124 -43
- package/dist/locales/ja/openhands.json +124 -43
- package/dist/locales/ko-KR/openhands.json +124 -43
- package/dist/locales/no/openhands.json +124 -43
- package/dist/locales/pt/openhands.json +124 -43
- package/dist/locales/tr/openhands.json +124 -43
- package/dist/locales/uk/openhands.json +124 -43
- package/dist/locales/zh-CN/openhands.json +124 -43
- package/dist/locales/zh-TW/openhands.json +124 -43
- 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/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/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/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/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/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-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/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 +4 -0
- package/scripts/dev-static.mjs +49 -43
- package/scripts/dev-with-automation.mjs +13 -5
- package/scripts/seed-automation-ux-data.mjs +810 -0
- package/build/assets/acp-providers-CYy8qA2z.js +0 -1
- package/build/assets/active-backend-context-BZDG15C0.js +0 -2
- package/build/assets/agent-context-settings-DGWBBbcp.js +0 -1
- package/build/assets/agent-profiles-settings-DrkGdf4_.js +0 -1
- package/build/assets/agent-server-conversation-service.api-DK56YPTs.js +0 -86
- package/build/assets/agent-settings-DfcSgkLD.js +0 -2
- package/build/assets/agent-settings-Lrc5-twS.js +0 -1
- package/build/assets/alert-banner-BgDHhL7b.js +0 -1
- package/build/assets/api-error-message-BEIE_yD1.js +0 -1
- package/build/assets/api-key-entry-screen-DaZnOlVo.js +0 -1
- package/build/assets/app-settings-BG5NAUbC.js +0 -1
- package/build/assets/automation-detail-D4Hs831Z.js +0 -3
- package/build/assets/automation-export-n0X6FB0C.js +0 -2
- package/build/assets/automation-git-sync-CDrm8WV7.js +0 -1
- package/build/assets/automation-setup-route-CZCl4ONs.js +0 -1
- package/build/assets/automation-templates-DFF96AdL.js +0 -1
- package/build/assets/automations-list-Bl-oGOrV.js +0 -1
- package/build/assets/back-nav-button-H_ThtDA0.js +0 -1
- package/build/assets/backend-form-modal-CbCemvHt.js +0 -1
- package/build/assets/backend-not-configured-DP8KLNq_.js +0 -1
- package/build/assets/backend-synced-settings-badge-BBASWqsb.js +0 -1
- package/build/assets/badge-B-51h-SW.js +0 -1
- package/build/assets/base-modal-BbjycA8X.js +0 -1
- package/build/assets/bot-CGPCg03p.js +0 -1
- package/build/assets/brand-button-Blxv5nww.js +0 -1
- package/build/assets/browser-CuW0nWvh.js +0 -7
- package/build/assets/browser-tab-D5G0ORwt.js +0 -1
- package/build/assets/chat-send-button-BD2tii1r.js +0 -1
- package/build/assets/check-DSuS-lyr.js +0 -1
- package/build/assets/chevron-down-CgGcmtE2.js +0 -1
- package/build/assets/circle-check-CG5-NPw7.js +0 -1
- package/build/assets/circle-plus-check-toggle-ASbpB8vN.js +0 -1
- package/build/assets/cloud-funnel-analytics-GlCUG0gk.js +0 -1
- package/build/assets/cog-CZiR80uT.js +0 -1
- package/build/assets/combobox-caret-DvpEsh2O.js +0 -1
- package/build/assets/command-menu-DwUQzjYP.js +0 -1
- package/build/assets/condenser-settings-BptcoiLA.js +0 -1
- package/build/assets/confirmation-modal-CiEwxZAA.js +0 -1
- package/build/assets/context-menu-list-item-CdcamfM1.js +0 -1
- package/build/assets/conversation-DREHj4nT.js +0 -1
- package/build/assets/conversation-DotRfiDz.js +0 -90
- package/build/assets/conversation-panel-DREHj4nT.js +0 -1
- package/build/assets/conversation-state-store-DMLtlHbE.js +0 -1
- package/build/assets/conversation-store-Blc5xysY.js +0 -6
- package/build/assets/conversation-tab-empty-state-D-puECpY.js +0 -1
- package/build/assets/copy-to-clipboard-button-BGxcUbgy.js +0 -1
- package/build/assets/device-verify-CZJfWaJf.js +0 -1
- package/build/assets/dropdown-classes-tLhpwtxS.js +0 -1
- package/build/assets/entry.client-D8GnI6GZ.js +0 -2
- package/build/assets/enum-filter-dropdown-Fk8k60nk.js +0 -1
- package/build/assets/environment-switch-overlay-DeztVYuL.js +0 -1
- package/build/assets/extension-module-card-classes-Bo43vY5V.js +0 -1
- package/build/assets/extensions-hub-Cd6GCYzq.js +0 -1
- package/build/assets/extensions-navigation-C4sgZg-y.js +0 -1
- package/build/assets/external-link-C0UpBgsE.js +0 -1
- package/build/assets/file-text-C6WYtNdV.js +0 -1
- package/build/assets/files-tab-BW_qzyAm.js +0 -1
- package/build/assets/form-control-classes-CGXBLcn1.js +0 -1
- package/build/assets/format-relative-time-ZhQD4rsl.js +0 -1
- package/build/assets/git-provider-icon-CaQ1yLPi.js +0 -1
- package/build/assets/git-repo-dropdown-CgXR6M_E.js +0 -1
- package/build/assets/git-repo-dropdown-D2Uei3CO.js +0 -1
- package/build/assets/highlighted-source-view-C_YOp8Fo.js +0 -1
- package/build/assets/home-DNzzJcMP.js +0 -1
- package/build/assets/home-aCos-5vc.js +0 -1
- package/build/assets/home-store-DgzViC3f.js +0 -1
- package/build/assets/index-home-DNzzJcMP.js +0 -1
- package/build/assets/info-CLoC1LRo.js +0 -1
- package/build/assets/install-server-modal-D7zIqNKz.js +0 -1
- package/build/assets/kebab-menu-item-content-DERMdnDv.js +0 -1
- package/build/assets/launch-5PjKeLak.js +0 -1
- package/build/assets/list-todo-BF049YaY.js +0 -1
- package/build/assets/llm-not-configured-banner-BK9z5eS0.js +0 -27
- package/build/assets/llm-settings-BLAMK2tR.js +0 -1
- package/build/assets/llm-settings-BWsbarGM.js +0 -1
- package/build/assets/llm-subscription-service-SfnEV9Uc.js +0 -1
- package/build/assets/loader-circle-D7IagAyF.js +0 -1
- package/build/assets/loading-spinner-DBgXgra0.js +0 -1
- package/build/assets/manage-backends-modal-BTqNPhzc.js +0 -1
- package/build/assets/manifest-abebca3c.js +0 -1
- package/build/assets/manifest-subpage-layout-Rn-glaxV.js +0 -1
- package/build/assets/map-provider-BK4HnqYz.js +0 -1
- package/build/assets/markdown-renderer-Cp6DlHQN.js +0 -8
- package/build/assets/mcp-BC-Ixn4T.js +0 -9
- package/build/assets/mcp-marketplace-utils-BJWJgbB6.js +0 -1
- package/build/assets/messages-CzFKrzPG.js +0 -40
- package/build/assets/modal-body-BdKfD3Hl.js +0 -1
- package/build/assets/modal-classes-D5_b5vMi.js +0 -1
- package/build/assets/modal-close-button-objukxk_.js +0 -1
- package/build/assets/mouse-pointer-click-C_gXyLyD.js +0 -1
- package/build/assets/npm-CHVHV1MC.js +0 -1
- package/build/assets/onboarding-Diw0V51A.js +0 -1
- package/build/assets/onboarding-modal-Da4yHzsA.js +0 -1
- package/build/assets/organization-service.api-BztSy69u.js +0 -1
- package/build/assets/parse-git-remote-url-BkXN9jzl.js +0 -1
- package/build/assets/pencil-49avMHlD.js +0 -1
- package/build/assets/planner-tab-CJiSpNax.js +0 -1
- package/build/assets/plugins-management-service-lHdNKWNU.js +0 -1
- package/build/assets/plus-C0BagBpV.js +0 -1
- package/build/assets/profiles-service.api-BLr7FXec.js +0 -1
- package/build/assets/providers-CWXnb7S3.js +0 -1
- package/build/assets/proxy-DYDXxtje.js +0 -1
- package/build/assets/puzzle-Bt2B1rzf.js +0 -1
- package/build/assets/recommended-automations-launcher-CcFMfJRR.js +0 -1
- package/build/assets/refresh-cw-nmcesifB.js +0 -1
- package/build/assets/root-CT4t7apy.css +0 -1
- package/build/assets/root-DnRgLKpU.js +0 -2
- package/build/assets/root-layout-2L9tr-BN.js +0 -2
- package/build/assets/schema-field-C59lVZTA.js +0 -1
- package/build/assets/sdk-section-page-BbBEQQjq.js +0 -1
- package/build/assets/search-CYSDBczG.js +0 -1
- package/build/assets/secrets-service-BtsgYSlj.js +0 -1
- package/build/assets/secrets-settings-DJ0OKa4_.js +0 -1
- package/build/assets/segmented-toggle-DiVfTZuN.js +0 -1
- package/build/assets/settings-CDqL_Uqh.js +0 -1
- package/build/assets/settings-dropdown-input-Ba1UN5Du.js +0 -1
- package/build/assets/settings-index-Cz2cKt2K.js +0 -1
- package/build/assets/settings-input-CWUEHHvS.js +0 -1
- package/build/assets/settings-list-classes-DdcLXDGn.js +0 -1
- package/build/assets/settings-modal-nEEK1Kh1.js +0 -1
- package/build/assets/settings-service.api-3yAUFcaP.js +0 -1
- package/build/assets/settings-switch-Dk9hChx1.js +0 -1
- package/build/assets/settings-utils-CxjtCSB3.js +0 -1
- package/build/assets/shared-conversation-DbAcrx3s.js +0 -1
- package/build/assets/shield-check-CiOTXxV2.js +0 -1
- package/build/assets/sidebar-layout-lrfPooIB.js +0 -1
- package/build/assets/sidebar-mobile-menu-toggle-KERXfNu1.js +0 -1
- package/build/assets/sidebar-nav-link-B8lFD6Cb.js +0 -1
- package/build/assets/sidebar-store-u6pUpxJ7.js +0 -1
- package/build/assets/skill-card-pill-row-dGIUzr_b.js +0 -1
- package/build/assets/skill-icon-badge-kkOWZ89w.js +0 -1
- package/build/assets/skill-scope-DWN1PBPH.js +0 -1
- package/build/assets/skills-plugins-DFjH2Nq6.js +0 -1
- package/build/assets/skills-settings-DIHpl3ol.js +0 -2
- package/build/assets/sparkles-ntyMLnbj.js +0 -1
- package/build/assets/styled-tooltip-B6JXcsmL.js +0 -1
- package/build/assets/task-list-tab-aEJzEcHD.js +0 -1
- package/build/assets/terminal-Dch7Ty5K.js +0 -3
- package/build/assets/toggle-switch-B2MLKsgt.js +0 -1
- package/build/assets/trash-2-yZnDM4Ji.js +0 -1
- package/build/assets/typography-DB5HoCk0.js +0 -1
- package/build/assets/usage-tab-DrEtBmBT.js +0 -1
- package/build/assets/use-acp-credential-form-c8KXAa8A.js +0 -1
- package/build/assets/use-activate-agent-profile-B0p34N3q.js +0 -1
- package/build/assets/use-agent-profiles-CPIc6wLH.js +0 -1
- package/build/assets/use-can-manage-org-profiles-Dz_8Eqkv.js +0 -1
- package/build/assets/use-cloud-current-user-id-DvUVqCle.js +0 -1
- package/build/assets/use-config-C3PO4TBw.js +0 -1
- package/build/assets/use-create-conversation-DVrA_uLD.js +0 -1
- package/build/assets/use-create-secret-DbBIpaCR.js +0 -1
- package/build/assets/use-get-secrets-6PBitf54.js +0 -1
- package/build/assets/use-has-permission-CQ31Cl8j.js +0 -1
- package/build/assets/use-is-authed-2UrDIziV.js +0 -1
- package/build/assets/use-is-creating-conversation-BvYpmb3v.js +0 -1
- package/build/assets/use-launch-skill-in-chat-COnDpxCQ.js +0 -1
- package/build/assets/use-llm-profiles-diZS4FiN.js +0 -1
- package/build/assets/use-manifest-capabilities-HIWCtIUm.js +0 -1
- package/build/assets/use-onboarding-completion-Bs8PcXik.js +0 -1
- package/build/assets/use-plugins-marketplace-BCuNLFsr.js +0 -1
- package/build/assets/use-save-agent-profile-BaMNSpBV.js +0 -1
- package/build/assets/use-save-settings-BahvC2Gw.js +0 -1
- package/build/assets/use-settings-C6ZxpBDX.js +0 -1
- package/build/assets/use-settings-nav-items-Bqn69Ggw.js +0 -16
- package/build/assets/use-tracking-Bhu7gk2y.js +0 -3
- package/build/assets/use-user-conversation-BkNXpXrd.js +0 -1
- package/build/assets/useInfiniteQuery-c_OmS3lK.js +0 -1
- package/build/assets/useMutation-6ZsQCqAn.js +0 -1
- package/build/assets/useQueries-xDrGlTO_.js +0 -1
- package/build/assets/useQuery-Bs5NFz2s.js +0 -1
- package/build/assets/utils-DUD5ScdA.js +0 -1
- package/build/assets/vendor~browser-B-fae1JU.js +0 -47
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js +0 -186
- package/build/assets/vendor~files-tab-B6POTS66.js +0 -11
- package/build/assets/vendor~index-home~home~conversation-panel~conversation-53Q_U6uP.js +0 -13
- package/build/assets/vendor~root-layout-DeQACFVA.js +0 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation-bv7ooVgH.js +0 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-e8pX05xf.js +0 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-BvS6PCK2.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~hjcjabwg-DOPLJMH9.js +0 -48
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js +0 -1
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BOVIFA_g.js +0 -73
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C0JXQb_q.js +0 -7465
- package/build/assets/verification-settings-COueVXmM.js +0 -1
- package/build/assets/wrench-C95ujnYo.js +0 -1
- package/build/assets/x-86ZCfxKY.js +0 -1
- package/build/assets/zap-DRa-r-Tf.js +0 -1
- 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/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/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/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/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/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~dcc51rps-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { useTranslation as e } from "../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
|
+
import { I18nKey as t } from "../../../i18n/declaration.js";
|
|
3
|
+
import { AutomationCardSkeleton as n } from "../automations/automation-card-skeleton.js";
|
|
4
|
+
import { useAutomations as r } from "../../../hooks/query/use-automations.js";
|
|
5
|
+
import { AutomationGroup as i } from "../automations/automation-group.js";
|
|
6
|
+
import { AddAutomationModal as a } from "../automations/add-automation-modal.js";
|
|
7
|
+
import { BackendUnavailable as o } from "../automations/backend-not-configured.js";
|
|
8
|
+
import { EmptyState as s } from "../automations/empty-state.js";
|
|
9
|
+
import { ErrorState as c } from "../automations/error-state.js";
|
|
10
|
+
import { useAutomationHealth as l } from "../../../hooks/query/use-automation-health.js";
|
|
11
|
+
import { useEffect as u, useState as d } from "react";
|
|
12
|
+
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
13
|
+
//#region src/components/features/conversation/conversation-overview-automations-panel.tsx
|
|
14
|
+
var h = () => void 0;
|
|
15
|
+
function g({ openAdd: g }) {
|
|
16
|
+
let { t: _ } = e("openhands"), [v, y] = d(g), { data: b, isLoading: x, refetch: S } = l(), { data: C, isLoading: w, isError: T, refetch: E } = r({
|
|
17
|
+
limit: 50,
|
|
18
|
+
offset: 0,
|
|
19
|
+
enabled: b?.status === "ok"
|
|
20
|
+
});
|
|
21
|
+
u(() => {
|
|
22
|
+
g && y(!0);
|
|
23
|
+
}, [g]);
|
|
24
|
+
let D;
|
|
25
|
+
return D = x || b?.status === "ok" && w ? /* @__PURE__ */ p(n, {}) : b?.status === "ok" ? T ? /* @__PURE__ */ p(c, { onRetry: E }) : C?.automations.length ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(i, {
|
|
26
|
+
title: _(t.CONVERSATION_PANEL$AUTOMATIONS),
|
|
27
|
+
count: C.automations.length,
|
|
28
|
+
automations: C.automations,
|
|
29
|
+
view: "list",
|
|
30
|
+
onToggle: h,
|
|
31
|
+
onRunNow: h,
|
|
32
|
+
onDelete: h,
|
|
33
|
+
onExport: h
|
|
34
|
+
}), /* @__PURE__ */ p(a, {
|
|
35
|
+
isOpen: v,
|
|
36
|
+
onClose: () => y(!1)
|
|
37
|
+
})] }) : /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(s, {}), /* @__PURE__ */ p(a, {
|
|
38
|
+
isOpen: v,
|
|
39
|
+
onClose: () => y(!1)
|
|
40
|
+
})] }) : /* @__PURE__ */ p(o, { onRetry: S }), /* @__PURE__ */ p("div", {
|
|
41
|
+
"data-testid": "conversation-overview-automations-panel",
|
|
42
|
+
children: D
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { g as ConversationOverviewAutomationsPanel };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=conversation-overview-automations-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-automations-panel.js","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-automations-panel.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { AutomationCardSkeleton } from \"#/components/features/automations/automation-card-skeleton\";\nimport { AutomationGroup } from \"#/components/features/automations/automation-group\";\nimport { AddAutomationModal } from \"#/components/features/automations/add-automation-modal\";\nimport { BackendNotConfigured } from \"#/components/features/automations/backend-not-configured\";\nimport { EmptyState } from \"#/components/features/automations/empty-state\";\nimport { ErrorState } from \"#/components/features/automations/error-state\";\nimport { useAutomations } from \"#/hooks/query/use-automations\";\nimport { useAutomationHealth } from \"#/hooks/query/use-automation-health\";\nimport { I18nKey } from \"#/i18n/declaration\";\n\ninterface ConversationOverviewAutomationsPanelProps {\n openAdd: boolean;\n}\n\nconst NOOP = () => undefined;\n\n/** Reuses the existing Automations list and creation guidance in the drawer. */\nexport function ConversationOverviewAutomationsPanel({\n openAdd,\n}: ConversationOverviewAutomationsPanelProps) {\n const { t } = useTranslation(\"openhands\");\n const [isAddModalOpen, setIsAddModalOpen] = useState(openAdd);\n const {\n data: health,\n isLoading: isHealthLoading,\n refetch: refetchHealth,\n } = useAutomationHealth();\n const { data, isLoading, isError, refetch } = useAutomations({\n limit: 50,\n offset: 0,\n enabled: health?.status === \"ok\",\n });\n\n useEffect(() => {\n if (openAdd) setIsAddModalOpen(true);\n }, [openAdd]);\n\n // Every state renders inside the same panel container so the drawer's\n // DOM contract (one `conversation-overview-automations-panel` node) holds\n // regardless of backend health or list contents.\n let body;\n if (isHealthLoading || (health?.status === \"ok\" && isLoading)) {\n body = <AutomationCardSkeleton />;\n } else if (health?.status !== \"ok\") {\n body = <BackendNotConfigured onRetry={refetchHealth} />;\n } else if (isError) {\n body = <ErrorState onRetry={refetch} />;\n } else if (!data?.automations.length) {\n body = (\n <>\n <EmptyState />\n <AddAutomationModal\n isOpen={isAddModalOpen}\n onClose={() => setIsAddModalOpen(false)}\n />\n </>\n );\n } else {\n body = (\n <>\n <AutomationGroup\n title={t(I18nKey.CONVERSATION_PANEL$AUTOMATIONS)}\n count={data.automations.length}\n automations={data.automations}\n view=\"list\"\n onToggle={NOOP}\n onRunNow={NOOP}\n onDelete={NOOP}\n onExport={NOOP}\n />\n <AddAutomationModal\n isOpen={isAddModalOpen}\n onClose={() => setIsAddModalOpen(false)}\n />\n </>\n );\n }\n\n return (\n <div data-testid=\"conversation-overview-automations-panel\">{body}</div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAgBA,IAAM,UAAa,KAAA;AAGnB,SAAgB,EAAqC,EACnD,cAC4C;CAC5C,IAAM,EAAE,SAAM,EAAe,WAAW,GAClC,CAAC,GAAgB,KAAqB,EAAS,CAAO,GACtD,EACJ,MAAM,GACN,WAAW,GACX,SAAS,MACP,EAAoB,GAClB,EAAE,SAAM,cAAW,YAAS,eAAY,EAAe;EAC3D,OAAO;EACP,QAAQ;EACR,SAAS,GAAQ,WAAW;CAC9B,CAAC;CAED,QAAgB;EACd,AAAI,KAAS,EAAkB,EAAI;CACrC,GAAG,CAAC,CAAO,CAAC;CAKZ,IAAI;CAsCJ,OArCA,AAGE,IAHE,KAAoB,GAAQ,WAAW,QAAQ,IAC1C,kBAAC,GAAD,CAAyB,CAAA,IACvB,GAAQ,WAAW,OAEnB,IACF,kBAAC,GAAD,EAAY,SAAS,EAAU,CAAA,IAC5B,GAAM,YAAY,SAY1B,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,OAAO,EAAE,EAAQ,8BAA8B;EAC/C,OAAO,EAAK,YAAY;EACxB,aAAa,EAAK;EAClB,MAAK;EACL,UAAU;EACV,UAAU;EACV,UAAU;EACV,UAAU;CACX,CAAA,GACD,kBAAC,GAAD;EACE,QAAQ;EACR,eAAe,EAAkB,EAAK;CACvC,CAAA,CACD,EAAA,CAAA,IAzBF,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD,CAAa,CAAA,GACb,kBAAC,GAAD;EACE,QAAQ;EACR,eAAe,EAAkB,EAAK;CACvC,CAAA,CACD,EAAA,CAAA,IAXG,kBAAC,GAAD,EAAsB,SAAS,EAAgB,CAAA,GAmCtD,kBAAC,OAAD;EAAK,eAAY;YAA2C;CAAU,CAAA;AAE1E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../i18n/declaration.cjs"),r=require("../../../node_modules/lucide-react/dist/esm/icons/folder-git-2.cjs"),i=require("../../../node_modules/lucide-react/dist/esm/icons/git-branch.cjs"),a=require("../../../node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs"),o=require("../../../node_modules/lucide-react/dist/esm/icons/laptop.cjs"),s=require("../../../utils/utils.cjs"),c=require("../../../hooks/use-conversation-id.cjs"),l=require("./conversation-overview-sections.cjs"),u=require("../../../utils/conversation-local-storage.cjs"),d=require("../../../utils/dropdown-classes.cjs"),f=require("../../../ui/context-menu.cjs"),p=require("../../../hooks/use-click-outside-element.cjs"),m=require("../../../ui/divider.cjs"),h=require("../../../hooks/use-select-conversation-tab.cjs"),g=require("../../../icons/u-pr.cjs"),_=require("../../../node_modules/react-icons/lu/index.cjs"),v=require("./conversation-overview-drawer-context.cjs"),y=require("../../../icons/pill.cjs"),b=require("../../../icons/pill-fill.cjs"),x=require("./conversation-overview-drawer.types.cjs");let S=require("react");S=e.__toESM(S,1);let C=require("react/jsx-runtime"),w=require("react-dom");w=e.__toESM(w,1);var T={[l.CONVERSATION_OVERVIEW_SECTION.workspace]:{section:l.CONVERSATION_OVERVIEW_SECTION.workspace,icon:o.Laptop,i18nKey:n.I18nKey.CONVERSATION$OVERVIEW_WORKSPACE}},E=[{part:l.CONVERSATION_OVERVIEW_GIT_PART.changes,icon:_.LuFileDiff,i18nKey:n.I18nKey.COMMON$CHANGES,opensChanges:!0},{part:l.CONVERSATION_OVERVIEW_GIT_PART.repository,icon:r.FolderGit2,i18nKey:n.I18nKey.CONVERSATION$REPOSITORY},{part:l.CONVERSATION_OVERVIEW_GIT_PART.branch,icon:i.GitBranch,i18nKey:n.I18nKey.CONVERSATION$BRANCH},{part:l.CONVERSATION_OVERVIEW_GIT_PART.commits,icon:a.GitCommitHorizontal,i18nKey:n.I18nKey.DIFF_VIEWER$COMMITS,opensCommits:!0},{part:l.CONVERSATION_OVERVIEW_GIT_PART.pull_requests,icon:g.default,i18nKey:n.I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS,drawerSection:x.CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests}];function D({testId:e,pinned:t,pinnedLabel:n,unpinnedLabel:r,onClick:i}){return(0,C.jsx)(`button`,{type:`button`,"data-testid":e,className:s.cn(`flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white`,d.dropdownInstantColorClassName,`hover:bg-white/10`),"aria-pressed":t,"aria-label":t?n:r,onClick:i,children:(0,C.jsx)(`span`,{className:s.cn(`ml-auto overflow-hidden`,d.dropdownMenuRowIconWrapperClassName),"aria-hidden":!0,children:t?(0,C.jsx)(b.default,{className:`size-4`,width:16,height:16}):(0,C.jsx)(y.default,{className:`size-4`,width:16,height:16})})})}function O({isOpen:e,onClose:r,ignoreOutsideClickRef:a,anchorRef:o}){let g=p.useClickOutsideElement(r,a),[_,y]=(0,S.useState)(),{t:b}=t.useTranslation(`openhands`),{conversationId:x}=c.useConversationId(),{state:O,setUnpinnedOverviewSections:k,setUnpinnedOverviewGitParts:A}=u.useConversationLocalStorageState(x),{navigateToChanges:j,navigateToCommits:M}=h.useSelectConversationTab(),N=v.useConversationOverviewDrawerOptional();(0,S.useLayoutEffect)(()=>{if(!e||!o?.current){y(void 0);return}let t=()=>{let e=o.current?.getBoundingClientRect();e&&y({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,o]);let P=e=>{if(e.opensChanges){N?.closeDrawer(),j(),r();return}if(e.opensCommits){N?.closeDrawer(),M(),r();return}e.drawerSection&&(N?.openSection(e.drawerSection),r())},F=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=O.unpinnedOverviewSections??[];if(n.includes(e)){k?.(n.filter(t=>t!==e));return}k?.([...n,e])},I=(e,t)=>{t.preventDefault(),t.stopPropagation();let n=O.unpinnedOverviewGitParts??[];if(n.includes(e)){A?.(n.filter(t=>t!==e));return}A?.([...n,e])};if(!e)return null;let L=!!(o?.current&&_),R=l.isOverviewSectionPinned(l.CONVERSATION_OVERVIEW_SECTION.git,O.unpinnedOverviewSections??[]),z=b(n.I18nKey.CONVERSATION$UNPIN_OVERVIEW_SECTION),B=b(n.I18nKey.CONVERSATION$PIN_OVERVIEW_SECTION),V=({key:e,testIdOpen:t,testIdPin:n,icon:r,label:i,pinned:a,isActionable:o,indent:c=!1,onOpen:l,onPinToggle:u})=>{let f=(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:d.dropdownMenuRowIconWrapperClassName,"aria-hidden":!0,children:(0,C.jsx)(r,{className:`h-4 w-4`})}),(0,C.jsx)(`span`,{className:`text-sm`,children:i})]});return(0,C.jsx)(`li`,{className:`list-none`,children:(0,C.jsxs)(`div`,{className:s.cn(`group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]`,c&&`pl-4`),children:[o?(0,C.jsx)(`button`,{type:`button`,"data-testid":t,className:s.cn(`flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white`,d.dropdownInstantColorClassName),onClick:l,children:f}):(0,C.jsx)(`div`,{"data-testid":t,className:s.cn(`flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white`,d.dropdownInstantColorClassName),children:f}),(0,C.jsx)(D,{testId:n,pinned:a,pinnedLabel:z,unpinnedLabel:B,onClick:u})]})},e)},H=e=>{if(e===l.CONVERSATION_OVERVIEW_SECTION.git)return null;let t=T[e];return V({key:e,testIdOpen:`conversation-overview-menu-open-${e}`,testIdPin:`conversation-overview-menu-pin-${e}`,icon:t.icon,label:b(t.i18nKey),pinned:l.isOverviewSectionPinned(e,O.unpinnedOverviewSections??[]),isActionable:!1,onPinToggle:t=>F(e,t)})},U=(0,C.jsxs)(f.ContextMenu,{ref:g,testId:`conversation-overview-context-menu`,theme:L?`popover`:`default`,position:L?`none`:`bottom`,alignment:L?`none`:`right`,spacing:L?`none`:`default`,className:s.cn(`z-[9999] w-fit`,L?`mt-0`:`mt-2`),children:[l.CONVERSATION_OVERVIEW_SECTION_GROUPS.map((e,t)=>(0,C.jsxs)(S.default.Fragment,{children:[t>0?(0,C.jsx)(m.Divider,{testId:`conversation-overview-menu-divider-${t}`,inset:`menu`}):null,e.sections.map(e=>H(e))]},e.sections.join(`-`))),(0,C.jsx)(m.Divider,{testId:`conversation-overview-menu-divider-git`,inset:`menu`}),V({key:l.CONVERSATION_OVERVIEW_SECTION.git,testIdOpen:`conversation-overview-menu-open-${l.CONVERSATION_OVERVIEW_SECTION.git}`,testIdPin:`conversation-overview-menu-pin-${l.CONVERSATION_OVERVIEW_SECTION.git}`,icon:i.GitBranch,label:b(n.I18nKey.CONVERSATION$OVERVIEW_GIT),pinned:R,isActionable:!1,onPinToggle:e=>F(l.CONVERSATION_OVERVIEW_SECTION.git,e)}),E.map(e=>V({key:e.part,testIdOpen:`conversation-overview-menu-open-git-${e.part}`,testIdPin:`conversation-overview-menu-pin-git-${e.part}`,icon:e.icon,label:b(e.i18nKey),pinned:l.isOverviewGitPartPinned(e.part,O.unpinnedOverviewGitParts??[]),isActionable:!!(e.drawerSection||e.opensCommits||e.opensChanges),indent:!0,onOpen:()=>P(e),onPinToggle:t=>I(e.part,t)}))]});return L&&_&&typeof document<`u`?w.default.createPortal((0,C.jsx)(`div`,{style:_,children:U}),document.body):U}exports.ConversationOverviewContextMenu=O;
|
|
2
|
+
//# sourceMappingURL=conversation-overview-context-menu.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-context-menu.cjs","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-context-menu.tsx"],"sourcesContent":["import React, { useLayoutEffect, useState } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {\n FolderGit2,\n GitBranch,\n GitCommitHorizontal,\n Laptop,\n} from \"lucide-react\";\nimport { LuFileDiff } from \"react-icons/lu\";\nimport { useTranslation } from \"react-i18next\";\nimport { ContextMenu } from \"#/ui/context-menu\";\nimport { Divider } from \"#/ui/divider\";\nimport { useClickOutsideElement } from \"#/hooks/use-click-outside-element\";\nimport { useConversationId } from \"#/hooks/use-conversation-id\";\nimport { useConversationLocalStorageState } from \"#/utils/conversation-local-storage\";\nimport { useSelectConversationTab } from \"#/hooks/use-select-conversation-tab\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport PrIcon from \"#/icons/u-pr.svg?react\";\nimport PillIcon from \"#/icons/pill.svg?react\";\nimport PillFillIcon from \"#/icons/pill-fill.svg?react\";\nimport { cn } from \"#/utils/utils\";\nimport {\n dropdownInstantColorClassName,\n dropdownMenuRowIconWrapperClassName,\n} from \"#/utils/dropdown-classes\";\nimport { useConversationOverviewDrawerOptional } from \"./conversation-overview-drawer-context\";\nimport {\n CONVERSATION_OVERVIEW_DRAWER_SECTION,\n type ConversationOverviewDrawerSection,\n} from \"./conversation-overview-drawer.types\";\nimport {\n CONVERSATION_OVERVIEW_GIT_PART,\n CONVERSATION_OVERVIEW_SECTION,\n CONVERSATION_OVERVIEW_SECTION_GROUPS,\n isOverviewGitPartPinned,\n isOverviewSectionPinned,\n type ConversationOverviewGitPart,\n type ConversationOverviewSection,\n} from \"./conversation-overview-sections\";\n\ninterface ConversationOverviewContextMenuProps {\n isOpen: boolean;\n onClose: () => void;\n ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;\n /** Portal anchor so the menu is not clipped by the overview panel. */\n anchorRef?: React.RefObject<HTMLElement | null>;\n}\n\ntype OverviewMenuItem = {\n section: ConversationOverviewSection;\n icon: React.ComponentType<{ className?: string }>;\n i18nKey: I18nKey;\n};\n\ntype GitPartMenuItem = {\n part: ConversationOverviewGitPart;\n icon: React.ComponentType<{ className?: string }>;\n i18nKey: I18nKey;\n drawerSection?: ConversationOverviewDrawerSection;\n opensChanges?: boolean;\n opensCommits?: boolean;\n};\n\nconst OVERVIEW_MENU_ITEMS_BY_SECTION: Record<\n Exclude<ConversationOverviewSection, \"git\">,\n OverviewMenuItem\n> = {\n [CONVERSATION_OVERVIEW_SECTION.workspace]: {\n section: CONVERSATION_OVERVIEW_SECTION.workspace,\n icon: Laptop,\n i18nKey: I18nKey.CONVERSATION$OVERVIEW_WORKSPACE,\n },\n};\n\nconst GIT_PART_MENU_ITEMS: GitPartMenuItem[] = [\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.changes,\n icon: LuFileDiff,\n i18nKey: I18nKey.COMMON$CHANGES,\n opensChanges: true,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.repository,\n icon: FolderGit2,\n i18nKey: I18nKey.CONVERSATION$REPOSITORY,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.branch,\n icon: GitBranch,\n i18nKey: I18nKey.CONVERSATION$BRANCH,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.commits,\n icon: GitCommitHorizontal,\n i18nKey: I18nKey.DIFF_VIEWER$COMMITS,\n opensCommits: true,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.pull_requests,\n icon: PrIcon,\n i18nKey: I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS,\n drawerSection: CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests,\n },\n];\n\nfunction OverviewPinButton({\n testId,\n pinned,\n pinnedLabel,\n unpinnedLabel,\n onClick,\n}: {\n testId: string;\n pinned: boolean;\n pinnedLabel: string;\n unpinnedLabel: string;\n onClick: (event: React.MouseEvent) => void;\n}) {\n return (\n <button\n type=\"button\"\n data-testid={testId}\n className={cn(\n \"flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white\",\n dropdownInstantColorClassName,\n \"hover:bg-white/10\",\n )}\n aria-pressed={pinned}\n aria-label={pinned ? pinnedLabel : unpinnedLabel}\n onClick={onClick}\n >\n <span\n className={cn(\n \"ml-auto overflow-hidden\",\n dropdownMenuRowIconWrapperClassName,\n )}\n aria-hidden\n >\n {pinned ? (\n <PillFillIcon className=\"size-4\" width={16} height={16} />\n ) : (\n <PillIcon className=\"size-4\" width={16} height={16} />\n )}\n </span>\n </button>\n );\n}\n\nexport function ConversationOverviewContextMenu({\n isOpen,\n onClose,\n ignoreOutsideClickRef,\n anchorRef,\n}: ConversationOverviewContextMenuProps) {\n const ref = useClickOutsideElement<HTMLUListElement>(\n onClose,\n ignoreOutsideClickRef,\n );\n const [portalStyle, setPortalStyle] = useState<React.CSSProperties>();\n const { t } = useTranslation(\"openhands\");\n const { conversationId } = useConversationId();\n const { state, setUnpinnedOverviewSections, setUnpinnedOverviewGitParts } =\n useConversationLocalStorageState(conversationId);\n const { navigateToChanges, navigateToCommits } = useSelectConversationTab();\n const overviewDrawer = useConversationOverviewDrawerOptional();\n\n useLayoutEffect(() => {\n if (!isOpen || !anchorRef?.current) {\n setPortalStyle(undefined);\n return undefined;\n }\n\n const updatePosition = () => {\n const rect = anchorRef.current?.getBoundingClientRect();\n if (!rect) return;\n\n const gap = 8;\n setPortalStyle({\n position: \"fixed\",\n zIndex: 9999,\n top: rect.bottom + gap,\n right: window.innerWidth - rect.right,\n });\n };\n\n updatePosition();\n window.addEventListener(\"resize\", updatePosition);\n window.addEventListener(\"scroll\", updatePosition, true);\n return () => {\n window.removeEventListener(\"resize\", updatePosition);\n window.removeEventListener(\"scroll\", updatePosition, true);\n };\n }, [isOpen, anchorRef]);\n\n const handleOpenGitPart = (item: GitPartMenuItem) => {\n if (item.opensChanges) {\n overviewDrawer?.closeDrawer();\n navigateToChanges();\n onClose();\n return;\n }\n\n if (item.opensCommits) {\n overviewDrawer?.closeDrawer();\n navigateToCommits();\n onClose();\n return;\n }\n\n if (!item.drawerSection) return;\n overviewDrawer?.openSection(item.drawerSection);\n onClose();\n };\n\n const handlePinToggle = (\n section: ConversationOverviewSection,\n event: React.MouseEvent,\n ) => {\n event.preventDefault();\n event.stopPropagation();\n\n const unpinnedSections = state.unpinnedOverviewSections ?? [];\n if (unpinnedSections.includes(section)) {\n setUnpinnedOverviewSections?.(\n unpinnedSections.filter((item) => item !== section),\n );\n return;\n }\n\n setUnpinnedOverviewSections?.([...unpinnedSections, section]);\n };\n\n const handleGitPartPinToggle = (\n part: ConversationOverviewGitPart,\n event: React.MouseEvent,\n ) => {\n event.preventDefault();\n event.stopPropagation();\n\n const unpinnedGitParts = state.unpinnedOverviewGitParts ?? [];\n if (unpinnedGitParts.includes(part)) {\n setUnpinnedOverviewGitParts?.(\n unpinnedGitParts.filter((item) => item !== part),\n );\n return;\n }\n\n setUnpinnedOverviewGitParts?.([...unpinnedGitParts, part]);\n };\n\n if (!isOpen) return null;\n\n const isPortaled = Boolean(anchorRef?.current && portalStyle);\n const gitPinned = isOverviewSectionPinned(\n CONVERSATION_OVERVIEW_SECTION.git,\n state.unpinnedOverviewSections ?? [],\n );\n const pinnedLabel = t(I18nKey.CONVERSATION$UNPIN_OVERVIEW_SECTION);\n const unpinnedLabel = t(I18nKey.CONVERSATION$PIN_OVERVIEW_SECTION);\n\n const renderMenuRow = ({\n key,\n testIdOpen,\n testIdPin,\n icon: Icon,\n label,\n pinned,\n isActionable,\n indent = false,\n onOpen,\n onPinToggle,\n }: {\n key: string;\n testIdOpen: string;\n testIdPin: string;\n icon: React.ComponentType<{ className?: string }>;\n label: string;\n pinned: boolean;\n isActionable: boolean;\n indent?: boolean;\n onOpen?: () => void;\n onPinToggle: (event: React.MouseEvent) => void;\n }) => {\n const labelContent = (\n <>\n <span className={dropdownMenuRowIconWrapperClassName} aria-hidden>\n <Icon className=\"h-4 w-4\" />\n </span>\n <span className=\"text-sm\">{label}</span>\n </>\n );\n\n return (\n <li key={key} className=\"list-none\">\n <div\n className={cn(\n \"group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]\",\n indent && \"pl-4\",\n )}\n >\n {isActionable ? (\n <button\n type=\"button\"\n data-testid={testIdOpen}\n className={cn(\n \"flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white\",\n dropdownInstantColorClassName,\n )}\n onClick={onOpen}\n >\n {labelContent}\n </button>\n ) : (\n <div\n data-testid={testIdOpen}\n className={cn(\n \"flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white\",\n dropdownInstantColorClassName,\n )}\n >\n {labelContent}\n </div>\n )}\n <OverviewPinButton\n testId={testIdPin}\n pinned={pinned}\n pinnedLabel={pinnedLabel}\n unpinnedLabel={unpinnedLabel}\n onClick={onPinToggle}\n />\n </div>\n </li>\n );\n };\n\n const renderSectionRow = (section: ConversationOverviewSection) => {\n if (section === CONVERSATION_OVERVIEW_SECTION.git) return null;\n const item = OVERVIEW_MENU_ITEMS_BY_SECTION[section];\n return renderMenuRow({\n key: section,\n testIdOpen: `conversation-overview-menu-open-${section}`,\n testIdPin: `conversation-overview-menu-pin-${section}`,\n icon: item.icon,\n label: t(item.i18nKey),\n pinned: isOverviewSectionPinned(\n section,\n state.unpinnedOverviewSections ?? [],\n ),\n isActionable: false,\n onPinToggle: (event) => handlePinToggle(section, event),\n });\n };\n\n const menu = (\n <ContextMenu\n ref={ref}\n testId=\"conversation-overview-context-menu\"\n theme={isPortaled ? \"popover\" : \"default\"}\n position={isPortaled ? \"none\" : \"bottom\"}\n alignment={isPortaled ? \"none\" : \"right\"}\n spacing={isPortaled ? \"none\" : \"default\"}\n className={cn(\"z-[9999] w-fit\", isPortaled ? \"mt-0\" : \"mt-2\")}\n >\n {CONVERSATION_OVERVIEW_SECTION_GROUPS.map((group, groupIndex) => (\n <React.Fragment key={group.sections.join(\"-\")}>\n {groupIndex > 0 ? (\n <Divider\n testId={`conversation-overview-menu-divider-${groupIndex}`}\n inset=\"menu\"\n />\n ) : null}\n {group.sections.map((section) => renderSectionRow(section))}\n </React.Fragment>\n ))}\n\n <Divider testId=\"conversation-overview-menu-divider-git\" inset=\"menu\" />\n\n {renderMenuRow({\n key: CONVERSATION_OVERVIEW_SECTION.git,\n testIdOpen: `conversation-overview-menu-open-${CONVERSATION_OVERVIEW_SECTION.git}`,\n testIdPin: `conversation-overview-menu-pin-${CONVERSATION_OVERVIEW_SECTION.git}`,\n icon: GitBranch,\n label: t(I18nKey.CONVERSATION$OVERVIEW_GIT),\n pinned: gitPinned,\n isActionable: false,\n onPinToggle: (event) =>\n handlePinToggle(CONVERSATION_OVERVIEW_SECTION.git, event),\n })}\n\n {GIT_PART_MENU_ITEMS.map((item) =>\n renderMenuRow({\n key: item.part,\n testIdOpen: `conversation-overview-menu-open-git-${item.part}`,\n testIdPin: `conversation-overview-menu-pin-git-${item.part}`,\n icon: item.icon,\n label: t(item.i18nKey),\n pinned: isOverviewGitPartPinned(\n item.part,\n state.unpinnedOverviewGitParts ?? [],\n ),\n isActionable: Boolean(\n item.drawerSection || item.opensCommits || item.opensChanges,\n ),\n indent: true,\n onOpen: () => handleOpenGitPart(item),\n onPinToggle: (event) => handleGitPartPinToggle(item.part, event),\n }),\n )}\n </ContextMenu>\n );\n\n if (isPortaled && portalStyle && typeof document !== \"undefined\") {\n return ReactDOM.createPortal(\n <div style={portalStyle}>{menu}</div>,\n document.body,\n );\n }\n\n return menu;\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ConversationOverviewContextMenuProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;
|
|
6
|
+
/** Portal anchor so the menu is not clipped by the overview panel. */
|
|
7
|
+
anchorRef?: React.RefObject<HTMLElement | null>;
|
|
8
|
+
}
|
|
9
|
+
export declare function ConversationOverviewContextMenu({ isOpen, onClose, ignoreOutsideClickRef, anchorRef, }: ConversationOverviewContextMenuProps): React.JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { useTranslation as e } from "../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
|
+
import { I18nKey as t } from "../../../i18n/declaration.js";
|
|
3
|
+
import { FolderGit2 as n } from "../../../node_modules/lucide-react/dist/esm/icons/folder-git-2.js";
|
|
4
|
+
import { GitBranch as r } from "../../../node_modules/lucide-react/dist/esm/icons/git-branch.js";
|
|
5
|
+
import { GitCommitHorizontal as i } from "../../../node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js";
|
|
6
|
+
import { Laptop as a } from "../../../node_modules/lucide-react/dist/esm/icons/laptop.js";
|
|
7
|
+
import { cn as o } from "../../../utils/utils.js";
|
|
8
|
+
import { useConversationId as s } from "../../../hooks/use-conversation-id.js";
|
|
9
|
+
import { CONVERSATION_OVERVIEW_GIT_PART as c, CONVERSATION_OVERVIEW_SECTION as l, CONVERSATION_OVERVIEW_SECTION_GROUPS as u, isOverviewGitPartPinned as d, isOverviewSectionPinned as f } from "./conversation-overview-sections.js";
|
|
10
|
+
import { useConversationLocalStorageState as p } from "../../../utils/conversation-local-storage.js";
|
|
11
|
+
import { dropdownInstantColorClassName as m, dropdownMenuRowIconWrapperClassName as h } from "../../../utils/dropdown-classes.js";
|
|
12
|
+
import { ContextMenu as g } from "../../../ui/context-menu.js";
|
|
13
|
+
import { useClickOutsideElement as _ } from "../../../hooks/use-click-outside-element.js";
|
|
14
|
+
import { Divider as v } from "../../../ui/divider.js";
|
|
15
|
+
import { useSelectConversationTab as y } from "../../../hooks/use-select-conversation-tab.js";
|
|
16
|
+
import b from "../../../icons/u-pr.js";
|
|
17
|
+
import { LuFileDiff as x } from "../../../node_modules/react-icons/lu/index.js";
|
|
18
|
+
import { useConversationOverviewDrawerOptional as S } from "./conversation-overview-drawer-context.js";
|
|
19
|
+
import C from "../../../icons/pill.js";
|
|
20
|
+
import w from "../../../icons/pill-fill.js";
|
|
21
|
+
import { CONVERSATION_OVERVIEW_DRAWER_SECTION as T } from "./conversation-overview-drawer.types.js";
|
|
22
|
+
import E, { useLayoutEffect as D, useState as O } from "react";
|
|
23
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
24
|
+
import M from "react-dom";
|
|
25
|
+
//#region src/components/features/conversation/conversation-overview-context-menu.tsx
|
|
26
|
+
var N = { [l.workspace]: {
|
|
27
|
+
section: l.workspace,
|
|
28
|
+
icon: a,
|
|
29
|
+
i18nKey: t.CONVERSATION$OVERVIEW_WORKSPACE
|
|
30
|
+
} }, P = [
|
|
31
|
+
{
|
|
32
|
+
part: c.changes,
|
|
33
|
+
icon: x,
|
|
34
|
+
i18nKey: t.COMMON$CHANGES,
|
|
35
|
+
opensChanges: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
part: c.repository,
|
|
39
|
+
icon: n,
|
|
40
|
+
i18nKey: t.CONVERSATION$REPOSITORY
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
part: c.branch,
|
|
44
|
+
icon: r,
|
|
45
|
+
i18nKey: t.CONVERSATION$BRANCH
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
part: c.commits,
|
|
49
|
+
icon: i,
|
|
50
|
+
i18nKey: t.DIFF_VIEWER$COMMITS,
|
|
51
|
+
opensCommits: !0
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
part: c.pull_requests,
|
|
55
|
+
icon: b,
|
|
56
|
+
i18nKey: t.CONVERSATION$OVERVIEW_PULL_REQUESTS,
|
|
57
|
+
drawerSection: T.pull_requests
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
function F({ testId: e, pinned: t, pinnedLabel: n, unpinnedLabel: r, onClick: i }) {
|
|
61
|
+
return /* @__PURE__ */ A("button", {
|
|
62
|
+
type: "button",
|
|
63
|
+
"data-testid": e,
|
|
64
|
+
className: o("flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white", m, "hover:bg-white/10"),
|
|
65
|
+
"aria-pressed": t,
|
|
66
|
+
"aria-label": t ? n : r,
|
|
67
|
+
onClick: i,
|
|
68
|
+
children: /* @__PURE__ */ A("span", {
|
|
69
|
+
className: o("ml-auto overflow-hidden", h),
|
|
70
|
+
"aria-hidden": !0,
|
|
71
|
+
children: A(t ? w : C, {
|
|
72
|
+
className: "size-4",
|
|
73
|
+
width: 16,
|
|
74
|
+
height: 16
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function I({ isOpen: n, onClose: i, ignoreOutsideClickRef: a, anchorRef: c }) {
|
|
80
|
+
let b = _(i, a), [x, C] = O(), { t: w } = e("openhands"), { conversationId: T } = s(), { state: I, setUnpinnedOverviewSections: L, setUnpinnedOverviewGitParts: R } = p(T), { navigateToChanges: z, navigateToCommits: B } = y(), V = S();
|
|
81
|
+
D(() => {
|
|
82
|
+
if (!n || !c?.current) {
|
|
83
|
+
C(void 0);
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
let e = () => {
|
|
87
|
+
let e = c.current?.getBoundingClientRect();
|
|
88
|
+
e && C({
|
|
89
|
+
position: "fixed",
|
|
90
|
+
zIndex: 9999,
|
|
91
|
+
top: e.bottom + 8,
|
|
92
|
+
right: window.innerWidth - e.right
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
|
|
96
|
+
window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
|
|
97
|
+
};
|
|
98
|
+
}, [n, c]);
|
|
99
|
+
let H = (e) => {
|
|
100
|
+
if (e.opensChanges) {
|
|
101
|
+
V?.closeDrawer(), z(), i();
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
if (e.opensCommits) {
|
|
105
|
+
V?.closeDrawer(), B(), i();
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
e.drawerSection && (V?.openSection(e.drawerSection), i());
|
|
109
|
+
}, U = (e, t) => {
|
|
110
|
+
t.preventDefault(), t.stopPropagation();
|
|
111
|
+
let n = I.unpinnedOverviewSections ?? [];
|
|
112
|
+
if (n.includes(e)) {
|
|
113
|
+
L?.(n.filter((t) => t !== e));
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
L?.([...n, e]);
|
|
117
|
+
}, W = (e, t) => {
|
|
118
|
+
t.preventDefault(), t.stopPropagation();
|
|
119
|
+
let n = I.unpinnedOverviewGitParts ?? [];
|
|
120
|
+
if (n.includes(e)) {
|
|
121
|
+
R?.(n.filter((t) => t !== e));
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
R?.([...n, e]);
|
|
125
|
+
};
|
|
126
|
+
if (!n) return null;
|
|
127
|
+
let G = !!(c?.current && x), K = f(l.git, I.unpinnedOverviewSections ?? []), q = w(t.CONVERSATION$UNPIN_OVERVIEW_SECTION), J = w(t.CONVERSATION$PIN_OVERVIEW_SECTION), Y = ({ key: e, testIdOpen: t, testIdPin: n, icon: r, label: i, pinned: a, isActionable: s, indent: c = !1, onOpen: l, onPinToggle: u }) => {
|
|
128
|
+
let d = /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A("span", {
|
|
129
|
+
className: h,
|
|
130
|
+
"aria-hidden": !0,
|
|
131
|
+
children: /* @__PURE__ */ A(r, { className: "h-4 w-4" })
|
|
132
|
+
}), /* @__PURE__ */ A("span", {
|
|
133
|
+
className: "text-sm",
|
|
134
|
+
children: i
|
|
135
|
+
})] });
|
|
136
|
+
return /* @__PURE__ */ A("li", {
|
|
137
|
+
className: "list-none",
|
|
138
|
+
children: /* @__PURE__ */ j("div", {
|
|
139
|
+
className: o("group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]", c && "pl-4"),
|
|
140
|
+
children: [s ? /* @__PURE__ */ A("button", {
|
|
141
|
+
type: "button",
|
|
142
|
+
"data-testid": t,
|
|
143
|
+
className: o("flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white", m),
|
|
144
|
+
onClick: l,
|
|
145
|
+
children: d
|
|
146
|
+
}) : /* @__PURE__ */ A("div", {
|
|
147
|
+
"data-testid": t,
|
|
148
|
+
className: o("flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white", m),
|
|
149
|
+
children: d
|
|
150
|
+
}), /* @__PURE__ */ A(F, {
|
|
151
|
+
testId: n,
|
|
152
|
+
pinned: a,
|
|
153
|
+
pinnedLabel: q,
|
|
154
|
+
unpinnedLabel: J,
|
|
155
|
+
onClick: u
|
|
156
|
+
})]
|
|
157
|
+
})
|
|
158
|
+
}, e);
|
|
159
|
+
}, X = (e) => {
|
|
160
|
+
if (e === l.git) return null;
|
|
161
|
+
let t = N[e];
|
|
162
|
+
return Y({
|
|
163
|
+
key: e,
|
|
164
|
+
testIdOpen: `conversation-overview-menu-open-${e}`,
|
|
165
|
+
testIdPin: `conversation-overview-menu-pin-${e}`,
|
|
166
|
+
icon: t.icon,
|
|
167
|
+
label: w(t.i18nKey),
|
|
168
|
+
pinned: f(e, I.unpinnedOverviewSections ?? []),
|
|
169
|
+
isActionable: !1,
|
|
170
|
+
onPinToggle: (t) => U(e, t)
|
|
171
|
+
});
|
|
172
|
+
}, Z = /* @__PURE__ */ j(g, {
|
|
173
|
+
ref: b,
|
|
174
|
+
testId: "conversation-overview-context-menu",
|
|
175
|
+
theme: G ? "popover" : "default",
|
|
176
|
+
position: G ? "none" : "bottom",
|
|
177
|
+
alignment: G ? "none" : "right",
|
|
178
|
+
spacing: G ? "none" : "default",
|
|
179
|
+
className: o("z-[9999] w-fit", G ? "mt-0" : "mt-2"),
|
|
180
|
+
children: [
|
|
181
|
+
u.map((e, t) => /* @__PURE__ */ j(E.Fragment, { children: [t > 0 ? /* @__PURE__ */ A(v, {
|
|
182
|
+
testId: `conversation-overview-menu-divider-${t}`,
|
|
183
|
+
inset: "menu"
|
|
184
|
+
}) : null, e.sections.map((e) => X(e))] }, e.sections.join("-"))),
|
|
185
|
+
/* @__PURE__ */ A(v, {
|
|
186
|
+
testId: "conversation-overview-menu-divider-git",
|
|
187
|
+
inset: "menu"
|
|
188
|
+
}),
|
|
189
|
+
Y({
|
|
190
|
+
key: l.git,
|
|
191
|
+
testIdOpen: `conversation-overview-menu-open-${l.git}`,
|
|
192
|
+
testIdPin: `conversation-overview-menu-pin-${l.git}`,
|
|
193
|
+
icon: r,
|
|
194
|
+
label: w(t.CONVERSATION$OVERVIEW_GIT),
|
|
195
|
+
pinned: K,
|
|
196
|
+
isActionable: !1,
|
|
197
|
+
onPinToggle: (e) => U(l.git, e)
|
|
198
|
+
}),
|
|
199
|
+
P.map((e) => Y({
|
|
200
|
+
key: e.part,
|
|
201
|
+
testIdOpen: `conversation-overview-menu-open-git-${e.part}`,
|
|
202
|
+
testIdPin: `conversation-overview-menu-pin-git-${e.part}`,
|
|
203
|
+
icon: e.icon,
|
|
204
|
+
label: w(e.i18nKey),
|
|
205
|
+
pinned: d(e.part, I.unpinnedOverviewGitParts ?? []),
|
|
206
|
+
isActionable: !!(e.drawerSection || e.opensCommits || e.opensChanges),
|
|
207
|
+
indent: !0,
|
|
208
|
+
onOpen: () => H(e),
|
|
209
|
+
onPinToggle: (t) => W(e.part, t)
|
|
210
|
+
}))
|
|
211
|
+
]
|
|
212
|
+
});
|
|
213
|
+
return G && x && typeof document < "u" ? M.createPortal(/* @__PURE__ */ A("div", {
|
|
214
|
+
style: x,
|
|
215
|
+
children: Z
|
|
216
|
+
}), document.body) : Z;
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
export { I as ConversationOverviewContextMenu };
|
|
220
|
+
|
|
221
|
+
//# sourceMappingURL=conversation-overview-context-menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-context-menu.js","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-context-menu.tsx"],"sourcesContent":["import React, { useLayoutEffect, useState } from \"react\";\nimport ReactDOM from \"react-dom\";\nimport {\n FolderGit2,\n GitBranch,\n GitCommitHorizontal,\n Laptop,\n} from \"lucide-react\";\nimport { LuFileDiff } from \"react-icons/lu\";\nimport { useTranslation } from \"react-i18next\";\nimport { ContextMenu } from \"#/ui/context-menu\";\nimport { Divider } from \"#/ui/divider\";\nimport { useClickOutsideElement } from \"#/hooks/use-click-outside-element\";\nimport { useConversationId } from \"#/hooks/use-conversation-id\";\nimport { useConversationLocalStorageState } from \"#/utils/conversation-local-storage\";\nimport { useSelectConversationTab } from \"#/hooks/use-select-conversation-tab\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport PrIcon from \"#/icons/u-pr.svg?react\";\nimport PillIcon from \"#/icons/pill.svg?react\";\nimport PillFillIcon from \"#/icons/pill-fill.svg?react\";\nimport { cn } from \"#/utils/utils\";\nimport {\n dropdownInstantColorClassName,\n dropdownMenuRowIconWrapperClassName,\n} from \"#/utils/dropdown-classes\";\nimport { useConversationOverviewDrawerOptional } from \"./conversation-overview-drawer-context\";\nimport {\n CONVERSATION_OVERVIEW_DRAWER_SECTION,\n type ConversationOverviewDrawerSection,\n} from \"./conversation-overview-drawer.types\";\nimport {\n CONVERSATION_OVERVIEW_GIT_PART,\n CONVERSATION_OVERVIEW_SECTION,\n CONVERSATION_OVERVIEW_SECTION_GROUPS,\n isOverviewGitPartPinned,\n isOverviewSectionPinned,\n type ConversationOverviewGitPart,\n type ConversationOverviewSection,\n} from \"./conversation-overview-sections\";\n\ninterface ConversationOverviewContextMenuProps {\n isOpen: boolean;\n onClose: () => void;\n ignoreOutsideClickRef?: React.RefObject<HTMLElement | null>;\n /** Portal anchor so the menu is not clipped by the overview panel. */\n anchorRef?: React.RefObject<HTMLElement | null>;\n}\n\ntype OverviewMenuItem = {\n section: ConversationOverviewSection;\n icon: React.ComponentType<{ className?: string }>;\n i18nKey: I18nKey;\n};\n\ntype GitPartMenuItem = {\n part: ConversationOverviewGitPart;\n icon: React.ComponentType<{ className?: string }>;\n i18nKey: I18nKey;\n drawerSection?: ConversationOverviewDrawerSection;\n opensChanges?: boolean;\n opensCommits?: boolean;\n};\n\nconst OVERVIEW_MENU_ITEMS_BY_SECTION: Record<\n Exclude<ConversationOverviewSection, \"git\">,\n OverviewMenuItem\n> = {\n [CONVERSATION_OVERVIEW_SECTION.workspace]: {\n section: CONVERSATION_OVERVIEW_SECTION.workspace,\n icon: Laptop,\n i18nKey: I18nKey.CONVERSATION$OVERVIEW_WORKSPACE,\n },\n};\n\nconst GIT_PART_MENU_ITEMS: GitPartMenuItem[] = [\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.changes,\n icon: LuFileDiff,\n i18nKey: I18nKey.COMMON$CHANGES,\n opensChanges: true,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.repository,\n icon: FolderGit2,\n i18nKey: I18nKey.CONVERSATION$REPOSITORY,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.branch,\n icon: GitBranch,\n i18nKey: I18nKey.CONVERSATION$BRANCH,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.commits,\n icon: GitCommitHorizontal,\n i18nKey: I18nKey.DIFF_VIEWER$COMMITS,\n opensCommits: true,\n },\n {\n part: CONVERSATION_OVERVIEW_GIT_PART.pull_requests,\n icon: PrIcon,\n i18nKey: I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS,\n drawerSection: CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests,\n },\n];\n\nfunction OverviewPinButton({\n testId,\n pinned,\n pinnedLabel,\n unpinnedLabel,\n onClick,\n}: {\n testId: string;\n pinned: boolean;\n pinnedLabel: string;\n unpinnedLabel: string;\n onClick: (event: React.MouseEvent) => void;\n}) {\n return (\n <button\n type=\"button\"\n data-testid={testId}\n className={cn(\n \"flex shrink-0 cursor-pointer items-center justify-center rounded-r px-2 text-white\",\n dropdownInstantColorClassName,\n \"hover:bg-white/10\",\n )}\n aria-pressed={pinned}\n aria-label={pinned ? pinnedLabel : unpinnedLabel}\n onClick={onClick}\n >\n <span\n className={cn(\n \"ml-auto overflow-hidden\",\n dropdownMenuRowIconWrapperClassName,\n )}\n aria-hidden\n >\n {pinned ? (\n <PillFillIcon className=\"size-4\" width={16} height={16} />\n ) : (\n <PillIcon className=\"size-4\" width={16} height={16} />\n )}\n </span>\n </button>\n );\n}\n\nexport function ConversationOverviewContextMenu({\n isOpen,\n onClose,\n ignoreOutsideClickRef,\n anchorRef,\n}: ConversationOverviewContextMenuProps) {\n const ref = useClickOutsideElement<HTMLUListElement>(\n onClose,\n ignoreOutsideClickRef,\n );\n const [portalStyle, setPortalStyle] = useState<React.CSSProperties>();\n const { t } = useTranslation(\"openhands\");\n const { conversationId } = useConversationId();\n const { state, setUnpinnedOverviewSections, setUnpinnedOverviewGitParts } =\n useConversationLocalStorageState(conversationId);\n const { navigateToChanges, navigateToCommits } = useSelectConversationTab();\n const overviewDrawer = useConversationOverviewDrawerOptional();\n\n useLayoutEffect(() => {\n if (!isOpen || !anchorRef?.current) {\n setPortalStyle(undefined);\n return undefined;\n }\n\n const updatePosition = () => {\n const rect = anchorRef.current?.getBoundingClientRect();\n if (!rect) return;\n\n const gap = 8;\n setPortalStyle({\n position: \"fixed\",\n zIndex: 9999,\n top: rect.bottom + gap,\n right: window.innerWidth - rect.right,\n });\n };\n\n updatePosition();\n window.addEventListener(\"resize\", updatePosition);\n window.addEventListener(\"scroll\", updatePosition, true);\n return () => {\n window.removeEventListener(\"resize\", updatePosition);\n window.removeEventListener(\"scroll\", updatePosition, true);\n };\n }, [isOpen, anchorRef]);\n\n const handleOpenGitPart = (item: GitPartMenuItem) => {\n if (item.opensChanges) {\n overviewDrawer?.closeDrawer();\n navigateToChanges();\n onClose();\n return;\n }\n\n if (item.opensCommits) {\n overviewDrawer?.closeDrawer();\n navigateToCommits();\n onClose();\n return;\n }\n\n if (!item.drawerSection) return;\n overviewDrawer?.openSection(item.drawerSection);\n onClose();\n };\n\n const handlePinToggle = (\n section: ConversationOverviewSection,\n event: React.MouseEvent,\n ) => {\n event.preventDefault();\n event.stopPropagation();\n\n const unpinnedSections = state.unpinnedOverviewSections ?? [];\n if (unpinnedSections.includes(section)) {\n setUnpinnedOverviewSections?.(\n unpinnedSections.filter((item) => item !== section),\n );\n return;\n }\n\n setUnpinnedOverviewSections?.([...unpinnedSections, section]);\n };\n\n const handleGitPartPinToggle = (\n part: ConversationOverviewGitPart,\n event: React.MouseEvent,\n ) => {\n event.preventDefault();\n event.stopPropagation();\n\n const unpinnedGitParts = state.unpinnedOverviewGitParts ?? [];\n if (unpinnedGitParts.includes(part)) {\n setUnpinnedOverviewGitParts?.(\n unpinnedGitParts.filter((item) => item !== part),\n );\n return;\n }\n\n setUnpinnedOverviewGitParts?.([...unpinnedGitParts, part]);\n };\n\n if (!isOpen) return null;\n\n const isPortaled = Boolean(anchorRef?.current && portalStyle);\n const gitPinned = isOverviewSectionPinned(\n CONVERSATION_OVERVIEW_SECTION.git,\n state.unpinnedOverviewSections ?? [],\n );\n const pinnedLabel = t(I18nKey.CONVERSATION$UNPIN_OVERVIEW_SECTION);\n const unpinnedLabel = t(I18nKey.CONVERSATION$PIN_OVERVIEW_SECTION);\n\n const renderMenuRow = ({\n key,\n testIdOpen,\n testIdPin,\n icon: Icon,\n label,\n pinned,\n isActionable,\n indent = false,\n onOpen,\n onPinToggle,\n }: {\n key: string;\n testIdOpen: string;\n testIdPin: string;\n icon: React.ComponentType<{ className?: string }>;\n label: string;\n pinned: boolean;\n isActionable: boolean;\n indent?: boolean;\n onOpen?: () => void;\n onPinToggle: (event: React.MouseEvent) => void;\n }) => {\n const labelContent = (\n <>\n <span className={dropdownMenuRowIconWrapperClassName} aria-hidden>\n <Icon className=\"h-4 w-4\" />\n </span>\n <span className=\"text-sm\">{label}</span>\n </>\n );\n\n return (\n <li key={key} className=\"list-none\">\n <div\n className={cn(\n \"group flex h-[30px] w-full min-w-0 items-stretch rounded hover:bg-[var(--oh-interactive-hover)]\",\n indent && \"pl-4\",\n )}\n >\n {isActionable ? (\n <button\n type=\"button\"\n data-testid={testIdOpen}\n className={cn(\n \"flex min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-l p-2 text-start text-white\",\n dropdownInstantColorClassName,\n )}\n onClick={onOpen}\n >\n {labelContent}\n </button>\n ) : (\n <div\n data-testid={testIdOpen}\n className={cn(\n \"flex min-w-0 flex-1 items-center gap-2 rounded-l p-2 text-start text-white\",\n dropdownInstantColorClassName,\n )}\n >\n {labelContent}\n </div>\n )}\n <OverviewPinButton\n testId={testIdPin}\n pinned={pinned}\n pinnedLabel={pinnedLabel}\n unpinnedLabel={unpinnedLabel}\n onClick={onPinToggle}\n />\n </div>\n </li>\n );\n };\n\n const renderSectionRow = (section: ConversationOverviewSection) => {\n if (section === CONVERSATION_OVERVIEW_SECTION.git) return null;\n const item = OVERVIEW_MENU_ITEMS_BY_SECTION[section];\n return renderMenuRow({\n key: section,\n testIdOpen: `conversation-overview-menu-open-${section}`,\n testIdPin: `conversation-overview-menu-pin-${section}`,\n icon: item.icon,\n label: t(item.i18nKey),\n pinned: isOverviewSectionPinned(\n section,\n state.unpinnedOverviewSections ?? [],\n ),\n isActionable: false,\n onPinToggle: (event) => handlePinToggle(section, event),\n });\n };\n\n const menu = (\n <ContextMenu\n ref={ref}\n testId=\"conversation-overview-context-menu\"\n theme={isPortaled ? \"popover\" : \"default\"}\n position={isPortaled ? \"none\" : \"bottom\"}\n alignment={isPortaled ? \"none\" : \"right\"}\n spacing={isPortaled ? \"none\" : \"default\"}\n className={cn(\"z-[9999] w-fit\", isPortaled ? \"mt-0\" : \"mt-2\")}\n >\n {CONVERSATION_OVERVIEW_SECTION_GROUPS.map((group, groupIndex) => (\n <React.Fragment key={group.sections.join(\"-\")}>\n {groupIndex > 0 ? (\n <Divider\n testId={`conversation-overview-menu-divider-${groupIndex}`}\n inset=\"menu\"\n />\n ) : null}\n {group.sections.map((section) => renderSectionRow(section))}\n </React.Fragment>\n ))}\n\n <Divider testId=\"conversation-overview-menu-divider-git\" inset=\"menu\" />\n\n {renderMenuRow({\n key: CONVERSATION_OVERVIEW_SECTION.git,\n testIdOpen: `conversation-overview-menu-open-${CONVERSATION_OVERVIEW_SECTION.git}`,\n testIdPin: `conversation-overview-menu-pin-${CONVERSATION_OVERVIEW_SECTION.git}`,\n icon: GitBranch,\n label: t(I18nKey.CONVERSATION$OVERVIEW_GIT),\n pinned: gitPinned,\n isActionable: false,\n onPinToggle: (event) =>\n handlePinToggle(CONVERSATION_OVERVIEW_SECTION.git, event),\n })}\n\n {GIT_PART_MENU_ITEMS.map((item) =>\n renderMenuRow({\n key: item.part,\n testIdOpen: `conversation-overview-menu-open-git-${item.part}`,\n testIdPin: `conversation-overview-menu-pin-git-${item.part}`,\n icon: item.icon,\n label: t(item.i18nKey),\n pinned: isOverviewGitPartPinned(\n item.part,\n state.unpinnedOverviewGitParts ?? [],\n ),\n isActionable: Boolean(\n item.drawerSection || item.opensCommits || item.opensChanges,\n ),\n indent: true,\n onOpen: () => handleOpenGitPart(item),\n onPinToggle: (event) => handleGitPartPinToggle(item.part, event),\n }),\n )}\n </ContextMenu>\n );\n\n if (isPortaled && portalStyle && typeof document !== \"undefined\") {\n return ReactDOM.createPortal(\n <div style={portalStyle}>{menu}</div>,\n document.body,\n );\n }\n\n return menu;\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../i18n/declaration.cjs"),r=require("../../../node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs"),i=require("../../../constants/status-colors.cjs"),a=require("../../../utils/utils.cjs"),o=require("../../../hooks/query/use-active-conversation.cjs"),s=require("../../../hooks/use-select-conversation-tab.cjs"),c=require("../../../node_modules/react-icons/lu/index.cjs"),l=require("../../../hooks/use-conversation-overview-git-diff-stats.cjs"),u=require("./conversation-overview-drawer-context.cjs"),d=require("./conversation-git-actions-menu.cjs");let f=require("react");f=e.__toESM(f,1);let p=require("react/jsx-runtime");var m=a.cn(`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`),h=`size-4 shrink-0 text-[var(--oh-muted)]`,g=`conversation-overview-diffs-git-action`,_=a.cn(g,`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)]`),v=a.cn(`flex items-center rounded-md transition-colors`,`hover:bg-white/5`,`has-[.${g}:hover]:bg-transparent`),y=a.cn(`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 b(){let{t:e}=t.useTranslation(`openhands`),{navigateToChanges:g}=s.useSelectConversationTab(),b=u.useConversationOverviewDrawerOptional(),{data:x}=o.useActiveConversation(),{additions:S,deletions:C,isLoading:w}=l.useConversationOverviewGitDiffStats(),T=x?.git_provider??`github`,[E,D]=(0,f.useState)(!1),O=(0,f.useRef)(null);return(0,f.useEffect)(()=>{if(!E)return;let e=e=>{e.key===`Escape`&&D(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[E]),(0,p.jsxs)(`li`,{className:v,children:[(0,p.jsxs)(`button`,{type:`button`,"data-testid":`conversation-overview-diffs`,"aria-label":e(n.I18nKey.CONVERSATION$OVERVIEW_OPEN_CHANGES),onClick:()=>{b?.closeDrawer(),g()},className:m,children:[(0,p.jsx)(c.LuFileDiff,{className:h,"aria-hidden":!0}),(0,p.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]`,children:e(n.I18nKey.COMMON$CHANGES)})]}),(0,p.jsx)(`div`,{className:`group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center`,children:w?(0,p.jsx)(`span`,{className:`text-sm tabular-nums text-[var(--oh-muted)]`,children:`…`}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:a.cn(`flex items-center gap-1.5 text-sm tabular-nums transition-opacity`,E?`opacity-0`:`group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0`),children:[(0,p.jsx)(`span`,{"data-testid":`conversation-overview-diffs-additions`,style:{color:i.OH_STATUS_SUCCESS_COLOR},children:e(n.I18nKey.CONVERSATION$OVERVIEW_DIFF_ADDITIONS,{count:S.toLocaleString()})}),(0,p.jsx)(`span`,{"data-testid":`conversation-overview-diffs-deletions`,style:{color:i.OH_STATUS_ERROR_COLOR},children:e(n.I18nKey.CONVERSATION$OVERVIEW_DIFF_DELETIONS,{count:C.toLocaleString()})})]}),(0,p.jsx)(`button`,{ref:O,type:`button`,"data-testid":`conversation-overview-diffs-git-action`,"aria-label":e(n.I18nKey.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),"aria-expanded":E,"aria-haspopup":`menu`,onClick:e=>{e.stopPropagation(),D(e=>!e)},className:a.cn(_,!E&&y,E&&`pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]`),children:(0,p.jsx)(r.GitCommitHorizontal,{className:`size-4`,"aria-hidden":!0})}),E?(0,p.jsx)(d.ConversationGitActionsMenu,{anchorRef:O,gitProvider:T,testIdPrefix:`conversation-overview-diffs-git`,onClose:()=>D(!1)}):null]})})]})}exports.ConversationOverviewDiffsRow=b;
|
|
2
|
+
//# sourceMappingURL=conversation-overview-diffs-row.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-diffs-row.cjs","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-diffs-row.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { GitCommitHorizontal } from \"lucide-react\";\nimport { LuFileDiff } from \"react-icons/lu\";\nimport { useTranslation } from \"react-i18next\";\nimport { useActiveConversation } from \"#/hooks/query/use-active-conversation\";\nimport { useConversationOverviewGitDiffStats } from \"#/hooks/use-conversation-overview-git-diff-stats\";\nimport { useSelectConversationTab } from \"#/hooks/use-select-conversation-tab\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport {\n OH_STATUS_ERROR_COLOR,\n OH_STATUS_SUCCESS_COLOR,\n} from \"#/constants/status-colors\";\nimport { cn } from \"#/utils/utils\";\nimport { Provider } from \"#/types/settings\";\nimport { useConversationOverviewDrawerOptional } from \"./conversation-overview-drawer-context\";\nimport { ConversationGitActionsMenu } from \"./conversation-git-actions-menu\";\n\nconst CHANGES_BUTTON_CLASSNAME = cn(\n \"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5\",\n \"cursor-pointer border-0 bg-transparent text-left\",\n);\n\nconst ROW_ICON_CLASSNAME = \"size-4 shrink-0 text-[var(--oh-muted)]\";\n\nconst GIT_ACTION_HOVER_TARGET_CLASSNAME =\n \"conversation-overview-diffs-git-action\";\n\nconst GIT_ACTION_BUTTON_CLASSNAME = cn(\n GIT_ACTION_HOVER_TARGET_CLASSNAME,\n \"absolute inset-0 inline-flex items-center justify-center\",\n \"rounded-md text-[var(--oh-muted)] transition-opacity\",\n \"hover:bg-white/10 hover:text-[var(--oh-foreground)]\",\n);\n\n/** Full-row hover, cleared while the git commit control itself is hovered. */\nconst DIFFS_ROW_CLASSNAME = cn(\n \"flex items-center rounded-md transition-colors\",\n \"hover:bg-white/5\",\n `has-[.${GIT_ACTION_HOVER_TARGET_CLASSNAME}:hover]:bg-transparent`,\n);\n\nconst GIT_ACTION_OVERLAY_CLASSNAME = cn(\n \"pointer-events-none invisible opacity-0\",\n \"group-hover/diffstats:pointer-events-auto group-hover/diffstats:visible group-hover/diffstats:opacity-100\",\n \"group-focus-within/diffstats:pointer-events-auto group-focus-within/diffstats:visible group-focus-within/diffstats:opacity-100\",\n);\n\nexport function ConversationOverviewDiffsRow() {\n const { t } = useTranslation(\"openhands\");\n const { navigateToChanges } = useSelectConversationTab();\n const overviewDrawer = useConversationOverviewDrawerOptional();\n const { data: conversation } = useActiveConversation();\n const { additions, deletions, isLoading } =\n useConversationOverviewGitDiffStats();\n const gitProvider =\n (conversation?.git_provider as Provider | undefined) ?? \"github\";\n const [isGitMenuOpen, setIsGitMenuOpen] = useState(false);\n const gitActionButtonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (!isGitMenuOpen) {\n return undefined;\n }\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n setIsGitMenuOpen(false);\n }\n };\n\n window.addEventListener(\"keydown\", onKeyDown);\n return () => window.removeEventListener(\"keydown\", onKeyDown);\n }, [isGitMenuOpen]);\n\n const handleOpenChanges = () => {\n overviewDrawer?.closeDrawer();\n navigateToChanges();\n };\n\n return (\n <li className={DIFFS_ROW_CLASSNAME}>\n <button\n type=\"button\"\n data-testid=\"conversation-overview-diffs\"\n aria-label={t(I18nKey.CONVERSATION$OVERVIEW_OPEN_CHANGES)}\n onClick={handleOpenChanges}\n className={CHANGES_BUTTON_CLASSNAME}\n >\n <LuFileDiff className={ROW_ICON_CLASSNAME} aria-hidden />\n <span className=\"min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]\">\n {t(I18nKey.COMMON$CHANGES)}\n </span>\n </button>\n\n <div className=\"group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center\">\n {isLoading ? (\n <span className=\"text-sm tabular-nums text-[var(--oh-muted)]\">…</span>\n ) : (\n <>\n <span\n className={cn(\n \"flex items-center gap-1.5 text-sm tabular-nums transition-opacity\",\n isGitMenuOpen\n ? \"opacity-0\"\n : \"group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0\",\n )}\n >\n <span\n data-testid=\"conversation-overview-diffs-additions\"\n style={{ color: OH_STATUS_SUCCESS_COLOR }}\n >\n {t(I18nKey.CONVERSATION$OVERVIEW_DIFF_ADDITIONS, {\n count: additions.toLocaleString(),\n })}\n </span>\n <span\n data-testid=\"conversation-overview-diffs-deletions\"\n style={{ color: OH_STATUS_ERROR_COLOR }}\n >\n {t(I18nKey.CONVERSATION$OVERVIEW_DIFF_DELETIONS, {\n count: deletions.toLocaleString(),\n })}\n </span>\n </span>\n <button\n ref={gitActionButtonRef}\n type=\"button\"\n data-testid=\"conversation-overview-diffs-git-action\"\n aria-label={t(I18nKey.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS)}\n aria-expanded={isGitMenuOpen}\n aria-haspopup=\"menu\"\n onClick={(event) => {\n event.stopPropagation();\n setIsGitMenuOpen((open) => !open);\n }}\n className={cn(\n GIT_ACTION_BUTTON_CLASSNAME,\n !isGitMenuOpen && GIT_ACTION_OVERLAY_CLASSNAME,\n isGitMenuOpen &&\n \"pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]\",\n )}\n >\n <GitCommitHorizontal className=\"size-4\" aria-hidden />\n </button>\n {isGitMenuOpen ? (\n <ConversationGitActionsMenu\n anchorRef={gitActionButtonRef}\n gitProvider={gitProvider}\n testIdPrefix=\"conversation-overview-diffs-git\"\n onClose={() => setIsGitMenuOpen(false)}\n />\n ) : null}\n </>\n )}\n </div>\n </li>\n );\n}\n"],"mappings":"sxBAiBA,IAAM,EAA2B,EAAA,GAC/B,gEACA,kDACF,EAEM,EAAqB,yCAErB,EACJ,yCAEI,EAA8B,EAAA,GAClC,EACA,2DACA,uDACA,qDACF,EAGM,EAAsB,EAAA,GAC1B,iDACA,mBACA,SAAS,EAAkC,uBAC7C,EAEM,EAA+B,EAAA,GACnC,0CACA,4GACA,gIACF,EAEA,SAAgB,GAA+B,CAC7C,GAAM,CAAE,KAAM,EAAA,eAAe,WAAW,EAClC,CAAE,qBAAsB,EAAA,yBAAyB,EACjD,EAAiB,EAAA,sCAAsC,EACvD,CAAE,KAAM,GAAiB,EAAA,sBAAsB,EAC/C,CAAE,YAAW,YAAW,aAC5B,EAAA,oCAAoC,EAChC,EACH,GAAc,cAAyC,SACpD,CAAC,EAAe,IAAA,EAAA,EAAA,UAA6B,EAAK,EAClD,GAAA,EAAA,EAAA,QAA+C,IAAI,EAsBzD,OApBA,EAAA,EAAA,eAAgB,CACd,GAAI,CAAC,EACH,OAGF,IAAM,EAAa,GAAyB,CACtC,EAAM,MAAQ,UAChB,EAAiB,EAAK,CAE1B,EAGA,OADA,OAAO,iBAAiB,UAAW,CAAS,MAC/B,OAAO,oBAAoB,UAAW,CAAS,CAC9D,EAAG,CAAC,CAAa,CAAC,GAQhB,EAAA,EAAA,MAAC,KAAD,CAAI,UAAW,WAAf,EACE,EAAA,EAAA,MAAC,SAAD,CACE,KAAK,SACL,cAAY,8BACZ,aAAY,EAAE,EAAA,QAAQ,kCAAkC,EACxD,YAX0B,CAC9B,GAAgB,YAAY,EAC5B,EAAkB,CACpB,EASM,UAAW,WALb,EAOE,EAAA,EAAA,KAAC,EAAA,WAAD,CAAY,UAAW,EAAoB,cAAA,EAAa,CAAA,GACxD,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,uEACb,EAAE,EAAA,QAAQ,cAAc,CACrB,CAAA,CACA,KAER,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,+FACZ,GACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,uDAA8C,GAAO,CAAA,GAErE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,EACE,EAAA,EAAA,MAAC,OAAD,CACE,UAAW,EAAA,GACT,oEACA,EACI,YACA,wEACN,WANF,EAQE,EAAA,EAAA,KAAC,OAAD,CACE,cAAY,wCACZ,MAAO,CAAE,MAAO,EAAA,uBAAwB,WAEvC,EAAE,EAAA,QAAQ,qCAAsC,CAC/C,MAAO,EAAU,eAAe,CAClC,CAAC,CACG,CAAA,GACN,EAAA,EAAA,KAAC,OAAD,CACE,cAAY,wCACZ,MAAO,CAAE,MAAO,EAAA,qBAAsB,WAErC,EAAE,EAAA,QAAQ,qCAAsC,CAC/C,MAAO,EAAU,eAAe,CAClC,CAAC,CACG,CAAA,CACF,KACN,EAAA,EAAA,KAAC,SAAD,CACE,IAAK,EACL,KAAK,SACL,cAAY,yCACZ,aAAY,EAAE,EAAA,QAAQ,sCAAsC,EAC5D,gBAAe,EACf,gBAAc,OACd,QAAU,GAAU,CAClB,EAAM,gBAAgB,EACtB,EAAkB,GAAS,CAAC,CAAI,CAClC,EACA,UAAW,EAAA,GACT,EACA,CAAC,GAAiB,EAClB,GACE,qEACJ,YAEA,EAAA,EAAA,KAAC,EAAA,oBAAD,CAAqB,UAAU,SAAS,cAAA,EAAa,CAAA,CAC/C,CAAA,EACP,GACC,EAAA,EAAA,KAAC,EAAA,2BAAD,CACE,UAAW,EACE,cACb,aAAa,kCACb,YAAe,EAAiB,EAAK,CACtC,CAAA,EACC,IACJ,CAAA,CAAA,CAED,CAAA,CACH,GAER"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useTranslation as e } from "../../../node_modules/react-i18next/dist/es/useTranslation.js";
|
|
2
|
+
import { I18nKey as t } from "../../../i18n/declaration.js";
|
|
3
|
+
import { GitCommitHorizontal as n } from "../../../node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js";
|
|
4
|
+
import { OH_STATUS_ERROR_COLOR as r, OH_STATUS_SUCCESS_COLOR as i } from "../../../constants/status-colors.js";
|
|
5
|
+
import { cn as a } from "../../../utils/utils.js";
|
|
6
|
+
import { useActiveConversation as o } from "../../../hooks/query/use-active-conversation.js";
|
|
7
|
+
import { useSelectConversationTab as s } from "../../../hooks/use-select-conversation-tab.js";
|
|
8
|
+
import { LuFileDiff as c } from "../../../node_modules/react-icons/lu/index.js";
|
|
9
|
+
import { useConversationOverviewGitDiffStats as l } from "../../../hooks/use-conversation-overview-git-diff-stats.js";
|
|
10
|
+
import { useConversationOverviewDrawerOptional as u } from "./conversation-overview-drawer-context.js";
|
|
11
|
+
import { ConversationGitActionsMenu as d } from "./conversation-git-actions-menu.js";
|
|
12
|
+
import { useEffect as f, useRef as p, useState as m } from "react";
|
|
13
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
|
+
//#region src/components/features/conversation/conversation-overview-diffs-row.tsx
|
|
15
|
+
var v = a("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"), y = "size-4 shrink-0 text-[var(--oh-muted)]", b = "conversation-overview-diffs-git-action", x = a(b, "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)]"), S = a("flex items-center rounded-md transition-colors", "hover:bg-white/5", `has-[.${b}:hover]:bg-transparent`), C = a("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");
|
|
16
|
+
function w() {
|
|
17
|
+
let { t: b } = e("openhands"), { navigateToChanges: w } = s(), T = u(), { data: E } = o(), { additions: D, deletions: O, isLoading: k } = l(), A = E?.git_provider ?? "github", [j, M] = m(!1), N = p(null);
|
|
18
|
+
return f(() => {
|
|
19
|
+
if (!j) return;
|
|
20
|
+
let e = (e) => {
|
|
21
|
+
e.key === "Escape" && M(!1);
|
|
22
|
+
};
|
|
23
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
24
|
+
}, [j]), /* @__PURE__ */ _("li", {
|
|
25
|
+
className: S,
|
|
26
|
+
children: [/* @__PURE__ */ _("button", {
|
|
27
|
+
type: "button",
|
|
28
|
+
"data-testid": "conversation-overview-diffs",
|
|
29
|
+
"aria-label": b(t.CONVERSATION$OVERVIEW_OPEN_CHANGES),
|
|
30
|
+
onClick: () => {
|
|
31
|
+
T?.closeDrawer(), w();
|
|
32
|
+
},
|
|
33
|
+
className: v,
|
|
34
|
+
children: [/* @__PURE__ */ g(c, {
|
|
35
|
+
className: y,
|
|
36
|
+
"aria-hidden": !0
|
|
37
|
+
}), /* @__PURE__ */ g("span", {
|
|
38
|
+
className: "min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]",
|
|
39
|
+
children: b(t.COMMON$CHANGES)
|
|
40
|
+
})]
|
|
41
|
+
}), /* @__PURE__ */ g("div", {
|
|
42
|
+
className: "group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center",
|
|
43
|
+
children: k ? /* @__PURE__ */ g("span", {
|
|
44
|
+
className: "text-sm tabular-nums text-[var(--oh-muted)]",
|
|
45
|
+
children: "…"
|
|
46
|
+
}) : /* @__PURE__ */ _(h, { children: [
|
|
47
|
+
/* @__PURE__ */ _("span", {
|
|
48
|
+
className: a("flex items-center gap-1.5 text-sm tabular-nums transition-opacity", j ? "opacity-0" : "group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0"),
|
|
49
|
+
children: [/* @__PURE__ */ g("span", {
|
|
50
|
+
"data-testid": "conversation-overview-diffs-additions",
|
|
51
|
+
style: { color: i },
|
|
52
|
+
children: b(t.CONVERSATION$OVERVIEW_DIFF_ADDITIONS, { count: D.toLocaleString() })
|
|
53
|
+
}), /* @__PURE__ */ g("span", {
|
|
54
|
+
"data-testid": "conversation-overview-diffs-deletions",
|
|
55
|
+
style: { color: r },
|
|
56
|
+
children: b(t.CONVERSATION$OVERVIEW_DIFF_DELETIONS, { count: O.toLocaleString() })
|
|
57
|
+
})]
|
|
58
|
+
}),
|
|
59
|
+
/* @__PURE__ */ g("button", {
|
|
60
|
+
ref: N,
|
|
61
|
+
type: "button",
|
|
62
|
+
"data-testid": "conversation-overview-diffs-git-action",
|
|
63
|
+
"aria-label": b(t.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS),
|
|
64
|
+
"aria-expanded": j,
|
|
65
|
+
"aria-haspopup": "menu",
|
|
66
|
+
onClick: (e) => {
|
|
67
|
+
e.stopPropagation(), M((e) => !e);
|
|
68
|
+
},
|
|
69
|
+
className: a(x, !j && C, j && "pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]"),
|
|
70
|
+
children: /* @__PURE__ */ g(n, {
|
|
71
|
+
className: "size-4",
|
|
72
|
+
"aria-hidden": !0
|
|
73
|
+
})
|
|
74
|
+
}),
|
|
75
|
+
j ? /* @__PURE__ */ g(d, {
|
|
76
|
+
anchorRef: N,
|
|
77
|
+
gitProvider: A,
|
|
78
|
+
testIdPrefix: "conversation-overview-diffs-git",
|
|
79
|
+
onClose: () => M(!1)
|
|
80
|
+
}) : null
|
|
81
|
+
] })
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { w as ConversationOverviewDiffsRow };
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=conversation-overview-diffs-row.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-diffs-row.js","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-diffs-row.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { GitCommitHorizontal } from \"lucide-react\";\nimport { LuFileDiff } from \"react-icons/lu\";\nimport { useTranslation } from \"react-i18next\";\nimport { useActiveConversation } from \"#/hooks/query/use-active-conversation\";\nimport { useConversationOverviewGitDiffStats } from \"#/hooks/use-conversation-overview-git-diff-stats\";\nimport { useSelectConversationTab } from \"#/hooks/use-select-conversation-tab\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport {\n OH_STATUS_ERROR_COLOR,\n OH_STATUS_SUCCESS_COLOR,\n} from \"#/constants/status-colors\";\nimport { cn } from \"#/utils/utils\";\nimport { Provider } from \"#/types/settings\";\nimport { useConversationOverviewDrawerOptional } from \"./conversation-overview-drawer-context\";\nimport { ConversationGitActionsMenu } from \"./conversation-git-actions-menu\";\n\nconst CHANGES_BUTTON_CLASSNAME = cn(\n \"flex min-w-0 flex-1 items-center gap-2 rounded-md px-2 py-1.5\",\n \"cursor-pointer border-0 bg-transparent text-left\",\n);\n\nconst ROW_ICON_CLASSNAME = \"size-4 shrink-0 text-[var(--oh-muted)]\";\n\nconst GIT_ACTION_HOVER_TARGET_CLASSNAME =\n \"conversation-overview-diffs-git-action\";\n\nconst GIT_ACTION_BUTTON_CLASSNAME = cn(\n GIT_ACTION_HOVER_TARGET_CLASSNAME,\n \"absolute inset-0 inline-flex items-center justify-center\",\n \"rounded-md text-[var(--oh-muted)] transition-opacity\",\n \"hover:bg-white/10 hover:text-[var(--oh-foreground)]\",\n);\n\n/** Full-row hover, cleared while the git commit control itself is hovered. */\nconst DIFFS_ROW_CLASSNAME = cn(\n \"flex items-center rounded-md transition-colors\",\n \"hover:bg-white/5\",\n `has-[.${GIT_ACTION_HOVER_TARGET_CLASSNAME}:hover]:bg-transparent`,\n);\n\nconst GIT_ACTION_OVERLAY_CLASSNAME = cn(\n \"pointer-events-none invisible opacity-0\",\n \"group-hover/diffstats:pointer-events-auto group-hover/diffstats:visible group-hover/diffstats:opacity-100\",\n \"group-focus-within/diffstats:pointer-events-auto group-focus-within/diffstats:visible group-focus-within/diffstats:opacity-100\",\n);\n\nexport function ConversationOverviewDiffsRow() {\n const { t } = useTranslation(\"openhands\");\n const { navigateToChanges } = useSelectConversationTab();\n const overviewDrawer = useConversationOverviewDrawerOptional();\n const { data: conversation } = useActiveConversation();\n const { additions, deletions, isLoading } =\n useConversationOverviewGitDiffStats();\n const gitProvider =\n (conversation?.git_provider as Provider | undefined) ?? \"github\";\n const [isGitMenuOpen, setIsGitMenuOpen] = useState(false);\n const gitActionButtonRef = useRef<HTMLButtonElement>(null);\n\n useEffect(() => {\n if (!isGitMenuOpen) {\n return undefined;\n }\n\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n setIsGitMenuOpen(false);\n }\n };\n\n window.addEventListener(\"keydown\", onKeyDown);\n return () => window.removeEventListener(\"keydown\", onKeyDown);\n }, [isGitMenuOpen]);\n\n const handleOpenChanges = () => {\n overviewDrawer?.closeDrawer();\n navigateToChanges();\n };\n\n return (\n <li className={DIFFS_ROW_CLASSNAME}>\n <button\n type=\"button\"\n data-testid=\"conversation-overview-diffs\"\n aria-label={t(I18nKey.CONVERSATION$OVERVIEW_OPEN_CHANGES)}\n onClick={handleOpenChanges}\n className={CHANGES_BUTTON_CLASSNAME}\n >\n <LuFileDiff className={ROW_ICON_CLASSNAME} aria-hidden />\n <span className=\"min-w-0 flex-1 truncate text-sm text-[var(--oh-foreground)]\">\n {t(I18nKey.COMMON$CHANGES)}\n </span>\n </button>\n\n <div className=\"group/diffstats relative mr-2 flex h-6 min-w-6 shrink-0 items-center justify-center\">\n {isLoading ? (\n <span className=\"text-sm tabular-nums text-[var(--oh-muted)]\">…</span>\n ) : (\n <>\n <span\n className={cn(\n \"flex items-center gap-1.5 text-sm tabular-nums transition-opacity\",\n isGitMenuOpen\n ? \"opacity-0\"\n : \"group-hover/diffstats:opacity-0 group-focus-within/diffstats:opacity-0\",\n )}\n >\n <span\n data-testid=\"conversation-overview-diffs-additions\"\n style={{ color: OH_STATUS_SUCCESS_COLOR }}\n >\n {t(I18nKey.CONVERSATION$OVERVIEW_DIFF_ADDITIONS, {\n count: additions.toLocaleString(),\n })}\n </span>\n <span\n data-testid=\"conversation-overview-diffs-deletions\"\n style={{ color: OH_STATUS_ERROR_COLOR }}\n >\n {t(I18nKey.CONVERSATION$OVERVIEW_DIFF_DELETIONS, {\n count: deletions.toLocaleString(),\n })}\n </span>\n </span>\n <button\n ref={gitActionButtonRef}\n type=\"button\"\n data-testid=\"conversation-overview-diffs-git-action\"\n aria-label={t(I18nKey.CONVERSATION$OVERVIEW_DIFF_GIT_ACTIONS)}\n aria-expanded={isGitMenuOpen}\n aria-haspopup=\"menu\"\n onClick={(event) => {\n event.stopPropagation();\n setIsGitMenuOpen((open) => !open);\n }}\n className={cn(\n GIT_ACTION_BUTTON_CLASSNAME,\n !isGitMenuOpen && GIT_ACTION_OVERLAY_CLASSNAME,\n isGitMenuOpen &&\n \"pointer-events-auto visible opacity-100 text-[var(--oh-foreground)]\",\n )}\n >\n <GitCommitHorizontal className=\"size-4\" aria-hidden />\n </button>\n {isGitMenuOpen ? (\n <ConversationGitActionsMenu\n anchorRef={gitActionButtonRef}\n gitProvider={gitProvider}\n testIdPrefix=\"conversation-overview-diffs-git\"\n onClose={() => setIsGitMenuOpen(false)}\n />\n ) : null}\n </>\n )}\n </div>\n </li>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,IAAM,IAA2B,EAC/B,iEACA,kDACF,GAEM,IAAqB,0CAErB,IACJ,0CAEI,IAA8B,EAClC,GACA,4DACA,wDACA,qDACF,GAGM,IAAsB,EAC1B,kDACA,oBACA,SAAS,EAAkC,uBAC7C,GAEM,IAA+B,EACnC,2CACA,6GACA,gIACF;AAEA,SAAgB,IAA+B;CAC7C,IAAM,EAAE,SAAM,EAAe,WAAW,GAClC,EAAE,yBAAsB,EAAyB,GACjD,IAAiB,EAAsC,GACvD,EAAE,MAAM,MAAiB,EAAsB,GAC/C,EAAE,cAAW,cAAW,iBAC5B,EAAoC,GAChC,IACH,GAAc,gBAAyC,UACpD,CAAC,GAAe,KAAoB,EAAS,EAAK,GAClD,IAAqB,EAA0B,IAAI;CAsBzD,OApBA,QAAgB;EACd,IAAI,CAAC,GACH;EAGF,IAAM,KAAa,MAAyB;GAC1C,AAAI,EAAM,QAAQ,YAChB,EAAiB,EAAK;EAE1B;EAGA,OADA,OAAO,iBAAiB,WAAW,CAAS,SAC/B,OAAO,oBAAoB,WAAW,CAAS;CAC9D,GAAG,CAAC,CAAa,CAAC,GAQhB,kBAAC,MAAD;EAAI,WAAW;YAAf,CACE,kBAAC,UAAD;GACE,MAAK;GACL,eAAY;GACZ,cAAY,EAAE,EAAQ,kCAAkC;GACxD,eAX0B;IAE9B,AADA,GAAgB,YAAY,GAC5B,EAAkB;GACpB;GASM,WAAW;aALb,CAOE,kBAAC,GAAD;IAAY,WAAW;IAAoB,eAAA;GAAa,CAAA,GACxD,kBAAC,QAAD;IAAM,WAAU;cACb,EAAE,EAAQ,cAAc;GACrB,CAAA,CACA;MAER,kBAAC,OAAD;GAAK,WAAU;aACZ,IACC,kBAAC,QAAD;IAAM,WAAU;cAA8C;GAAO,CAAA,IAErE,kBAAA,GAAA,EAAA,UAAA;IACE,kBAAC,QAAD;KACE,WAAW,EACT,qEACA,IACI,cACA,wEACN;eANF,CAQE,kBAAC,QAAD;MACE,eAAY;MACZ,OAAO,EAAE,OAAO,EAAwB;gBAEvC,EAAE,EAAQ,sCAAsC,EAC/C,OAAO,EAAU,eAAe,EAClC,CAAC;KACG,CAAA,GACN,kBAAC,QAAD;MACE,eAAY;MACZ,OAAO,EAAE,OAAO,EAAsB;gBAErC,EAAE,EAAQ,sCAAsC,EAC/C,OAAO,EAAU,eAAe,EAClC,CAAC;KACG,CAAA,CACF;;IACN,kBAAC,UAAD;KACE,KAAK;KACL,MAAK;KACL,eAAY;KACZ,cAAY,EAAE,EAAQ,sCAAsC;KAC5D,iBAAe;KACf,iBAAc;KACd,UAAU,MAAU;MAElB,AADA,EAAM,gBAAgB,GACtB,GAAkB,MAAS,CAAC,CAAI;KAClC;KACA,WAAW,EACT,GACA,CAAC,KAAiB,GAClB,KACE,qEACJ;eAEA,kBAAC,GAAD;MAAqB,WAAU;MAAS,eAAA;KAAa,CAAA;IAC/C,CAAA;IACP,IACC,kBAAC,GAAD;KACE,WAAW;KACE;KACb,cAAa;KACb,eAAe,EAAiB,EAAK;IACtC,CAAA,IACC;GACJ,EAAA,CAAA;EAED,CAAA,CACH;;AAER"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/react-i18next/dist/es/useTranslation.cjs"),n=require("../../../i18n/declaration.cjs"),r=require("../../../utils/utils.cjs"),i=require("../settings/brand-button.cjs"),a=require("../../../hooks/use-conversation-overview-stats.cjs"),o=require("./conversation-overview-drawer-context.cjs"),s=require("./conversation-overview-drawer.types.cjs"),c=require("../../../icons/x-mark.cjs"),l=require("./conversation-overview-automations-panel.cjs"),u=require("./conversation-overview-skills-panel.cjs"),d=require("./conversation-overview-mcp-panel.cjs"),f=require("./conversation-overview-secrets-panel.cjs"),p=require("./conversation-overview-git-items-panel.cjs"),m=require("./conversation-secondary-drawer.classes.cjs");let h=require("react");h=e.__toESM(h,1);let g=require("react/jsx-runtime");function _(e){switch(e){case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:return n.I18nKey.CONVERSATION_PANEL$AUTOMATIONS;case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:return n.I18nKey.SETTINGS$NAV_SKILLS;case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:return n.I18nKey.CONVERSATION$OVERVIEW_MCP;case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:return n.I18nKey.SETTINGS$NAV_SECRETS;case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:return n.I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS;case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:return n.I18nKey.CONVERSATION$OVERVIEW_ISSUES;default:return e}}function v({section:e}){let{t:r}=t.useTranslation(`openhands`),{requestAdd:a}=o.useConversationOverviewDrawer();switch(e){case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:return(0,g.jsx)(i.BrandButton,{type:`button`,variant:`primary`,testId:`conversation-overview-automations-add`,className:m.CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME,onClick:a,children:r(n.I18nKey.AUTOMATIONS$ADD_AUTOMATION)});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:return(0,g.jsx)(i.BrandButton,{type:`button`,variant:`primary`,testId:`conversation-overview-skills-add-skill-button`,className:m.CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME,onClick:a,children:r(n.I18nKey.SETTINGS$SKILLS_ADD_BUTTON)});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:return(0,g.jsx)(i.BrandButton,{type:`button`,variant:`secondary`,testId:`conversation-overview-mcp-add-server`,className:m.CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME,onClick:a,children:r(n.I18nKey.MCP$ADD_CUSTOM)});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:return(0,g.jsx)(i.BrandButton,{type:`button`,variant:`primary`,testId:`conversation-overview-secrets-add-button`,className:m.CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME,onClick:a,children:r(n.I18nKey.SECRETS$ADD_NEW_SECRET)});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:return(0,g.jsx)(p.ConversationOverviewGitItemsHeaderLink,{kind:`pull_requests`});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:return(0,g.jsx)(p.ConversationOverviewGitItemsHeaderLink,{kind:`issues`});default:return null}}function y({section:e,openAdd:t}){switch(e){case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:return(0,g.jsx)(l.ConversationOverviewAutomationsPanel,{openAdd:t});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:return(0,g.jsx)(u.ConversationOverviewSkillsPanel,{openAdd:t});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:return(0,g.jsx)(d.ConversationOverviewMcpPanel,{openAdd:t});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:return(0,g.jsx)(f.ConversationOverviewSecretsPanel,{openAdd:t});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:return(0,g.jsx)(p.ConversationOverviewGitItemsPanel,{kind:`pull_requests`});case s.CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:return(0,g.jsx)(p.ConversationOverviewGitItemsPanel,{kind:`issues`});default:return e}}function b({className:e}){let{t:i}=t.useTranslation(`openhands`),{section:l,openAdd:u,closeDrawer:d}=o.useConversationOverviewDrawer(),{workspaceName:f}=a.useConversationOverviewStats();if((0,h.useEffect)(()=>{if(!l)return;let e=e=>{e.key===`Escape`&&d()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[d,l]),!l)return null;let p=l===s.CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests||l===s.CONVERSATION_OVERVIEW_DRAWER_SECTION.issues||l===s.CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets;return(0,g.jsxs)(`aside`,{"data-testid":`conversation-overview-drawer-content`,"aria-label":i(_(l)),className:r.cn(`flex h-full w-full min-h-0 flex-col overflow-hidden bg-base-secondary`,e),children:[(0,g.jsxs)(`header`,{className:m.CONVERSATION_SECONDARY_DRAWER_HEADER_CLASSNAME,children:[(0,g.jsx)(`button`,{type:`button`,"data-testid":`conversation-overview-drawer-close`,"aria-label":i(n.I18nKey.BUTTON$CLOSE),onClick:d,className:m.CONVERSATION_SECONDARY_DRAWER_CLOSE_BUTTON_CLASSNAME,children:(0,g.jsx)(c.default,{className:`size-4`,"aria-hidden":!0})}),(0,g.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-2`,children:[(0,g.jsx)(`h2`,{className:`truncate text-sm font-medium text-content`,children:i(_(l))}),f?(0,g.jsx)(`p`,{"data-testid":`conversation-overview-drawer-workspace`,className:`truncate text-xs text-muted`,children:f}):null]}),(0,g.jsx)(`div`,{className:`shrink-0`,children:(0,g.jsx)(v,{section:l})})]}),(0,g.jsx)(`div`,{className:r.cn(`min-h-0 flex-1 custom-scrollbar-always`,p?`flex flex-col overflow-hidden`:`overflow-y-auto px-4 py-4`),children:(0,g.jsx)(y,{section:l,openAdd:u})})]})}exports.ConversationOverviewDrawerContent=b;
|
|
2
|
+
//# sourceMappingURL=conversation-overview-drawer-content.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-overview-drawer-content.cjs","names":[],"sources":["../../../../src/components/features/conversation/conversation-overview-drawer-content.tsx"],"sourcesContent":["import React, { useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport XMarkIcon from \"#/icons/x-mark.svg?react\";\nimport { BrandButton } from \"#/components/features/settings/brand-button\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { cn } from \"#/utils/utils\";\nimport { useConversationOverviewDrawer } from \"./conversation-overview-drawer-context\";\nimport {\n CONVERSATION_OVERVIEW_DRAWER_SECTION,\n type ConversationOverviewDrawerSection,\n} from \"./conversation-overview-drawer.types\";\nimport { ConversationOverviewAutomationsPanel } from \"./conversation-overview-automations-panel\";\nimport { ConversationOverviewSkillsPanel } from \"./conversation-overview-skills-panel\";\nimport { ConversationOverviewMcpPanel } from \"./conversation-overview-mcp-panel\";\nimport { ConversationOverviewSecretsPanel } from \"./conversation-overview-secrets-panel\";\nimport {\n ConversationOverviewGitItemsHeaderLink,\n ConversationOverviewGitItemsPanel,\n} from \"./conversation-overview-git-items-panel\";\nimport { useConversationOverviewStats } from \"#/hooks/use-conversation-overview-stats\";\nimport {\n CONVERSATION_SECONDARY_DRAWER_CLOSE_BUTTON_CLASSNAME,\n CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME,\n CONVERSATION_SECONDARY_DRAWER_HEADER_CLASSNAME,\n} from \"./conversation-secondary-drawer.classes\";\n\ninterface ConversationOverviewDrawerContentProps {\n className?: string;\n}\n\nfunction getSectionTitleKey(section: ConversationOverviewDrawerSection) {\n switch (section) {\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:\n return I18nKey.CONVERSATION_PANEL$AUTOMATIONS;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:\n return I18nKey.SETTINGS$NAV_SKILLS;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:\n return I18nKey.CONVERSATION$OVERVIEW_MCP;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:\n return I18nKey.SETTINGS$NAV_SECRETS;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:\n return I18nKey.CONVERSATION$OVERVIEW_PULL_REQUESTS;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:\n return I18nKey.CONVERSATION$OVERVIEW_ISSUES;\n default: {\n const _exhaustive: never = section;\n return _exhaustive;\n }\n }\n}\n\nfunction ConversationOverviewDrawerHeaderAddAction({\n section,\n}: {\n section: ConversationOverviewDrawerSection;\n}) {\n const { t } = useTranslation(\"openhands\");\n const { requestAdd } = useConversationOverviewDrawer();\n\n switch (section) {\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:\n return (\n <BrandButton\n type=\"button\"\n variant=\"primary\"\n testId=\"conversation-overview-automations-add\"\n className={CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME}\n onClick={requestAdd}\n >\n {t(I18nKey.AUTOMATIONS$ADD_AUTOMATION)}\n </BrandButton>\n );\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:\n return (\n <BrandButton\n type=\"button\"\n variant=\"primary\"\n testId=\"conversation-overview-skills-add-skill-button\"\n className={CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME}\n onClick={requestAdd}\n >\n {t(I18nKey.SETTINGS$SKILLS_ADD_BUTTON)}\n </BrandButton>\n );\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:\n return (\n <BrandButton\n type=\"button\"\n variant=\"secondary\"\n testId=\"conversation-overview-mcp-add-server\"\n className={CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME}\n onClick={requestAdd}\n >\n {t(I18nKey.MCP$ADD_CUSTOM)}\n </BrandButton>\n );\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:\n return (\n <BrandButton\n type=\"button\"\n variant=\"primary\"\n testId=\"conversation-overview-secrets-add-button\"\n className={CONVERSATION_SECONDARY_DRAWER_HEADER_ACTION_CLASSNAME}\n onClick={requestAdd}\n >\n {t(I18nKey.SECRETS$ADD_NEW_SECRET)}\n </BrandButton>\n );\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:\n return <ConversationOverviewGitItemsHeaderLink kind=\"pull_requests\" />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:\n return <ConversationOverviewGitItemsHeaderLink kind=\"issues\" />;\n default:\n return null;\n }\n}\n\nfunction ConversationOverviewDrawerBody({\n section,\n openAdd,\n}: {\n section: ConversationOverviewDrawerSection;\n openAdd: boolean;\n}) {\n switch (section) {\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.automations:\n return <ConversationOverviewAutomationsPanel openAdd={openAdd} />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.skills:\n return <ConversationOverviewSkillsPanel openAdd={openAdd} />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.mcp:\n return <ConversationOverviewMcpPanel openAdd={openAdd} />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets:\n return <ConversationOverviewSecretsPanel openAdd={openAdd} />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests:\n return <ConversationOverviewGitItemsPanel kind=\"pull_requests\" />;\n case CONVERSATION_OVERVIEW_DRAWER_SECTION.issues:\n return <ConversationOverviewGitItemsPanel kind=\"issues\" />;\n default: {\n const _exhaustive: never = section;\n return _exhaustive;\n }\n }\n}\n\nexport function ConversationOverviewDrawerContent({\n className,\n}: ConversationOverviewDrawerContentProps) {\n const { t } = useTranslation(\"openhands\");\n const { section, openAdd, closeDrawer } = useConversationOverviewDrawer();\n const { workspaceName } = useConversationOverviewStats();\n\n useEffect(() => {\n if (!section) {\n return undefined;\n }\n\n const handleEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closeDrawer();\n }\n };\n\n document.addEventListener(\"keydown\", handleEscape);\n return () => {\n document.removeEventListener(\"keydown\", handleEscape);\n };\n }, [closeDrawer, section]);\n\n if (!section) {\n return null;\n }\n\n const isFullBleedBody =\n section === CONVERSATION_OVERVIEW_DRAWER_SECTION.pull_requests ||\n section === CONVERSATION_OVERVIEW_DRAWER_SECTION.issues ||\n section === CONVERSATION_OVERVIEW_DRAWER_SECTION.secrets;\n\n return (\n <aside\n data-testid=\"conversation-overview-drawer-content\"\n aria-label={t(getSectionTitleKey(section))}\n className={cn(\n \"flex h-full w-full min-h-0 flex-col overflow-hidden bg-base-secondary\",\n className,\n )}\n >\n <header className={CONVERSATION_SECONDARY_DRAWER_HEADER_CLASSNAME}>\n <button\n type=\"button\"\n data-testid=\"conversation-overview-drawer-close\"\n aria-label={t(I18nKey.BUTTON$CLOSE)}\n onClick={closeDrawer}\n className={CONVERSATION_SECONDARY_DRAWER_CLOSE_BUTTON_CLASSNAME}\n >\n <XMarkIcon className=\"size-4\" aria-hidden />\n </button>\n <div className=\"flex min-w-0 flex-1 items-center gap-2\">\n <h2 className=\"truncate text-sm font-medium text-content\">\n {t(getSectionTitleKey(section))}\n </h2>\n {workspaceName ? (\n <p\n data-testid=\"conversation-overview-drawer-workspace\"\n className=\"truncate text-xs text-muted\"\n >\n {workspaceName}\n </p>\n ) : null}\n </div>\n <div className=\"shrink-0\">\n <ConversationOverviewDrawerHeaderAddAction section={section} />\n </div>\n </header>\n\n <div\n className={cn(\n \"min-h-0 flex-1 custom-scrollbar-always\",\n isFullBleedBody\n ? \"flex flex-col overflow-hidden\"\n : \"overflow-y-auto px-4 py-4\",\n )}\n >\n <ConversationOverviewDrawerBody section={section} openAdd={openAdd} />\n </div>\n </aside>\n );\n}\n"],"mappings":"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"}
|