@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-paginated-conversations.js","names":[],"sources":["../../../src/hooks/query/use-paginated-conversations.ts"],"sourcesContent":["import { useInfiniteQuery } from \"@tanstack/react-query\";\nimport AgentServerConversationService from \"#/api/conversation-service/agent-server-conversation-service.api\";\nimport { useIsAuthed } from \"./use-is-authed\";\nimport { isNoBackend } from \"#/api/backend-registry/active-store\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport { AppConversationPage } from \"#/api/conversation-service/agent-server-conversation-service.types\";\n\nexport const usePaginatedConversations = (limit: number = 20) => {\n const { data: userIsAuthenticated } = useIsAuthed();\n const active = useActiveBackend();\n const hasBackend = !isNoBackend(active.backend);\n\n return useInfiniteQuery({\n // Include the active backend identity so each (backend, org) pair\n // maintains its own paginated cache. Switching backends naturally\n // produces a new query and a fresh fetch — without it the previous\n // backend's conversations stay visible for staleTime.\n queryKey: [\n \"user\",\n \"conversations\",\n \"paginated\",\n limit,\n active.backend.id,\n active.orgId,\n ],\n queryFn: async ({ pageParam }) => {\n const result = await AgentServerConversationService.searchConversations(\n limit,\n pageParam,\n );\n\n return result;\n },\n enabled: !!userIsAuthenticated && hasBackend,\n getNextPageParam: (lastPage: AppConversationPage) => lastPage.next_page_id,\n initialPageParam: undefined as string | undefined,\n // Poll every
|
|
1
|
+
{"version":3,"file":"use-paginated-conversations.js","names":[],"sources":["../../../src/hooks/query/use-paginated-conversations.ts"],"sourcesContent":["import { useInfiniteQuery } from \"@tanstack/react-query\";\nimport AgentServerConversationService from \"#/api/conversation-service/agent-server-conversation-service.api\";\nimport { useIsAuthed } from \"./use-is-authed\";\nimport { isNoBackend } from \"#/api/backend-registry/active-store\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport { AppConversationPage } from \"#/api/conversation-service/agent-server-conversation-service.types\";\n\nexport const usePaginatedConversations = (limit: number = 20) => {\n const { data: userIsAuthenticated } = useIsAuthed();\n const active = useActiveBackend();\n const hasBackend = !isNoBackend(active.backend);\n\n return useInfiniteQuery({\n // Include the active backend identity so each (backend, org) pair\n // maintains its own paginated cache. Switching backends naturally\n // produces a new query and a fresh fetch — without it the previous\n // backend's conversations stay visible for staleTime.\n queryKey: [\n \"user\",\n \"conversations\",\n \"paginated\",\n limit,\n active.backend.id,\n active.orgId,\n ],\n queryFn: async ({ pageParam }) => {\n const result = await AgentServerConversationService.searchConversations(\n limit,\n pageParam,\n );\n\n return result;\n },\n enabled: !!userIsAuthenticated && hasBackend,\n getNextPageParam: (lastPage: AppConversationPage) => lastPage.next_page_id,\n initialPageParam: undefined as string | undefined,\n // Poll every 30s so titles, execution status, and timestamps stay fresh\n // without requiring the user to refresh. Each response carries the full\n // conversation objects, so on slow links a tighter interval degrades into\n // a continuous download that starves the rest of the app (including the\n // events WebSocket handshake). Consumers must gate initial-load UI (e.g.\n // skeletons) on `isLoading`, not `isFetching` — `isFetching` flips back to\n // true on every background refetch, which would cause the skeleton to\n // flicker on each poll when the list is empty.\n refetchInterval: 30_000,\n // A successful fetch proves the backend is reachable. The global\n // QueryCache onSuccess handler reads this to clear any persisted\n // failure state, re-arming the status dot without user intervention.\n meta: { backendId: active.backend.id },\n });\n};\n"],"mappings":";;;;;;AAOA,IAAa,KAA6B,IAAgB,OAAO;CAC/D,IAAM,EAAE,MAAM,MAAwB,EAAY,GAC5C,IAAS,EAAiB,GAC1B,IAAa,CAAC,EAAY,EAAO,OAAO;CAE9C,OAAO,EAAiB;EAKtB,UAAU;GACR;GACA;GACA;GACA;GACA,EAAO,QAAQ;GACf,EAAO;EACT;EACA,SAAS,OAAO,EAAE,mBAMT,MALc,EAA+B,oBAClD,GACA,CACF;EAIF,SAAS,CAAC,CAAC,KAAuB;EAClC,mBAAmB,MAAkC,EAAS;EAC9D,kBAAkB,KAAA;EASlB,iBAAiB;EAIjB,MAAM,EAAE,WAAW,EAAO,QAAQ,GAAG;CACvC,CAAC;AACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");const e=require("./query-keys.cjs"),t=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),n=require("../../contexts/active-backend-context.cjs"),r=require("../../api/provider-connections-service/provider-connections-service.api.cjs");function i(){let{backend:i}=n.useActiveBackend(),a=i.kind===`local`;return t.useQuery({queryKey:[...e.PROVIDER_CONNECTIONS_QUERY_KEYS.all,i.id],queryFn:r.default.list,...e.CONFIG_CACHE_OPTIONS,enabled:a,meta:{disableToast:!0}})}exports.useProviderConnections=i;
|
|
2
|
+
//# sourceMappingURL=use-provider-connections.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-provider-connections.cjs","names":[],"sources":["../../../src/hooks/query/use-provider-connections.ts"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport ProviderConnectionsService from \"#/api/provider-connections-service/provider-connections-service.api\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport {\n CONFIG_CACHE_OPTIONS,\n PROVIDER_CONNECTIONS_QUERY_KEYS,\n} from \"./query-keys\";\n\nexport { PROVIDER_CONNECTIONS_QUERY_KEYS };\n\n/**\n * Provider connections live only on the local agent-server. On cloud backends\n * the query stays disabled and returns no data, so the connections UI hides\n * itself rather than firing a request that would 404.\n */\nexport function useProviderConnections() {\n const { backend } = useActiveBackend();\n const isLocal = backend.kind === \"local\";\n\n return useQuery({\n queryKey: [...PROVIDER_CONNECTIONS_QUERY_KEYS.all, backend.id],\n queryFn: ProviderConnectionsService.list,\n ...CONFIG_CACHE_OPTIONS,\n enabled: isLocal,\n meta: { disableToast: true },\n });\n}\n"],"mappings":"oTAeA,SAAgB,GAAyB,CACvC,GAAM,CAAE,WAAY,EAAA,iBAAiB,EAC/B,EAAU,EAAQ,OAAS,QAEjC,OAAO,EAAA,SAAS,CACd,SAAU,CAAC,GAAG,EAAA,gCAAgC,IAAK,EAAQ,EAAE,EAC7D,QAAS,EAAA,QAA2B,KACpC,GAAG,EAAA,qBACH,QAAS,EACT,KAAM,CAAE,aAAc,EAAK,CAC7B,CAAC,CACH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PROVIDER_CONNECTIONS_QUERY_KEYS } from "./query-keys";
|
|
2
|
+
export { PROVIDER_CONNECTIONS_QUERY_KEYS };
|
|
3
|
+
/**
|
|
4
|
+
* Provider connections live only on the local agent-server. On cloud backends
|
|
5
|
+
* the query stays disabled and returns no data, so the connections UI hides
|
|
6
|
+
* itself rather than firing a request that would 404.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useProviderConnections(): import("@tanstack/react-query").UseQueryResult<NoInfer<import("#/api/provider-connections-service/provider-connections-service.api").ProviderConnection[]>, import("axios").AxiosError<unknown, any>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CONFIG_CACHE_OPTIONS as e, PROVIDER_CONNECTIONS_QUERY_KEYS as t } from "./query-keys.js";
|
|
2
|
+
import { useQuery as n } from "../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
3
|
+
import { useActiveBackend as r } from "../../contexts/active-backend-context.js";
|
|
4
|
+
import i from "../../api/provider-connections-service/provider-connections-service.api.js";
|
|
5
|
+
//#region src/hooks/query/use-provider-connections.ts
|
|
6
|
+
function a() {
|
|
7
|
+
let { backend: a } = r(), o = a.kind === "local";
|
|
8
|
+
return n({
|
|
9
|
+
queryKey: [...t.all, a.id],
|
|
10
|
+
queryFn: i.list,
|
|
11
|
+
...e,
|
|
12
|
+
enabled: o,
|
|
13
|
+
meta: { disableToast: !0 }
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { a as useProviderConnections };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=use-provider-connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-provider-connections.js","names":[],"sources":["../../../src/hooks/query/use-provider-connections.ts"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport ProviderConnectionsService from \"#/api/provider-connections-service/provider-connections-service.api\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport {\n CONFIG_CACHE_OPTIONS,\n PROVIDER_CONNECTIONS_QUERY_KEYS,\n} from \"./query-keys\";\n\nexport { PROVIDER_CONNECTIONS_QUERY_KEYS };\n\n/**\n * Provider connections live only on the local agent-server. On cloud backends\n * the query stays disabled and returns no data, so the connections UI hides\n * itself rather than firing a request that would 404.\n */\nexport function useProviderConnections() {\n const { backend } = useActiveBackend();\n const isLocal = backend.kind === \"local\";\n\n return useQuery({\n queryKey: [...PROVIDER_CONNECTIONS_QUERY_KEYS.all, backend.id],\n queryFn: ProviderConnectionsService.list,\n ...CONFIG_CACHE_OPTIONS,\n enabled: isLocal,\n meta: { disableToast: true },\n });\n}\n"],"mappings":";;;;;AAeA,SAAgB,IAAyB;CACvC,IAAM,EAAE,eAAY,EAAiB,GAC/B,IAAU,EAAQ,SAAS;CAEjC,OAAO,EAAS;EACd,UAAU,CAAC,GAAG,EAAgC,KAAK,EAAQ,EAAE;EAC7D,SAAS,EAA2B;EACpC,GAAG;EACH,SAAS;EACT,MAAM,EAAE,cAAc,GAAK;CAC7B,CAAC;AACH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");const e=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),t=require("../../api/git-provider-items-service.cjs");function n(n,r){return e.useQuery({queryKey:[`repository-pull-requests`,r,n],queryFn:()=>t.GitProviderItemsService.listPullRequests(n,r),enabled:!!(n&&r),staleTime:6e4,meta:{disableToast:!0}})}function r(n,r){return e.useQuery({queryKey:[`repository-issues`,r,n],queryFn:()=>t.GitProviderItemsService.listIssues(n,r),enabled:!!(n&&r),staleTime:6e4,meta:{disableToast:!0}})}exports.useRepositoryIssues=r,exports.useRepositoryPullRequests=n;
|
|
2
|
+
//# sourceMappingURL=use-repository-git-items.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-repository-git-items.cjs","names":[],"sources":["../../../src/hooks/query/use-repository-git-items.ts"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport { GitProviderItemsService } from \"#/api/git-provider-items-service\";\nimport type { Provider } from \"#/types/settings\";\n\nexport function useRepositoryPullRequests(\n repository: string | null | undefined,\n provider: Provider | null | undefined,\n) {\n return useQuery({\n queryKey: [\"repository-pull-requests\", provider, repository],\n queryFn: () =>\n GitProviderItemsService.listPullRequests(repository!, provider!),\n enabled: Boolean(repository && provider),\n staleTime: 60_000,\n meta: { disableToast: true },\n });\n}\n\nexport function useRepositoryIssues(\n repository: string | null | undefined,\n provider: Provider | null | undefined,\n) {\n return useQuery({\n queryKey: [\"repository-issues\", provider, repository],\n queryFn: () => GitProviderItemsService.listIssues(repository!, provider!),\n enabled: Boolean(repository && provider),\n staleTime: 60_000,\n meta: { disableToast: true },\n });\n}\n"],"mappings":"4LAIA,SAAgB,EACd,EACA,EACA,CACA,OAAO,EAAA,SAAS,CACd,SAAU,CAAC,2BAA4B,EAAU,CAAU,EAC3D,YACE,EAAA,wBAAwB,iBAAiB,EAAa,CAAS,EACjE,QAAS,GAAQ,GAAc,GAC/B,UAAW,IACX,KAAM,CAAE,aAAc,EAAK,CAC7B,CAAC,CACH,CAEA,SAAgB,EACd,EACA,EACA,CACA,OAAO,EAAA,SAAS,CACd,SAAU,CAAC,oBAAqB,EAAU,CAAU,EACpD,YAAe,EAAA,wBAAwB,WAAW,EAAa,CAAS,EACxE,QAAS,GAAQ,GAAc,GAC/B,UAAW,IACX,KAAM,CAAE,aAAc,EAAK,CAC7B,CAAC,CACH"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { Provider } from "#/types/settings";
|
|
2
|
+
export declare function useRepositoryPullRequests(repository: string | null | undefined, provider: Provider | null | undefined): import("@tanstack/react-query").UseQueryResult<NoInfer<import("#/api/git-provider-items-service").GitProviderItem[]>, import("axios").AxiosError<unknown, any>>;
|
|
3
|
+
export declare function useRepositoryIssues(repository: string | null | undefined, provider: Provider | null | undefined): import("@tanstack/react-query").UseQueryResult<NoInfer<import("#/api/git-provider-items-service").GitProviderItem[]>, import("axios").AxiosError<unknown, any>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { useQuery as e } from "../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
2
|
+
import { GitProviderItemsService as t } from "../../api/git-provider-items-service.js";
|
|
3
|
+
//#region src/hooks/query/use-repository-git-items.ts
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
return e({
|
|
6
|
+
queryKey: [
|
|
7
|
+
"repository-pull-requests",
|
|
8
|
+
r,
|
|
9
|
+
n
|
|
10
|
+
],
|
|
11
|
+
queryFn: () => t.listPullRequests(n, r),
|
|
12
|
+
enabled: !!(n && r),
|
|
13
|
+
staleTime: 6e4,
|
|
14
|
+
meta: { disableToast: !0 }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function r(n, r) {
|
|
18
|
+
return e({
|
|
19
|
+
queryKey: [
|
|
20
|
+
"repository-issues",
|
|
21
|
+
r,
|
|
22
|
+
n
|
|
23
|
+
],
|
|
24
|
+
queryFn: () => t.listIssues(n, r),
|
|
25
|
+
enabled: !!(n && r),
|
|
26
|
+
staleTime: 6e4,
|
|
27
|
+
meta: { disableToast: !0 }
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
export { r as useRepositoryIssues, n as useRepositoryPullRequests };
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=use-repository-git-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-repository-git-items.js","names":[],"sources":["../../../src/hooks/query/use-repository-git-items.ts"],"sourcesContent":["import { useQuery } from \"@tanstack/react-query\";\nimport { GitProviderItemsService } from \"#/api/git-provider-items-service\";\nimport type { Provider } from \"#/types/settings\";\n\nexport function useRepositoryPullRequests(\n repository: string | null | undefined,\n provider: Provider | null | undefined,\n) {\n return useQuery({\n queryKey: [\"repository-pull-requests\", provider, repository],\n queryFn: () =>\n GitProviderItemsService.listPullRequests(repository!, provider!),\n enabled: Boolean(repository && provider),\n staleTime: 60_000,\n meta: { disableToast: true },\n });\n}\n\nexport function useRepositoryIssues(\n repository: string | null | undefined,\n provider: Provider | null | undefined,\n) {\n return useQuery({\n queryKey: [\"repository-issues\", provider, repository],\n queryFn: () => GitProviderItemsService.listIssues(repository!, provider!),\n enabled: Boolean(repository && provider),\n staleTime: 60_000,\n meta: { disableToast: true },\n });\n}\n"],"mappings":";;;AAIA,SAAgB,EACd,GACA,GACA;CACA,OAAO,EAAS;EACd,UAAU;GAAC;GAA4B;GAAU;EAAU;EAC3D,eACE,EAAwB,iBAAiB,GAAa,CAAS;EACjE,SAAS,GAAQ,KAAc;EAC/B,WAAW;EACX,MAAM,EAAE,cAAc,GAAK;CAC7B,CAAC;AACH;AAEA,SAAgB,EACd,GACA,GACA;CACA,OAAO,EAAS;EACd,UAAU;GAAC;GAAqB;GAAU;EAAU;EACpD,eAAe,EAAwB,WAAW,GAAa,CAAS;EACxE,SAAS,GAAQ,KAAc;EAC/B,WAAW;EACX,MAAM,EAAE,cAAc,GAAK;CAC7B,CAAC;AACH"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../use-runtime-is-ready.cjs"),a=require("../../
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../use-runtime-is-ready.cjs"),a=require("../../api/git-service/agent-server-git-service.api.cjs"),o=require("../../utils/get-git-path.cjs");let s=require("react");s=e.__toESM(s,1);var c=()=>{let{conversationId:e}=t.useConversationId(),{data:c}=r.useActiveConversation(),[l,u]=s.default.useState([]),d=s.default.useRef(null),f=i.useRuntimeIsReady(),p=c?.conversation_url,m=c?.session_api_key,h=c?.selected_repository,g=c?.workspace?.working_dir?.trim(),_=s.default.useMemo(()=>o.getGitPath(h,g),[h,g]),v=n.useQuery({queryKey:[`file_changes`,e,p,m,_],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return a.default.getGitChanges(e,p,m,_)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:f&&!!e,meta:{disableToast:!0}});return s.default.useEffect(()=>{if(!v.isFetching&&v.isSuccess&&v.data){let e=v.data;if(e!==d.current)if(d.current=e,Array.isArray(e)){let t=new Set(e.map(e=>e.path)),n=new Set(l.map(e=>e.path)),r=e.filter(e=>!n.has(e.path)),i=l.filter(e=>t.has(e.path));u([...r,...i])}else u([e])}},[v.isFetching,v.isSuccess,v.data]),{data:l,isLoading:v.isLoading,isFetching:v.isFetching,isSuccess:v.isSuccess,isError:v.isError,error:v.error,refetch:v.refetch}};exports.useUnifiedGetGitChanges=c;
|
|
2
2
|
//# sourceMappingURL=use-unified-get-git-changes.cjs.map
|
|
@@ -2,12 +2,12 @@ import { useConversationId as e } from "../use-conversation-id.js";
|
|
|
2
2
|
import { useQuery as t } from "../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
3
3
|
import { useActiveConversation as n } from "./use-active-conversation.js";
|
|
4
4
|
import { useRuntimeIsReady as r } from "../use-runtime-is-ready.js";
|
|
5
|
-
import
|
|
6
|
-
import a from "../../
|
|
5
|
+
import i from "../../api/git-service/agent-server-git-service.api.js";
|
|
6
|
+
import { getGitPath as a } from "../../utils/get-git-path.js";
|
|
7
7
|
import o from "react";
|
|
8
8
|
//#region src/hooks/query/use-unified-get-git-changes.ts
|
|
9
9
|
var s = () => {
|
|
10
|
-
let { conversationId: s } = e(), { data: c } = n(), [l, u] = o.useState([]), d = o.useRef(null), f = r(), p = c?.conversation_url, m = c?.session_api_key, h = c?.selected_repository, g = c?.workspace?.working_dir?.trim(), _ = o.useMemo(() =>
|
|
10
|
+
let { conversationId: s } = e(), { data: c } = n(), [l, u] = o.useState([]), d = o.useRef(null), f = r(), p = c?.conversation_url, m = c?.session_api_key, h = c?.selected_repository, g = c?.workspace?.working_dir?.trim(), _ = o.useMemo(() => a(h, g), [h, g]), v = t({
|
|
11
11
|
queryKey: [
|
|
12
12
|
"file_changes",
|
|
13
13
|
s,
|
|
@@ -17,7 +17,7 @@ var s = () => {
|
|
|
17
17
|
],
|
|
18
18
|
queryFn: async () => {
|
|
19
19
|
if (!s) throw Error("No conversation ID");
|
|
20
|
-
return
|
|
20
|
+
return i.getGitChanges(s, p, m, _);
|
|
21
21
|
},
|
|
22
22
|
retry: !1,
|
|
23
23
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../use-runtime-is-ready.cjs"),a=require("../../
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../use-runtime-is-ready.cjs"),a=require("../../api/git-service/agent-server-git-service.api.cjs"),o=require("../../utils/get-git-path.cjs");let s=require("react");s=e.__toESM(s,1);var c=()=>{let{conversationId:e}=t.useConversationId(),{data:c}=r.useActiveConversation(),l=i.useRuntimeIsReady(),u=c?.conversation_url,d=c?.session_api_key,f=c?.selected_repository,p=c?.workspace?.working_dir?.trim(),m=s.default.useMemo(()=>o.getGitPath(f,p),[f,p]),h=n.useQuery({queryKey:[`git_commits`,e,u,d,m],queryFn:async()=>{if(!e)throw Error(`No conversation ID`);return a.default.getGitCommits(u,d,m,50)},retry:!1,staleTime:1e3*60*5,gcTime:1e3*60*15,refetchOnMount:`always`,enabled:l&&!!e,meta:{disableToast:!0}});return{commits:h.data?.commits??[],hasMore:h.data?.hasMore??!1,isUnsupported:h.data===null,isLoading:h.isLoading,isFetching:h.isFetching,isSuccess:h.isSuccess,isError:h.isError}};exports.useUnifiedGitCommits=c;
|
|
2
2
|
//# sourceMappingURL=use-unified-git-commits.cjs.map
|
|
@@ -2,11 +2,11 @@ import { useConversationId as e } from "../use-conversation-id.js";
|
|
|
2
2
|
import { useQuery as t } from "../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
3
3
|
import { useActiveConversation as n } from "./use-active-conversation.js";
|
|
4
4
|
import { useRuntimeIsReady as r } from "../use-runtime-is-ready.js";
|
|
5
|
-
import
|
|
6
|
-
import a from "../../
|
|
5
|
+
import i from "../../api/git-service/agent-server-git-service.api.js";
|
|
6
|
+
import { getGitPath as a } from "../../utils/get-git-path.js";
|
|
7
7
|
import o from "react";
|
|
8
8
|
var s = () => {
|
|
9
|
-
let { conversationId: s } = e(), { data: c } = n(), l = r(), u = c?.conversation_url, d = c?.session_api_key, f = c?.selected_repository, p = c?.workspace?.working_dir?.trim(), m = o.useMemo(() =>
|
|
9
|
+
let { conversationId: s } = e(), { data: c } = n(), l = r(), u = c?.conversation_url, d = c?.session_api_key, f = c?.selected_repository, p = c?.workspace?.working_dir?.trim(), m = o.useMemo(() => a(f, p), [f, p]), h = t({
|
|
10
10
|
queryKey: [
|
|
11
11
|
"git_commits",
|
|
12
12
|
s,
|
|
@@ -16,7 +16,7 @@ var s = () => {
|
|
|
16
16
|
],
|
|
17
17
|
queryFn: async () => {
|
|
18
18
|
if (!s) throw Error("No conversation ID");
|
|
19
|
-
return
|
|
19
|
+
return i.getGitCommits(u, d, m, 50);
|
|
20
20
|
},
|
|
21
21
|
retry: !1,
|
|
22
22
|
staleTime: 1e3 * 60 * 5,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../../
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../use-conversation-id.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("./use-active-conversation.cjs"),i=require("../../api/git-service/agent-server-git-service.api.cjs"),a=require("../../utils/get-git-path.cjs");let o=require("react");o=e.__toESM(o,1);var s=e=>{let{conversationId:s}=t.useConversationId(),{data:c}=r.useActiveConversation(),l=c?.conversation_url,u=c?.session_api_key,d=c?.selected_repository,f=c?.workspace?.working_dir?.trim(),p=o.default.useMemo(()=>`${a.getGitPath(d,f)}/${e.filePath}`,[d,e.filePath,f]),m=e.type===`D`;return n.useQuery({queryKey:e.commit?[`commit_file_diff`,s,l,u,e.commit,p]:[`file_diff`,s,l,u,p],queryFn:async()=>{if(!s)throw Error(`No conversation ID`);return i.default.getGitChangeDiff(s,l,u,p,e.commit)},enabled:e.enabled&&(!m||!!e.commit),staleTime:e.commit?1/0:1e3*60*5,gcTime:1e3*60*15})};exports.useUnifiedGitDiff=s;
|
|
2
2
|
//# sourceMappingURL=use-unified-git-diff.cjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useConversationId as e } from "../use-conversation-id.js";
|
|
2
2
|
import { useQuery as t } from "../../node_modules/@tanstack/react-query/build/modern/useQuery.js";
|
|
3
3
|
import { useActiveConversation as n } from "./use-active-conversation.js";
|
|
4
|
-
import
|
|
5
|
-
import i from "../../
|
|
4
|
+
import r from "../../api/git-service/agent-server-git-service.api.js";
|
|
5
|
+
import { getGitPath as i } from "../../utils/get-git-path.js";
|
|
6
6
|
import a from "react";
|
|
7
7
|
//#region src/hooks/query/use-unified-git-diff.ts
|
|
8
8
|
var o = (o) => {
|
|
9
|
-
let { conversationId: s } = e(), { data: c } = n(), l = c?.conversation_url, u = c?.session_api_key, d = c?.selected_repository, f = c?.workspace?.working_dir?.trim(), p = a.useMemo(() => `${
|
|
9
|
+
let { conversationId: s } = e(), { data: c } = n(), l = c?.conversation_url, u = c?.session_api_key, d = c?.selected_repository, f = c?.workspace?.working_dir?.trim(), p = a.useMemo(() => `${i(d, f)}/${o.filePath}`, [
|
|
10
10
|
d,
|
|
11
11
|
o.filePath,
|
|
12
12
|
f
|
|
@@ -28,7 +28,7 @@ var o = (o) => {
|
|
|
28
28
|
],
|
|
29
29
|
queryFn: async () => {
|
|
30
30
|
if (!s) throw Error("No conversation ID");
|
|
31
|
-
return
|
|
31
|
+
return r.getGitChangeDiff(s, l, u, p, o.commit);
|
|
32
32
|
},
|
|
33
33
|
enabled: o.enabled && (!m || !!o.commit),
|
|
34
34
|
staleTime: o.commit ? Infinity : 1e3 * 60 * 5,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../../_virtual/_rolldown/runtime.cjs");const e=require("../use-conversation-id.cjs"),t=require("../../api/backend-registry/active-store.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("../../api/cloud/conversation-service.api.cjs"),i=require("./use-active-conversation.cjs"),a=require("../use-runtime-is-ready.cjs"),o=require("../../
|
|
1
|
+
require("../../_virtual/_rolldown/runtime.cjs");const e=require("../use-conversation-id.cjs"),t=require("../../api/backend-registry/active-store.cjs"),n=require("../../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),r=require("../../api/cloud/conversation-service.api.cjs"),i=require("./use-active-conversation.cjs"),a=require("../use-runtime-is-ready.cjs"),o=require("../../utils/get-git-path.cjs"),s=require("../../api/runtime-service/agent-server-runtime-service.cjs");let c=require("react");var l=2e3,u=[`.git`,`node_modules`,`.venv`,`venv`,`__pycache__`,`dist`,`build`,`.next`,`.cache`,`.pytest_cache`,`.mypy_cache`,`.turbo`,`.parcel-cache`,`target`];function d(){return`find . \\( ${u.map(e=>`-name '${e}' -prune`).join(` -o `)} \\) -o -type f -print 2>/dev/null | sort | head -n ${l}`}function f(e){return e.startsWith(`./`)?e.slice(2):e}function p(e){let{data:t}=i.useActiveConversation(),r=a.useRuntimeIsReady(),o=t?.id,c=t?.conversation_url,u=t?.session_api_key,p=t?.workspace?.working_dir?.trim(),m=n.useQuery({queryKey:[`workspace-files`,o,c,u,p],queryFn:async()=>{let e=await s.default.executeCommand(c,u,d(),p,30);if(e.exit_code!==0)throw Error(e.stderr?.trim()||`Failed to list workspace files`);let t=e.stdout.split(/\r?\n/).map(e=>e.trim()).filter(Boolean).map(f);return Array.from(new Set(t)).slice(0,l)},enabled:e&&r&&!!o&&!!p,retry:!1,staleTime:1e3*30,gcTime:1e3*60*5,meta:{disableToast:!0}});return{data:m.data,isLoading:m.isLoading}}function m(t){let{conversationId:s}=e.useOptionalConversationId(),{data:c}=i.useActiveConversation(),u=a.useRuntimeIsReady(),d=c?.selected_repository,p=c?.workspace?.working_dir?.trim(),m=o.getGitPath(d,p),h=m.startsWith(`/`)?m:`/${m}`,g=n.useQuery({queryKey:[`workspace-files-cloud`,s,h],queryFn:async()=>{let e=(await r.listCloudConversationFiles(s,h)).map(f).filter(Boolean);return Array.from(new Set(e)).slice(0,l)},enabled:t&&u&&!!s,retry:!1,staleTime:1e3*30,gcTime:1e3*60*5,meta:{disableToast:!0}});return{data:g.data,isLoading:g.isLoading}}function h(){let e=(0,c.useSyncExternalStore)(t.subscribeActiveBackend,t.getSnapshot,t.getSnapshot).active.backend.kind===`cloud`,n=p(!e),r=m(e);return e?r:n}exports.useWorkspaceFiles=h;
|
|
2
2
|
//# sourceMappingURL=use-workspace-files.cjs.map
|
|
@@ -4,8 +4,8 @@ import { useQuery as r } from "../../node_modules/@tanstack/react-query/build/mo
|
|
|
4
4
|
import { listCloudConversationFiles as i } from "../../api/cloud/conversation-service.api.js";
|
|
5
5
|
import { useActiveConversation as a } from "./use-active-conversation.js";
|
|
6
6
|
import { useRuntimeIsReady as o } from "../use-runtime-is-ready.js";
|
|
7
|
-
import s from "../../
|
|
8
|
-
import
|
|
7
|
+
import { getGitPath as s } from "../../utils/get-git-path.js";
|
|
8
|
+
import c from "../../api/runtime-service/agent-server-runtime-service.js";
|
|
9
9
|
import { useSyncExternalStore as l } from "react";
|
|
10
10
|
//#region src/hooks/query/use-workspace-files.ts
|
|
11
11
|
var u = 2e3, d = [
|
|
@@ -31,16 +31,16 @@ function p(e) {
|
|
|
31
31
|
return e.startsWith("./") ? e.slice(2) : e;
|
|
32
32
|
}
|
|
33
33
|
function m(e) {
|
|
34
|
-
let { data: t } = a(), n = o(), i = t?.id,
|
|
34
|
+
let { data: t } = a(), n = o(), i = t?.id, s = t?.conversation_url, l = t?.session_api_key, d = t?.workspace?.working_dir?.trim(), m = r({
|
|
35
35
|
queryKey: [
|
|
36
36
|
"workspace-files",
|
|
37
37
|
i,
|
|
38
|
-
|
|
38
|
+
s,
|
|
39
39
|
l,
|
|
40
40
|
d
|
|
41
41
|
],
|
|
42
42
|
queryFn: async () => {
|
|
43
|
-
let e = await
|
|
43
|
+
let e = await c.executeCommand(s, l, f(), d, 30);
|
|
44
44
|
if (e.exit_code !== 0) throw Error(e.stderr?.trim() || "Failed to list workspace files");
|
|
45
45
|
let t = e.stdout.split(/\r?\n/).map((e) => e.trim()).filter(Boolean).map(p);
|
|
46
46
|
return Array.from(new Set(t)).slice(0, u);
|
|
@@ -57,7 +57,7 @@ function m(e) {
|
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function h(t) {
|
|
60
|
-
let { conversationId: n } = e(), { data:
|
|
60
|
+
let { conversationId: n } = e(), { data: c } = a(), l = o(), d = c?.selected_repository, f = c?.workspace?.working_dir?.trim(), m = s(d, f), h = m.startsWith("/") ? m : `/${m}`, g = r({
|
|
61
61
|
queryKey: [
|
|
62
62
|
"workspace-files-cloud",
|
|
63
63
|
n,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");const e=require("../utils/websocket-url.cjs"),t=require("../utils/websocket-auth.cjs");let
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");const e=require("../utils/websocket-url.cjs"),t=require("../utils/websocket-auth.cjs"),n=require("../utils/websocket-handshake.cjs");let r=require("react");function i(e){return e.kind===`BashCommand`}function a(e){return e.kind===`BashOutput`}function o(e){return e.kind===`BashError`}function s(s,c,l){let u=(0,r.useRef)(null),d=(0,r.useRef)(null),f=(0,r.useRef)([]),p=(0,r.useRef)([]),m=(0,r.useRef)(new Map);return(0,r.useEffect)(()=>{if(!l)return;let r=e.buildBashWebSocketUrl(s),h=new WebSocket(r);u.current=h,d.current=null;let g=n.startHandshakeWatchdog(h);h.onopen=()=>{g(),t.sendWebSocketAuth(h,c),d.current=h;for(let{command:e,cwd:t,timeout:n,resolve:r,reject:i}of f.current)p.current.push({resolve:r,reject:i}),h.send(JSON.stringify({command:e,cwd:t,timeout:n}));f.current=[]},h.onmessage=e=>{let t;try{t=JSON.parse(e.data)}catch{return}if(i(t)){let e=p.current.shift();e&&m.current.set(t.id,{...e,stdout:[],stderr:[]})}else if(a(t)&&t.command_id){let e=m.current.get(t.command_id);e&&(t.stdout&&e.stdout.push(t.stdout),t.stderr&&e.stderr.push(t.stderr),t.exit_code!=null&&(m.current.delete(t.command_id),e.resolve({exit_code:t.exit_code,stdout:e.stdout.join(``),stderr:e.stderr.join(``)})))}else o(t)&&_(`Bash error: ${t.code}: ${t.detail}`)};function _(e){let t=Error(e);for(let{reject:e}of f.current)e(t);f.current=[];for(let e of p.current)e.reject(t);p.current=[];for(let e of m.current.values())e.reject(t);m.current.clear()}return h.onclose=()=>{g(),u.current=null,d.current=null,_(`Bash WebSocket closed`)},h.onerror=()=>{u.current=null,d.current=null,_(`Bash WebSocket error`)},()=>{g(),h.onclose=null,h.onerror=null,h.close(),u.current=null,d.current=null,_(`Bash WebSocket unmounted`)}},[l,s,c]),(0,r.useCallback)((e,t,n)=>new Promise((r,i)=>{let a=u.current;if(!a||a.readyState===WebSocket.CLOSED||a.readyState===WebSocket.CLOSING){i(Error(`Bash WebSocket not available`));return}a.readyState!==WebSocket.OPEN||d.current!==a?f.current.push({command:e,cwd:t,timeout:n,resolve:r,reject:i}):(p.current.push({resolve:r,reject:i}),a.send(JSON.stringify({command:e,cwd:t,timeout:n})))}),[])}exports.useBashCommandRunner=s;
|
|
2
2
|
//# sourceMappingURL=use-bash-command-runner.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bash-command-runner.cjs","names":[],"sources":["../../src/hooks/use-bash-command-runner.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport type {\n BashCommand,\n BashError,\n BashEvent,\n BashOutput,\n} from \"@openhands/typescript-client\";\nimport type { CommandResult } from \"#/api/runtime-service/agent-server-runtime-service\";\nimport { sendWebSocketAuth } from \"#/utils/websocket-auth\";\nimport { buildBashWebSocketUrl } from \"#/utils/websocket-url\";\n\ninterface WaitingCommand {\n command: string;\n cwd: string;\n timeout: number;\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface PendingCommand {\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface ActiveCommand extends PendingCommand {\n stdout: string[];\n stderr: string[];\n}\n\nexport type BashCommandRunner = (\n command: string,\n cwd: string,\n timeout: number,\n) => Promise<CommandResult>;\n\nfunction isBashCommand(event: BashEvent): event is BashCommand {\n return event.kind === \"BashCommand\";\n}\n\nfunction isBashOutput(event: BashEvent): event is BashOutput {\n return event.kind === \"BashOutput\";\n}\n\nfunction isBashError(event: BashEvent): event is BashError {\n return event.kind === \"BashError\";\n}\n\n/**\n * Maintains a persistent WebSocket connection to the agent-server's\n * `/sockets/bash-events` endpoint and exposes a `runCommand` function that\n * executes a bash command and returns a Promise that resolves when the\n * final `BashOutput` (non-null `exit_code`) arrives.\n *\n * Commands are correlated using a FIFO queue: each `BashCommand` echo\n * received from the server is paired with the oldest outstanding request in\n * the queue, and subsequent `BashOutput` events are matched by `command_id`.\n *\n * Commands are buffered until the socket's open handler sends authentication.\n */\nexport function useBashCommandRunner(\n conversationUrl: string | null | undefined,\n sessionApiKey: string | null | undefined,\n enabled: boolean,\n): BashCommandRunner {\n const wsRef = useRef<WebSocket | null>(null);\n const readyWsRef = useRef<WebSocket | null>(null);\n const waitingQueueRef = useRef<WaitingCommand[]>([]);\n // Commands whose request was sent; waiting for the BashCommand echo to get command_id\n const pendingQueueRef = useRef<PendingCommand[]>([]);\n // Commands whose command_id is known; waiting for BashOutput with non-null exit_code\n const activeCommandsRef = useRef<Map<string, ActiveCommand>>(new Map());\n\n useEffect(() => {\n if (!enabled) return;\n\n const wsUrl = buildBashWebSocketUrl(conversationUrl);\n const ws = new WebSocket(wsUrl);\n wsRef.current = ws;\n readyWsRef.current = null;\n\n ws.onopen = () => {\n sendWebSocketAuth(ws, sessionApiKey);\n readyWsRef.current = ws;\n for (const {\n command,\n cwd,\n timeout,\n resolve,\n reject,\n } of waitingQueueRef.current) {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n waitingQueueRef.current = [];\n };\n\n ws.onmessage = (event: MessageEvent) => {\n let data: BashEvent;\n try {\n data = JSON.parse(event.data as string) as BashEvent;\n } catch {\n return; // ignore malformed frames\n }\n\n if (isBashCommand(data)) {\n // Associate the next pending request with the server-assigned command_id\n const pending = pendingQueueRef.current.shift();\n if (pending) {\n activeCommandsRef.current.set(data.id, {\n ...pending,\n stdout: [],\n stderr: [],\n });\n }\n } else if (isBashOutput(data) && data.command_id) {\n const active = activeCommandsRef.current.get(data.command_id);\n if (active) {\n if (data.stdout) active.stdout.push(data.stdout);\n if (data.stderr) active.stderr.push(data.stderr);\n if (data.exit_code != null) {\n activeCommandsRef.current.delete(data.command_id);\n active.resolve({\n exit_code: data.exit_code,\n stdout: active.stdout.join(\"\"),\n stderr: active.stderr.join(\"\"),\n });\n }\n }\n } else if (isBashError(data)) {\n rejectAll(`Bash error: ${data.code}: ${data.detail}`);\n }\n };\n\n function rejectAll(reason: string): void {\n const err = new Error(reason);\n for (const { reject: rej } of waitingQueueRef.current) rej(err);\n waitingQueueRef.current = [];\n for (const p of pendingQueueRef.current) p.reject(err);\n pendingQueueRef.current = [];\n for (const a of activeCommandsRef.current.values()) a.reject(err);\n activeCommandsRef.current.clear();\n }\n\n ws.onclose = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket closed\");\n };\n\n ws.onerror = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket error\");\n };\n\n return () => {\n // Prevent the close/error handlers from double-rejecting after unmount\n ws.onclose = null;\n ws.onerror = null;\n ws.close();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket unmounted\");\n };\n }, [enabled, conversationUrl, sessionApiKey]);\n\n const runCommand: BashCommandRunner = useCallback(\n (command: string, cwd: string, timeout: number) =>\n new Promise<CommandResult>((resolve, reject) => {\n const ws = wsRef.current;\n if (\n !ws ||\n ws.readyState === WebSocket.CLOSED ||\n ws.readyState === WebSocket.CLOSING\n ) {\n reject(new Error(\"Bash WebSocket not available\"));\n return;\n }\n if (ws.readyState !== WebSocket.OPEN || readyWsRef.current !== ws) {\n waitingQueueRef.current.push({\n command,\n cwd,\n timeout,\n resolve,\n reject,\n });\n } else {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n }),\n [],\n );\n\n return runCommand;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-bash-command-runner.cjs","names":[],"sources":["../../src/hooks/use-bash-command-runner.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport type {\n BashCommand,\n BashError,\n BashEvent,\n BashOutput,\n} from \"@openhands/typescript-client\";\nimport type { CommandResult } from \"#/api/runtime-service/agent-server-runtime-service\";\nimport { sendWebSocketAuth } from \"#/utils/websocket-auth\";\nimport { startHandshakeWatchdog } from \"#/utils/websocket-handshake\";\nimport { buildBashWebSocketUrl } from \"#/utils/websocket-url\";\n\ninterface WaitingCommand {\n command: string;\n cwd: string;\n timeout: number;\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface PendingCommand {\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface ActiveCommand extends PendingCommand {\n stdout: string[];\n stderr: string[];\n}\n\nexport type BashCommandRunner = (\n command: string,\n cwd: string,\n timeout: number,\n) => Promise<CommandResult>;\n\nfunction isBashCommand(event: BashEvent): event is BashCommand {\n return event.kind === \"BashCommand\";\n}\n\nfunction isBashOutput(event: BashEvent): event is BashOutput {\n return event.kind === \"BashOutput\";\n}\n\nfunction isBashError(event: BashEvent): event is BashError {\n return event.kind === \"BashError\";\n}\n\n/**\n * Maintains a persistent WebSocket connection to the agent-server's\n * `/sockets/bash-events` endpoint and exposes a `runCommand` function that\n * executes a bash command and returns a Promise that resolves when the\n * final `BashOutput` (non-null `exit_code`) arrives.\n *\n * Commands are correlated using a FIFO queue: each `BashCommand` echo\n * received from the server is paired with the oldest outstanding request in\n * the queue, and subsequent `BashOutput` events are matched by `command_id`.\n *\n * Commands are buffered until the socket's open handler sends authentication.\n */\nexport function useBashCommandRunner(\n conversationUrl: string | null | undefined,\n sessionApiKey: string | null | undefined,\n enabled: boolean,\n): BashCommandRunner {\n const wsRef = useRef<WebSocket | null>(null);\n const readyWsRef = useRef<WebSocket | null>(null);\n const waitingQueueRef = useRef<WaitingCommand[]>([]);\n // Commands whose request was sent; waiting for the BashCommand echo to get command_id\n const pendingQueueRef = useRef<PendingCommand[]>([]);\n // Commands whose command_id is known; waiting for BashOutput with non-null exit_code\n const activeCommandsRef = useRef<Map<string, ActiveCommand>>(new Map());\n\n useEffect(() => {\n if (!enabled) return;\n\n const wsUrl = buildBashWebSocketUrl(conversationUrl);\n const ws = new WebSocket(wsUrl);\n wsRef.current = ws;\n readyWsRef.current = null;\n\n // Abort a handshake stuck in CONNECTING — a hung bash-events handshake\n // would also block the conversation's events socket (the one the chat\n // needs) until it settles.\n const cancelHandshakeWatchdog = startHandshakeWatchdog(ws);\n\n ws.onopen = () => {\n cancelHandshakeWatchdog();\n sendWebSocketAuth(ws, sessionApiKey);\n readyWsRef.current = ws;\n for (const {\n command,\n cwd,\n timeout,\n resolve,\n reject,\n } of waitingQueueRef.current) {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n waitingQueueRef.current = [];\n };\n\n ws.onmessage = (event: MessageEvent) => {\n let data: BashEvent;\n try {\n data = JSON.parse(event.data as string) as BashEvent;\n } catch {\n return; // ignore malformed frames\n }\n\n if (isBashCommand(data)) {\n // Associate the next pending request with the server-assigned command_id\n const pending = pendingQueueRef.current.shift();\n if (pending) {\n activeCommandsRef.current.set(data.id, {\n ...pending,\n stdout: [],\n stderr: [],\n });\n }\n } else if (isBashOutput(data) && data.command_id) {\n const active = activeCommandsRef.current.get(data.command_id);\n if (active) {\n if (data.stdout) active.stdout.push(data.stdout);\n if (data.stderr) active.stderr.push(data.stderr);\n if (data.exit_code != null) {\n activeCommandsRef.current.delete(data.command_id);\n active.resolve({\n exit_code: data.exit_code,\n stdout: active.stdout.join(\"\"),\n stderr: active.stderr.join(\"\"),\n });\n }\n }\n } else if (isBashError(data)) {\n rejectAll(`Bash error: ${data.code}: ${data.detail}`);\n }\n };\n\n function rejectAll(reason: string): void {\n const err = new Error(reason);\n for (const { reject: rej } of waitingQueueRef.current) rej(err);\n waitingQueueRef.current = [];\n for (const p of pendingQueueRef.current) p.reject(err);\n pendingQueueRef.current = [];\n for (const a of activeCommandsRef.current.values()) a.reject(err);\n activeCommandsRef.current.clear();\n }\n\n ws.onclose = () => {\n cancelHandshakeWatchdog();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket closed\");\n };\n\n ws.onerror = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket error\");\n };\n\n return () => {\n // The close handler is nulled below, so cancel the watchdog here.\n cancelHandshakeWatchdog();\n // Prevent the close/error handlers from double-rejecting after unmount\n ws.onclose = null;\n ws.onerror = null;\n ws.close();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket unmounted\");\n };\n }, [enabled, conversationUrl, sessionApiKey]);\n\n const runCommand: BashCommandRunner = useCallback(\n (command: string, cwd: string, timeout: number) =>\n new Promise<CommandResult>((resolve, reject) => {\n const ws = wsRef.current;\n if (\n !ws ||\n ws.readyState === WebSocket.CLOSED ||\n ws.readyState === WebSocket.CLOSING\n ) {\n reject(new Error(\"Bash WebSocket not available\"));\n return;\n }\n if (ws.readyState !== WebSocket.OPEN || readyWsRef.current !== ws) {\n waitingQueueRef.current.push({\n command,\n cwd,\n timeout,\n resolve,\n reject,\n });\n } else {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n }),\n [],\n );\n\n return runCommand;\n}\n"],"mappings":"yMAoCA,SAAS,EAAc,EAAwC,CAC7D,OAAO,EAAM,OAAS,aACxB,CAEA,SAAS,EAAa,EAAuC,CAC3D,OAAO,EAAM,OAAS,YACxB,CAEA,SAAS,EAAY,EAAsC,CACzD,OAAO,EAAM,OAAS,WACxB,CAcA,SAAgB,EACd,EACA,EACA,EACmB,CACnB,IAAM,GAAA,EAAA,EAAA,QAAiC,IAAI,EACrC,GAAA,EAAA,EAAA,QAAsC,IAAI,EAC1C,GAAA,EAAA,EAAA,QAA2C,CAAC,CAAC,EAE7C,GAAA,EAAA,EAAA,QAA2C,CAAC,CAAC,EAE7C,GAAA,EAAA,EAAA,QAAuD,IAAI,GAAK,EAqItE,OAnIA,EAAA,EAAA,eAAgB,CACd,GAAI,CAAC,EAAS,OAEd,IAAM,EAAQ,EAAA,sBAAsB,CAAe,EAC7C,EAAK,IAAI,UAAU,CAAK,EAC9B,EAAM,QAAU,EAChB,EAAW,QAAU,KAKrB,IAAM,EAA0B,EAAA,uBAAuB,CAAE,EAEzD,EAAG,WAAe,CAChB,EAAwB,EACxB,EAAA,kBAAkB,EAAI,CAAa,EACnC,EAAW,QAAU,EACrB,IAAK,GAAM,CACT,UACA,MACA,UACA,UACA,YACG,EAAgB,QACnB,EAAgB,QAAQ,KAAK,CAAE,UAAS,QAAO,CAAC,EAChD,EAAG,KAAK,KAAK,UAAU,CAAE,UAAS,MAAK,SAAQ,CAAC,CAAC,EAEnD,EAAgB,QAAU,CAAC,CAC7B,EAEA,EAAG,UAAa,GAAwB,CACtC,IAAI,EACJ,GAAI,CACF,EAAO,KAAK,MAAM,EAAM,IAAc,CACxC,MAAQ,CACN,MACF,CAEA,GAAI,EAAc,CAAI,EAAG,CAEvB,IAAM,EAAU,EAAgB,QAAQ,MAAM,EAC1C,GACF,EAAkB,QAAQ,IAAI,EAAK,GAAI,CACrC,GAAG,EACH,OAAQ,CAAC,EACT,OAAQ,CAAC,CACX,CAAC,CAEL,MAAO,GAAI,EAAa,CAAI,GAAK,EAAK,WAAY,CAChD,IAAM,EAAS,EAAkB,QAAQ,IAAI,EAAK,UAAU,EACxD,IACE,EAAK,QAAQ,EAAO,OAAO,KAAK,EAAK,MAAM,EAC3C,EAAK,QAAQ,EAAO,OAAO,KAAK,EAAK,MAAM,EAC3C,EAAK,WAAa,OACpB,EAAkB,QAAQ,OAAO,EAAK,UAAU,EAChD,EAAO,QAAQ,CACb,UAAW,EAAK,UAChB,OAAQ,EAAO,OAAO,KAAK,EAAE,EAC7B,OAAQ,EAAO,OAAO,KAAK,EAAE,CAC/B,CAAC,GAGP,MAAW,EAAY,CAAI,GACzB,EAAU,eAAe,EAAK,KAAK,IAAI,EAAK,QAAQ,CAExD,EAEA,SAAS,EAAU,EAAsB,CACvC,IAAM,EAAU,MAAM,CAAM,EAC5B,IAAK,GAAM,CAAE,OAAQ,KAAS,EAAgB,QAAS,EAAI,CAAG,EAC9D,EAAgB,QAAU,CAAC,EAC3B,IAAK,IAAM,KAAK,EAAgB,QAAS,EAAE,OAAO,CAAG,EACrD,EAAgB,QAAU,CAAC,EAC3B,IAAK,IAAM,KAAK,EAAkB,QAAQ,OAAO,EAAG,EAAE,OAAO,CAAG,EAChE,EAAkB,QAAQ,MAAM,CAClC,CAeA,MAbA,GAAG,YAAgB,CACjB,EAAwB,EACxB,EAAM,QAAU,KAChB,EAAW,QAAU,KACrB,EAAU,uBAAuB,CACnC,EAEA,EAAG,YAAgB,CACjB,EAAM,QAAU,KAChB,EAAW,QAAU,KACrB,EAAU,sBAAsB,CAClC,MAEa,CAEX,EAAwB,EAExB,EAAG,QAAU,KACb,EAAG,QAAU,KACb,EAAG,MAAM,EACT,EAAM,QAAU,KAChB,EAAW,QAAU,KACrB,EAAU,0BAA0B,CACtC,CACF,EAAG,CAAC,EAAS,EAAiB,CAAa,CAAC,GA8B5C,EAAA,EAAA,cA3BG,EAAiB,EAAa,IAC7B,IAAI,SAAwB,EAAS,IAAW,CAC9C,IAAM,EAAK,EAAM,QACjB,GACE,CAAC,GACD,EAAG,aAAe,UAAU,QAC5B,EAAG,aAAe,UAAU,QAC5B,CACA,EAAW,MAAM,8BAA8B,CAAC,EAChD,MACF,CACI,EAAG,aAAe,UAAU,MAAQ,EAAW,UAAY,EAC7D,EAAgB,QAAQ,KAAK,CAC3B,UACA,MACA,UACA,UACA,QACF,CAAC,GAED,EAAgB,QAAQ,KAAK,CAAE,UAAS,QAAO,CAAC,EAChD,EAAG,KAAK,KAAK,UAAU,CAAE,UAAS,MAAK,SAAQ,CAAC,CAAC,EAErD,CAAC,EACH,CAAC,CAGI,CACT"}
|
|
@@ -1,88 +1,91 @@
|
|
|
1
1
|
import { buildBashWebSocketUrl as e } from "../utils/websocket-url.js";
|
|
2
2
|
import { sendWebSocketAuth as t } from "../utils/websocket-auth.js";
|
|
3
|
-
import {
|
|
3
|
+
import { startHandshakeWatchdog as n } from "../utils/websocket-handshake.js";
|
|
4
|
+
import { useCallback as r, useEffect as i, useRef as a } from "react";
|
|
4
5
|
//#region src/hooks/use-bash-command-runner.ts
|
|
5
|
-
function
|
|
6
|
+
function o(e) {
|
|
6
7
|
return e.kind === "BashCommand";
|
|
7
8
|
}
|
|
8
|
-
function
|
|
9
|
+
function s(e) {
|
|
9
10
|
return e.kind === "BashOutput";
|
|
10
11
|
}
|
|
11
|
-
function
|
|
12
|
+
function c(e) {
|
|
12
13
|
return e.kind === "BashError";
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
return
|
|
17
|
-
if (!
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function l(l, u, d) {
|
|
16
|
+
let f = a(null), p = a(null), m = a([]), h = a([]), g = a(/* @__PURE__ */ new Map());
|
|
17
|
+
return i(() => {
|
|
18
|
+
if (!d) return;
|
|
19
|
+
let r = e(l), i = new WebSocket(r);
|
|
20
|
+
f.current = i, p.current = null;
|
|
21
|
+
let a = n(i);
|
|
22
|
+
i.onopen = () => {
|
|
23
|
+
a(), t(i, u), p.current = i;
|
|
24
|
+
for (let { command: e, cwd: t, timeout: n, resolve: r, reject: a } of m.current) h.current.push({
|
|
25
|
+
resolve: r,
|
|
23
26
|
reject: a
|
|
24
|
-
}),
|
|
27
|
+
}), i.send(JSON.stringify({
|
|
25
28
|
command: e,
|
|
26
29
|
cwd: t,
|
|
27
30
|
timeout: n
|
|
28
31
|
}));
|
|
29
|
-
|
|
30
|
-
},
|
|
32
|
+
m.current = [];
|
|
33
|
+
}, i.onmessage = (e) => {
|
|
31
34
|
let t;
|
|
32
35
|
try {
|
|
33
36
|
t = JSON.parse(e.data);
|
|
34
37
|
} catch {
|
|
35
38
|
return;
|
|
36
39
|
}
|
|
37
|
-
if (
|
|
38
|
-
let e =
|
|
39
|
-
e &&
|
|
40
|
+
if (o(t)) {
|
|
41
|
+
let e = h.current.shift();
|
|
42
|
+
e && g.current.set(t.id, {
|
|
40
43
|
...e,
|
|
41
44
|
stdout: [],
|
|
42
45
|
stderr: []
|
|
43
46
|
});
|
|
44
|
-
} else if (
|
|
45
|
-
let e =
|
|
46
|
-
e && (t.stdout && e.stdout.push(t.stdout), t.stderr && e.stderr.push(t.stderr), t.exit_code != null && (
|
|
47
|
+
} else if (s(t) && t.command_id) {
|
|
48
|
+
let e = g.current.get(t.command_id);
|
|
49
|
+
e && (t.stdout && e.stdout.push(t.stdout), t.stderr && e.stderr.push(t.stderr), t.exit_code != null && (g.current.delete(t.command_id), e.resolve({
|
|
47
50
|
exit_code: t.exit_code,
|
|
48
51
|
stdout: e.stdout.join(""),
|
|
49
52
|
stderr: e.stderr.join("")
|
|
50
53
|
})));
|
|
51
|
-
} else
|
|
54
|
+
} else c(t) && _(`Bash error: ${t.code}: ${t.detail}`);
|
|
52
55
|
};
|
|
53
|
-
function
|
|
56
|
+
function _(e) {
|
|
54
57
|
let t = Error(e);
|
|
55
|
-
for (let { reject: e } of
|
|
56
|
-
p.current = [];
|
|
57
|
-
for (let e of m.current) e.reject(t);
|
|
58
|
+
for (let { reject: e } of m.current) e(t);
|
|
58
59
|
m.current = [];
|
|
59
|
-
for (let e of h.current
|
|
60
|
-
h.current
|
|
60
|
+
for (let e of h.current) e.reject(t);
|
|
61
|
+
h.current = [];
|
|
62
|
+
for (let e of g.current.values()) e.reject(t);
|
|
63
|
+
g.current.clear();
|
|
61
64
|
}
|
|
62
|
-
return
|
|
63
|
-
|
|
64
|
-
},
|
|
65
|
-
|
|
65
|
+
return i.onclose = () => {
|
|
66
|
+
a(), f.current = null, p.current = null, _("Bash WebSocket closed");
|
|
67
|
+
}, i.onerror = () => {
|
|
68
|
+
f.current = null, p.current = null, _("Bash WebSocket error");
|
|
66
69
|
}, () => {
|
|
67
|
-
|
|
70
|
+
a(), i.onclose = null, i.onerror = null, i.close(), f.current = null, p.current = null, _("Bash WebSocket unmounted");
|
|
68
71
|
};
|
|
69
72
|
}, [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
]),
|
|
74
|
-
let a =
|
|
73
|
+
d,
|
|
74
|
+
l,
|
|
75
|
+
u
|
|
76
|
+
]), r((e, t, n) => new Promise((r, i) => {
|
|
77
|
+
let a = f.current;
|
|
75
78
|
if (!a || a.readyState === WebSocket.CLOSED || a.readyState === WebSocket.CLOSING) {
|
|
76
79
|
i(/* @__PURE__ */ Error("Bash WebSocket not available"));
|
|
77
80
|
return;
|
|
78
81
|
}
|
|
79
|
-
a.readyState !== WebSocket.OPEN ||
|
|
82
|
+
a.readyState !== WebSocket.OPEN || p.current !== a ? m.current.push({
|
|
80
83
|
command: e,
|
|
81
84
|
cwd: t,
|
|
82
85
|
timeout: n,
|
|
83
86
|
resolve: r,
|
|
84
87
|
reject: i
|
|
85
|
-
}) : (
|
|
88
|
+
}) : (h.current.push({
|
|
86
89
|
resolve: r,
|
|
87
90
|
reject: i
|
|
88
91
|
}), a.send(JSON.stringify({
|
|
@@ -93,6 +96,6 @@ function c(c, l, u) {
|
|
|
93
96
|
}), []);
|
|
94
97
|
}
|
|
95
98
|
//#endregion
|
|
96
|
-
export {
|
|
99
|
+
export { l as useBashCommandRunner };
|
|
97
100
|
|
|
98
101
|
//# sourceMappingURL=use-bash-command-runner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-bash-command-runner.js","names":[],"sources":["../../src/hooks/use-bash-command-runner.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport type {\n BashCommand,\n BashError,\n BashEvent,\n BashOutput,\n} from \"@openhands/typescript-client\";\nimport type { CommandResult } from \"#/api/runtime-service/agent-server-runtime-service\";\nimport { sendWebSocketAuth } from \"#/utils/websocket-auth\";\nimport { buildBashWebSocketUrl } from \"#/utils/websocket-url\";\n\ninterface WaitingCommand {\n command: string;\n cwd: string;\n timeout: number;\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface PendingCommand {\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface ActiveCommand extends PendingCommand {\n stdout: string[];\n stderr: string[];\n}\n\nexport type BashCommandRunner = (\n command: string,\n cwd: string,\n timeout: number,\n) => Promise<CommandResult>;\n\nfunction isBashCommand(event: BashEvent): event is BashCommand {\n return event.kind === \"BashCommand\";\n}\n\nfunction isBashOutput(event: BashEvent): event is BashOutput {\n return event.kind === \"BashOutput\";\n}\n\nfunction isBashError(event: BashEvent): event is BashError {\n return event.kind === \"BashError\";\n}\n\n/**\n * Maintains a persistent WebSocket connection to the agent-server's\n * `/sockets/bash-events` endpoint and exposes a `runCommand` function that\n * executes a bash command and returns a Promise that resolves when the\n * final `BashOutput` (non-null `exit_code`) arrives.\n *\n * Commands are correlated using a FIFO queue: each `BashCommand` echo\n * received from the server is paired with the oldest outstanding request in\n * the queue, and subsequent `BashOutput` events are matched by `command_id`.\n *\n * Commands are buffered until the socket's open handler sends authentication.\n */\nexport function useBashCommandRunner(\n conversationUrl: string | null | undefined,\n sessionApiKey: string | null | undefined,\n enabled: boolean,\n): BashCommandRunner {\n const wsRef = useRef<WebSocket | null>(null);\n const readyWsRef = useRef<WebSocket | null>(null);\n const waitingQueueRef = useRef<WaitingCommand[]>([]);\n // Commands whose request was sent; waiting for the BashCommand echo to get command_id\n const pendingQueueRef = useRef<PendingCommand[]>([]);\n // Commands whose command_id is known; waiting for BashOutput with non-null exit_code\n const activeCommandsRef = useRef<Map<string, ActiveCommand>>(new Map());\n\n useEffect(() => {\n if (!enabled) return;\n\n const wsUrl = buildBashWebSocketUrl(conversationUrl);\n const ws = new WebSocket(wsUrl);\n wsRef.current = ws;\n readyWsRef.current = null;\n\n ws.onopen = () => {\n sendWebSocketAuth(ws, sessionApiKey);\n readyWsRef.current = ws;\n for (const {\n command,\n cwd,\n timeout,\n resolve,\n reject,\n } of waitingQueueRef.current) {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n waitingQueueRef.current = [];\n };\n\n ws.onmessage = (event: MessageEvent) => {\n let data: BashEvent;\n try {\n data = JSON.parse(event.data as string) as BashEvent;\n } catch {\n return; // ignore malformed frames\n }\n\n if (isBashCommand(data)) {\n // Associate the next pending request with the server-assigned command_id\n const pending = pendingQueueRef.current.shift();\n if (pending) {\n activeCommandsRef.current.set(data.id, {\n ...pending,\n stdout: [],\n stderr: [],\n });\n }\n } else if (isBashOutput(data) && data.command_id) {\n const active = activeCommandsRef.current.get(data.command_id);\n if (active) {\n if (data.stdout) active.stdout.push(data.stdout);\n if (data.stderr) active.stderr.push(data.stderr);\n if (data.exit_code != null) {\n activeCommandsRef.current.delete(data.command_id);\n active.resolve({\n exit_code: data.exit_code,\n stdout: active.stdout.join(\"\"),\n stderr: active.stderr.join(\"\"),\n });\n }\n }\n } else if (isBashError(data)) {\n rejectAll(`Bash error: ${data.code}: ${data.detail}`);\n }\n };\n\n function rejectAll(reason: string): void {\n const err = new Error(reason);\n for (const { reject: rej } of waitingQueueRef.current) rej(err);\n waitingQueueRef.current = [];\n for (const p of pendingQueueRef.current) p.reject(err);\n pendingQueueRef.current = [];\n for (const a of activeCommandsRef.current.values()) a.reject(err);\n activeCommandsRef.current.clear();\n }\n\n ws.onclose = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket closed\");\n };\n\n ws.onerror = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket error\");\n };\n\n return () => {\n // Prevent the close/error handlers from double-rejecting after unmount\n ws.onclose = null;\n ws.onerror = null;\n ws.close();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket unmounted\");\n };\n }, [enabled, conversationUrl, sessionApiKey]);\n\n const runCommand: BashCommandRunner = useCallback(\n (command: string, cwd: string, timeout: number) =>\n new Promise<CommandResult>((resolve, reject) => {\n const ws = wsRef.current;\n if (\n !ws ||\n ws.readyState === WebSocket.CLOSED ||\n ws.readyState === WebSocket.CLOSING\n ) {\n reject(new Error(\"Bash WebSocket not available\"));\n return;\n }\n if (ws.readyState !== WebSocket.OPEN || readyWsRef.current !== ws) {\n waitingQueueRef.current.push({\n command,\n cwd,\n timeout,\n resolve,\n reject,\n });\n } else {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n }),\n [],\n );\n\n return runCommand;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-bash-command-runner.js","names":[],"sources":["../../src/hooks/use-bash-command-runner.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from \"react\";\nimport type {\n BashCommand,\n BashError,\n BashEvent,\n BashOutput,\n} from \"@openhands/typescript-client\";\nimport type { CommandResult } from \"#/api/runtime-service/agent-server-runtime-service\";\nimport { sendWebSocketAuth } from \"#/utils/websocket-auth\";\nimport { startHandshakeWatchdog } from \"#/utils/websocket-handshake\";\nimport { buildBashWebSocketUrl } from \"#/utils/websocket-url\";\n\ninterface WaitingCommand {\n command: string;\n cwd: string;\n timeout: number;\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface PendingCommand {\n resolve: (result: CommandResult) => void;\n reject: (error: Error) => void;\n}\n\ninterface ActiveCommand extends PendingCommand {\n stdout: string[];\n stderr: string[];\n}\n\nexport type BashCommandRunner = (\n command: string,\n cwd: string,\n timeout: number,\n) => Promise<CommandResult>;\n\nfunction isBashCommand(event: BashEvent): event is BashCommand {\n return event.kind === \"BashCommand\";\n}\n\nfunction isBashOutput(event: BashEvent): event is BashOutput {\n return event.kind === \"BashOutput\";\n}\n\nfunction isBashError(event: BashEvent): event is BashError {\n return event.kind === \"BashError\";\n}\n\n/**\n * Maintains a persistent WebSocket connection to the agent-server's\n * `/sockets/bash-events` endpoint and exposes a `runCommand` function that\n * executes a bash command and returns a Promise that resolves when the\n * final `BashOutput` (non-null `exit_code`) arrives.\n *\n * Commands are correlated using a FIFO queue: each `BashCommand` echo\n * received from the server is paired with the oldest outstanding request in\n * the queue, and subsequent `BashOutput` events are matched by `command_id`.\n *\n * Commands are buffered until the socket's open handler sends authentication.\n */\nexport function useBashCommandRunner(\n conversationUrl: string | null | undefined,\n sessionApiKey: string | null | undefined,\n enabled: boolean,\n): BashCommandRunner {\n const wsRef = useRef<WebSocket | null>(null);\n const readyWsRef = useRef<WebSocket | null>(null);\n const waitingQueueRef = useRef<WaitingCommand[]>([]);\n // Commands whose request was sent; waiting for the BashCommand echo to get command_id\n const pendingQueueRef = useRef<PendingCommand[]>([]);\n // Commands whose command_id is known; waiting for BashOutput with non-null exit_code\n const activeCommandsRef = useRef<Map<string, ActiveCommand>>(new Map());\n\n useEffect(() => {\n if (!enabled) return;\n\n const wsUrl = buildBashWebSocketUrl(conversationUrl);\n const ws = new WebSocket(wsUrl);\n wsRef.current = ws;\n readyWsRef.current = null;\n\n // Abort a handshake stuck in CONNECTING — a hung bash-events handshake\n // would also block the conversation's events socket (the one the chat\n // needs) until it settles.\n const cancelHandshakeWatchdog = startHandshakeWatchdog(ws);\n\n ws.onopen = () => {\n cancelHandshakeWatchdog();\n sendWebSocketAuth(ws, sessionApiKey);\n readyWsRef.current = ws;\n for (const {\n command,\n cwd,\n timeout,\n resolve,\n reject,\n } of waitingQueueRef.current) {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n waitingQueueRef.current = [];\n };\n\n ws.onmessage = (event: MessageEvent) => {\n let data: BashEvent;\n try {\n data = JSON.parse(event.data as string) as BashEvent;\n } catch {\n return; // ignore malformed frames\n }\n\n if (isBashCommand(data)) {\n // Associate the next pending request with the server-assigned command_id\n const pending = pendingQueueRef.current.shift();\n if (pending) {\n activeCommandsRef.current.set(data.id, {\n ...pending,\n stdout: [],\n stderr: [],\n });\n }\n } else if (isBashOutput(data) && data.command_id) {\n const active = activeCommandsRef.current.get(data.command_id);\n if (active) {\n if (data.stdout) active.stdout.push(data.stdout);\n if (data.stderr) active.stderr.push(data.stderr);\n if (data.exit_code != null) {\n activeCommandsRef.current.delete(data.command_id);\n active.resolve({\n exit_code: data.exit_code,\n stdout: active.stdout.join(\"\"),\n stderr: active.stderr.join(\"\"),\n });\n }\n }\n } else if (isBashError(data)) {\n rejectAll(`Bash error: ${data.code}: ${data.detail}`);\n }\n };\n\n function rejectAll(reason: string): void {\n const err = new Error(reason);\n for (const { reject: rej } of waitingQueueRef.current) rej(err);\n waitingQueueRef.current = [];\n for (const p of pendingQueueRef.current) p.reject(err);\n pendingQueueRef.current = [];\n for (const a of activeCommandsRef.current.values()) a.reject(err);\n activeCommandsRef.current.clear();\n }\n\n ws.onclose = () => {\n cancelHandshakeWatchdog();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket closed\");\n };\n\n ws.onerror = () => {\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket error\");\n };\n\n return () => {\n // The close handler is nulled below, so cancel the watchdog here.\n cancelHandshakeWatchdog();\n // Prevent the close/error handlers from double-rejecting after unmount\n ws.onclose = null;\n ws.onerror = null;\n ws.close();\n wsRef.current = null;\n readyWsRef.current = null;\n rejectAll(\"Bash WebSocket unmounted\");\n };\n }, [enabled, conversationUrl, sessionApiKey]);\n\n const runCommand: BashCommandRunner = useCallback(\n (command: string, cwd: string, timeout: number) =>\n new Promise<CommandResult>((resolve, reject) => {\n const ws = wsRef.current;\n if (\n !ws ||\n ws.readyState === WebSocket.CLOSED ||\n ws.readyState === WebSocket.CLOSING\n ) {\n reject(new Error(\"Bash WebSocket not available\"));\n return;\n }\n if (ws.readyState !== WebSocket.OPEN || readyWsRef.current !== ws) {\n waitingQueueRef.current.push({\n command,\n cwd,\n timeout,\n resolve,\n reject,\n });\n } else {\n pendingQueueRef.current.push({ resolve, reject });\n ws.send(JSON.stringify({ command, cwd, timeout }));\n }\n }),\n [],\n );\n\n return runCommand;\n}\n"],"mappings":";;;;;AAoCA,SAAS,EAAc,GAAwC;CAC7D,OAAO,EAAM,SAAS;AACxB;AAEA,SAAS,EAAa,GAAuC;CAC3D,OAAO,EAAM,SAAS;AACxB;AAEA,SAAS,EAAY,GAAsC;CACzD,OAAO,EAAM,SAAS;AACxB;AAcA,SAAgB,EACd,GACA,GACA,GACmB;CACnB,IAAM,IAAQ,EAAyB,IAAI,GACrC,IAAa,EAAyB,IAAI,GAC1C,IAAkB,EAAyB,CAAC,CAAC,GAE7C,IAAkB,EAAyB,CAAC,CAAC,GAE7C,IAAoB,kBAAmC,IAAI,IAAI,CAAC;CAqItE,OAnIA,QAAgB;EACd,IAAI,CAAC,GAAS;EAEd,IAAM,IAAQ,EAAsB,CAAe,GAC7C,IAAK,IAAI,UAAU,CAAK;EAE9B,AADA,EAAM,UAAU,GAChB,EAAW,UAAU;EAKrB,IAAM,IAA0B,EAAuB,CAAE;EAmBzD,AAjBA,EAAG,eAAe;GAGhB,AAFA,EAAwB,GACxB,EAAkB,GAAI,CAAa,GACnC,EAAW,UAAU;GACrB,KAAK,IAAM,EACT,YACA,QACA,YACA,YACA,eACG,EAAgB,SAEnB,AADA,EAAgB,QAAQ,KAAK;IAAE;IAAS;GAAO,CAAC,GAChD,EAAG,KAAK,KAAK,UAAU;IAAE;IAAS;IAAK;GAAQ,CAAC,CAAC;GAEnD,EAAgB,UAAU,CAAC;EAC7B,GAEA,EAAG,aAAa,MAAwB;GACtC,IAAI;GACJ,IAAI;IACF,IAAO,KAAK,MAAM,EAAM,IAAc;GACxC,QAAQ;IACN;GACF;GAEA,IAAI,EAAc,CAAI,GAAG;IAEvB,IAAM,IAAU,EAAgB,QAAQ,MAAM;IAC9C,AAAI,KACF,EAAkB,QAAQ,IAAI,EAAK,IAAI;KACrC,GAAG;KACH,QAAQ,CAAC;KACT,QAAQ,CAAC;IACX,CAAC;GAEL,OAAO,IAAI,EAAa,CAAI,KAAK,EAAK,YAAY;IAChD,IAAM,IAAS,EAAkB,QAAQ,IAAI,EAAK,UAAU;IAC5D,AAAI,MACE,EAAK,UAAQ,EAAO,OAAO,KAAK,EAAK,MAAM,GAC3C,EAAK,UAAQ,EAAO,OAAO,KAAK,EAAK,MAAM,GAC3C,EAAK,aAAa,SACpB,EAAkB,QAAQ,OAAO,EAAK,UAAU,GAChD,EAAO,QAAQ;KACb,WAAW,EAAK;KAChB,QAAQ,EAAO,OAAO,KAAK,EAAE;KAC7B,QAAQ,EAAO,OAAO,KAAK,EAAE;IAC/B,CAAC;GAGP,OAAO,AAAI,EAAY,CAAI,KACzB,EAAU,eAAe,EAAK,KAAK,IAAI,EAAK,QAAQ;EAExD;EAEA,SAAS,EAAU,GAAsB;GACvC,IAAM,IAAU,MAAM,CAAM;GAC5B,KAAK,IAAM,EAAE,QAAQ,OAAS,EAAgB,SAAS,EAAI,CAAG;GAC9D,EAAgB,UAAU,CAAC;GAC3B,KAAK,IAAM,KAAK,EAAgB,SAAS,EAAE,OAAO,CAAG;GACrD,EAAgB,UAAU,CAAC;GAC3B,KAAK,IAAM,KAAK,EAAkB,QAAQ,OAAO,GAAG,EAAE,OAAO,CAAG;GAChE,EAAkB,QAAQ,MAAM;EAClC;EAeA,OAbA,EAAG,gBAAgB;GAIjB,AAHA,EAAwB,GACxB,EAAM,UAAU,MAChB,EAAW,UAAU,MACrB,EAAU,uBAAuB;EACnC,GAEA,EAAG,gBAAgB;GAGjB,AAFA,EAAM,UAAU,MAChB,EAAW,UAAU,MACrB,EAAU,sBAAsB;EAClC,SAEa;GASX,AAPA,EAAwB,GAExB,EAAG,UAAU,MACb,EAAG,UAAU,MACb,EAAG,MAAM,GACT,EAAM,UAAU,MAChB,EAAW,UAAU,MACrB,EAAU,0BAA0B;EACtC;CACF,GAAG;EAAC;EAAS;EAAiB;CAAa,CAAC,GAEN,GACnC,GAAiB,GAAa,MAC7B,IAAI,SAAwB,GAAS,MAAW;EAC9C,IAAM,IAAK,EAAM;EACjB,IACE,CAAC,KACD,EAAG,eAAe,UAAU,UAC5B,EAAG,eAAe,UAAU,SAC5B;GACA,EAAO,gBAAI,MAAM,8BAA8B,CAAC;GAChD;EACF;EACA,AAAI,EAAG,eAAe,UAAU,QAAQ,EAAW,YAAY,IAC7D,EAAgB,QAAQ,KAAK;GAC3B;GACA;GACA;GACA;GACA;EACF,CAAC,KAED,EAAgB,QAAQ,KAAK;GAAE;GAAS;EAAO,CAAC,GAChD,EAAG,KAAK,KAAK,UAAU;GAAE;GAAS;GAAK;EAAQ,CAAC,CAAC;CAErD,CAAC,GACH,CAAC,CAGI;AACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");const e=require("../components/features/conversation/conversation-overview-panel.constants.cjs");let t=require("react");var n=typeof window<`u`?t.useLayoutEffect:t.useEffect;function r(r,i){let[a,o]=(0,t.useState)(!1);return n(()=>{if(!i){o(!1);return}let t=r.current;if(!t)return;let n=()=>{o(e.hasEnoughOverviewLayoutSpace(t.clientWidth))};if(n(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(n);return a.observe(t),()=>a.disconnect()},[r,i]),a}exports.useConversationOverviewColumnSpace=r;
|
|
2
|
+
//# sourceMappingURL=use-conversation-overview-column-space.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-conversation-overview-column-space.cjs","names":[],"sources":["../../src/hooks/use-conversation-overview-column-space.ts"],"sourcesContent":["import { useEffect, useLayoutEffect, useState, type RefObject } from \"react\";\nimport { hasEnoughOverviewLayoutSpace } from \"#/components/features/conversation/conversation-overview-panel.constants\";\n\nconst useIsomorphicLayoutEffect =\n typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport function useConversationOverviewColumnSpace(\n containerRef: RefObject<HTMLElement | null>,\n enabled: boolean,\n): boolean {\n const [hasSpace, setHasSpace] = useState(false);\n\n useIsomorphicLayoutEffect(() => {\n if (!enabled) {\n setHasSpace(false);\n return undefined;\n }\n\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n\n const update = () => {\n setHasSpace(hasEnoughOverviewLayoutSpace(container.clientWidth));\n };\n\n update();\n\n if (typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n const observer = new ResizeObserver(update);\n observer.observe(container);\n return () => observer.disconnect();\n }, [containerRef, enabled]);\n\n return hasSpace;\n}\n"],"mappings":"qKAGA,IAAM,EACJ,OAAO,OAAW,IAAc,EAAA,gBAAkB,EAAA,UAEpD,SAAgB,EACd,EACA,EACS,CACT,GAAM,CAAC,EAAU,IAAA,EAAA,EAAA,UAAwB,EAAK,EA4B9C,OA1BA,MAAgC,CAC9B,GAAI,CAAC,EAAS,CACZ,EAAY,EAAK,EACjB,MACF,CAEA,IAAM,EAAY,EAAa,QAC/B,GAAI,CAAC,EACH,OAGF,IAAM,MAAe,CACnB,EAAY,EAAA,6BAA6B,EAAU,WAAW,CAAC,CACjE,EAIA,GAFA,EAAO,EAEH,OAAO,eAAmB,IAC5B,OAGF,IAAM,EAAW,IAAI,eAAe,CAAM,EAE1C,OADA,EAAS,QAAQ,CAAS,MACb,EAAS,WAAW,CACnC,EAAG,CAAC,EAAc,CAAO,CAAC,EAEnB,CACT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { hasEnoughOverviewLayoutSpace as e } from "../components/features/conversation/conversation-overview-panel.constants.js";
|
|
2
|
+
import { useEffect as t, useLayoutEffect as n, useState as r } from "react";
|
|
3
|
+
//#region src/hooks/use-conversation-overview-column-space.ts
|
|
4
|
+
var i = typeof window < "u" ? n : t;
|
|
5
|
+
function a(t, n) {
|
|
6
|
+
let [a, o] = r(!1);
|
|
7
|
+
return i(() => {
|
|
8
|
+
if (!n) {
|
|
9
|
+
o(!1);
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
let r = t.current;
|
|
13
|
+
if (!r) return;
|
|
14
|
+
let i = () => {
|
|
15
|
+
o(e(r.clientWidth));
|
|
16
|
+
};
|
|
17
|
+
if (i(), typeof ResizeObserver > "u") return;
|
|
18
|
+
let a = new ResizeObserver(i);
|
|
19
|
+
return a.observe(r), () => a.disconnect();
|
|
20
|
+
}, [t, n]), a;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { a as useConversationOverviewColumnSpace };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=use-conversation-overview-column-space.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-conversation-overview-column-space.js","names":[],"sources":["../../src/hooks/use-conversation-overview-column-space.ts"],"sourcesContent":["import { useEffect, useLayoutEffect, useState, type RefObject } from \"react\";\nimport { hasEnoughOverviewLayoutSpace } from \"#/components/features/conversation/conversation-overview-panel.constants\";\n\nconst useIsomorphicLayoutEffect =\n typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\nexport function useConversationOverviewColumnSpace(\n containerRef: RefObject<HTMLElement | null>,\n enabled: boolean,\n): boolean {\n const [hasSpace, setHasSpace] = useState(false);\n\n useIsomorphicLayoutEffect(() => {\n if (!enabled) {\n setHasSpace(false);\n return undefined;\n }\n\n const container = containerRef.current;\n if (!container) {\n return undefined;\n }\n\n const update = () => {\n setHasSpace(hasEnoughOverviewLayoutSpace(container.clientWidth));\n };\n\n update();\n\n if (typeof ResizeObserver === \"undefined\") {\n return undefined;\n }\n\n const observer = new ResizeObserver(update);\n observer.observe(container);\n return () => observer.disconnect();\n }, [containerRef, enabled]);\n\n return hasSpace;\n}\n"],"mappings":";;;AAGA,IAAM,IACJ,OAAO,SAAW,MAAc,IAAkB;AAEpD,SAAgB,EACd,GACA,GACS;CACT,IAAM,CAAC,GAAU,KAAe,EAAS,EAAK;CA4B9C,OA1BA,QAAgC;EAC9B,IAAI,CAAC,GAAS;GACZ,EAAY,EAAK;GACjB;EACF;EAEA,IAAM,IAAY,EAAa;EAC/B,IAAI,CAAC,GACH;EAGF,IAAM,UAAe;GACnB,EAAY,EAA6B,EAAU,WAAW,CAAC;EACjE;EAIA,IAFA,EAAO,GAEH,OAAO,iBAAmB,KAC5B;EAGF,IAAM,IAAW,IAAI,eAAe,CAAM;EAE1C,OADA,EAAS,QAAQ,CAAS,SACb,EAAS,WAAW;CACnC,GAAG,CAAC,GAAc,CAAO,CAAC,GAEnB;AACT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");const e=require("./use-conversation-id.cjs"),t=require("../node_modules/@tanstack/react-query/build/modern/useQueries.cjs"),n=require("./query/use-active-conversation.cjs"),r=require("./use-runtime-is-ready.cjs"),i=require("../api/git-service/agent-server-git-service.api.cjs"),a=require("../utils/get-git-path.cjs"),o=require("./query/use-unified-get-git-changes.cjs"),s=require("../utils/git-diff-stats.cjs");let c=require("react");function l(){let{conversationId:l}=e.useConversationId(),{data:u}=n.useActiveConversation(),d=r.useRuntimeIsReady(),{data:f,isLoading:p,isSuccess:m,isError:h}=o.useUnifiedGetGitChanges(),g=u?.conversation_url,_=u?.session_api_key,v=(0,c.useMemo)(()=>a.getGitPath(u?.selected_repository,u?.workspace?.working_dir?.trim()),[u?.selected_repository,u?.workspace?.working_dir]),y=t.useQueries({queries:(0,c.useMemo)(()=>(f??[]).filter(e=>e.status!==`D`),[f]).map(e=>({queryKey:[`conversation_overview_file_diff`,l,g,_,v,e.path],queryFn:async()=>i.default.getGitChangeDiff(l,g,_,`${v}/${e.path}`),enabled:d&&!!l&&m&&!!e.path,staleTime:1e3*60*5,meta:{disableToast:!0}}))}),b=y.some(e=>e.isLoading),x=s.sumGitDiffLineStats(y.flatMap(e=>e.data?[s.countGitChangeDiffStats(e.data)]:[]));return{additions:x.additions,deletions:x.deletions,changeCount:f?.length??0,isLoading:p||b,isError:h}}exports.useConversationOverviewGitDiffStats=l;
|
|
2
|
+
//# sourceMappingURL=use-conversation-overview-git-diff-stats.cjs.map
|