@openhands/agent-canvas 1.16.0 → 1.18.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-CX3Lh9gj.js → acp-providers-DcY_mKYa.js} +1 -1
- package/build/assets/active-backend-context-BnH4-L8h.js +2 -0
- package/build/assets/{agent-context-settings-DSZlXrLj.js → agent-context-settings-D3peZkjX.js} +1 -1
- package/build/assets/agent-profiles-service.api-DkeZaqIl.js +1 -0
- package/build/assets/agent-profiles-settings-7yMWYjGF.js +1 -0
- package/build/assets/agent-server-client-options-EHB23gyx.js +1 -0
- package/build/assets/agent-server-config-C_x8Otd9.js +1 -0
- package/build/assets/agent-server-conversation-service.api-jiCopc2E.js +88 -0
- package/build/assets/agent-settings-BF8hM6wb.js +2 -0
- package/build/assets/agent-settings-YPutBAeR.js +1 -0
- package/build/assets/alert-banner-eYyqvHL3.js +1 -0
- package/build/assets/{api-error-message-B-XdSk3b.js → api-error-message-BXo0lCI5.js} +1 -1
- package/build/assets/api-key-entry-screen-CCBvBD8u.js +1 -0
- package/build/assets/app-settings-BtYDs-Be.js +1 -0
- package/build/assets/automation-detail-BxXhb_m2.js +3 -0
- package/build/assets/{automation-export-D3a3of4G.js → automation-export-BJsfi7n2.js} +1 -1
- package/build/assets/automation-git-sync-B7o_Nbl-.js +1 -0
- package/build/assets/automation-setup-route-qaJ6lLCf.js +3 -0
- package/build/assets/{automation-templates-BRppNh99.js → automation-templates-Bb98r-kx.js} +1 -1
- package/build/assets/automations-list-DEPVNud3.js +1 -0
- package/build/assets/{back-nav-button-Cjl_hoxq.js → back-nav-button-B2yBiVMB.js} +1 -1
- package/build/assets/backend-form-modal-DxisQV_6.js +1 -0
- package/build/assets/backend-synced-settings-badge-DLEp6cq7.js +1 -0
- package/build/assets/badge-ehL-kgeO.js +1 -0
- package/build/assets/{base-modal-D_L0oEbG.js → base-modal-C1a0TsSx.js} +1 -1
- package/build/assets/bot-ByolqPEr.js +1 -0
- package/build/assets/{brand-button-BAfk4wGP.js → brand-button-CUMfjb99.js} +1 -1
- package/build/assets/browser-SE24Tk8g.js +46 -0
- package/build/assets/browser-tab-HjJxHA0V.js +1 -0
- package/build/assets/canvas-extension-page-BsUGBb1T.js +1 -0
- package/build/assets/canvas-extensions-C9Tm6s_E.js +1 -0
- package/build/assets/{canvas-extensions-runtime-2_x5Ezmi.js → canvas-extensions-runtime-B8kxM4rO.js} +1 -1
- package/build/assets/{chat-send-button-MUQqCZCS.js → chat-send-button-CGvc2wpE.js} +1 -1
- package/build/assets/check-Bo8s5Ylg.js +1 -0
- package/build/assets/chevron-down-Cr6Fn_wS.js +1 -0
- package/build/assets/chevron-right-CfdfRn-8.js +1 -0
- package/build/assets/circle-check-5pH3qCji.js +1 -0
- package/build/assets/circle-plus-check-toggle-BDX_ctNs.js +1 -0
- package/build/assets/{cloud-funnel-analytics-CztBCCPp.js → cloud-funnel-analytics-D5uJ_4JE.js} +1 -1
- package/build/assets/{cog-D-MPQW6G.js → cog-CAEugqtV.js} +1 -1
- package/build/assets/command-menu-CQxs4mtX.js +1 -0
- package/build/assets/commits-tab-D0xgjipP.js +1 -0
- package/build/assets/{condenser-settings-DmEOje-7.js → condenser-settings-D63NJRBT.js} +1 -1
- package/build/assets/confirmation-modal-78sd9Vny.js +1 -0
- package/build/assets/{context-menu-list-item-I86vKcmM.js → context-menu-list-item-Cm7-7Y-7.js} +1 -1
- package/build/assets/conversation-B_nweu5p.js +93 -0
- package/build/assets/conversation-edjzrv5w.js +1 -0
- package/build/assets/conversation-panel-edjzrv5w.js +1 -0
- package/build/assets/conversation-state-store-9D_3P7q4.js +1 -0
- package/build/assets/conversation-store-DC-JlJuq.js +6 -0
- package/build/assets/{conversation-tab-empty-state-FIbh_lc8.js → conversation-tab-empty-state-B3dpJXX0.js} +1 -1
- package/build/assets/copy-to-clipboard-button-B1ljgNxO.js +1 -0
- package/build/assets/device-verify-D5QRIS_x.js +1 -0
- package/build/assets/{dropdown-classes-Bc1djN0-.js → dropdown-classes-BGvOvW2_.js} +1 -1
- package/build/assets/edit-automation-modal-D_JWSmxT.js +1 -0
- package/build/assets/empty-state-FK_s1B60.js +1 -0
- package/build/assets/{entry.client-CqyPPjOq.js → entry.client-BMafTpjO.js} +2 -2
- package/build/assets/enum-filter-dropdown-UNaom12H.js +1 -0
- package/build/assets/environment-switch-overlay-COibRUA-.js +1 -0
- package/build/assets/error-state-Cf8LRuuY.js +1 -0
- package/build/assets/extensions-hub-C_6ahIua.js +1 -0
- package/build/assets/extensions-navigation-C5GfpzFe.js +1 -0
- package/build/assets/external-link-Bd7Tga-1.js +1 -0
- package/build/assets/files-tab-D5PPIWI1.js +1 -0
- package/build/assets/{form-control-classes-Bkh5FGrD.js → form-control-classes-Dbq-7YP_.js} +1 -1
- package/build/assets/format-model-name-Dfh9Udrx.js +1 -0
- package/build/assets/get-git-path-jU2zjqIB.js +1 -0
- package/build/assets/git-repo-dropdown-BoDDWXfX.js +1 -0
- package/build/assets/git-repo-dropdown-uxlFw2gn.js +1 -0
- package/build/assets/highlighted-source-view-C7pAXrT0.js +1 -0
- package/build/assets/home-BM5_Wz_R.js +1 -0
- package/build/assets/home-Ivfm7KC4.js +1 -0
- package/build/assets/home-automation-run-tooltip-B1N2uO9p.js +1 -0
- package/build/assets/home-store-DCbei3DX.js +1 -0
- package/build/assets/hooks-service-Dnmhqc0Z.js +1 -0
- package/build/assets/index-home-td9BN2T3.js +1 -0
- package/build/assets/info-BcajzHn1.js +1 -0
- package/build/assets/install-server-modal-B81I-5OE.js +1 -0
- package/build/assets/kebab-menu-item-content-SCJBwZnp.js +1 -0
- package/build/assets/{key-BmVyxs-2.js → key-O84CMFHb.js} +1 -1
- package/build/assets/launch-ZLxI4opd.js +1 -0
- package/build/assets/list-filter-B8PQk3RA.js +1 -0
- package/build/assets/{list-todo-apgLVjMw.js → list-todo-Caa8E1X_.js} +1 -1
- package/build/assets/llm-not-configured-banner-Dh_ajcM8.js +27 -0
- package/build/assets/llm-settings-CODhjQzy.js +1 -0
- package/build/assets/llm-settings-CZaXYgtw.js +1 -0
- package/build/assets/llm-subscription-service-CgIDc38n.js +1 -0
- package/build/assets/loader-circle-BxJgk73D.js +1 -0
- package/build/assets/{loading-spinner-BY9N3pOe.js → loading-spinner-BeLV0IXf.js} +1 -1
- package/build/assets/manage-backends-modal-cMXqCb-B.js +1 -0
- package/build/assets/manifest-bfeccb98.js +1 -0
- package/build/assets/manifest-subpage-layout-CVZgVKoY.js +1 -0
- package/build/assets/{map-provider-Cu3Zgumb.js → map-provider-iRs80q_6.js} +1 -1
- package/build/assets/markdown-renderer-DyFl9-mL.js +8 -0
- package/build/assets/mcp-CraxoXQv.js +1 -0
- package/build/assets/{mcp-marketplace-utils-AIBzzHTO.js → mcp-marketplace-utils-C7PYr293.js} +1 -1
- package/build/assets/mcp-page-CteH_K0N.js +9 -0
- package/build/assets/messages-Bk1xhbU2.js +41 -0
- package/build/assets/{modal-body-BxZjsju9.js → modal-body-C24WsdFb.js} +1 -1
- package/build/assets/{modal-classes-C8eycCwG.js → modal-classes-B0b9eiL8.js} +1 -1
- package/build/assets/modal-close-button-DfqfB2Nj.js +1 -0
- package/build/assets/{mouse-pointer-click-Co2uyaPA.js → mouse-pointer-click-BXlRN92t.js} +1 -1
- package/build/assets/onboarding-DXFBRqEy.js +1 -0
- package/build/assets/onboarding-modal-BT3Gx_sZ.js +1 -0
- package/build/assets/organization-service.api-B5CvmnYQ.js +1 -0
- package/build/assets/pencil-q-ihqDYv.js +1 -0
- package/build/assets/pin-BdroVQdN.js +1 -0
- package/build/assets/planner-tab-CstoOlAB.js +1 -0
- package/build/assets/plug-7ACOEbMs.js +1 -0
- package/build/assets/plugins-management-service-5rqVPEGN.js +1 -0
- package/build/assets/plus-C2e21TFC.js +1 -0
- package/build/assets/profiles-service.api-D1XKMgr0.js +1 -0
- package/build/assets/providers-XmZ9HM4Q.js +1 -0
- package/build/assets/proxy-XP6U1Dhv.js +1 -0
- package/build/assets/{puzzle-JM_QaRm0.js → puzzle-LJYnuxKe.js} +1 -1
- package/build/assets/react-BX7IV650.js +1 -0
- package/build/assets/recommended-automations-launcher-DEHRKIAg.js +1 -0
- package/build/assets/refresh-cw-BtdC3T8P.js +1 -0
- package/build/assets/root-CM6IZHlg.css +1 -0
- package/build/assets/root-DdFkodKW.js +2 -0
- package/build/assets/root-layout-DUquNZTU.js +2 -0
- package/build/assets/schema-field-Y3F8JvXd.js +1 -0
- package/build/assets/scroll-fade-state-Dt_fx2kf.js +1 -0
- package/build/assets/sdk-section-page-CNZTLwH9.js +1 -0
- package/build/assets/secret-form-9-BoGA40.js +1 -0
- package/build/assets/secrets-service-BOIsfD9j.js +1 -0
- package/build/assets/secrets-settings-CBJgFr42.js +1 -0
- package/build/assets/settings-D4hdToD4.js +1 -0
- package/build/assets/settings-dropdown-input-DBvsZ7-Q.js +1 -0
- package/build/assets/settings-index-DeQphyBK.js +1 -0
- package/build/assets/settings-input-dVuzapBA.js +1 -0
- package/build/assets/{settings-list-classes-BzeSZbF2.js → settings-list-classes-DhAPuXm6.js} +1 -1
- package/build/assets/settings-modal-tHiJ8iYV.js +1 -0
- package/build/assets/settings-nav-GAQjW1a-.js +16 -0
- package/build/assets/settings-service.api-C1vZH9Vh.js +1 -0
- package/build/assets/settings-switch-DDd1cQ8t.js +1 -0
- package/build/assets/{settings-utils-UYpEdPuD.js → settings-utils-BTaaRhLZ.js} +1 -1
- package/build/assets/shared-conversation-Cyg7m7ns.js +1 -0
- package/build/assets/shield-check-C3Rl0NF8.js +1 -0
- package/build/assets/{sidebar-layout-D6fS8-Gl.js → sidebar-layout-DH0E-5KW.js} +1 -1
- package/build/assets/sidebar-mobile-menu-toggle-CQ4iky__.js +1 -0
- package/build/assets/{sidebar-nav-link-DQQcMf1A.js → sidebar-nav-link-oLQiKUBu.js} +1 -1
- package/build/assets/{sidebar-onboarding-checklist-storage-BBkeI6Bp.js → sidebar-onboarding-checklist-storage-TfvNNnnr.js} +1 -1
- package/build/assets/sidebar-store-DAZVH-DR.js +1 -0
- package/build/assets/skill-card-pill-row-DfjIfj0K.js +1 -0
- package/build/assets/{skill-filter-w__3UCEE.js → skill-filter-DsNLmn76.js} +2 -2
- package/build/assets/{skill-icon-badge-RQkq8wvl.js → skill-icon-badge-0MK_68Nc.js} +1 -1
- package/build/assets/skill-scope-BE-H9TSZ.js +1 -0
- package/build/assets/skills-plugins-vzSdxSk_.js +1 -0
- package/build/assets/skills-settings-BiPOH9H9.js +1 -0
- package/build/assets/styled-tooltip-CejG0rqv.js +1 -0
- package/build/assets/task-list-tab-OkZSqnTp.js +1 -0
- package/build/assets/{terminal-CNElN42a.js → terminal-Dph60VFZ.js} +2 -2
- package/build/assets/toggle-switch-B2uXaAUS.js +1 -0
- package/build/assets/trash-2-Bb40zQzs.js +1 -0
- package/build/assets/trash-Ckh7yCaB.js +1 -0
- package/build/assets/triangle-alert-DEdu-b_L.js +1 -0
- package/build/assets/{typography-v1KN0tzi.js → typography-DgcLGdHk.js} +1 -1
- package/build/assets/usage-tab-MCmNRAnR.js +1 -0
- package/build/assets/use-acp-credential-form-ychoGqjC.js +1 -0
- package/build/assets/use-activate-agent-profile-8L8Xdghy.js +1 -0
- package/build/assets/use-agent-profiles-Bi8hSkze.js +1 -0
- package/build/assets/{use-automation-health-E6NZi9rb.js → use-automation-health-U99vvHxx.js} +1 -1
- package/build/assets/use-automation-permissions-Buus0R6h.js +1 -0
- package/build/assets/{use-automations-xijQKIl9.js → use-automations-Bq5hVuv0.js} +1 -1
- package/build/assets/{use-can-manage-org-profiles-CrJP5262.js → use-can-manage-org-profiles-MzIeEV8F.js} +1 -1
- package/build/assets/use-canvas-extensions-Ca9KoVEm.js +1 -0
- package/build/assets/{use-cloud-current-user-id-CDfAHpPX.js → use-cloud-current-user-id-B4ZLUZSa.js} +1 -1
- package/build/assets/use-config-l5tkDHyD.js +1 -0
- package/build/assets/use-create-conversation-i_PdFdIs.js +1 -0
- package/build/assets/use-create-secret-CjWq0J4O.js +1 -0
- package/build/assets/use-free-models-gCsJ5BV0.js +1 -0
- package/build/assets/{use-get-secrets-K3jmk-LH.js → use-get-secrets-CMTuWEp_.js} +1 -1
- package/build/assets/use-is-authed-A2Yinlt0.js +1 -0
- package/build/assets/{use-launch-skill-in-chat-BYjYihBP.js → use-launch-skill-in-chat-QbXDhiHr.js} +1 -1
- package/build/assets/use-llm-configured-Dl4zg8ht.js +1 -0
- package/build/assets/use-llm-profiles-SWsuFmFu.js +1 -0
- package/build/assets/use-manifest-capabilities-CdqYfUAC.js +1 -0
- package/build/assets/use-onboarding-completion-Xl63ZvzQ.js +1 -0
- package/build/assets/use-pinned-home-route-BXDIUaxQ.js +1 -0
- package/build/assets/use-plugins-marketplace-BIIaPiaB.js +1 -0
- package/build/assets/use-save-agent-profile-D-ZHHE94.js +1 -0
- package/build/assets/{use-save-settings-DYqkKv7T.js → use-save-settings-Dapkf4cC.js} +1 -1
- package/build/assets/use-settings-C2KKQKVC.js +1 -0
- package/build/assets/use-settings-nav-items-TOc0Rsfd.js +1 -0
- package/build/assets/use-tracking-j4uo9VEW.js +3 -0
- package/build/assets/{use-user-conversation-B9Gebw_g.js → use-user-conversation-5UFqMoO4.js} +1 -1
- package/build/assets/{useInfiniteQuery-C926xzY4.js → useInfiniteQuery-CtSRG7uW.js} +1 -1
- package/build/assets/{useMutation-B-qc391N.js → useMutation-Cszf8mKy.js} +1 -1
- package/build/assets/useQueries-pUohFMSP.js +1 -0
- package/build/assets/useQuery-DAAacS7O.js +1 -0
- package/build/assets/useTranslation-CCgUjPJF.js +1 -0
- package/build/assets/utils-BgLSZdyy.js +1 -0
- package/build/assets/{vendor~conversation-panel~conversation-C8Fn4XOf.js → vendor~conversation-panel~conversation-C22sJuWZ.js} +1 -1
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js +2 -0
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js +185 -0
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js +1 -0
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation-hWywRBaR.js → vendor~index-home~home~conversation-panel~conversation-UTl7gUo9.js} +1 -1
- package/build/assets/vendor~root-layout-CcdIqs-C.js +1 -0
- package/build/assets/{vendor~root-layout~conversation-panel~conversation-BMbMgaGu.js → vendor~root-layout~conversation-panel~conversation-C3EBV3kp.js} +1 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-BCe0JJVy.js +1 -0
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation-j5MFqfSy.js → vendor~root-layout~index-home~home~conversation-panel~conversation-BGGbPcYh.js} +1 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js +1 -0
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~nj1hli3r-DP9wmsjo.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js} +1 -1
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-CUmIwQCN.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-3eJ4ExtV.js} +12 -6
- package/build/assets/{verification-settings-gw_q6vkL.js → verification-settings-DdBpaVPz.js} +1 -1
- package/build/assets/{wrench-CUEI1krB.js → wrench-B8Wg_nbp.js} +1 -1
- package/build/assets/x-CX8lVGwm.js +1 -0
- package/build/index.html +4 -4
- package/build/locales/ar/openhands.json +79 -22
- package/build/locales/ca/openhands.json +79 -22
- package/build/locales/de/openhands.json +79 -22
- package/build/locales/en/openhands.json +79 -22
- package/build/locales/es/openhands.json +79 -22
- package/build/locales/fr/openhands.json +79 -22
- package/build/locales/it/openhands.json +79 -22
- package/build/locales/ja/openhands.json +79 -22
- package/build/locales/ko-KR/openhands.json +79 -22
- package/build/locales/no/openhands.json +79 -22
- package/build/locales/pt/openhands.json +79 -22
- package/build/locales/tr/openhands.json +79 -22
- package/build/locales/uk/openhands.json +79 -22
- package/build/locales/zh-CN/openhands.json +79 -22
- package/build/locales/zh-TW/openhands.json +79 -22
- package/config/defaults.json +3 -3
- 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 +72 -12
- package/dist/api/agent-server-adapter.js +234 -132
- package/dist/api/agent-server-adapter.js.map +1 -1
- package/dist/api/agent-server-config.cjs +1 -1
- package/dist/api/agent-server-config.cjs.map +1 -1
- package/dist/api/agent-server-config.d.ts +6 -0
- package/dist/api/agent-server-config.js +6 -3
- package/dist/api/agent-server-config.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 +2 -2
- package/dist/api/automation-service/automation-service.api.js +7 -7
- package/dist/api/automation-service/automation-service.api.js.map +1 -1
- package/dist/api/cloud/organization-service.api.cjs.map +1 -1
- package/dist/api/cloud/organization-service.api.d.ts +9 -1
- package/dist/api/cloud/organization-service.api.js.map +1 -1
- package/dist/api/cloud/provider-connections-service.api.cjs +2 -0
- package/dist/api/cloud/provider-connections-service.api.cjs.map +1 -0
- package/dist/api/cloud/provider-connections-service.api.d.ts +5 -0
- package/dist/api/cloud/provider-connections-service.api.js +50 -0
- package/dist/api/cloud/provider-connections-service.api.js.map +1 -0
- package/dist/api/cloud/skills-service.api.cjs +1 -1
- package/dist/api/cloud/skills-service.api.cjs.map +1 -1
- package/dist/api/cloud/skills-service.api.d.ts +10 -0
- package/dist/api/cloud/skills-service.api.js +11 -1
- package/dist/api/cloud/skills-service.api.js.map +1 -1
- package/dist/api/config-service/config-service.api.cjs +1 -1
- package/dist/api/config-service/config-service.api.cjs.map +1 -1
- package/dist/api/config-service/config-service.api.js +6 -2
- package/dist/api/config-service/config-service.api.js.map +1 -1
- package/dist/api/config-service/config-service.types.d.ts +13 -0
- package/dist/api/conversation-metadata-store.cjs +1 -1
- package/dist/api/conversation-metadata-store.cjs.map +1 -1
- package/dist/api/conversation-metadata-store.d.ts +24 -0
- package/dist/api/conversation-metadata-store.js +10 -2
- package/dist/api/conversation-metadata-store.js.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
- package/dist/api/conversation-service/agent-server-conversation-service.api.d.ts +20 -0
- package/dist/api/conversation-service/agent-server-conversation-service.api.js +126 -77
- package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
- package/dist/api/hooks-service.cjs +2 -0
- package/dist/api/hooks-service.cjs.map +1 -0
- package/dist/api/hooks-service.d.ts +13 -0
- package/dist/api/hooks-service.js +20 -0
- package/dist/api/hooks-service.js.map +1 -0
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs +1 -1
- package/dist/api/provider-connections-service/provider-connections-service.api.cjs.map +1 -1
- package/dist/api/provider-connections-service/provider-connections-service.api.js +25 -16
- package/dist/api/provider-connections-service/provider-connections-service.api.js.map +1 -1
- package/dist/api/settings-service/settings-service.api.cjs +1 -1
- package/dist/api/settings-service/settings-service.api.cjs.map +1 -1
- package/dist/api/settings-service/settings-service.api.d.ts +2 -0
- package/dist/api/settings-service/settings-service.api.js +18 -10
- package/dist/api/settings-service/settings-service.api.js.map +1 -1
- package/dist/api/skills-service.cjs +1 -1
- package/dist/api/skills-service.cjs.map +1 -1
- package/dist/api/skills-service.d.ts +7 -0
- package/dist/api/skills-service.js +11 -8
- package/dist/api/skills-service.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/critic-result-display.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/critic-result-display.js +5 -5
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.js +2 -1
- package/dist/components/conversation-events/chat/event-message-components/finish-event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.d.ts +1 -1
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js +28 -28
- package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.js +2 -1
- package/dist/components/conversation-events/chat/event-message-components/thought-event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.cjs +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.d.ts +1 -1
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.js +37 -37
- package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/event-message.cjs +2 -2
- package/dist/components/conversation-events/chat/event-message.cjs.map +1 -1
- package/dist/components/conversation-events/chat/event-message.js +79 -70
- package/dist/components/conversation-events/chat/event-message.js.map +1 -1
- package/dist/components/conversation-events/chat/messages.cjs +1 -1
- package/dist/components/conversation-events/chat/messages.cjs.map +1 -1
- package/dist/components/conversation-events/chat/messages.js +28 -27
- package/dist/components/conversation-events/chat/messages.js.map +1 -1
- package/dist/components/features/automations/automation-card.cjs +1 -1
- package/dist/components/features/automations/automation-card.cjs.map +1 -1
- package/dist/components/features/automations/automation-card.js +104 -97
- package/dist/components/features/automations/automation-card.js.map +1 -1
- package/dist/components/features/automations/automation-list-row.cjs +1 -1
- package/dist/components/features/automations/automation-list-row.cjs.map +1 -1
- package/dist/components/features/automations/automation-list-row.js +89 -77
- package/dist/components/features/automations/automation-list-row.js.map +1 -1
- package/dist/components/features/automations/build-automation-menu-items.cjs +1 -1
- package/dist/components/features/automations/build-automation-menu-items.cjs.map +1 -1
- package/dist/components/features/automations/build-automation-menu-items.d.ts +3 -1
- package/dist/components/features/automations/build-automation-menu-items.js +12 -11
- package/dist/components/features/automations/build-automation-menu-items.js.map +1 -1
- package/dist/components/features/automations/detail/configuration-section.d.ts +7 -1
- package/dist/components/features/automations/detail/detail-header.d.ts +10 -5
- package/dist/components/features/automations/detail/run-status-badge.cjs +1 -1
- package/dist/components/features/automations/detail/run-status-badge.cjs.map +1 -1
- package/dist/components/features/automations/detail/run-status-badge.d.ts +2 -2
- package/dist/components/features/automations/detail/run-status-badge.js +82 -53
- package/dist/components/features/automations/detail/run-status-badge.js.map +1 -1
- package/dist/components/features/automations/kebab-menu.cjs +1 -1
- package/dist/components/features/automations/kebab-menu.cjs.map +1 -1
- package/dist/components/features/automations/kebab-menu.js +9 -5
- package/dist/components/features/automations/kebab-menu.js.map +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.cjs +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.cjs.map +1 -1
- package/dist/components/features/automations/recommended-automations-launcher.js +12 -12
- package/dist/components/features/automations/recommended-automations-launcher.js.map +1 -1
- package/dist/components/features/automations/recommended-automations-section.cjs +1 -1
- package/dist/components/features/automations/recommended-automations-section.js +9 -9
- package/dist/components/features/backends/backend-selector.cjs +1 -1
- package/dist/components/features/backends/backend-selector.cjs.map +1 -1
- package/dist/components/features/backends/backend-selector.js +123 -112
- package/dist/components/features/backends/backend-selector.js.map +1 -1
- package/dist/components/features/backends/manage-backends-modal.cjs +1 -1
- package/dist/components/features/backends/manage-backends-modal.cjs.map +1 -1
- package/dist/components/features/backends/manage-backends-modal.js +29 -29
- package/dist/components/features/backends/manage-backends-modal.js.map +1 -1
- package/dist/components/features/chat/change-agent-button.cjs +1 -1
- package/dist/components/features/chat/change-agent-button.js +4 -4
- 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 +137 -137
- package/dist/components/features/chat/chat-interface.js.map +1 -1
- package/dist/components/features/chat/chat-message.cjs +1 -1
- package/dist/components/features/chat/chat-message.cjs.map +1 -1
- package/dist/components/features/chat/chat-message.d.ts +2 -1
- package/dist/components/features/chat/chat-message.js +88 -79
- package/dist/components/features/chat/chat-message.js.map +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs.map +1 -1
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.js +62 -61
- package/dist/components/features/chat/components/chat-input-llm-profile-picker.js.map +1 -1
- package/dist/components/features/chat/components/context-window-meter.cjs +1 -1
- package/dist/components/features/chat/components/context-window-meter.js +4 -4
- package/dist/components/features/chat/confirmation-mode-enabled.cjs +1 -1
- package/dist/components/features/chat/confirmation-mode-enabled.js +4 -4
- package/dist/components/features/chat/generic-event-message.cjs +1 -1
- package/dist/components/features/chat/generic-event-message.cjs.map +1 -1
- package/dist/components/features/chat/generic-event-message.d.ts +2 -1
- package/dist/components/features/chat/generic-event-message.js +41 -22
- package/dist/components/features/chat/generic-event-message.js.map +1 -1
- package/dist/components/features/chat/interactive-chat-box.cjs +1 -1
- package/dist/components/features/chat/interactive-chat-box.cjs.map +1 -1
- package/dist/components/features/chat/interactive-chat-box.js +20 -19
- package/dist/components/features/chat/interactive-chat-box.js.map +1 -1
- package/dist/components/features/chat/model-messages.cjs +1 -1
- package/dist/components/features/chat/model-messages.cjs.map +1 -1
- package/dist/components/features/chat/model-messages.js +27 -26
- package/dist/components/features/chat/model-messages.js.map +1 -1
- package/dist/components/features/conversation/conversation-overview-git-section.cjs +1 -1
- package/dist/components/features/conversation/conversation-overview-git-section.js +4 -4
- package/dist/components/features/conversation/conversation-overview-skills-panel.cjs +1 -1
- package/dist/components/features/conversation/conversation-overview-skills-panel.js +4 -4
- 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 +77 -78
- 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 +88 -88
- package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.cjs +2 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.cjs.map +1 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.d.ts +21 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.js +239 -0
- package/dist/components/features/conversation-panel/advanced-conversation-options-modal.js.map +1 -0
- package/dist/components/features/conversation-panel/budget-display.cjs +1 -1
- package/dist/components/features/conversation-panel/budget-display.cjs.map +1 -1
- package/dist/components/features/conversation-panel/budget-display.d.ts +1 -2
- package/dist/components/features/conversation-panel/budget-display.js +12 -19
- package/dist/components/features/conversation-panel/budget-display.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.cjs +2 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.cjs.map +1 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.d.ts +28 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.js +69 -0
- package/dist/components/features/conversation-panel/conversation-active-tag-filters.js.map +1 -0
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js +19 -18
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.js +91 -80
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js +45 -44
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.js +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.d.ts +7 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js +87 -81
- package/dist/components/features/conversation-panel/conversation-card/conversation-card.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs.map +1 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.d.ts +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js +2 -1
- package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js.map +1 -1
- package/dist/components/features/conversation-panel/conversation-layouts-menu.cjs +2 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.cjs.map +1 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.d.ts +29 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.js +177 -0
- package/dist/components/features/conversation-panel/conversation-layouts-menu.js.map +1 -0
- 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 +37 -0
- package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +85 -45
- 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 +296 -290
- package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.cjs +2 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.cjs.map +1 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.d.ts +22 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.js +153 -0
- package/dist/components/features/conversation-panel/edit-conversation-tags-modal.js.map +1 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.cjs +2 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.cjs.map +1 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.d.ts +6 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.js +65 -0
- package/dist/components/features/conversation-panel/hide-older-conversations-row.js.map +1 -0
- package/dist/components/features/conversation-panel/menu-row.cjs +1 -1
- package/dist/components/features/conversation-panel/menu-row.cjs.map +1 -1
- package/dist/components/features/conversation-panel/menu-row.d.ts +11 -1
- package/dist/components/features/conversation-panel/menu-row.js +27 -16
- package/dist/components/features/conversation-panel/menu-row.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.js +1 -1
- package/dist/components/features/home/featured-automations/automation-health-indicator.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.d.ts +4 -3
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js +22 -25
- package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.d.ts +1 -1
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js +15 -15
- package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.cjs +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/automation-run-health.d.ts +5 -3
- package/dist/components/features/home/featured-automations/automation-run-health.js +30 -23
- package/dist/components/features/home/featured-automations/automation-run-health.js.map +1 -1
- package/dist/components/features/home/featured-automations/build-home-automation-menu-items.d.ts +1 -2
- package/dist/components/features/home/featured-automations/build-pinned-automation-menu-items.d.ts +0 -1
- package/dist/components/features/home/featured-automations/home-automation-activity.d.ts +3 -2
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.d.ts +1 -1
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +42 -42
- package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -1
- package/dist/components/features/images/image-lightbox.cjs +2 -0
- package/dist/components/features/images/image-lightbox.cjs.map +1 -0
- package/dist/components/features/images/image-lightbox.d.ts +11 -0
- package/dist/components/features/images/image-lightbox.js +37 -0
- package/dist/components/features/images/image-lightbox.js.map +1 -0
- package/dist/components/features/images/image-preview.cjs +1 -1
- package/dist/components/features/images/image-preview.cjs.map +1 -1
- package/dist/components/features/images/image-preview.d.ts +2 -1
- package/dist/components/features/images/image-preview.js +33 -13
- package/dist/components/features/images/image-preview.js.map +1 -1
- package/dist/components/features/manifest/manifest-form-field.d.ts +3 -1
- package/dist/components/features/manifest/manifest-review-step.d.ts +3 -1
- package/dist/components/features/onboarding/steps/setup-llm-step.d.ts +3 -4
- package/dist/components/features/settings/cloud-settings-link.cjs +1 -1
- package/dist/components/features/settings/cloud-settings-link.cjs.map +1 -1
- package/dist/components/features/settings/cloud-settings-link.d.ts +3 -1
- package/dist/components/features/settings/cloud-settings-link.js +22 -19
- package/dist/components/features/settings/cloud-settings-link.js.map +1 -1
- package/dist/components/features/settings/integrations-settings-link.cjs +1 -1
- package/dist/components/features/settings/integrations-settings-link.cjs.map +1 -1
- package/dist/components/features/settings/integrations-settings-link.d.ts +3 -1
- package/dist/components/features/settings/integrations-settings-link.js +20 -17
- package/dist/components/features/settings/integrations-settings-link.js.map +1 -1
- 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 +3 -2
- package/dist/components/features/settings/llm-profiles/profile-row.cjs +1 -1
- package/dist/components/features/settings/llm-profiles/profile-row.js +1 -1
- package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +2 -2
- package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs.map +1 -1
- package/dist/components/features/settings/sdk-settings/sdk-section-page.d.ts +8 -7
- package/dist/components/features/settings/sdk-settings/sdk-section-page.js +172 -142
- 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.cjs.map +1 -1
- package/dist/components/features/settings/secrets-settings/secret-form.js +38 -25
- package/dist/components/features/settings/secrets-settings/secret-form.js.map +1 -1
- package/dist/components/features/settings/settings-dropdown-input.cjs +1 -1
- package/dist/components/features/settings/settings-dropdown-input.js +6 -6
- 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.d.ts +4 -1
- package/dist/components/features/sidebar/sidebar-rail-body.js +157 -139
- package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
- package/dist/components/features/sidebar/sidebar.cjs +1 -1
- package/dist/components/features/sidebar/sidebar.cjs.map +1 -1
- package/dist/components/features/sidebar/sidebar.js +28 -26
- package/dist/components/features/sidebar/sidebar.js.map +1 -1
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs +1 -1
- package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js +3 -3
- package/dist/components/features/skills/extensions-navigation.cjs +1 -1
- package/dist/components/features/skills/extensions-navigation.cjs.map +1 -1
- package/dist/components/features/skills/extensions-navigation.js +3 -3
- package/dist/components/features/skills/extensions-navigation.js.map +1 -1
- package/dist/components/providers/agent-server-ui-providers.cjs +1 -1
- package/dist/components/providers/agent-server-ui-providers.cjs.map +1 -1
- package/dist/components/providers/agent-server-ui-providers.js +33 -29
- package/dist/components/providers/agent-server-ui-providers.js.map +1 -1
- package/dist/components/shared/buttons/remove-button.cjs +1 -1
- package/dist/components/shared/buttons/remove-button.cjs.map +1 -1
- package/dist/components/shared/buttons/remove-button.d.ts +2 -1
- package/dist/components/shared/buttons/remove-button.js +2 -1
- package/dist/components/shared/buttons/remove-button.js.map +1 -1
- package/dist/components/shared/buttons/styled-tooltip.cjs +1 -1
- package/dist/components/shared/buttons/styled-tooltip.cjs.map +1 -1
- package/dist/components/shared/buttons/styled-tooltip.d.ts +2 -1
- package/dist/components/shared/buttons/styled-tooltip.js +2 -1
- package/dist/components/shared/buttons/styled-tooltip.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 +5 -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/free-models-note.cjs +2 -0
- package/dist/components/shared/free-models-note.cjs.map +1 -0
- package/dist/components/shared/free-models-note.d.ts +3 -0
- package/dist/components/shared/free-models-note.js +20 -0
- package/dist/components/shared/free-models-note.js.map +1 -0
- package/dist/components/shared/modals/confirmation-modal.cjs +1 -1
- package/dist/components/shared/modals/confirmation-modal.cjs.map +1 -1
- package/dist/components/shared/modals/confirmation-modal.d.ts +2 -1
- package/dist/components/shared/modals/confirmation-modal.js +8 -8
- package/dist/components/shared/modals/confirmation-modal.js.map +1 -1
- package/dist/components/shared/modals/settings/model-selector.cjs +1 -1
- package/dist/components/shared/modals/settings/model-selector.cjs.map +1 -1
- package/dist/components/shared/modals/settings/model-selector.js +102 -112
- package/dist/components/shared/modals/settings/model-selector.js.map +1 -1
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +3 -3
- package/dist/config/defaults.js.map +1 -1
- package/dist/constants/acp-providers.cjs.map +1 -1
- package/dist/constants/acp-providers.d.ts +12 -0
- package/dist/constants/acp-providers.js.map +1 -1
- package/dist/constants/settings-nav.d.ts +8 -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.d.ts +5 -0
- package/dist/contexts/conversation-websocket-context.js +194 -198
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/contexts/websocket-provider-wrapper.cjs +1 -1
- package/dist/contexts/websocket-provider-wrapper.cjs.map +1 -1
- package/dist/contexts/websocket-provider-wrapper.js +31 -15
- package/dist/contexts/websocket-provider-wrapper.js.map +1 -1
- package/dist/hooks/chat/record-model-switch-message.cjs +1 -1
- package/dist/hooks/chat/record-model-switch-message.cjs.map +1 -1
- package/dist/hooks/chat/record-model-switch-message.d.ts +31 -0
- package/dist/hooks/chat/record-model-switch-message.js +25 -12
- package/dist/hooks/chat/record-model-switch-message.js.map +1 -1
- package/dist/hooks/chat/use-plan-mode-interceptor.cjs +2 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.cjs.map +1 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.d.ts +16 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.js +43 -0
- package/dist/hooks/chat/use-plan-mode-interceptor.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.js +63 -62
- 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 +5 -1
- package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
- package/dist/hooks/mutation/use-read-conversation-file.cjs +1 -1
- package/dist/hooks/mutation/use-read-conversation-file.cjs.map +1 -1
- package/dist/hooks/mutation/use-read-conversation-file.js +11 -4
- package/dist/hooks/mutation/use-read-conversation-file.js.map +1 -1
- package/dist/hooks/mutation/use-save-settings.cjs +1 -1
- package/dist/hooks/mutation/use-save-settings.js +3 -3
- package/dist/hooks/mutation/use-switch-llm-profile.cjs +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.cjs.map +1 -1
- package/dist/hooks/mutation/use-switch-llm-profile.js +13 -25
- package/dist/hooks/mutation/use-switch-llm-profile.js.map +1 -1
- package/dist/hooks/mutation/use-update-conversation-tags.cjs +2 -0
- package/dist/hooks/mutation/use-update-conversation-tags.cjs.map +1 -0
- package/dist/hooks/mutation/use-update-conversation-tags.d.ts +8 -0
- package/dist/hooks/mutation/use-update-conversation-tags.js +45 -0
- package/dist/hooks/mutation/use-update-conversation-tags.js.map +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 +6 -0
- package/dist/hooks/query/query-keys.js +2 -2
- package/dist/hooks/query/query-keys.js.map +1 -1
- package/dist/hooks/query/use-automation-sdk-version.cjs +1 -1
- package/dist/hooks/query/use-automation-sdk-version.cjs.map +1 -1
- package/dist/hooks/query/use-automation-sdk-version.d.ts +0 -1
- package/dist/hooks/query/use-automation-sdk-version.js +30 -55
- package/dist/hooks/query/use-automation-sdk-version.js.map +1 -1
- package/dist/hooks/query/use-conversation-skills.cjs +1 -1
- package/dist/hooks/query/use-conversation-skills.cjs.map +1 -1
- package/dist/hooks/query/use-conversation-skills.d.ts +14 -5
- package/dist/hooks/query/use-conversation-skills.js +20 -4
- package/dist/hooks/query/use-conversation-skills.js.map +1 -1
- package/dist/hooks/query/use-free-models.cjs +2 -0
- package/dist/hooks/query/use-free-models.cjs.map +1 -0
- package/dist/hooks/query/use-free-models.d.ts +23 -0
- package/dist/hooks/query/use-free-models.js +67 -0
- package/dist/hooks/query/use-free-models.js.map +1 -0
- package/dist/hooks/query/use-local-git-info.cjs.map +1 -1
- package/dist/hooks/query/use-local-git-info.js.map +1 -1
- package/dist/hooks/query/use-provider-connections.cjs +1 -1
- package/dist/hooks/query/use-provider-connections.cjs.map +1 -1
- package/dist/hooks/query/use-provider-connections.d.ts +6 -3
- package/dist/hooks/query/use-provider-connections.js +7 -3
- package/dist/hooks/query/use-provider-connections.js.map +1 -1
- package/dist/hooks/query/use-provider-models.cjs +1 -1
- package/dist/hooks/query/use-provider-models.cjs.map +1 -1
- package/dist/hooks/query/use-provider-models.js +34 -25
- package/dist/hooks/query/use-provider-models.js.map +1 -1
- package/dist/hooks/query/use-search-providers.cjs +1 -1
- package/dist/hooks/query/use-search-providers.cjs.map +1 -1
- package/dist/hooks/query/use-search-providers.js +31 -19
- package/dist/hooks/query/use-search-providers.js.map +1 -1
- package/dist/hooks/query/use-sub-conversations.cjs +1 -1
- package/dist/hooks/query/use-sub-conversations.cjs.map +1 -1
- package/dist/hooks/query/use-sub-conversations.js +16 -16
- package/dist/hooks/query/use-sub-conversations.js.map +1 -1
- package/dist/hooks/use-acp-model-context.cjs +1 -1
- package/dist/hooks/use-acp-model-context.js +3 -3
- package/dist/hooks/use-agent-state.cjs +1 -1
- package/dist/hooks/use-agent-state.cjs.map +1 -1
- package/dist/hooks/use-agent-state.d.ts +17 -1
- package/dist/hooks/use-agent-state.js +19 -9
- package/dist/hooks/use-agent-state.js.map +1 -1
- package/dist/hooks/use-automation-permissions.cjs +2 -0
- package/dist/hooks/use-automation-permissions.cjs.map +1 -0
- package/dist/hooks/use-automation-permissions.d.ts +43 -0
- package/dist/hooks/use-automation-permissions.js +52 -0
- package/dist/hooks/use-automation-permissions.js.map +1 -0
- package/dist/hooks/use-chat-input-model-state.cjs +1 -1
- package/dist/hooks/use-chat-input-model-state.js +3 -3
- package/dist/hooks/use-handle-plan-click.cjs +1 -1
- package/dist/hooks/use-handle-plan-click.cjs.map +1 -1
- package/dist/hooks/use-handle-plan-click.d.ts +3 -1
- package/dist/hooks/use-handle-plan-click.js +85 -26
- package/dist/hooks/use-handle-plan-click.js.map +1 -1
- package/dist/hooks/use-home-automation-actions.cjs +1 -1
- package/dist/hooks/use-home-automation-actions.cjs.map +1 -1
- package/dist/hooks/use-home-automation-actions.d.ts +1 -2
- package/dist/hooks/use-home-automation-actions.js +1 -1
- package/dist/hooks/use-home-automation-actions.js.map +1 -1
- package/dist/hooks/use-llm-configured.cjs +1 -1
- package/dist/hooks/use-llm-configured.js +3 -3
- package/dist/hooks/use-manifest-preflight.d.ts +1 -1
- package/dist/hooks/use-unified-websocket-status.cjs +1 -1
- package/dist/hooks/use-unified-websocket-status.cjs.map +1 -1
- package/dist/hooks/use-unified-websocket-status.d.ts +7 -0
- package/dist/hooks/use-unified-websocket-status.js +5 -1
- package/dist/hooks/use-unified-websocket-status.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 +71 -14
- package/dist/i18n/declaration.js +1 -1
- package/dist/i18n/declaration.js.map +1 -1
- package/dist/i18n/translation.cjs +2 -2
- package/dist/i18n/translation.cjs.map +1 -1
- package/dist/i18n/translation.js +1281 -312
- package/dist/i18n/translation.js.map +1 -1
- package/dist/locales/ar/openhands.json +79 -22
- package/dist/locales/ca/openhands.json +79 -22
- package/dist/locales/de/openhands.json +79 -22
- package/dist/locales/en/openhands.json +79 -22
- package/dist/locales/es/openhands.json +79 -22
- package/dist/locales/fr/openhands.json +79 -22
- package/dist/locales/it/openhands.json +79 -22
- package/dist/locales/ja/openhands.json +79 -22
- package/dist/locales/ko-KR/openhands.json +79 -22
- package/dist/locales/no/openhands.json +79 -22
- package/dist/locales/pt/openhands.json +79 -22
- package/dist/locales/tr/openhands.json +79 -22
- package/dist/locales/uk/openhands.json +79 -22
- package/dist/locales/zh-CN/openhands.json +79 -22
- package/dist/locales/zh-TW/openhands.json +79 -22
- package/dist/manifests/automation-insights.cjs.map +1 -1
- package/dist/manifests/automation-insights.d.ts +10 -2
- package/dist/manifests/automation-insights.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 +9 -16
- package/dist/manifests/automation-setup.js +17 -7
- package/dist/manifests/automation-setup.js.map +1 -1
- package/dist/manifests/manifest-actions.d.ts +1 -1
- package/dist/manifests/manifest-capabilities.d.ts +3 -1
- package/dist/manifests/manifest-local-validation.cjs +2 -0
- package/dist/manifests/manifest-local-validation.cjs.map +1 -0
- package/dist/manifests/manifest-local-validation.d.ts +15 -11
- package/dist/manifests/manifest-local-validation.js +8 -0
- package/dist/manifests/manifest-local-validation.js.map +1 -0
- package/dist/manifests/manifest-template.cjs +2 -0
- package/dist/manifests/manifest-template.cjs.map +1 -0
- package/dist/manifests/manifest-template.d.ts +4 -4
- package/dist/manifests/manifest-template.js +12 -0
- package/dist/manifests/manifest-template.js.map +1 -0
- package/dist/manifests/manifest-validation.cjs +1 -1
- package/dist/manifests/manifest-validation.cjs.map +1 -1
- package/dist/manifests/manifest-validation.js +106 -28
- package/dist/manifests/manifest-validation.js.map +1 -1
- package/dist/manifests/types.cjs.map +1 -1
- package/dist/manifests/types.d.ts +39 -4
- package/dist/manifests/types.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.cjs +8 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.cjs.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.js +221 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/custom-automation/manifest.js.map +1 -0
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs +1 -1
- 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 +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.js +1 -1
- package/dist/node_modules/@openhands/extensions/automations/catalog/qa-changes/manifest.js.map +1 -1
- 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 +22 -20
- package/dist/node_modules/@openhands/extensions/automations/catalog-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 +2 -1
- package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.cjs +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.cjs.map +1 -1
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.js +24 -5
- package/dist/node_modules/@openhands/extensions/integrations/catalog/gitlab.js.map +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.cjs +1 -1
- package/dist/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shrink.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +43 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/tags.js.map +1 -0
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +4 -4
- package/dist/package.js.map +1 -1
- package/dist/routes/agent-settings.d.ts +2 -0
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.cjs.map +1 -1
- package/dist/routes/app-settings.js +53 -48
- package/dist/routes/app-settings.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 +3 -1
- package/dist/routes/llm-settings.js +120 -127
- package/dist/routes/llm-settings.js.map +1 -1
- package/dist/routes/planner-tab.cjs +1 -1
- package/dist/routes/planner-tab.cjs.map +1 -1
- package/dist/routes/planner-tab.js +44 -28
- package/dist/routes/planner-tab.js.map +1 -1
- package/dist/services/telemetry.cjs +1 -1
- package/dist/services/telemetry.cjs.map +1 -1
- package/dist/services/telemetry.d.ts +5 -0
- package/dist/services/telemetry.js +122 -115
- package/dist/services/telemetry.js.map +1 -1
- package/dist/stores/conversation-panel-preferences-store.cjs +1 -1
- package/dist/stores/conversation-panel-preferences-store.cjs.map +1 -1
- package/dist/stores/conversation-panel-preferences-store.d.ts +32 -5
- package/dist/stores/conversation-panel-preferences-store.js +29 -12
- package/dist/stores/conversation-panel-preferences-store.js.map +1 -1
- package/dist/stores/conversation-state-store.cjs +1 -1
- package/dist/stores/conversation-state-store.cjs.map +1 -1
- package/dist/stores/conversation-state-store.d.ts +9 -3
- package/dist/stores/conversation-state-store.js +6 -3
- package/dist/stores/conversation-state-store.js.map +1 -1
- package/dist/stores/conversation-store.cjs +1 -1
- package/dist/stores/conversation-store.cjs.map +1 -1
- package/dist/stores/conversation-store.d.ts +2 -0
- package/dist/stores/conversation-store.js +3 -0
- package/dist/stores/conversation-store.js.map +1 -1
- package/dist/stores/free-models-store.cjs +2 -0
- package/dist/stores/free-models-store.cjs.map +1 -0
- package/dist/stores/free-models-store.d.ts +30 -0
- package/dist/stores/free-models-store.js +22 -0
- package/dist/stores/free-models-store.js.map +1 -0
- package/dist/stores/model-store.cjs +1 -1
- package/dist/stores/model-store.cjs.map +1 -1
- package/dist/stores/model-store.d.ts +7 -0
- package/dist/stores/model-store.js +4 -0
- package/dist/stores/model-store.js.map +1 -1
- package/dist/types/automation.cjs.map +1 -1
- package/dist/types/automation.d.ts +46 -1
- package/dist/types/automation.js.map +1 -1
- package/dist/ui/context-menu.d.ts +1 -1
- package/dist/ui/toggle-switch.cjs +1 -1
- package/dist/ui/toggle-switch.cjs.map +1 -1
- package/dist/ui/toggle-switch.d.ts +4 -1
- package/dist/ui/toggle-switch.js +4 -3
- package/dist/ui/toggle-switch.js.map +1 -1
- 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 -1
- package/dist/utils/automation-catalog.js +42 -12
- package/dist/utils/automation-catalog.js.map +1 -1
- package/dist/utils/automation-run-display.cjs +2 -0
- package/dist/utils/automation-run-display.cjs.map +1 -0
- package/dist/utils/automation-run-display.d.ts +20 -0
- package/dist/utils/automation-run-display.js +85 -0
- package/dist/utils/automation-run-display.js.map +1 -0
- package/dist/utils/automation-schedule.cjs +1 -1
- package/dist/utils/automation-schedule.cjs.map +1 -1
- package/dist/utils/automation-schedule.d.ts +16 -0
- package/dist/utils/automation-schedule.js +2 -0
- package/dist/utils/automation-schedule.js.map +1 -1
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.cjs.map +1 -1
- package/dist/utils/constants.d.ts +4 -0
- package/dist/utils/constants.js +23 -3
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/format-event-timestamp.cjs +2 -0
- package/dist/utils/format-event-timestamp.cjs.map +1 -0
- package/dist/utils/format-event-timestamp.d.ts +1 -0
- package/dist/utils/format-event-timestamp.js +13 -0
- package/dist/utils/format-event-timestamp.js.map +1 -0
- package/dist/utils/format-model-name.cjs +1 -1
- package/dist/utils/format-model-name.cjs.map +1 -1
- package/dist/utils/format-model-name.d.ts +27 -6
- package/dist/utils/format-model-name.js +14 -6
- package/dist/utils/format-model-name.js.map +1 -1
- package/dist/utils/git-diff-stats.cjs +2 -2
- package/dist/utils/git-diff-stats.cjs.map +1 -1
- package/dist/utils/git-diff-stats.d.ts +4 -0
- package/dist/utils/git-diff-stats.js +12 -2
- package/dist/utils/git-diff-stats.js.map +1 -1
- package/dist/utils/plan-file.cjs +4 -0
- package/dist/utils/plan-file.cjs.map +1 -0
- package/dist/utils/plan-file.d.ts +18 -0
- package/dist/utils/plan-file.js +58 -0
- package/dist/utils/plan-file.js.map +1 -0
- package/dist/utils/recommended-automation-rail.cjs +1 -1
- package/dist/utils/recommended-automation-rail.cjs.map +1 -1
- package/dist/utils/recommended-automation-rail.js +1 -0
- package/dist/utils/recommended-automation-rail.js.map +1 -1
- package/dist/utils/scroll-fade-state.cjs +1 -1
- package/dist/utils/scroll-fade-state.cjs.map +1 -1
- package/dist/utils/scroll-fade-state.d.ts +6 -0
- package/dist/utils/scroll-fade-state.js +8 -1
- package/dist/utils/scroll-fade-state.js.map +1 -1
- package/dist/utils/sdk-settings-schema.cjs +1 -1
- package/dist/utils/sdk-settings-schema.cjs.map +1 -1
- package/dist/utils/sdk-settings-schema.d.ts +1 -0
- package/dist/utils/sdk-settings-schema.js +25 -22
- package/dist/utils/sdk-settings-schema.js.map +1 -1
- package/dist/utils/utils.cjs +1 -1
- package/dist/utils/utils.cjs.map +1 -1
- package/dist/utils/utils.js +11 -11
- package/dist/utils/utils.js.map +1 -1
- package/package.json +4 -4
- package/scripts/check-sdk-version-sync.mjs +6 -6
- package/scripts/dev-safe.mjs +1 -1
- package/scripts/dev-with-automation.mjs +1 -1
- package/scripts/static-server.mjs +33 -1
- package/build/assets/active-backend-context-CrHTlgvN.js +0 -2
- package/build/assets/agent-profiles-settings-Dzgb7G9z.js +0 -1
- package/build/assets/agent-server-conversation-service.api-tnqNjbpE.js +0 -86
- package/build/assets/agent-settings-DLtsqaOs.js +0 -2
- package/build/assets/agent-settings-fFvR-XC2.js +0 -1
- package/build/assets/alert-banner-HP6mX-Vr.js +0 -1
- package/build/assets/api-key-entry-screen-qTzrmJcr.js +0 -1
- package/build/assets/app-settings-dbnneVaV.js +0 -1
- package/build/assets/automation-detail-BmwlCUAB.js +0 -3
- package/build/assets/automation-git-sync-CprN5DcU.js +0 -1
- package/build/assets/automation-setup-route-C40kXjMY.js +0 -1
- package/build/assets/automations-list-DuNcRawl.js +0 -1
- package/build/assets/backend-form-modal-lhGwzXFI.js +0 -1
- package/build/assets/backend-synced-settings-badge-DPkz30BE.js +0 -1
- package/build/assets/badge-BU3S0VtE.js +0 -1
- package/build/assets/bot-dMYHVfYM.js +0 -1
- package/build/assets/browser-DSAo0tz1.js +0 -46
- package/build/assets/browser-tab-C9vy56R5.js +0 -1
- package/build/assets/canvas-extension-page-dx1gFrfW.js +0 -1
- package/build/assets/canvas-extensions-8A-XhpgP.js +0 -1
- package/build/assets/check-CS0vmpQQ.js +0 -1
- package/build/assets/chevron-down-e1QBpjVy.js +0 -1
- package/build/assets/chevron-right-ZG4R5G4Q.js +0 -1
- package/build/assets/circle-check-DzWLNsbE.js +0 -1
- package/build/assets/circle-plus-check-toggle-BO_kFZt3.js +0 -1
- package/build/assets/command-menu--UIlGL72.js +0 -1
- package/build/assets/commits-tab-AnZwLvh-.js +0 -1
- package/build/assets/confirmation-modal-Dv1ktp8K.js +0 -1
- package/build/assets/conversation-BbGrAO4Z.js +0 -93
- package/build/assets/conversation-mYT6NAoj.js +0 -1
- package/build/assets/conversation-panel-mYT6NAoj.js +0 -1
- package/build/assets/conversation-state-store-B0ImPLHO.js +0 -1
- package/build/assets/conversation-store-Ca3ghXap.js +0 -6
- package/build/assets/copy-to-clipboard-button-Ca8iSkkA.js +0 -1
- package/build/assets/device-verify-Bhn2e_Ye.js +0 -1
- package/build/assets/edit-automation-modal-DadGbJ2u.js +0 -1
- package/build/assets/empty-state-BoGVDecT.js +0 -1
- package/build/assets/enum-filter-dropdown-Bgca129f.js +0 -1
- package/build/assets/environment-switch-overlay-BmBRT7gv.js +0 -1
- package/build/assets/error-state-Body8Ngd.js +0 -1
- package/build/assets/extensions-hub-CcDqq_vR.js +0 -1
- package/build/assets/extensions-navigation-Cr4yzYk4.js +0 -1
- package/build/assets/external-link-DKUlnCQV.js +0 -1
- package/build/assets/files-tab-D4o2VyE_.js +0 -1
- package/build/assets/format-model-name-CasAP3nd.js +0 -1
- package/build/assets/get-git-path-ChKDVHZp.js +0 -1
- package/build/assets/git-repo-dropdown-4ROKl2cB.js +0 -1
- package/build/assets/git-repo-dropdown-BkqzkMmM.js +0 -1
- package/build/assets/highlighted-source-view-BFRxGT_Q.js +0 -1
- package/build/assets/home-ChpSuepX.js +0 -1
- package/build/assets/home-DIsB440S.js +0 -1
- package/build/assets/home-automation-run-tooltip-BVNDWjAH.js +0 -1
- package/build/assets/home-store-CY9Ej0ux.js +0 -1
- package/build/assets/index-home-BdlrFIif.js +0 -1
- package/build/assets/info-B6RQawoW.js +0 -1
- package/build/assets/install-server-modal-Dpy89p4g.js +0 -1
- package/build/assets/kebab-menu-item-content-D8hSNGmm.js +0 -1
- package/build/assets/launch-IrTDEFCs.js +0 -1
- package/build/assets/list-filter-DsEK7NFC.js +0 -1
- package/build/assets/llm-not-configured-banner-CIFABh3K.js +0 -27
- package/build/assets/llm-settings-B9juXhIa.js +0 -1
- package/build/assets/llm-settings-De1d5dfr.js +0 -1
- package/build/assets/llm-subscription-service-BpJ0ouQo.js +0 -1
- package/build/assets/loader-circle-CC1au6hc.js +0 -1
- package/build/assets/manage-backends-modal-BrPV3oB-.js +0 -1
- package/build/assets/manifest-80fb1c29.js +0 -1
- package/build/assets/manifest-subpage-layout-CAOYzrYp.js +0 -1
- package/build/assets/markdown-renderer-BzTlxI8x.js +0 -8
- package/build/assets/mcp-BTs_SXfZ.js +0 -1
- package/build/assets/mcp-page-BEBYqH_K.js +0 -9
- package/build/assets/messages-DKV9cRc2.js +0 -41
- package/build/assets/modal-close-button-DDzdRvCs.js +0 -1
- package/build/assets/onboarding-DV_OXoeP.js +0 -1
- package/build/assets/onboarding-modal-rkyBYkeQ.js +0 -1
- package/build/assets/organization-service.api-DrYNkEN_.js +0 -1
- package/build/assets/pencil-47jAZH_V.js +0 -1
- package/build/assets/pin-By41Vl5J.js +0 -1
- package/build/assets/planner-tab-C9uZmhme.js +0 -1
- package/build/assets/plug-CG5HFcNG.js +0 -1
- package/build/assets/plugins-management-service-BMJgC3Ga.js +0 -1
- package/build/assets/plus-C7Slq-0I.js +0 -1
- package/build/assets/profiles-service.api-ChoKrL0l.js +0 -1
- package/build/assets/providers-BhMcY5nv.js +0 -1
- package/build/assets/proxy-9Fe1v5na.js +0 -1
- package/build/assets/recommended-automations-launcher-6ABrI9Cy.js +0 -1
- package/build/assets/refresh-cw-3q3Frrii.js +0 -1
- package/build/assets/root-Dc8YmC9F.js +0 -2
- package/build/assets/root-VDaypvK4.css +0 -1
- package/build/assets/root-layout-CXkhSPYh.js +0 -2
- package/build/assets/schema-field-D-y9-LDb.js +0 -1
- package/build/assets/scroll-fade-state-Dw-i4SGq.js +0 -1
- package/build/assets/sdk-section-page-BlFiizlG.js +0 -1
- package/build/assets/secret-form-BB7the8W.js +0 -1
- package/build/assets/secrets-service-ByZVENbp.js +0 -1
- package/build/assets/secrets-settings-B_GpxKW2.js +0 -1
- package/build/assets/settings-C0EWuBtA.js +0 -1
- package/build/assets/settings-dropdown-input-BcwylHs2.js +0 -1
- package/build/assets/settings-index-5w5UW2K3.js +0 -1
- package/build/assets/settings-input-Db-1g8Ql.js +0 -1
- package/build/assets/settings-modal-DfJ3tcJQ.js +0 -1
- package/build/assets/settings-service.api-DJ1r62Zr.js +0 -1
- package/build/assets/settings-switch-CS-dJDmA.js +0 -1
- package/build/assets/shared-conversation-CA5ISEDy.js +0 -1
- package/build/assets/shield-check-D2aCRd16.js +0 -1
- package/build/assets/sidebar-mobile-menu-toggle-C_fb0Jki.js +0 -1
- package/build/assets/sidebar-store-DGqHkVLw.js +0 -1
- package/build/assets/skill-card-pill-row-B27-xyig.js +0 -1
- package/build/assets/skill-scope-B42H-XOc.js +0 -1
- package/build/assets/skills-plugins-tgF8EiXC.js +0 -1
- package/build/assets/skills-settings-BgJ9PaOe.js +0 -1
- package/build/assets/styled-tooltip-C4jf5Fv9.js +0 -1
- package/build/assets/task-list-tab-C5zcaktH.js +0 -1
- package/build/assets/toggle-switch-ChOLXv2n.js +0 -1
- package/build/assets/trash-2-D7K26eDO.js +0 -1
- package/build/assets/trash-D-HYiVYM.js +0 -1
- package/build/assets/triangle-alert-CtdXWHUI.js +0 -1
- package/build/assets/usage-tab-CVDffLPt.js +0 -1
- package/build/assets/use-acp-credential-form-XIQmpX6M.js +0 -1
- package/build/assets/use-activate-agent-profile-BLfmvDiG.js +0 -1
- package/build/assets/use-agent-profiles-Bd9Bvvp1.js +0 -1
- package/build/assets/use-canvas-extensions-Bi693ujJ.js +0 -1
- package/build/assets/use-config-A9QovgXO.js +0 -1
- package/build/assets/use-create-conversation-Dx3l7mFZ.js +0 -1
- package/build/assets/use-create-secret-B9cUFWRG.js +0 -1
- package/build/assets/use-has-permission-B3C8rQmR.js +0 -1
- package/build/assets/use-is-authed-nTBcM7dE.js +0 -1
- package/build/assets/use-llm-configured-BV9nZ1_j.js +0 -1
- package/build/assets/use-llm-profiles-BO-P4Oyo.js +0 -1
- package/build/assets/use-manifest-capabilities-Cw_flwEz.js +0 -1
- package/build/assets/use-onboarding-completion-D8U7k4Qb.js +0 -1
- package/build/assets/use-pinned-home-route-CckOZrmb.js +0 -1
- package/build/assets/use-plugins-marketplace-7i94Zu3Z.js +0 -1
- package/build/assets/use-save-agent-profile-BUjSsDXK.js +0 -1
- package/build/assets/use-settings-DSXLbvBl.js +0 -1
- package/build/assets/use-settings-nav-items-CwRw-CmX.js +0 -16
- package/build/assets/use-tracking-D53y3TH9.js +0 -3
- package/build/assets/useQueries-DlbhlH9I.js +0 -1
- package/build/assets/useQuery-BSTgq1rl.js +0 -1
- package/build/assets/utils-CN5ZfZy1.js +0 -1
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-DqZDXfg2.js +0 -186
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-rfV8mQ9m.js +0 -1
- package/build/assets/vendor~root-layout-C9Ju9DQg.js +0 -1
- package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-BWir3rJs.js +0 -1
- package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-cDuKr-WD.js +0 -1
- package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-Chf7vmKB.js +0 -1
- package/build/assets/x-DJdhbdmt.js +0 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs +0 -2
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs.map +0 -1
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.d.ts +0 -35
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js +0 -247
- package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js.map +0 -1
- package/dist/hooks/query/use-skills.cjs +0 -2
- package/dist/hooks/query/use-skills.cjs.map +0 -1
- package/dist/hooks/query/use-skills.d.ts +0 -7
- package/dist/hooks/query/use-skills.js +0 -13
- package/dist/hooks/query/use-skills.js.map +0 -1
- package/dist/hooks/use-has-permission.cjs +0 -2
- package/dist/hooks/use-has-permission.cjs.map +0 -1
- package/dist/hooks/use-has-permission.d.ts +0 -1
- package/dist/hooks/use-has-permission.js +0 -8
- package/dist/hooks/use-has-permission.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.cjs +0 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type MouseEvent } from "react";
|
|
1
2
|
/**
|
|
2
3
|
* Custom hook that encapsulates the logic for handling plan creation.
|
|
3
4
|
* Returns a function that can be called to create a plan conversation and
|
|
@@ -6,6 +7,7 @@
|
|
|
6
7
|
* @returns An object containing handlePlanClick function and isCreatingConversation boolean
|
|
7
8
|
*/
|
|
8
9
|
export declare const useHandlePlanClick: () => {
|
|
9
|
-
handlePlanClick: (event?:
|
|
10
|
+
handlePlanClick: (event?: MouseEvent<HTMLButtonElement> | KeyboardEvent, initialMessage?: string) => void;
|
|
11
|
+
hasPlanner: boolean;
|
|
10
12
|
isCreatingConversation: boolean;
|
|
11
13
|
};
|
|
@@ -2,42 +2,101 @@ import { useTranslation as e } from "../node_modules/react-i18next/dist/es/useTr
|
|
|
2
2
|
import { I18nKey as t } from "../i18n/declaration.js";
|
|
3
3
|
import { getConversationState as n, setConversationState as r } from "../utils/conversation-local-storage.js";
|
|
4
4
|
import { useConversationStore as i } from "../stores/conversation-store.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { CONVERSATION_QUERY_KEYS as a, LOCAL_PLANNER_MUTATION_KEYS as o } from "./query/query-keys.js";
|
|
6
|
+
import { useQueryClient as s } from "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js";
|
|
7
|
+
import { useMutation as c } from "../node_modules/@tanstack/react-query/build/modern/useMutation.js";
|
|
8
|
+
import { displayErrorToast as l, displaySuccessToast as u } from "../utils/custom-toast-handlers.js";
|
|
9
|
+
import { useActiveBackend as d } from "../contexts/active-backend-context.js";
|
|
10
|
+
import { getStoredConversationMetadata as f } from "../api/conversation-metadata-store.js";
|
|
11
|
+
import { findPlannerConversationId as p } from "../utils/plan-file.js";
|
|
12
|
+
import m from "../api/conversation-service/agent-server-conversation-service.api.js";
|
|
13
|
+
import { invalidateConversationQueries as h } from "./mutation/conversation-mutation-utils.js";
|
|
14
|
+
import { useActiveConversation as g } from "./query/use-active-conversation.js";
|
|
15
|
+
import { useCreateConversation as _ } from "./mutation/use-create-conversation.js";
|
|
16
|
+
import { useSubConversations as v } from "./query/use-sub-conversations.js";
|
|
17
|
+
import { useCallback as y, useEffect as b } from "react";
|
|
9
18
|
//#region src/hooks/use-handle-plan-click.ts
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
function x(e) {
|
|
20
|
+
let t = s();
|
|
21
|
+
return c({
|
|
22
|
+
mutationKey: o.create,
|
|
23
|
+
mutationFn: (e) => m.createLocalPlanningConversation(e.parentConversationId, e.initialMessage),
|
|
24
|
+
onSuccess: (n, r) => {
|
|
25
|
+
e.onCreated(n.id), h(t, r.parentConversationId), t.invalidateQueries({ queryKey: a.subConversations }), e.onInitialized();
|
|
26
|
+
},
|
|
27
|
+
onError: e.onFailed
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function S(e) {
|
|
31
|
+
let t = n(e.conversationId);
|
|
32
|
+
t.subConversationTaskId && !e.subConversationTaskId && e.setSubConversationTaskId(t.subConversationTaskId);
|
|
33
|
+
let r = e.serverPlanningConversationId ?? f(e.conversationId)?.local_planning_conversation_id ?? null;
|
|
34
|
+
r && r !== e.localPlanningConversationId && e.setLocalPlanningConversationId(r);
|
|
35
|
+
}
|
|
36
|
+
var C = () => {
|
|
37
|
+
let { t: n } = e("openhands"), { backend: a } = d(), { setConversationMode: o, setSubConversationTaskId: s, subConversationTaskId: c, setLocalPlanningConversationId: f, localPlanningConversationId: m } = i(), { data: h } = g(), { mutate: C, isPending: w } = _(), { mutate: T, isPending: E } = x({
|
|
38
|
+
onCreated: f,
|
|
39
|
+
onInitialized: () => {
|
|
40
|
+
u(n(t.PLANNING_AGENTT$PLANNING_AGENT_INITIALIZED));
|
|
41
|
+
},
|
|
42
|
+
onFailed: () => {
|
|
43
|
+
o("code"), l(n(t.CONVERSATION$ERROR_STARTING_CONVERSATION));
|
|
44
|
+
}
|
|
45
|
+
}), D = a.kind !== "cloud", { data: O } = v(D ? h?.sub_conversation_ids : void 0), k = D ? p(O, h?.id) : null;
|
|
46
|
+
b(() => {
|
|
47
|
+
h?.id && S({
|
|
48
|
+
conversationId: h.id,
|
|
49
|
+
serverPlanningConversationId: k,
|
|
50
|
+
subConversationTaskId: c,
|
|
51
|
+
localPlanningConversationId: m,
|
|
52
|
+
setSubConversationTaskId: s,
|
|
53
|
+
setLocalPlanningConversationId: f
|
|
54
|
+
});
|
|
16
55
|
}, [
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
h?.id,
|
|
57
|
+
k,
|
|
58
|
+
m,
|
|
59
|
+
f,
|
|
60
|
+
c,
|
|
61
|
+
s
|
|
62
|
+
]);
|
|
63
|
+
let A = !!(h?.sub_conversation_ids && h.sub_conversation_ids.length > 0 || c), j = D ? !!(m || k) : A;
|
|
64
|
+
return {
|
|
65
|
+
handlePlanClick: y((e, i) => {
|
|
66
|
+
if (e?.preventDefault(), e?.stopPropagation(), o("plan"), a.kind !== "cloud") {
|
|
67
|
+
if (!h?.id || m || k || E) return;
|
|
68
|
+
T({
|
|
69
|
+
parentConversationId: h.id,
|
|
70
|
+
initialMessage: i
|
|
71
|
+
});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
A || !h?.id || C({
|
|
75
|
+
parentConversationId: h.id,
|
|
24
76
|
agentType: "plan",
|
|
25
|
-
entryPoint: "plan_sub_conversation"
|
|
77
|
+
entryPoint: "plan_sub_conversation",
|
|
78
|
+
...i ? { query: i } : {}
|
|
26
79
|
}, { onSuccess: (e) => {
|
|
27
|
-
|
|
80
|
+
u(n(t.PLANNING_AGENTT$PLANNING_AGENT_INITIALIZED)), e.task_id && (s(e.task_id), r(h.id, { subConversationTaskId: e.task_id }));
|
|
28
81
|
} });
|
|
29
82
|
}, [
|
|
30
|
-
|
|
83
|
+
a.kind,
|
|
31
84
|
h,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
85
|
+
C,
|
|
86
|
+
T,
|
|
87
|
+
A,
|
|
88
|
+
E,
|
|
89
|
+
m,
|
|
90
|
+
k,
|
|
91
|
+
o,
|
|
92
|
+
s,
|
|
93
|
+
n
|
|
36
94
|
]),
|
|
37
|
-
|
|
95
|
+
hasPlanner: j,
|
|
96
|
+
isCreatingConversation: w || E
|
|
38
97
|
};
|
|
39
98
|
};
|
|
40
99
|
//#endregion
|
|
41
|
-
export {
|
|
100
|
+
export { C as useHandlePlanClick };
|
|
42
101
|
|
|
43
102
|
//# sourceMappingURL=use-handle-plan-click.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-handle-plan-click.js","names":[],"sources":["../../src/hooks/use-handle-plan-click.ts"],"sourcesContent":["import { useCallback, useEffect } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { useConversationStore } from \"#/stores/conversation-store\";\nimport { useActiveConversation } from \"#/hooks/query/use-active-conversation\";\nimport { useCreateConversation } from \"#/hooks/mutation/use-create-conversation\";\nimport { displaySuccessToast } from \"#/utils/custom-toast-handlers\";\nimport {\n getConversationState,\n setConversationState,\n} from \"#/utils/conversation-local-storage\";\n\n/**\n * Custom hook that encapsulates the logic for handling plan creation.\n * Returns a function that can be called to create a plan conversation and\n * the pending state of the conversation creation.\n *\n * @returns An object containing handlePlanClick function and isCreatingConversation boolean\n */\nexport const useHandlePlanClick = () => {\n const { t } = useTranslation(\"openhands\");\n const {\n setConversationMode,\n setSubConversationTaskId,\n subConversationTaskId,\n } = useConversationStore();\n const { data: conversation } = useActiveConversation();\n const { mutate: createConversation, isPending: isCreatingConversation } =\n useCreateConversation();\n\n // Restore subConversationTaskId from localStorage on conversation load\n // This handles the case where page was refreshed while sub-conversation creation was in progress\n useEffect(() => {\n if (!conversation?.id) return;\n\n const storedState = getConversationState(conversation.id);\n if (storedState.subConversationTaskId && !subConversationTaskId) {\n setSubConversationTaskId(storedState.subConversationTaskId);\n }\n }, [conversation?.id, subConversationTaskId, setSubConversationTaskId]);\n\n const handlePlanClick = useCallback(\n (event?: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => {\n event?.preventDefault();\n event?.stopPropagation();\n\n // Set conversation mode to \"plan\" immediately\n setConversationMode(\"plan\");\n\n // Check if sub_conversation_ids is not empty or if a sub-conversation creation is already in progress\n if (\n (conversation?.sub_conversation_ids &&\n conversation.sub_conversation_ids.length > 0) ||\n !conversation?.id ||\n subConversationTaskId\n ) {\n // Do nothing if any condition is true\n return;\n }\n\n // Create a new sub-conversation if we have a current conversation ID\n createConversation(\n {\n parentConversationId: conversation.id,\n agentType: \"plan\",\n entryPoint: \"plan_sub_conversation\",\n },\n {\n onSuccess: (data) => {\n displaySuccessToast(\n t(I18nKey.PLANNING_AGENTT$PLANNING_AGENT_INITIALIZED),\n );\n // Track the task ID to poll for sub-conversation creation\n if (data.task_id) {\n setSubConversationTaskId(data.task_id);\n // Persist to localStorage so it survives page refresh\n setConversationState(conversation.id, {\n subConversationTaskId: data.task_id,\n });\n }\n },\n },\n );\n },\n [\n conversation,\n createConversation,\n setConversationMode,\n setSubConversationTaskId,\n subConversationTaskId,\n t,\n ],\n );\n\n return { handlePlanClick, isCreatingConversation };\n};\n"],"mappings":";;;;;;;;;AAmBA,IAAa,UAA2B;CACtC,IAAM,EAAE,SAAM,EAAe,WAAW,GAClC,EACJ,wBACA,6BACA,6BACE,EAAqB,GACnB,EAAE,MAAM,MAAiB,EAAsB,GAC/C,EAAE,QAAQ,GAAoB,WAAW,MAC7C,EAAsB;CAkExB,OA9DA,QAAgB;EACd,IAAI,CAAC,GAAc,IAAI;EAEvB,IAAM,IAAc,EAAqB,EAAa,EAAE;EACxD,AAAI,EAAY,yBAAyB,CAAC,KACxC,EAAyB,EAAY,qBAAqB;CAE9D,GAAG;EAAC,GAAc;EAAI;EAAuB;CAAwB,CAAC,GAuD/D;EAAE,iBArDe,GACrB,MAAgE;GAC/D,GAAO,eAAe,GACtB,GAAO,gBAAgB,GAGvB,EAAoB,MAAM,GAIvB,KAAc,wBACb,EAAa,qBAAqB,SAAS,KAC7C,CAAC,GAAc,MACf,MAOF,EACE;IACE,sBAAsB,EAAa;IACnC,WAAW;IACX,YAAY;GACd,GACA,EACE,YAAY,MAAS;IAKnB,AAJA,EACE,EAAE,EAAQ,0CAA0C,CACtD,GAEI,EAAK,YACP,EAAyB,EAAK,OAAO,GAErC,EAAqB,EAAa,IAAI,EACpC,uBAAuB,EAAK,QAC9B,CAAC;GAEL,EACF,CACF;EACF,GACA;GACE;GACA;GACA;GACA;GACA;GACA;EACF,CAGO;EAAiB;CAAuB;AACnD"}
|
|
1
|
+
{"version":3,"file":"use-handle-plan-click.js","names":[],"sources":["../../src/hooks/use-handle-plan-click.ts"],"sourcesContent":["import { useCallback, useEffect, type MouseEvent } from \"react\";\nimport { useMutation, useQueryClient } from \"@tanstack/react-query\";\nimport { useTranslation } from \"react-i18next\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport { useConversationStore } from \"#/stores/conversation-store\";\nimport { useActiveConversation } from \"#/hooks/query/use-active-conversation\";\nimport { useCreateConversation } from \"#/hooks/mutation/use-create-conversation\";\nimport {\n displayErrorToast,\n displaySuccessToast,\n} from \"#/utils/custom-toast-handlers\";\nimport {\n getConversationState,\n setConversationState,\n} from \"#/utils/conversation-local-storage\";\nimport { useActiveBackend } from \"#/contexts/active-backend-context\";\nimport AgentServerConversationService from \"#/api/conversation-service/agent-server-conversation-service.api\";\nimport { getStoredConversationMetadata } from \"#/api/conversation-metadata-store\";\nimport {\n CONVERSATION_QUERY_KEYS,\n LOCAL_PLANNER_MUTATION_KEYS,\n} from \"#/hooks/query/query-keys\";\nimport { useSubConversations } from \"#/hooks/query/use-sub-conversations\";\nimport { findPlannerConversationId } from \"#/utils/plan-file\";\nimport { invalidateConversationQueries } from \"#/hooks/mutation/conversation-mutation-utils\";\n\nfunction useCreateLocalPlanningConversationMutation(options: {\n onCreated: (planningConversationId: string) => void;\n onInitialized: () => void;\n onFailed: () => void;\n}) {\n const queryClient = useQueryClient();\n\n return useMutation({\n mutationKey: LOCAL_PLANNER_MUTATION_KEYS.create,\n mutationFn: (variables: {\n parentConversationId: string;\n initialMessage?: string;\n }) =>\n AgentServerConversationService.createLocalPlanningConversation(\n variables.parentConversationId,\n variables.initialMessage,\n ),\n onSuccess: (planningConversation, variables) => {\n options.onCreated(planningConversation.id);\n invalidateConversationQueries(\n queryClient,\n variables.parentConversationId,\n );\n queryClient.invalidateQueries({\n queryKey: CONVERSATION_QUERY_KEYS.subConversations,\n });\n options.onInitialized();\n },\n onError: options.onFailed,\n });\n}\n\nfunction restorePlanningConversationIds(options: {\n conversationId: string;\n serverPlanningConversationId: string | null;\n subConversationTaskId: string | null;\n localPlanningConversationId: string | null;\n setSubConversationTaskId: (taskId: string | null) => void;\n setLocalPlanningConversationId: (conversationId: string | null) => void;\n}) {\n const storedState = getConversationState(options.conversationId);\n if (storedState.subConversationTaskId && !options.subConversationTaskId) {\n options.setSubConversationTaskId(storedState.subConversationTaskId);\n }\n\n // Server first: `sub_conversation_ids` is derived by the agent-server from\n // the planner's `parent_conversation_id`, so it survives cleared site data\n // and follows the user to another browser. The localStorage hint is only the\n // fallback for agent-servers older than 1.37.1, which drop the parent link.\n const restoredId =\n options.serverPlanningConversationId ??\n getStoredConversationMetadata(options.conversationId)\n ?.local_planning_conversation_id ??\n null;\n\n if (restoredId && restoredId !== options.localPlanningConversationId) {\n options.setLocalPlanningConversationId(restoredId);\n }\n}\n\n/**\n * Custom hook that encapsulates the logic for handling plan creation.\n * Returns a function that can be called to create a plan conversation and\n * the pending state of the conversation creation.\n *\n * @returns An object containing handlePlanClick function and isCreatingConversation boolean\n */\nexport const useHandlePlanClick = () => {\n const { t } = useTranslation(\"openhands\");\n const { backend } = useActiveBackend();\n const {\n setConversationMode,\n setSubConversationTaskId,\n subConversationTaskId,\n setLocalPlanningConversationId,\n localPlanningConversationId,\n } = useConversationStore();\n const { data: conversation } = useActiveConversation();\n const { mutate: createConversation, isPending: isCreatingCloudConversation } =\n useCreateConversation();\n const {\n mutate: createLocalPlanningConversation,\n isPending: isCreatingLocalPlanningConversation,\n } = useCreateLocalPlanningConversationMutation({\n onCreated: setLocalPlanningConversationId,\n onInitialized: () => {\n displaySuccessToast(\n t(I18nKey.PLANNING_AGENTT$PLANNING_AGENT_INITIALIZED),\n );\n },\n // handlePlanClick sets conversationMode(\"plan\") before this mutation\n // starts. On failure, back out of that mode instead of stranding the\n // user in plan mode with no planner to talk to.\n onFailed: () => {\n setConversationMode(\"code\");\n displayErrorToast(t(I18nKey.CONVERSATION$ERROR_STARTING_CONVERSATION));\n },\n });\n\n // On local backends the agent-server reports the planner helper back on the\n // parent's `sub_conversation_ids` (it was created with\n // `parent_conversation_id`), so that is the authoritative handle. Cloud\n // sub-conversations are driven by their own task/socket plumbing.\n const isLocalBackend = backend.kind !== \"cloud\";\n const { data: rawSubConversations } = useSubConversations(\n isLocalBackend ? conversation?.sub_conversation_ids : undefined,\n );\n\n const serverPlanningConversationId = isLocalBackend\n ? findPlannerConversationId(rawSubConversations, conversation?.id)\n : null;\n\n // Restore planning conversation ids on conversation load. This handles page\n // refreshes while cloud or local planning conversation creation is in\n // progress, and recovers the local planner after browser storage is lost.\n useEffect(() => {\n if (!conversation?.id) return;\n\n restorePlanningConversationIds({\n conversationId: conversation.id,\n serverPlanningConversationId,\n subConversationTaskId,\n localPlanningConversationId,\n setSubConversationTaskId,\n setLocalPlanningConversationId,\n });\n }, [\n conversation?.id,\n serverPlanningConversationId,\n localPlanningConversationId,\n setLocalPlanningConversationId,\n subConversationTaskId,\n setSubConversationTaskId,\n ]);\n\n const hasCloudPlanner = !!(\n (conversation?.sub_conversation_ids &&\n conversation.sub_conversation_ids.length > 0) ||\n subConversationTaskId\n );\n // Whether a planner helper already exists for this conversation — callers\n // (e.g. the `/plan <task>` interceptor) use this to decide whether they can\n // send a message to the planner immediately, or must wait for creation.\n const hasPlanner = isLocalBackend\n ? !!(localPlanningConversationId || serverPlanningConversationId)\n : hasCloudPlanner;\n\n const handlePlanClick = useCallback(\n (\n event?: MouseEvent<HTMLButtonElement> | KeyboardEvent,\n initialMessage?: string,\n ) => {\n event?.preventDefault();\n event?.stopPropagation();\n\n setConversationMode(\"plan\");\n\n if (backend.kind !== \"cloud\") {\n // Guard on the server-reported helper, the store, and the mutation's\n // own in-flight state — the last one stops two rapid invocations\n // (e.g. a double-click) from both passing before either updates and\n // creating two planners for the same parent.\n if (\n !conversation?.id ||\n localPlanningConversationId ||\n serverPlanningConversationId ||\n isCreatingLocalPlanningConversation\n ) {\n return;\n }\n createLocalPlanningConversation({\n parentConversationId: conversation.id,\n initialMessage,\n });\n return;\n }\n\n if (hasCloudPlanner || !conversation?.id) {\n return;\n }\n\n createConversation(\n {\n parentConversationId: conversation.id,\n agentType: \"plan\",\n entryPoint: \"plan_sub_conversation\",\n ...(initialMessage ? { query: initialMessage } : {}),\n },\n {\n onSuccess: (data) => {\n displaySuccessToast(\n t(I18nKey.PLANNING_AGENTT$PLANNING_AGENT_INITIALIZED),\n );\n if (data.task_id) {\n setSubConversationTaskId(data.task_id);\n setConversationState(conversation.id, {\n subConversationTaskId: data.task_id,\n });\n }\n },\n },\n );\n },\n [\n backend.kind,\n conversation,\n createConversation,\n createLocalPlanningConversation,\n hasCloudPlanner,\n isCreatingLocalPlanningConversation,\n localPlanningConversationId,\n serverPlanningConversationId,\n setConversationMode,\n setSubConversationTaskId,\n t,\n ],\n );\n\n return {\n handlePlanClick,\n hasPlanner,\n isCreatingConversation:\n isCreatingCloudConversation || isCreatingLocalPlanningConversation,\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AA0BA,SAAS,EAA2C,GAIjD;CACD,IAAM,IAAc,EAAe;CAEnC,OAAO,EAAY;EACjB,aAAa,EAA4B;EACzC,aAAa,MAIX,EAA+B,gCAC7B,EAAU,sBACV,EAAU,cACZ;EACF,YAAY,GAAsB,MAAc;GAS9C,AARA,EAAQ,UAAU,EAAqB,EAAE,GACzC,EACE,GACA,EAAU,oBACZ,GACA,EAAY,kBAAkB,EAC5B,UAAU,EAAwB,iBACpC,CAAC,GACD,EAAQ,cAAc;EACxB;EACA,SAAS,EAAQ;CACnB,CAAC;AACH;AAEA,SAAS,EAA+B,GAOrC;CACD,IAAM,IAAc,EAAqB,EAAQ,cAAc;CAC/D,AAAI,EAAY,yBAAyB,CAAC,EAAQ,yBAChD,EAAQ,yBAAyB,EAAY,qBAAqB;CAOpE,IAAM,IACJ,EAAQ,gCACR,EAA8B,EAAQ,cAAc,GAChD,kCACJ;CAEF,AAAI,KAAc,MAAe,EAAQ,+BACvC,EAAQ,+BAA+B,CAAU;AAErD;AASA,IAAa,UAA2B;CACtC,IAAM,EAAE,SAAM,EAAe,WAAW,GAClC,EAAE,eAAY,EAAiB,GAC/B,EACJ,wBACA,6BACA,0BACA,mCACA,mCACE,EAAqB,GACnB,EAAE,MAAM,MAAiB,EAAsB,GAC/C,EAAE,QAAQ,GAAoB,WAAW,MAC7C,EAAsB,GAClB,EACJ,QAAQ,GACR,WAAW,MACT,EAA2C;EAC7C,WAAW;EACX,qBAAqB;GACnB,EACE,EAAE,EAAQ,0CAA0C,CACtD;EACF;EAIA,gBAAgB;GAEd,AADA,EAAoB,MAAM,GAC1B,EAAkB,EAAE,EAAQ,wCAAwC,CAAC;EACvE;CACF,CAAC,GAMK,IAAiB,EAAQ,SAAS,SAClC,EAAE,MAAM,MAAwB,EACpC,IAAiB,GAAc,uBAAuB,KAAA,CACxD,GAEM,IAA+B,IACjC,EAA0B,GAAqB,GAAc,EAAE,IAC/D;CAKJ,QAAgB;EACT,GAAc,MAEnB,EAA+B;GAC7B,gBAAgB,EAAa;GAC7B;GACA;GACA;GACA;GACA;EACF,CAAC;CACH,GAAG;EACD,GAAc;EACd;EACA;EACA;EACA;EACA;CACF,CAAC;CAED,IAAM,IAAkB,CAAC,EACtB,GAAc,wBACb,EAAa,qBAAqB,SAAS,KAC7C,IAKI,IAAa,IACf,CAAC,EAAE,KAA+B,KAClC;CAyEJ,OAAO;EACL,iBAxEsB,GAEpB,GACA,MACG;GAMH,IALA,GAAO,eAAe,GACtB,GAAO,gBAAgB,GAEvB,EAAoB,MAAM,GAEtB,EAAQ,SAAS,SAAS;IAK5B,IACE,CAAC,GAAc,MACf,KACA,KACA,GAEA;IAEF,EAAgC;KAC9B,sBAAsB,EAAa;KACnC;IACF,CAAC;IACD;GACF;GAEI,KAAmB,CAAC,GAAc,MAItC,EACE;IACE,sBAAsB,EAAa;IACnC,WAAW;IACX,YAAY;IACZ,GAAI,IAAiB,EAAE,OAAO,EAAe,IAAI,CAAC;GACpD,GACA,EACE,YAAY,MAAS;IAInB,AAHA,EACE,EAAE,EAAQ,0CAA0C,CACtD,GACI,EAAK,YACP,EAAyB,EAAK,OAAO,GACrC,EAAqB,EAAa,IAAI,EACpC,uBAAuB,EAAK,QAC9B,CAAC;GAEL,EACF,CACF;EACF,GACA;GACE,EAAQ;GACR;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;EACF,CAIA;EACA;EACA,wBACE,KAA+B;CACnC;AACF"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs"),require("../context/navigation-context.cjs"),require("../utils/custom-toast-handlers.cjs")
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs"),require("../context/navigation-context.cjs"),require("../utils/custom-toast-handlers.cjs");const e=require("../types/automation.cjs");require("./use-automation-permissions.cjs"),require("./query/use-automations.cjs"),require("../fixtures/home-automations-demo.cjs"),require("react");function t(t){return t?.status===e.AutomationRunStatus.PENDING||t?.status===e.AutomationRunStatus.RUNNING}exports.isInFlightAutomationRun=t;
|
|
2
2
|
//# sourceMappingURL=use-home-automation-actions.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-home-automation-actions.cjs","names":[],"sources":["../../src/hooks/use-home-automation-actions.ts"],"sourcesContent":["import { useCallback, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport {
|
|
1
|
+
{"version":3,"file":"use-home-automation-actions.cjs","names":[],"sources":["../../src/hooks/use-home-automation-actions.ts"],"sourcesContent":["import { useCallback, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigation } from \"#/context/navigation-context\";\nimport {\n useCancelAutomationRun,\n useDispatchAutomation,\n useToggleAutomation,\n} from \"#/hooks/query/use-automations\";\nimport {\n useAutomationPermissions,\n useIsAutomationOwner,\n} from \"#/hooks/use-automation-permissions\";\nimport { isHomeAutomationsDemoEnabled } from \"#/fixtures/home-automations-demo\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport {\n AutomationRunStatus,\n type Automation,\n type AutomationRun,\n} from \"#/types/automation\";\nimport { getApiErrorMessage } from \"#/utils/api-error-message\";\nimport {\n displayErrorToast,\n displaySuccessToast,\n} from \"#/utils/custom-toast-handlers\";\n\nexport function isInFlightAutomationRun(\n run: AutomationRun | null | undefined,\n): boolean {\n return (\n run?.status === AutomationRunStatus.PENDING ||\n run?.status === AutomationRunStatus.RUNNING\n );\n}\n\n/**\n * Shared home-surface actions for pinned cards and activity rows:\n * run now, view, edit, turn off (with confirm), cancel in-flight.\n */\nexport function useHomeAutomationActions(\n automation: Automation,\n latestRun: AutomationRun | null,\n) {\n const { t } = useTranslation(\"openhands\");\n const { navigate } = useNavigation();\n const { canManage: hasManagePermission } = useAutomationPermissions();\n const isOwner = useIsAutomationOwner(automation);\n // Write actions on a specific automation are allowed when the user has\n // manage permission OR is the automation's creator (creator escape hatch).\n const canManage = hasManagePermission || isOwner;\n const isDemo = isHomeAutomationsDemoEnabled();\n\n const dispatchMutation = useDispatchAutomation();\n const toggleMutation = useToggleAutomation();\n const cancelMutation = useCancelAutomationRun();\n\n const [editOpen, setEditOpen] = useState(false);\n const [turnOffConfirmOpen, setTurnOffConfirmOpen] = useState(false);\n\n const isRunPending =\n dispatchMutation.isPending && dispatchMutation.variables === automation.id;\n const isCancelPending =\n cancelMutation.isPending &&\n cancelMutation.variables?.runId === latestRun?.id;\n const canCancel = canManage && isInFlightAutomationRun(latestRun);\n\n const runNow = useCallback(() => {\n if (isDemo) {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$RUN_NOW_SUCCESS));\n return;\n }\n dispatchMutation.mutate(automation.id, {\n onSuccess: () => {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$RUN_NOW_SUCCESS));\n },\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$RUN_NOW_ERROR)),\n );\n },\n });\n }, [automation.id, dispatchMutation, isDemo, t]);\n\n const viewDetails = useCallback(() => {\n navigate?.(`/automations/${automation.id}`);\n }, [automation.id, navigate]);\n\n const openEdit = useCallback(() => {\n setEditOpen(true);\n }, []);\n\n const requestTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(true);\n }, []);\n\n const confirmTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(false);\n if (isDemo) return;\n toggleMutation.mutate(\n { id: automation.id, enabled: false },\n {\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$TURN_OFF_ERROR)),\n );\n },\n },\n );\n }, [automation.id, isDemo, t, toggleMutation]);\n\n const cancelTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(false);\n }, []);\n\n const cancelRun = useCallback(() => {\n if (!latestRun || !isInFlightAutomationRun(latestRun)) return;\n if (isDemo) {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$CANCEL_RUN_SUCCESS));\n return;\n }\n cancelMutation.mutate(\n { automationId: automation.id, runId: latestRun.id },\n {\n onSuccess: () => {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$CANCEL_RUN_SUCCESS));\n },\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$CANCEL_RUN_ERROR)),\n );\n },\n },\n );\n }, [automation.id, cancelMutation, isDemo, latestRun, t]);\n\n return {\n canManage,\n isRunPending,\n isCancelPending,\n canCancel,\n editOpen,\n setEditOpen,\n turnOffConfirmOpen,\n runNow,\n viewDetails,\n openEdit,\n requestTurnOff,\n confirmTurnOff,\n cancelTurnOff,\n cancelRun,\n };\n}\n"],"mappings":"wUAyBA,SAAgB,EACd,EACS,CACT,OACE,GAAK,SAAW,EAAA,oBAAoB,SACpC,GAAK,SAAW,EAAA,oBAAoB,OAExC"}
|
|
@@ -2,11 +2,10 @@ import { type Automation, type AutomationRun } from "#/types/automation";
|
|
|
2
2
|
export declare function isInFlightAutomationRun(run: AutomationRun | null | undefined): boolean;
|
|
3
3
|
/**
|
|
4
4
|
* Shared home-surface actions for pinned cards and activity rows:
|
|
5
|
-
* run now, view, edit
|
|
5
|
+
* run now, view, edit, turn off (with confirm), cancel in-flight.
|
|
6
6
|
*/
|
|
7
7
|
export declare function useHomeAutomationActions(automation: Automation, latestRun: AutomationRun | null): {
|
|
8
8
|
canManage: boolean;
|
|
9
|
-
canEdit: boolean;
|
|
10
9
|
isRunPending: boolean;
|
|
11
10
|
isCancelPending: boolean;
|
|
12
11
|
canCancel: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../context/navigation-context.js";
|
|
2
2
|
import "../utils/custom-toast-handlers.js";
|
|
3
|
-
import "../contexts/active-backend-context.js";
|
|
4
3
|
import { AutomationRunStatus as e } from "../types/automation.js";
|
|
4
|
+
import "./use-automation-permissions.js";
|
|
5
5
|
import "./query/use-automations.js";
|
|
6
6
|
import "../fixtures/home-automations-demo.js";
|
|
7
7
|
import "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-home-automation-actions.js","names":[],"sources":["../../src/hooks/use-home-automation-actions.ts"],"sourcesContent":["import { useCallback, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport {
|
|
1
|
+
{"version":3,"file":"use-home-automation-actions.js","names":[],"sources":["../../src/hooks/use-home-automation-actions.ts"],"sourcesContent":["import { useCallback, useState } from \"react\";\nimport { useTranslation } from \"react-i18next\";\nimport { useNavigation } from \"#/context/navigation-context\";\nimport {\n useCancelAutomationRun,\n useDispatchAutomation,\n useToggleAutomation,\n} from \"#/hooks/query/use-automations\";\nimport {\n useAutomationPermissions,\n useIsAutomationOwner,\n} from \"#/hooks/use-automation-permissions\";\nimport { isHomeAutomationsDemoEnabled } from \"#/fixtures/home-automations-demo\";\nimport { I18nKey } from \"#/i18n/declaration\";\nimport {\n AutomationRunStatus,\n type Automation,\n type AutomationRun,\n} from \"#/types/automation\";\nimport { getApiErrorMessage } from \"#/utils/api-error-message\";\nimport {\n displayErrorToast,\n displaySuccessToast,\n} from \"#/utils/custom-toast-handlers\";\n\nexport function isInFlightAutomationRun(\n run: AutomationRun | null | undefined,\n): boolean {\n return (\n run?.status === AutomationRunStatus.PENDING ||\n run?.status === AutomationRunStatus.RUNNING\n );\n}\n\n/**\n * Shared home-surface actions for pinned cards and activity rows:\n * run now, view, edit, turn off (with confirm), cancel in-flight.\n */\nexport function useHomeAutomationActions(\n automation: Automation,\n latestRun: AutomationRun | null,\n) {\n const { t } = useTranslation(\"openhands\");\n const { navigate } = useNavigation();\n const { canManage: hasManagePermission } = useAutomationPermissions();\n const isOwner = useIsAutomationOwner(automation);\n // Write actions on a specific automation are allowed when the user has\n // manage permission OR is the automation's creator (creator escape hatch).\n const canManage = hasManagePermission || isOwner;\n const isDemo = isHomeAutomationsDemoEnabled();\n\n const dispatchMutation = useDispatchAutomation();\n const toggleMutation = useToggleAutomation();\n const cancelMutation = useCancelAutomationRun();\n\n const [editOpen, setEditOpen] = useState(false);\n const [turnOffConfirmOpen, setTurnOffConfirmOpen] = useState(false);\n\n const isRunPending =\n dispatchMutation.isPending && dispatchMutation.variables === automation.id;\n const isCancelPending =\n cancelMutation.isPending &&\n cancelMutation.variables?.runId === latestRun?.id;\n const canCancel = canManage && isInFlightAutomationRun(latestRun);\n\n const runNow = useCallback(() => {\n if (isDemo) {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$RUN_NOW_SUCCESS));\n return;\n }\n dispatchMutation.mutate(automation.id, {\n onSuccess: () => {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$RUN_NOW_SUCCESS));\n },\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$RUN_NOW_ERROR)),\n );\n },\n });\n }, [automation.id, dispatchMutation, isDemo, t]);\n\n const viewDetails = useCallback(() => {\n navigate?.(`/automations/${automation.id}`);\n }, [automation.id, navigate]);\n\n const openEdit = useCallback(() => {\n setEditOpen(true);\n }, []);\n\n const requestTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(true);\n }, []);\n\n const confirmTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(false);\n if (isDemo) return;\n toggleMutation.mutate(\n { id: automation.id, enabled: false },\n {\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$TURN_OFF_ERROR)),\n );\n },\n },\n );\n }, [automation.id, isDemo, t, toggleMutation]);\n\n const cancelTurnOff = useCallback(() => {\n setTurnOffConfirmOpen(false);\n }, []);\n\n const cancelRun = useCallback(() => {\n if (!latestRun || !isInFlightAutomationRun(latestRun)) return;\n if (isDemo) {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$CANCEL_RUN_SUCCESS));\n return;\n }\n cancelMutation.mutate(\n { automationId: automation.id, runId: latestRun.id },\n {\n onSuccess: () => {\n displaySuccessToast(t(I18nKey.AUTOMATIONS$CANCEL_RUN_SUCCESS));\n },\n onError: (error) => {\n displayErrorToast(\n getApiErrorMessage(error, t(I18nKey.AUTOMATIONS$CANCEL_RUN_ERROR)),\n );\n },\n },\n );\n }, [automation.id, cancelMutation, isDemo, latestRun, t]);\n\n return {\n canManage,\n isRunPending,\n isCancelPending,\n canCancel,\n editOpen,\n setEditOpen,\n turnOffConfirmOpen,\n runNow,\n viewDetails,\n openEdit,\n requestTurnOff,\n confirmTurnOff,\n cancelTurnOff,\n cancelRun,\n };\n}\n"],"mappings":";;;;;;;;AAyBA,SAAgB,EACd,GACS;CACT,OACE,GAAK,WAAW,EAAoB,WACpC,GAAK,WAAW,EAAoB;AAExC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");const e=require("./query/query-keys.cjs"),t=require("../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),n=require("../contexts/active-backend-context.cjs"),r=require("../api/profiles-service/profiles-service.api.cjs"),i=require("../constants/llm-subscription.cjs"),a=require("./query/use-
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");const e=require("./query/query-keys.cjs"),t=require("../node_modules/@tanstack/react-query/build/modern/useQuery.cjs"),n=require("../contexts/active-backend-context.cjs"),r=require("../api/profiles-service/profiles-service.api.cjs"),i=require("../constants/llm-subscription.cjs"),a=require("./query/use-settings.cjs"),o=require("./query/use-llm-profiles.cjs");require("../api/agent-profiles-service/agent-profiles-service.api.cjs");const s=require("./use-active-agent-profile.cjs"),c=require("./query/use-config.cjs"),l=require("../utils/settings-utils.cjs");function u(){let{data:u,isLoading:d,isError:f}=a.useSettings(),{data:p,isLoading:m,isError:h}=c.useConfig(),{data:g,isLoading:_,isError:v}=o.useLlmProfiles(),{backend:y,orgId:b}=n.useActiveBackend(),x=y.kind===`local`,{activeProfile:S,isLoading:C}=s.useActiveAgentProfile(),w=(S?.agent_kind??u?.agent_settings?.agent_kind)===`acp`,T=u?.llm_api_key_set===!0,E=S?.agent_kind===`openhands`&&!(x&&S.name==="default")?S.llm_profile_ref:void 0,D=(E?g?.profiles.find(e=>e.name===E):void 0)??g?.profiles.find(e=>e.name===g?.active_profile),O=D?.api_key_set===!0,k=x&&!!D&&!O,{data:A,isLoading:j,isError:M}=t.useQuery({queryKey:[...e.LLM_PROFILES_QUERY_KEYS.all,y.id,b,`detail`,D?.name],queryFn:()=>r.default.getProfile(D.name),...e.CONFIG_CACHE_OPTIONS,enabled:k,meta:{disableToast:!0}}),N=k&&i.isSubscriptionLlmConfig(A?.config),P=l.isSettingsPageHidden(`/settings/llm`,p?.feature_flags);return{isConfigured:w||P||(x?O||N:T),isLoading:d||f&&!u||m||h&&!p||_||v&&!g||C||k&&(j||M&&!A)}}exports.useLlmConfigured=u;
|
|
2
2
|
//# sourceMappingURL=use-llm-configured.cjs.map
|
|
@@ -3,15 +3,15 @@ import { useQuery as n } from "../node_modules/@tanstack/react-query/build/moder
|
|
|
3
3
|
import { useActiveBackend as r } from "../contexts/active-backend-context.js";
|
|
4
4
|
import i from "../api/profiles-service/profiles-service.api.js";
|
|
5
5
|
import { isSubscriptionLlmConfig as a } from "../constants/llm-subscription.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { useSettings as o } from "./query/use-settings.js";
|
|
7
|
+
import { useLlmProfiles as s } from "./query/use-llm-profiles.js";
|
|
8
8
|
import "../api/agent-profiles-service/agent-profiles-service.api.js";
|
|
9
9
|
import { useActiveAgentProfile as c } from "./use-active-agent-profile.js";
|
|
10
10
|
import { useConfig as l } from "./query/use-config.js";
|
|
11
11
|
import { isSettingsPageHidden as u } from "../utils/settings-utils.js";
|
|
12
12
|
//#region src/hooks/use-llm-configured.ts
|
|
13
13
|
function d() {
|
|
14
|
-
let { data: d, isLoading: f, isError: p } =
|
|
14
|
+
let { data: d, isLoading: f, isError: p } = o(), { data: m, isLoading: h, isError: g } = l(), { data: _, isLoading: v, isError: y } = s(), { backend: b, orgId: x } = r(), S = b.kind === "local", { activeProfile: C, isLoading: w } = c(), T = (C?.agent_kind ?? d?.agent_settings?.agent_kind) === "acp", E = d?.llm_api_key_set === !0, D = C?.agent_kind === "openhands" && !(S && C.name === "default") ? C.llm_profile_ref : void 0, O = (D ? _?.profiles.find((e) => e.name === D) : void 0) ?? _?.profiles.find((e) => e.name === _?.active_profile), k = O?.api_key_set === !0, A = S && !!O && !k, { data: j, isLoading: M, isError: N } = n({
|
|
15
15
|
queryKey: [
|
|
16
16
|
...t.all,
|
|
17
17
|
b.id,
|
|
@@ -15,4 +15,4 @@ import type { SetupEntry, SetupFormValues } from "#/manifests/types";
|
|
|
15
15
|
* and a bad configuration. Only a deployment without the endpoint is an
|
|
16
16
|
* expected failure though, so any other one is reported.
|
|
17
17
|
*/
|
|
18
|
-
export declare function useSetupPreflight(entry: SetupEntry): (formValues: SetupFormValues) => Promise<MappedManifestErrors | null>;
|
|
18
|
+
export declare function useSetupPreflight(entry: SetupEntry): (formValues: SetupFormValues, selectedTrigger?: string | null, selectedAction?: string | null) => Promise<MappedManifestErrors | null>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");const e=require("../contexts/conversation-websocket-context.cjs");function t(){let t=e.useConversationWebSocket();return t?t.connectionState:`CLOSED`}exports.useUnifiedWebSocketStatus=t;
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");const e=require("../contexts/conversation-websocket-context.cjs");function t(){let t=e.useConversationWebSocket();return t?t.connectionState:`CLOSED`}function n(){let t=e.useConversationWebSocket();return t?t.mainConnectionState:`CLOSED`}exports.useMainWebSocketStatus=n,exports.useUnifiedWebSocketStatus=t;
|
|
2
2
|
//# sourceMappingURL=use-unified-websocket-status.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-unified-websocket-status.cjs","names":[],"sources":["../../src/hooks/use-unified-websocket-status.ts"],"sourcesContent":["import {\n useConversationWebSocket,\n WebSocketConnectionState,\n} from \"#/contexts/conversation-websocket-context\";\n\n/**\n * Returns the current conversation WebSocket status.\n */\nexport function useUnifiedWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext ? conversationContext.connectionState : \"CLOSED\";\n}\n"],"mappings":"+GAQA,SAAgB,GAAsD,CACpE,IAAM,EAAsB,EAAA,yBAAyB,EACrD,OAAO,EAAsB,EAAoB,gBAAkB,QACrE"}
|
|
1
|
+
{"version":3,"file":"use-unified-websocket-status.cjs","names":[],"sources":["../../src/hooks/use-unified-websocket-status.ts"],"sourcesContent":["import {\n useConversationWebSocket,\n WebSocketConnectionState,\n} from \"#/contexts/conversation-websocket-context\";\n\n/**\n * Returns the current conversation WebSocket status.\n */\nexport function useUnifiedWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext ? conversationContext.connectionState : \"CLOSED\";\n}\n\n/**\n * The main connection's own status, unmerged with the planning connection.\n * Use for actions that only address the main conversation (e.g. `/code`) —\n * `useUnifiedWebSocketStatus` can report non-OPEN purely from a momentary\n * planning reconnect.\n */\nexport function useMainWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext\n ? conversationContext.mainConnectionState\n : \"CLOSED\";\n}\n"],"mappings":"+GAQA,SAAgB,GAAsD,CACpE,IAAM,EAAsB,EAAA,yBAAyB,EACrD,OAAO,EAAsB,EAAoB,gBAAkB,QACrE,CAQA,SAAgB,GAAmD,CACjE,IAAM,EAAsB,EAAA,yBAAyB,EACrD,OAAO,EACH,EAAoB,oBACpB,QACN"}
|
|
@@ -3,3 +3,10 @@ import { WebSocketConnectionState } from "#/contexts/conversation-websocket-cont
|
|
|
3
3
|
* Returns the current conversation WebSocket status.
|
|
4
4
|
*/
|
|
5
5
|
export declare function useUnifiedWebSocketStatus(): WebSocketConnectionState;
|
|
6
|
+
/**
|
|
7
|
+
* The main connection's own status, unmerged with the planning connection.
|
|
8
|
+
* Use for actions that only address the main conversation (e.g. `/code`) —
|
|
9
|
+
* `useUnifiedWebSocketStatus` can report non-OPEN purely from a momentary
|
|
10
|
+
* planning reconnect.
|
|
11
|
+
*/
|
|
12
|
+
export declare function useMainWebSocketStatus(): WebSocketConnectionState;
|
|
@@ -4,7 +4,11 @@ function t() {
|
|
|
4
4
|
let t = e();
|
|
5
5
|
return t ? t.connectionState : "CLOSED";
|
|
6
6
|
}
|
|
7
|
+
function n() {
|
|
8
|
+
let t = e();
|
|
9
|
+
return t ? t.mainConnectionState : "CLOSED";
|
|
10
|
+
}
|
|
7
11
|
//#endregion
|
|
8
|
-
export { t as useUnifiedWebSocketStatus };
|
|
12
|
+
export { n as useMainWebSocketStatus, t as useUnifiedWebSocketStatus };
|
|
9
13
|
|
|
10
14
|
//# sourceMappingURL=use-unified-websocket-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-unified-websocket-status.js","names":[],"sources":["../../src/hooks/use-unified-websocket-status.ts"],"sourcesContent":["import {\n useConversationWebSocket,\n WebSocketConnectionState,\n} from \"#/contexts/conversation-websocket-context\";\n\n/**\n * Returns the current conversation WebSocket status.\n */\nexport function useUnifiedWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext ? conversationContext.connectionState : \"CLOSED\";\n}\n"],"mappings":";;AAQA,SAAgB,IAAsD;CACpE,IAAM,IAAsB,EAAyB;CACrD,OAAO,IAAsB,EAAoB,kBAAkB;AACrE"}
|
|
1
|
+
{"version":3,"file":"use-unified-websocket-status.js","names":[],"sources":["../../src/hooks/use-unified-websocket-status.ts"],"sourcesContent":["import {\n useConversationWebSocket,\n WebSocketConnectionState,\n} from \"#/contexts/conversation-websocket-context\";\n\n/**\n * Returns the current conversation WebSocket status.\n */\nexport function useUnifiedWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext ? conversationContext.connectionState : \"CLOSED\";\n}\n\n/**\n * The main connection's own status, unmerged with the planning connection.\n * Use for actions that only address the main conversation (e.g. `/code`) —\n * `useUnifiedWebSocketStatus` can report non-OPEN purely from a momentary\n * planning reconnect.\n */\nexport function useMainWebSocketStatus(): WebSocketConnectionState {\n const conversationContext = useConversationWebSocket();\n return conversationContext\n ? conversationContext.mainConnectionState\n : \"CLOSED\";\n}\n"],"mappings":";;AAQA,SAAgB,IAAsD;CACpE,IAAM,IAAsB,EAAyB;CACrD,OAAO,IAAsB,EAAoB,kBAAkB;AACrE;AAQA,SAAgB,IAAmD;CACjE,IAAM,IAAsB,EAAyB;CACrD,OAAO,IACH,EAAoB,sBACpB;AACN"}
|