@openhands/agent-canvas 1.5.0 → 1.5.1
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-BQwoUBpe.js → acp-providers-DerAmTyY.js} +1 -1
- package/build/assets/{active-backend-context-BCXRv5pm.js → active-backend-context-B8rMv0X9.js} +1 -1
- package/build/assets/{add-backend-modal-BKHzq5no.js → add-backend-modal-CxC7BNEc.js} +1 -1
- package/build/assets/{agent-profiles-settings-CEp5CIz8.js → agent-profiles-settings-BJb8YXR1.js} +1 -1
- package/build/assets/{agent-server-compatibility-D6DSanlx.js → agent-server-compatibility-BWN-EIQn.js} +1 -1
- package/build/assets/{agent-server-conversation-service.api-cylugfDz.js → agent-server-conversation-service.api-DSPIkMwJ.js} +4 -4
- package/build/assets/{agent-settings-C-tann3x.js → agent-settings-CgCnqaAA.js} +1 -1
- package/build/assets/agent-settings-DDkSavD7.js +1 -0
- package/build/assets/{alert-banner-Dd4woGbm.js → alert-banner-Dh51WURQ.js} +1 -1
- package/build/assets/{api-key-entry-screen-Bll_CkuQ.js → api-key-entry-screen-iZc7n8AI.js} +1 -1
- package/build/assets/app-settings-B5zyipxJ.js +1 -0
- package/build/assets/{automation-detail-Z9dN2f5l.js → automation-detail-CZsu2CoM.js} +1 -1
- package/build/assets/{automation-export-D5uL0Tf8.js → automation-export-BwRX6H32.js} +1 -1
- package/build/assets/{automations-list-BMOWcqzZ.js → automations-list-lHAVzMoA.js} +1 -1
- package/build/assets/{back-nav-button-ZUDTMOTB.js → back-nav-button-DVknCcSP.js} +1 -1
- package/build/assets/backend-form-modal-RGcu909r.js +1 -0
- package/build/assets/{backend-synced-settings-badge-Db_REKVw.js → backend-synced-settings-badge-BSfN0AZA.js} +1 -1
- package/build/assets/{base-modal-Cb0C6m0Q.js → base-modal-CIF_785P.js} +1 -1
- package/build/assets/{brand-button-2Tp3aXk1.js → brand-button-B1izLAdR.js} +1 -1
- package/build/assets/{browser-QYLVr1kS.js → browser-DKaeq_sT.js} +2 -2
- package/build/assets/browser-store-BI6uklCG.js +1 -0
- package/build/assets/{browser-tab-BTTP1OE2.js → browser-tab-qb_ftCxW.js} +1 -1
- package/build/assets/{circle-plus-check-toggle-QQJKUnF6.js → circle-plus-check-toggle-DoFIjVE0.js} +1 -1
- package/build/assets/client-source-BZK8vRs2.js +1 -0
- package/build/assets/cloud-funnel-analytics-Zcv57hfT.js +1 -0
- package/build/assets/{color-themes-bVMmJJG6.js → color-themes-CHizm1xF.js} +1 -1
- package/build/assets/{combobox-caret-A5jMVHgE.js → combobox-caret-CxZpqoSR.js} +1 -1
- package/build/assets/{command-menu-BMVEme4H.js → command-menu-oTvKDU3Y.js} +1 -1
- package/build/assets/{command-store-jrWX_CcW.js → command-store-D8J5LMW1.js} +1 -1
- package/build/assets/{condenser-settings-CIa6eyB4.js → condenser-settings-BGlWn93P.js} +1 -1
- package/build/assets/{confirmation-modal-4n_944zq.js → confirmation-modal-DGBWM2Ls.js} +1 -1
- package/build/assets/{context-menu-list-item-DvfFic5I.js → context-menu-list-item-6psNyl7X.js} +1 -1
- package/build/assets/{conversation-D4o4dG2t.js → conversation-BoCYx8n2.js} +3 -3
- package/build/assets/conversation-DgHqMjnY.js +1 -0
- package/build/assets/conversation-panel-78Rxh_-I.js +1 -0
- package/build/assets/{conversation-service.api-0JG_fF9d.js → conversation-service.api-_f9GlIEi.js} +1 -1
- package/build/assets/conversation-state-store-B2Bp32XI.js +1 -0
- package/build/assets/{conversation-store-BCSpLuEf.js → conversation-store-LptbOvKa.js} +1 -1
- package/build/assets/{copy-to-clipboard-button-Dp4Q_hXi.js → copy-to-clipboard-button-CFzH_NOX.js} +1 -1
- package/build/assets/{device-verify-CM086oKs.js → device-verify-WBSjJBLH.js} +1 -1
- package/build/assets/{dropdown-classes-DZq0BQjb.js → dropdown-classes-D3wMJlXT.js} +1 -1
- package/build/assets/{ellipsis-button-TPJdyxnK.js → ellipsis-button-CbNnHlIq.js} +1 -1
- package/build/assets/{entry.client-DypYHsYm.js → entry.client-DNlPGxsu.js} +2 -2
- package/build/assets/{enum-filter-dropdown-CW_mBg0e.js → enum-filter-dropdown-JLYv1t8L.js} +1 -1
- package/build/assets/{environment-switch-overlay-6laJch-9.js → environment-switch-overlay-B1PFO8P8.js} +1 -1
- package/build/assets/{extensions-hub-BJFbFfKS.js → extensions-hub-CCbLA7IM.js} +1 -1
- package/build/assets/{extensions-navigation-DqSl7CJw.js → extensions-navigation-CPNjMNvR.js} +1 -1
- package/build/assets/{files-tab-store-tfCav6bB.js → files-tab-store-DJsPxYdg.js} +1 -1
- package/build/assets/{files-tab-c316dKAq.js → files-tab-y4K7EXBO.js} +1 -1
- package/build/assets/{git-provider-icon-DUb2pEos.js → git-provider-icon-ITvsH4Ko.js} +1 -1
- package/build/assets/{home-D7ds4Jyw.js → home-BwbeOWwU.js} +1 -1
- package/build/assets/home-DKPGQ5P3.js +1 -0
- package/build/assets/index-home-Bko2Itv5.js +1 -0
- package/build/assets/{install-server-modal-CvHvzZj3.js → install-server-modal-Qk1gwyI8.js} +1 -1
- package/build/assets/{launch-A47TK2Me.js → launch-CAGavYl-.js} +1 -1
- package/build/assets/lesson-plan-DMCPdtrf.js +4 -0
- package/build/assets/{llm-not-configured-banner-B7DR8SPs.js → llm-not-configured-banner-C1ktyb3C.js} +1 -1
- package/build/assets/llm-settings-BBsZFi9l.js +1 -0
- package/build/assets/{llm-settings-Cvi7q4ox.js → llm-settings-DFkJQr_w.js} +1 -1
- package/build/assets/{llm-subscription-service-Cz1yBBvE.js → llm-subscription-service-Casyzgn1.js} +1 -1
- package/build/assets/{manage-backends-modal-DAVhNUCe.js → manage-backends-modal-CKQ46rvw.js} +1 -1
- package/build/assets/manifest-03478bbf.js +1 -0
- package/build/assets/{map-provider-XSFHmdDs.js → map-provider-BbIb12oh.js} +1 -1
- package/build/assets/{markdown-renderer-B6cJJ_MN.js → markdown-renderer-B4V2OMFP.js} +1 -1
- package/build/assets/{mcp-BwssgMpg.js → mcp-BapoJsDc.js} +1 -1
- package/build/assets/{messages-D8MeG2ZQ.js → messages-CUBFMY5o.js} +1 -1
- package/build/assets/{model-selector-BxTbbKub.js → model-selector-DJrMrFAr.js} +1 -1
- package/build/assets/{navigation-link-imH6S7h2.js → navigation-link-D8hfwvxI.js} +1 -1
- package/build/assets/{onboarding-CyicadGt.js → onboarding-6NMkdNxV.js} +1 -1
- package/build/assets/onboarding-modal-Q4AnpIdg.js +1 -0
- package/build/assets/{organization-service.api-QknzKDh3.js → organization-service.api-vrRNwOma.js} +1 -1
- package/build/assets/{path-utils-BECGet7G.js → path-utils-PNfCKQDV.js} +1 -1
- package/build/assets/{planner-tab-DPKHmMAX.js → planner-tab-ByOw1he8.js} +1 -1
- package/build/assets/{plugins-management-service-DuTTxquo.js → plugins-management-service-B75jyC56.js} +1 -1
- package/build/assets/{profiles-service.api-D6jvZOWu.js → profiles-service.api-BQTklD5D.js} +1 -1
- package/build/assets/providers-DfTB2gPd.js +1 -0
- package/build/assets/{proxy-CuhhyjdX.js → proxy-B3tCGf0X.js} +1 -1
- package/build/assets/{recommended-automations-launcher-DA6DWS7V.js → recommended-automations-launcher-Bj7PuHY1.js} +1 -1
- package/build/assets/root-CDnuTToz.js +2 -0
- package/build/assets/root-layout-DfYVlcRG.js +2 -0
- package/build/assets/{runtime-waiting-state-DeD9G7yJ.js → runtime-waiting-state-CnyVhX4T.js} +1 -1
- package/build/assets/{schema-field-BOLdL_U7.js → schema-field-CUwk4wrQ.js} +1 -1
- package/build/assets/{sdk-section-page-ZIltERxf.js → sdk-section-page-DLLNrYjI.js} +1 -1
- package/build/assets/{sdk-settings-schema-Ba_Pa9uf.js → sdk-settings-schema-CLR01YIK.js} +1 -1
- package/build/assets/{secrets-service-50DElFny.js → secrets-service-CvyPWJhg.js} +1 -1
- package/build/assets/{secrets-settings-Digl7JLe.js → secrets-settings-CHy72A5C.js} +1 -1
- package/build/assets/settings-B9S8UVQr.js +1 -0
- package/build/assets/{settings-dropdown-input-BD5C9fBn.js → settings-dropdown-input-Dhx9ErGd.js} +1 -1
- package/build/assets/{settings-index-CODBijya.js → settings-index-BKDl2CQ-.js} +1 -1
- package/build/assets/{settings-input-CzNOq-Pj.js → settings-input-BsgQWS5R.js} +1 -1
- package/build/assets/{settings-list-classes-CuxH9ZoR.js → settings-list-classes-DSJJX99U.js} +1 -1
- package/build/assets/{settings-modal-BcSWpKI0.js → settings-modal-DeK11CyT.js} +1 -1
- package/build/assets/{settings-service.api-Bsu1PvYO.js → settings-service.api-DXk5TdeJ.js} +1 -1
- package/build/assets/{settings-switch-DqmHAfWJ.js → settings-switch-Bes8dIlV.js} +1 -1
- package/build/assets/{settings-utils-B1lBErvV.js → settings-utils-DzCVfiR3.js} +1 -1
- package/build/assets/{shared-conversation-CDskdmrb.js → shared-conversation-9atDzTR4.js} +1 -1
- package/build/assets/{sidebar-mobile-menu-toggle-DmCmZgq1.js → sidebar-mobile-menu-toggle-giMMZctn.js} +1 -1
- package/build/assets/{sidebar-nav-link-DMc8AIe7.js → sidebar-nav-link-CHqyFXwV.js} +1 -1
- package/build/assets/{sidebar-store-DXWSCFpa.js → sidebar-store-uiUXBU1N.js} +1 -1
- package/build/assets/{skill-card-pill-row-DOIWjiMF.js → skill-card-pill-row-BPYKQ3IN.js} +1 -1
- package/build/assets/{skills-plugins-DLgINYuY.js → skills-plugins-Tropusio.js} +1 -1
- package/build/assets/{skills-settings-DPiCWalR.js → skills-settings-BvzBBCWk.js} +1 -1
- package/build/assets/{task-list-tab-CuhcDycu.js → task-list-tab-DyfgG4MC.js} +1 -1
- package/build/assets/telemetry-C5JMEfqB.js +2 -0
- package/build/assets/{terminal-CVqF-tCD.js → terminal-DRXt2Lr4.js} +1 -1
- package/build/assets/{typography-CQn9wyEX.js → typography-CzfoD9DY.js} +1 -1
- package/build/assets/{use-acp-credential-form-LlfZO_DD.js → use-acp-credential-form-Bm8qXdlc.js} +1 -1
- package/build/assets/{use-activate-agent-profile-DpQjsXM0.js → use-activate-agent-profile-DlykqEfN.js} +1 -1
- package/build/assets/{use-active-agent-profile-Gw_uJujV.js → use-active-agent-profile-hI-x-UBa.js} +1 -1
- package/build/assets/{use-active-conversation-B0sttISF.js → use-active-conversation-2qeez40F.js} +1 -1
- package/build/assets/{use-agent-profiles-LHZEK0Gg.js → use-agent-profiles-0pr5bLS7.js} +1 -1
- package/build/assets/{use-agent-state-C5uA0bRj.js → use-agent-state-C6peDXUm.js} +1 -1
- package/build/assets/{use-backends-health-DKt1SmiU.js → use-backends-health-CLHPitJM.js} +1 -1
- package/build/assets/{use-can-manage-org-profiles-BAtqsbCi.js → use-can-manage-org-profiles-Ck_bsNbH.js} +1 -1
- package/build/assets/{use-cloud-current-user-id-C8m1oBy4.js → use-cloud-current-user-id-DUCSxNjY.js} +1 -1
- package/build/assets/use-config-B5r8erYt.js +1 -0
- package/build/assets/{use-create-conversation-CWQGNQ9J.js → use-create-conversation-r1JHfKO5.js} +1 -1
- package/build/assets/{use-create-secret-BIrsX3OB.js → use-create-secret-Cf2N11d2.js} +1 -1
- package/build/assets/{use-event-store-CsD17BKu.js → use-event-store-Bbaz51GR.js} +1 -1
- package/build/assets/{use-handle-plan-click-DEuO7Byo.js → use-handle-plan-click-CsAW3FlH.js} +1 -1
- package/build/assets/{use-launch-skill-in-chat-CdHOoQGM.js → use-launch-skill-in-chat-DJWEfVc5.js} +1 -1
- package/build/assets/{use-llm-profiles-DQpQxVOD.js → use-llm-profiles-Dr5__SlZ.js} +1 -1
- package/build/assets/{use-plugins-marketplace-Bkk07W_M.js → use-plugins-marketplace-BplU65ae.js} +1 -1
- package/build/assets/use-runtime-is-ready-vCFOcLFa.js +1 -0
- package/build/assets/{use-save-agent-profile-BxEsjnW0.js → use-save-agent-profile-RqUGqTv6.js} +1 -1
- package/build/assets/{use-save-settings-ioSUMqbE.js → use-save-settings-Chvzeu2s.js} +1 -1
- package/build/assets/{use-settings-DNJC4gqu.js → use-settings-CyxSlyTQ.js} +1 -1
- package/build/assets/{use-settings-nav-items-BUsrDbVR.js → use-settings-nav-items-zEkSO_Bf.js} +1 -1
- package/build/assets/{use-skills-BsmKm23M.js → use-skills-xrVoKYrF.js} +1 -1
- package/build/assets/{use-task-list-rs7Xbzl8.js → use-task-list-CfisapBW.js} +1 -1
- package/build/assets/use-tracking-D2Qg5Lpd.js +1 -0
- package/build/assets/{use-user-conversation-B337kUKB.js → use-user-conversation-CnE4zhOA.js} +1 -1
- package/build/assets/{vendor~browser-tab-Xn94EtUo.js → vendor~browser-tab-CsMb-pta.js} +1 -1
- package/build/assets/{vendor~browser-5Njjw1Cl.js → vendor~browser-wXQ-WZEC.js} +1 -1
- package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dhilvkxv-BIieS_OD.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dhilvkxv-eGLBu60s.js} +2 -2
- package/build/assets/{vendor~files-tab-CiC3-lGh.js → vendor~files-tab-B-5fBohe.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-DWteoTyr.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-BD7v71DM.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-tlf6AnDe.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-BT05Osu4.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-B8XNNEQZ.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-COhHANvV.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-Dc5nKwLO.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-DgzWSMRc.js} +1 -1
- package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-CnJRLn5s.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-DqZatR3B.js} +1 -1
- package/build/assets/{vendor~launch-28DK5Rsl.js → vendor~launch-_Km3J77E.js} +1 -1
- package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~g9hift2g-DmmpG9SI.js → vendor~module-D5a_AClf.js} +1 -1
- package/build/assets/{vendor~root-layout~conversation-panel~conversation~shared-conversation-lYNG9C1U.js → vendor~root-layout~conversation-panel~conversation~shared-conversation-BrguKXCn.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation-Zhq6xAxR.js → vendor~root-layout~index-home~home~conversation-panel~conversation-BTvhGHHG.js} +1 -1
- package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation~aler~gfu7qdtz-B81b08bw.js → vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation~aler~gfu7qdtz-BOKQkbc6.js} +1 -1
- package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~ftka0fnu-jpyLM1Nn.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~ftka0fnu-cFNmfAE6.js} +1 -1
- package/build/assets/{verification-settings-HRgEM-_3.js → verification-settings-CfkrXoSa.js} +1 -1
- package/build/index.html +4 -4
- package/config/defaults.json +1 -1
- package/dist/api/cloud/conversation-service.api.cjs +1 -1
- package/dist/api/cloud/conversation-service.api.js +4 -4
- package/dist/api/option-service/option-service.api.cjs +1 -1
- package/dist/api/option-service/option-service.api.cjs.map +1 -1
- package/dist/api/option-service/option-service.api.js +0 -1
- package/dist/api/option-service/option-service.api.js.map +1 -1
- package/dist/api/option-service/option.types.d.ts +0 -1
- package/dist/components/features/backends/backend-form-modal.cjs +1 -1
- package/dist/components/features/backends/backend-form-modal.cjs.map +1 -1
- package/dist/components/features/backends/backend-form-modal.d.ts +1 -1
- package/dist/components/features/backends/backend-form-modal.js +137 -144
- package/dist/components/features/backends/backend-form-modal.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.d.ts +4 -2
- package/dist/components/providers/agent-server-ui-providers.js +9 -2
- package/dist/components/providers/agent-server-ui-providers.js.map +1 -1
- package/dist/components/providers/index.cjs +1 -1
- package/dist/components/providers/index.d.ts +1 -2
- package/dist/components/providers/index.js +0 -1
- package/dist/components/providers/telemetry-provider.cjs +2 -0
- package/dist/components/providers/telemetry-provider.cjs.map +1 -0
- package/dist/components/providers/telemetry-provider.d.ts +6 -0
- package/dist/components/providers/telemetry-provider.js +64 -0
- package/dist/components/providers/telemetry-provider.js.map +1 -0
- package/dist/config/defaults.cjs +1 -1
- package/dist/config/defaults.cjs.map +1 -1
- package/dist/config/defaults.js +1 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/contexts/conversation-websocket-context.cjs +3 -3
- package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
- package/dist/contexts/conversation-websocket-context.js +197 -204
- package/dist/contexts/conversation-websocket-context.js.map +1 -1
- package/dist/hooks/mutation/use-save-settings.cjs +1 -1
- package/dist/hooks/mutation/use-save-settings.cjs.map +1 -1
- package/dist/hooks/mutation/use-save-settings.d.ts +3 -1
- package/dist/hooks/mutation/use-save-settings.js +6 -5
- package/dist/hooks/mutation/use-save-settings.js.map +1 -1
- package/dist/hooks/use-telemetry.cjs +1 -1
- package/dist/hooks/use-telemetry.cjs.map +1 -1
- package/dist/hooks/use-telemetry.d.ts +3 -3
- package/dist/hooks/use-telemetry.js +16 -22
- package/dist/hooks/use-telemetry.js.map +1 -1
- package/dist/hooks/use-tracking.cjs +1 -1
- package/dist/hooks/use-tracking.cjs.map +1 -1
- package/dist/hooks/use-tracking.d.ts +3 -4
- package/dist/hooks/use-tracking.js +37 -37
- package/dist/hooks/use-tracking.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/package.cjs +1 -1
- package/dist/package.cjs.map +1 -1
- package/dist/package.js +2 -2
- package/dist/package.js.map +1 -1
- package/dist/routes/app-settings.cjs +1 -1
- package/dist/routes/app-settings.cjs.map +1 -1
- package/dist/routes/app-settings.js +66 -68
- 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.js +4 -1
- package/dist/routes/llm-settings.js.map +1 -1
- package/dist/services/cloud-funnel-analytics.cjs +1 -1
- package/dist/services/cloud-funnel-analytics.cjs.map +1 -1
- package/dist/services/cloud-funnel-analytics.d.ts +3 -11
- package/dist/services/cloud-funnel-analytics.js +16 -30
- package/dist/services/cloud-funnel-analytics.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 +46 -9
- package/dist/services/telemetry.js +181 -72
- package/dist/services/telemetry.js.map +1 -1
- package/dist/themes/color-themes.cjs.map +1 -1
- package/dist/themes/color-themes.d.ts +3 -6
- package/dist/themes/color-themes.js.map +1 -1
- package/dist/utils/error-handler.cjs +1 -1
- package/dist/utils/error-handler.cjs.map +1 -1
- package/dist/utils/error-handler.d.ts +1 -4
- package/dist/utils/error-handler.js +6 -7
- package/dist/utils/error-handler.js.map +1 -1
- package/dist/utils/map-provider.cjs +1 -1
- package/dist/utils/map-provider.cjs.map +1 -1
- package/dist/utils/map-provider.d.ts +1 -0
- package/dist/utils/map-provider.js +2 -1
- package/dist/utils/map-provider.js.map +1 -1
- package/package.json +2 -2
- package/build/assets/agent-settings-DGUKNSnU.js +0 -1
- package/build/assets/app-settings-BpViWwpC.js +0 -1
- package/build/assets/backend-form-modal-DhBT8P4g.js +0 -1
- package/build/assets/browser-store-BGXOGo-R.js +0 -1
- package/build/assets/client-source-Biqarhgr.js +0 -1
- package/build/assets/cloud-funnel-analytics-D-27T5Ao.js +0 -1
- package/build/assets/conversation-CHnEXGRM.js +0 -1
- package/build/assets/conversation-panel-11FjLCId.js +0 -1
- package/build/assets/conversation-state-store-JiUQp02U.js +0 -1
- package/build/assets/handle-capture-consent-DDnXMC9Y.js +0 -1
- package/build/assets/home-BQ-DC06B.js +0 -1
- package/build/assets/index-home-BRFDWs_4.js +0 -1
- package/build/assets/lesson-plan-DSf95kQ2.js +0 -4
- package/build/assets/llm-settings-Ch4ZbW3c.js +0 -1
- package/build/assets/manifest-958c741a.js +0 -1
- package/build/assets/onboarding-modal-DQwihcTz.js +0 -1
- package/build/assets/option-service.api-DAkg_F7p.js +0 -1
- package/build/assets/package-Dk_VtWJ4.js +0 -1
- package/build/assets/providers-B8pxQK8x.js +0 -1
- package/build/assets/root-BhP6bTBB.js +0 -2
- package/build/assets/root-layout-oBaHHW4s.js +0 -2
- package/build/assets/settings-BfgLHsgd.js +0 -1
- package/build/assets/telemetry-DHiTRl5_.js +0 -2
- package/build/assets/use-config-CXy4vD0H.js +0 -1
- package/build/assets/use-runtime-is-ready-D4pkGT6E.js +0 -1
- package/build/assets/use-tracking-poxQHMwR.js +0 -1
- package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ljq5gbus-B2XD4bi2.js +0 -1
- package/dist/components/providers/posthog-wrapper.cjs +0 -2
- package/dist/components/providers/posthog-wrapper.cjs.map +0 -1
- package/dist/components/providers/posthog-wrapper.d.ts +0 -4
- package/dist/components/providers/posthog-wrapper.js +0 -49
- package/dist/components/providers/posthog-wrapper.js.map +0 -1
- package/dist/node_modules/posthog-js/react/dist/esm/index.cjs +0 -2
- package/dist/node_modules/posthog-js/react/dist/esm/index.cjs.map +0 -1
- package/dist/node_modules/posthog-js/react/dist/esm/index.js +0 -113
- package/dist/node_modules/posthog-js/react/dist/esm/index.js.map +0 -1
- package/dist/utils/handle-capture-consent.cjs +0 -2
- package/dist/utils/handle-capture-consent.cjs.map +0 -1
- package/dist/utils/handle-capture-consent.d.ts +0 -7
- package/dist/utils/handle-capture-consent.js +0 -8
- package/dist/utils/handle-capture-consent.js.map +0 -1
- /package/build/assets/{__vite-browser-external-DU-Cb_sT.js → __vite-browser-external-BQUj0sYu.js} +0 -0
- /package/build/assets/{agent-server-ui-style-scope-COnDHTm5.js → agent-server-ui-style-scope-qhnhZHBV.js} +0 -0
- /package/build/assets/{automation-BVEmGghX.js → automation-LZB0MjdV.js} +0 -0
- /package/build/assets/{canvas-ui-BhxjoA1f.js → canvas-ui-COgjltGz.js} +0 -0
- /package/build/assets/{checkmark-DhcMGwtO.js → checkmark-h7udgXMM.js} +0 -0
- /package/build/assets/{close-DO5Rq_CS.js → close-DLFb5kfv.js} +0 -0
- /package/build/assets/{code-tag-BvjtzUsr.js → code-tag-DYlAhEQY.js} +0 -0
- /package/build/assets/{conversation-local-storage-B31voBg7.js → conversation-local-storage-F6zVMM--.js} +0 -0
- /package/build/assets/{conversation-tab-empty-state-BUhKVwoi.js → conversation-tab-empty-state-CNUmIms2.js} +0 -0
- /package/build/assets/{copy-DLUw2us-.js → copy-BLmGeJcd.js} +0 -0
- /package/build/assets/{dist-Dj01FXbZ.js → dist-CodhvuAP.js} +0 -0
- /package/build/assets/{environment-switch-store-D9hB9PvY.js → environment-switch-store-DkjlKWzN.js} +0 -0
- /package/build/assets/{extension-module-card-classes-BlO4w702.js → extension-module-card-classes-9V3J9J_b.js} +0 -0
- /package/build/assets/{folder-ynxP2EIL.js → folder-Bk311brm.js} +0 -0
- /package/build/assets/{form-control-classes-CvUaw8_L.js → form-control-classes-CbdN5aO3.js} +0 -0
- /package/build/assets/{get-language-from-path-rWEQrOGU.js → get-language-from-path-DBqBsCWH.js} +0 -0
- /package/build/assets/{git-status-mapper-C3rfzUex.js → git-status-mapper-DnL9OC8_.js} +0 -0
- /package/build/assets/{iconBase-CuvxAQZ5.js → iconBase-Dz51Zn5x.js} +0 -0
- /package/build/assets/{link-external-BVDiJfZt.js → link-external-CaBmUEs_.js} +0 -0
- /package/build/assets/{llm-subscription-BkdHwtQe.js → llm-subscription-DtsX5Lhg.js} +0 -0
- /package/build/assets/{loading-spinner-Txxx1I1p.js → loading-spinner-BcdnT0mN.js} +0 -0
- /package/build/assets/{middleware-CWYDMVuG.js → middleware-DYHYNAnP.js} +0 -0
- /package/build/assets/{modal-backdrop-Dsmzgr5s.js → modal-backdrop-zVwfOJZr.js} +0 -0
- /package/build/assets/{modal-body-CDZdZ-eT.js → modal-body-Cc2zp0xb.js} +0 -0
- /package/build/assets/{modal-classes-B4oit_4c.js → modal-classes-3qT9Ap7Q.js} +0 -0
- /package/build/assets/{modal-close-button-DQElFMPo.js → modal-close-button-BcIBUdSq.js} +0 -0
- /package/build/assets/{navigation-context-SjzfpygH.js → navigation-context-DPs2G0X8.js} +0 -0
- /package/build/assets/{objectWithoutPropertiesLoose-CQwg6tC0.js → objectWithoutPropertiesLoose-BgYIAs2y.js} +0 -0
- /package/build/assets/{openhands-logo-C-gDp1wr.js → openhands-logo-bcNw5bkY.js} +0 -0
- /package/build/assets/{plan-components-CgPHWz3E.js → plan-components-BdZXPyZU.js} +0 -0
- /package/build/assets/{react-ao3tWj6K.js → react-DPDgL6du.js} +0 -0
- /package/build/assets/{search-pb4UKTfK.js → search-BgOCR7_c.js} +0 -0
- /package/build/assets/{segmented-toggle-C1-ZVyr5.js → segmented-toggle-kzwZkLaj.js} +0 -0
- /package/build/assets/{settings-gear-D_HVvE5L.js → settings-gear-MXCyZW0x.js} +0 -0
- /package/build/assets/{settings-like-page-layout-classes-DLrsPCaI.js → settings-like-page-layout-classes-Cdl6jOe5.js} +0 -0
- /package/build/assets/{settings-DksoDv5z.js → settings-mQUckT0g.js} +0 -0
- /package/build/assets/{settings-section-header-context-C2MUIG88.js → settings-section-header-context-COMOIaxV.js} +0 -0
- /package/build/assets/{sidebar-layout-Cn6eQaEI.js → sidebar-layout-Bm7pa3Vk.js} +0 -0
- /package/build/assets/{skills-CH4xgIh-.js → skills-EqzxYBvT.js} +0 -0
- /package/build/assets/{styled-tooltip-CvsjHuIf.js → styled-tooltip-B14i_Uac.js} +0 -0
- /package/build/assets/{switch-skeleton-BpSOvZ-n.js → switch-skeleton-DqQwalyu.js} +0 -0
- /package/build/assets/{terminal-Dokfkxn0.js → terminal-Cgf___rK.js} +0 -0
- /package/build/assets/{toggle-switch-CS0ClOy2.js → toggle-switch-DX_k418f.js} +0 -0
- /package/build/assets/{u-check-circle-DPWVO-9N.js → u-check-circle-BqoIxNz_.js} +0 -0
- /package/build/assets/{u-check-circle-half-BGNAAjOW.js → u-check-circle-half-MsShT8Ec.js} +0 -0
- /package/build/assets/{u-edit-BIskOoEG.js → u-edit-DL5LgKon.js} +0 -0
- /package/build/assets/{use-breakpoint-OjLm94cF.js → use-breakpoint-BP3lqLMx.js} +0 -0
- /package/build/assets/{use-click-outside-element-Jpt2WWd7.js → use-click-outside-element-D9BYdANT.js} +0 -0
- /package/build/assets/{use-is-authed-Dvbpiu3B.js → use-is-authed-BezEyfeh.js} +0 -0
- /package/build/assets/{use-onboarding-completion-DkRpDTsD.js → use-onboarding-completion-C_Swglzp.js} +0 -0
- /package/build/assets/{v4-DPgam_jW.js → v4-DbCkTSoU.js} +0 -0
- /package/build/assets/{vendor~browser-BvEKaLBz.js → vendor~browser-By2MVv_N.js} +0 -0
- /package/build/assets/{vendor~conversation-panel~conversation~alert-banner-CznX01nZ.js → vendor~conversation-panel~conversation~alert-banner-CxfzCmkN.js} +0 -0
- /package/build/assets/{vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-BuL5kjfS.js → vendor~index-home~home~conversation-panel~conversation~shared-conversation~planner-tab~files-tab-FghQ3Z1a.js} +0 -0
- /package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~j2jlu22h-DUYl8gbZ.js → vendor~root-layout~index-home~home~conversation-panel~conversation~launch~skills-settings~a~j2jlu22h-mC0v44WR.js} +0 -0
- /package/build/assets/{vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-pIgQDxTc.js → vendor~root-layout~index-home~home~mcp~automations-list~onboarding-modal-C4-GDgiF.js} +0 -0
- /package/build/assets/{vendor~terminal-jAaNQWS9.js → vendor~terminal-CnKZILnC.js} +0 -0
- /package/build/assets/{x-mark-C5przfXl.js → x-mark-Batp6gXa.js} +0 -0
|
@@ -8,35 +8,34 @@ import "../node_modules/@openhands/typescript-client/dist/clients.js";
|
|
|
8
8
|
import { buildWebSocketUrl as ne } from "../utils/websocket-url.js";
|
|
9
9
|
import { getAgentServerClientOptions as re } from "../api/agent-server-client-options.js";
|
|
10
10
|
import { useQueryClient as ie } from "../node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js";
|
|
11
|
-
import { isActionEvent as i, isAgentErrorEvent as a, isAgentServerEvent as o, isAgentStatusConversationStateUpdateEvent as
|
|
12
|
-
import { useEventStore as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import
|
|
30
|
-
import { jsx as Re } from "react/jsx-runtime";
|
|
11
|
+
import { isActionEvent as i, isAgentErrorEvent as a, isAgentServerEvent as o, isAgentStatusConversationStateUpdateEvent as s, isBrowserNavigateActionEvent as ae, isBrowserObservationEvent as oe, isCanvasUIActionEvent as se, isConversationStateUpdateEvent as ce, isDisplayableErrorEvent as le, isExecuteBashActionEvent as ue, isExecuteBashObservationEvent as de, isFullStateConversationStateUpdateEvent as fe, isGoalConversationStateUpdateEvent as pe, isPlanningFileEditorObservationEvent as me, isStatsConversationStateUpdateEvent as he, isSwitchLLMObservationEvent as ge, isUserMessageEvent as c } from "../types/agent-server/type-guards.js";
|
|
12
|
+
import { useEventStore as l } from "../stores/use-event-store.js";
|
|
13
|
+
import { useWebSocket as _e } from "../hooks/use-websocket.js";
|
|
14
|
+
import { SERVER_CONNECTION_ERROR_MESSAGE as ve } from "../constants/server-connection-error.js";
|
|
15
|
+
import { useErrorMessageStore as ye } from "../stores/error-message-store.js";
|
|
16
|
+
import { useOptimisticUserMessageStore as be } from "../stores/optimistic-user-message-store.js";
|
|
17
|
+
import { useGoalStore as xe } from "../stores/goal-store.js";
|
|
18
|
+
import { handleCanvasUIAction as Se } from "../services/canvas-ui.js";
|
|
19
|
+
import { handleActionEventCacheInvalidation as Ce } from "../utils/cache-utils.js";
|
|
20
|
+
import we from "../api/event-service/event-service.api.js";
|
|
21
|
+
import { trackError as u } from "../utils/error-handler.js";
|
|
22
|
+
import { getStoredConversationMetadata as Te, setStoredConversationMetadata as Ee } from "../api/conversation-metadata-store.js";
|
|
23
|
+
import { useReadConversationFile as De } from "../hooks/mutation/use-read-conversation-file.js";
|
|
24
|
+
import Oe from "../stores/metrics-store.js";
|
|
25
|
+
import { useConversationHistory as ke } from "../hooks/query/use-conversation-history.js";
|
|
26
|
+
import { recordModelSwitchMessage as Ae, seedModelSwitchesFromHistory as je } from "../hooks/chat/record-model-switch-message.js";
|
|
27
|
+
import { invalidateConversationQueries as Me, updateConversationLlmModelInCache as Ne } from "../hooks/mutation/conversation-mutation-utils.js";
|
|
28
|
+
import Pe, { createContext as Fe, useCallback as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
29
|
+
import { jsx as Ie } from "react/jsx-runtime";
|
|
31
30
|
//#region src/contexts/conversation-websocket-context.tsx
|
|
32
|
-
var
|
|
33
|
-
function
|
|
31
|
+
var v = Fe(void 0);
|
|
32
|
+
function y(e) {
|
|
34
33
|
return e.llm_message.content.filter((e) => e.type === "text").map((e) => e.text).join("");
|
|
35
34
|
}
|
|
36
|
-
function
|
|
37
|
-
let [
|
|
38
|
-
|
|
39
|
-
}, [
|
|
35
|
+
function b({ children: Fe, conversationId: f, conversationUrl: b, sessionApiKey: x, subConversations: S, subConversationIds: Le }) {
|
|
36
|
+
let [C, w] = _("CONNECTING"), [T, E] = _("CONNECTING"), D = Pe.useRef(!1), O = Pe.useRef(!1), k = ie(), A = l((e) => e.addEvent), Re = l((e) => e.addEvents), ze = l((e) => e.clearEventsForConversation), { setErrorMessage: j, removeErrorMessage: Be, clearConnectionError: M } = ye(), N = be((e) => e.consumeMatchingPendingMessage), { setExecutionStatus: P } = ee(), { appendInput: F, appendOutput: I } = t(), Ve = e((e) => e.reset), [L, R] = _(!0), [z, He] = _(null), { setPlanContent: B } = r(), { mutate: V } = De(), H = g(0), U = g(null), Ue = (e) => e?.toUpperCase().endsWith("PLAN.MD") ?? !1, W = d(() => {
|
|
37
|
+
M();
|
|
38
|
+
}, [M]), G = d((e) => {
|
|
40
39
|
if (e.value.usage_to_metrics?.agent) {
|
|
41
40
|
let t = e.value.usage_to_metrics.agent, n = {
|
|
42
41
|
cost: t.accumulated_cost,
|
|
@@ -50,178 +49,173 @@ function v({ children: Le, conversationId: d, conversationUrl: v, sessionApiKey:
|
|
|
50
49
|
per_turn_token: t.accumulated_token_usage.per_turn_token
|
|
51
50
|
} : null
|
|
52
51
|
};
|
|
53
|
-
|
|
52
|
+
Oe.getState().setMetrics(n);
|
|
54
53
|
}
|
|
55
|
-
}, []), { data:
|
|
56
|
-
|
|
57
|
-
let e =
|
|
58
|
-
|
|
54
|
+
}, []), { data: K, isPending: We, isFetching: q, isError: Ge } = ke(f), Ke = !!f && We;
|
|
55
|
+
m(() => {
|
|
56
|
+
let e = f ?? null;
|
|
57
|
+
l.getState().loadedConversationId !== e && (ze(e), Ve());
|
|
59
58
|
}, [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
]),
|
|
64
|
-
if (!(!
|
|
65
|
-
|
|
66
|
-
for (let e of
|
|
59
|
+
f,
|
|
60
|
+
ze,
|
|
61
|
+
Ve
|
|
62
|
+
]), m(() => {
|
|
63
|
+
if (!(!K || K.events.length === 0) && (Re(K.events), f)) {
|
|
64
|
+
je(f, l.getState().uiEvents);
|
|
65
|
+
for (let e of K.events) c(e) && N(f, y(e));
|
|
67
66
|
}
|
|
68
67
|
}, [
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
K,
|
|
69
|
+
Re,
|
|
70
|
+
f,
|
|
71
|
+
N
|
|
73
72
|
]);
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
76
|
-
let e =
|
|
73
|
+
let J = h(() => {
|
|
74
|
+
if (q) return null;
|
|
75
|
+
let e = K?.events ?? [], t = e[e.length - 1];
|
|
77
76
|
return !t || !("timestamp" in t) || !t.timestamp ? null : t.timestamp;
|
|
78
|
-
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
]),
|
|
84
|
-
if (!
|
|
85
|
-
let e =
|
|
77
|
+
}, [K, q]), Y = h(() => !f || !b || q && !Ge ? null : ne(f, b), [
|
|
78
|
+
f,
|
|
79
|
+
b,
|
|
80
|
+
q,
|
|
81
|
+
Ge
|
|
82
|
+
]), X = h(() => {
|
|
83
|
+
if (!S?.length) return null;
|
|
84
|
+
let e = S[0];
|
|
86
85
|
return !e?.id || !e.conversation_url ? null : ne(e.id, e.conversation_url);
|
|
87
|
-
}, [
|
|
88
|
-
x,
|
|
86
|
+
}, [S]), Z = h(() => X ? C === "CONNECTING" || T === "CONNECTING" ? "CONNECTING" : C === "OPEN" && T === "OPEN" ? "OPEN" : C === "CLOSED" && T === "CLOSED" ? "CLOSED" : C === "CLOSING" || T === "CLOSING" ? "CLOSING" : "CLOSED" : C, [
|
|
89
87
|
C,
|
|
90
|
-
|
|
88
|
+
T,
|
|
89
|
+
X
|
|
91
90
|
]);
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
p(() => {
|
|
92
|
+
z !== null && H.current >= z && L && R(!1);
|
|
94
93
|
}, [
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]),
|
|
99
|
-
if (!
|
|
100
|
-
let { path: e, conversationId: t } =
|
|
101
|
-
|
|
94
|
+
z,
|
|
95
|
+
L,
|
|
96
|
+
H
|
|
97
|
+
]), p(() => {
|
|
98
|
+
if (!L && U.current) {
|
|
99
|
+
let { path: e, conversationId: t } = U.current;
|
|
100
|
+
V({
|
|
102
101
|
conversationId: t,
|
|
103
102
|
filePath: e
|
|
104
103
|
}, {
|
|
105
104
|
onSuccess: (e) => {
|
|
106
|
-
|
|
105
|
+
B(e);
|
|
107
106
|
},
|
|
108
107
|
onError: (e) => {
|
|
109
108
|
console.warn("Failed to read conversation file:", e);
|
|
110
109
|
}
|
|
111
|
-
}),
|
|
110
|
+
}), U.current = null;
|
|
112
111
|
}
|
|
113
112
|
}, [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
]),
|
|
118
|
-
|
|
119
|
-
}, [
|
|
120
|
-
|
|
121
|
-
}, [
|
|
122
|
-
let
|
|
113
|
+
L,
|
|
114
|
+
V,
|
|
115
|
+
B
|
|
116
|
+
]), p(() => {
|
|
117
|
+
D.current = !1, R(!!Le?.length), He(null), H.current = 0, U.current = null;
|
|
118
|
+
}, [Le]), p(() => {
|
|
119
|
+
D.current = !1, O.current = !1, U.current = null;
|
|
120
|
+
}, [f]);
|
|
121
|
+
let qe = h(() => Ke || L, [Ke, L]), Je = d((t) => {
|
|
123
122
|
try {
|
|
124
123
|
let r = JSON.parse(t.data);
|
|
125
124
|
if (o(r)) {
|
|
126
|
-
let t = !
|
|
127
|
-
if (
|
|
125
|
+
let t = !l.getState().eventIds.has(r.id) && ge(r) ? r : null;
|
|
126
|
+
if (A(r), le(r)) {
|
|
128
127
|
let e = r;
|
|
129
|
-
|
|
128
|
+
u({
|
|
130
129
|
message: e.detail,
|
|
131
130
|
source: "conversation",
|
|
132
131
|
metadata: {
|
|
133
132
|
eventId: e.id,
|
|
134
133
|
errorCode: e.code
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
if (a(r) && l({
|
|
134
|
+
}
|
|
135
|
+
}), j(e.detail, "conversation", e.code);
|
|
136
|
+
} else W();
|
|
137
|
+
if (a(r) && u({
|
|
140
138
|
message: r.error,
|
|
141
139
|
source: "agent",
|
|
142
140
|
metadata: {
|
|
143
141
|
eventId: r.id,
|
|
144
142
|
toolName: r.tool_name,
|
|
145
143
|
toolCallId: r.tool_call_id
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
}), s(r) && d && (M(d, _(r)), n(d, { draftMessage: null })), i(r) && Te(r, d || "test-conversation-id", O), le(r) && (pe(r) && N(r.value.execution_status), ae(r) && N(r.value), ge(r) && W(r), me(r) && d && Ce.getState().setStatus(d, r.value)), de(r) && P(r.action.command), fe(r) && F(r.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), se(r)) {
|
|
144
|
+
}
|
|
145
|
+
}), c(r) && f && (N(f, y(r)), n(f, { draftMessage: null })), i(r) && Ce(r, f || "test-conversation-id", k), ce(r) && (fe(r) && P(r.value.execution_status), s(r) && P(r.value), he(r) && G(r), pe(r) && f && xe.getState().setStatus(f, r.value)), ue(r) && F(r.action.command), de(r) && I(r.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), oe(r)) {
|
|
149
146
|
let { screenshot_data: t } = r.observation;
|
|
150
147
|
if (t) {
|
|
151
148
|
let n = t.startsWith("data:") ? t : `data:image/png;base64,${t}`;
|
|
152
149
|
e.getState().setScreenshotSrc(n);
|
|
153
150
|
}
|
|
154
151
|
}
|
|
155
|
-
if (
|
|
156
|
-
|
|
157
|
-
let e =
|
|
158
|
-
|
|
152
|
+
if (ae(r) && e.getState().setUrl(r.action.url), f && t && !t.observation.is_error) {
|
|
153
|
+
Ae(f, t.observation.profile_name);
|
|
154
|
+
let e = Te(f);
|
|
155
|
+
Ee(f, {
|
|
159
156
|
selected_repository: e?.selected_repository ?? null,
|
|
160
157
|
selected_branch: e?.selected_branch ?? null,
|
|
161
158
|
git_provider: e?.git_provider ?? null,
|
|
162
159
|
selected_workspace: e?.selected_workspace ?? null,
|
|
163
160
|
active_profile: t.observation.profile_name,
|
|
164
161
|
plugins: e?.plugins ?? null
|
|
165
|
-
}), t.observation.active_model &&
|
|
162
|
+
}), t.observation.active_model && Ne(k, f, t.observation.active_model), Me(k, f);
|
|
166
163
|
}
|
|
167
|
-
|
|
164
|
+
se(r) && Se(r.action, f ?? null);
|
|
168
165
|
}
|
|
169
166
|
} catch (e) {
|
|
170
167
|
console.warn("Failed to parse WebSocket message as JSON:", e);
|
|
171
168
|
}
|
|
172
169
|
}, [
|
|
173
|
-
k,
|
|
174
170
|
A,
|
|
175
|
-
|
|
176
|
-
O,
|
|
177
|
-
d,
|
|
171
|
+
j,
|
|
178
172
|
N,
|
|
173
|
+
k,
|
|
174
|
+
f,
|
|
179
175
|
P,
|
|
180
176
|
F,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
]),
|
|
177
|
+
I,
|
|
178
|
+
G,
|
|
179
|
+
W
|
|
180
|
+
]), Ye = d((e) => {
|
|
185
181
|
try {
|
|
186
182
|
let t = JSON.parse(e.data);
|
|
187
|
-
if (
|
|
188
|
-
if (
|
|
183
|
+
if (L && (H.current += 1, z !== null && H.current >= z && R(!1)), o(t)) {
|
|
184
|
+
if (A({
|
|
189
185
|
...t,
|
|
190
186
|
isFromPlanningAgent: !0
|
|
191
|
-
}),
|
|
187
|
+
}), le(t)) {
|
|
192
188
|
let e = t;
|
|
193
|
-
|
|
189
|
+
u({
|
|
194
190
|
message: e.detail,
|
|
195
191
|
source: "planning_conversation",
|
|
196
192
|
metadata: {
|
|
197
193
|
eventId: e.id,
|
|
198
194
|
errorCode: e.code
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
if (a(t) && l({
|
|
195
|
+
}
|
|
196
|
+
}), j(e.detail, "conversation", e.code);
|
|
197
|
+
} else W();
|
|
198
|
+
if (a(t) && u({
|
|
204
199
|
message: t.error,
|
|
205
200
|
source: "planning_agent",
|
|
206
201
|
metadata: {
|
|
207
202
|
eventId: t.id,
|
|
208
203
|
toolName: t.tool_name,
|
|
209
204
|
toolCallId: t.tool_call_id
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
}), s(t) && d && (M(d, _(t)), n(d, { draftMessage: null })), i(t) && Te(t, b?.[0]?.id || "test-conversation-id", O), le(t) && (pe(t) && N(t.value.execution_status), ae(t) && N(t.value), ge(t) && W(t), me(t) && d && Ce.getState().setStatus(d, t.value)), de(t) && P(t.action.command), fe(t) && F(t.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), he(t)) {
|
|
205
|
+
}
|
|
206
|
+
}), c(t) && f && (N(f, y(t)), n(f, { draftMessage: null })), i(t) && Ce(t, S?.[0]?.id || "test-conversation-id", k), ce(t) && (fe(t) && P(t.value.execution_status), s(t) && P(t.value), he(t) && G(t), pe(t) && f && xe.getState().setStatus(f, t.value)), ue(t) && F(t.action.command), de(t) && I(t.observation.content.filter((e) => e.type === "text").map((e) => e.text).join("\n")), me(t)) {
|
|
213
207
|
let { path: e } = t.observation;
|
|
214
|
-
if (
|
|
215
|
-
let t =
|
|
216
|
-
t && e && (
|
|
208
|
+
if (Ue(e)) {
|
|
209
|
+
let t = S?.[0]?.id;
|
|
210
|
+
t && e && (L ? U.current = {
|
|
217
211
|
path: e,
|
|
218
212
|
conversationId: t
|
|
219
|
-
} :
|
|
213
|
+
} : V({
|
|
220
214
|
conversationId: t,
|
|
221
215
|
filePath: e
|
|
222
216
|
}, {
|
|
223
217
|
onSuccess: (e) => {
|
|
224
|
-
|
|
218
|
+
B(e);
|
|
225
219
|
},
|
|
226
220
|
onError: (e) => {
|
|
227
221
|
console.warn("Failed to read conversation file:", e);
|
|
@@ -234,101 +228,100 @@ function v({ children: Le, conversationId: d, conversationUrl: v, sessionApiKey:
|
|
|
234
228
|
console.warn("Failed to parse WebSocket message as JSON:", e);
|
|
235
229
|
}
|
|
236
230
|
}, [
|
|
237
|
-
k,
|
|
238
|
-
I,
|
|
239
|
-
R,
|
|
240
231
|
A,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
d,
|
|
232
|
+
L,
|
|
233
|
+
z,
|
|
234
|
+
j,
|
|
245
235
|
N,
|
|
236
|
+
k,
|
|
237
|
+
S,
|
|
238
|
+
f,
|
|
246
239
|
P,
|
|
247
240
|
F,
|
|
241
|
+
I,
|
|
242
|
+
V,
|
|
248
243
|
B,
|
|
249
|
-
|
|
250
|
-
W
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
]), $e = m(() => {
|
|
254
|
-
let e = q ? {
|
|
244
|
+
G,
|
|
245
|
+
W
|
|
246
|
+
]), Xe = h(() => {
|
|
247
|
+
let e = J ? {
|
|
255
248
|
resend_mode: "since",
|
|
256
|
-
after_timestamp:
|
|
249
|
+
after_timestamp: J
|
|
257
250
|
} : { resend_mode: "all" };
|
|
258
|
-
return
|
|
251
|
+
return x && (e.session_api_key = x), {
|
|
259
252
|
queryParams: e,
|
|
260
253
|
reconnect: { enabled: !0 },
|
|
261
254
|
onOpen: () => {
|
|
262
|
-
|
|
255
|
+
w("OPEN"), D.current = !0, M();
|
|
263
256
|
},
|
|
264
257
|
onClose: () => {
|
|
265
|
-
|
|
258
|
+
w("CLOSED");
|
|
266
259
|
},
|
|
267
260
|
onError: () => {
|
|
268
|
-
|
|
261
|
+
w("CLOSED"), D.current && j(ve, "connection");
|
|
269
262
|
},
|
|
270
|
-
onMessage:
|
|
263
|
+
onMessage: Je
|
|
271
264
|
};
|
|
272
265
|
}, [
|
|
273
|
-
|
|
274
|
-
A,
|
|
266
|
+
Je,
|
|
275
267
|
j,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
268
|
+
M,
|
|
269
|
+
x,
|
|
270
|
+
J
|
|
271
|
+
]), Ze = h(() => {
|
|
279
272
|
let e = { resend_all: !0 };
|
|
280
|
-
|
|
281
|
-
let t =
|
|
273
|
+
x && (e.session_api_key = x);
|
|
274
|
+
let t = S?.[0];
|
|
282
275
|
return {
|
|
283
276
|
queryParams: e,
|
|
284
277
|
reconnect: { enabled: !0 },
|
|
285
278
|
onOpen: async () => {
|
|
286
|
-
if (
|
|
287
|
-
let e = await
|
|
288
|
-
|
|
279
|
+
if (E("OPEN"), O.current = !0, M(), t?.id && t.conversation_url) try {
|
|
280
|
+
let e = await we.getEventCount(t.id, t.conversation_url, t.session_api_key);
|
|
281
|
+
He(e), e === 0 && R(!1);
|
|
289
282
|
} catch {
|
|
290
|
-
|
|
283
|
+
R(!1);
|
|
291
284
|
}
|
|
292
285
|
},
|
|
293
286
|
onClose: () => {
|
|
294
|
-
|
|
287
|
+
E("CLOSED");
|
|
295
288
|
},
|
|
296
289
|
onError: () => {
|
|
297
|
-
|
|
290
|
+
E("CLOSED"), O.current && j(ve, "connection");
|
|
298
291
|
},
|
|
299
|
-
onMessage:
|
|
292
|
+
onMessage: Ye
|
|
300
293
|
};
|
|
301
294
|
}, [
|
|
302
|
-
|
|
303
|
-
A,
|
|
295
|
+
Ye,
|
|
304
296
|
j,
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
297
|
+
M,
|
|
298
|
+
x,
|
|
299
|
+
S
|
|
300
|
+
]), { socket: Q, reconnect: Qe } = _e(Y || "", Xe), { socket: $, reconnect: $e } = _e(X || "", Ze), et = d(() => {
|
|
301
|
+
if (Be(), r.getState().conversationMode === "plan" && X) {
|
|
302
|
+
$e();
|
|
310
303
|
return;
|
|
311
304
|
}
|
|
312
|
-
|
|
305
|
+
Qe();
|
|
313
306
|
}, [
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
]),
|
|
319
|
-
let t = r.getState().conversationMode === "plan" ?
|
|
307
|
+
X,
|
|
308
|
+
Qe,
|
|
309
|
+
$e,
|
|
310
|
+
Be
|
|
311
|
+
]), tt = d(async (e) => {
|
|
312
|
+
let t = r.getState().conversationMode === "plan" ? $ : Q;
|
|
320
313
|
if (t?.readyState !== WebSocket.OPEN) {
|
|
321
|
-
if (!
|
|
314
|
+
if (!f) {
|
|
322
315
|
let e = /* @__PURE__ */ Error("No conversation ID available");
|
|
323
|
-
throw
|
|
316
|
+
throw j(e.message), e;
|
|
324
317
|
}
|
|
325
318
|
try {
|
|
326
|
-
return await new te(re()).sendEvent(
|
|
319
|
+
return await new te(re()).sendEvent(f, {
|
|
327
320
|
role: "user",
|
|
328
321
|
content: e.content
|
|
329
322
|
}, { run: !0 }), { queued: !0 };
|
|
330
323
|
} catch (e) {
|
|
331
|
-
throw
|
|
324
|
+
throw j(e instanceof Error ? e.message : "Failed to queue message for delivery"), e;
|
|
332
325
|
}
|
|
333
326
|
}
|
|
334
327
|
try {
|
|
@@ -337,73 +330,73 @@ function v({ children: Le, conversationId: d, conversationUrl: v, sessionApiKey:
|
|
|
337
330
|
run: !0
|
|
338
331
|
})), { queued: !1 };
|
|
339
332
|
} catch (e) {
|
|
340
|
-
throw
|
|
333
|
+
throw j(e instanceof Error ? e.message : "Failed to send message"), e;
|
|
341
334
|
}
|
|
342
335
|
}, [
|
|
343
|
-
Z,
|
|
344
336
|
Q,
|
|
345
|
-
|
|
346
|
-
|
|
337
|
+
$,
|
|
338
|
+
j,
|
|
339
|
+
f
|
|
347
340
|
]);
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
switch (
|
|
341
|
+
p(() => {
|
|
342
|
+
Q && Y && (() => {
|
|
343
|
+
switch (Q.readyState) {
|
|
351
344
|
case WebSocket.CONNECTING:
|
|
352
|
-
|
|
345
|
+
w("CONNECTING");
|
|
353
346
|
break;
|
|
354
347
|
case WebSocket.OPEN:
|
|
355
|
-
|
|
348
|
+
w("OPEN");
|
|
356
349
|
break;
|
|
357
350
|
case WebSocket.CLOSING:
|
|
358
|
-
|
|
351
|
+
w("CLOSING");
|
|
359
352
|
break;
|
|
360
353
|
case WebSocket.CLOSED:
|
|
361
|
-
|
|
354
|
+
w("CLOSED");
|
|
362
355
|
break;
|
|
363
356
|
default:
|
|
364
|
-
|
|
357
|
+
w("CLOSED");
|
|
365
358
|
break;
|
|
366
359
|
}
|
|
367
360
|
})();
|
|
368
|
-
}, [
|
|
369
|
-
|
|
370
|
-
switch (
|
|
361
|
+
}, [Q, Y]), p(() => {
|
|
362
|
+
$ && X && (() => {
|
|
363
|
+
switch ($.readyState) {
|
|
371
364
|
case WebSocket.CONNECTING:
|
|
372
|
-
|
|
365
|
+
E("CONNECTING");
|
|
373
366
|
break;
|
|
374
367
|
case WebSocket.OPEN:
|
|
375
|
-
|
|
368
|
+
E("OPEN");
|
|
376
369
|
break;
|
|
377
370
|
case WebSocket.CLOSING:
|
|
378
|
-
|
|
371
|
+
E("CLOSING");
|
|
379
372
|
break;
|
|
380
373
|
case WebSocket.CLOSED:
|
|
381
|
-
|
|
374
|
+
E("CLOSED");
|
|
382
375
|
break;
|
|
383
376
|
default:
|
|
384
|
-
|
|
377
|
+
E("CLOSED");
|
|
385
378
|
break;
|
|
386
379
|
}
|
|
387
380
|
})();
|
|
388
|
-
}, [
|
|
389
|
-
let
|
|
390
|
-
connectionState:
|
|
391
|
-
sendMessage:
|
|
392
|
-
isLoadingHistory:
|
|
393
|
-
reconnect:
|
|
381
|
+
}, [$, X]);
|
|
382
|
+
let nt = h(() => ({
|
|
383
|
+
connectionState: Z,
|
|
384
|
+
sendMessage: tt,
|
|
385
|
+
isLoadingHistory: qe,
|
|
386
|
+
reconnect: et
|
|
394
387
|
}), [
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
388
|
+
Z,
|
|
389
|
+
tt,
|
|
390
|
+
qe,
|
|
391
|
+
et
|
|
399
392
|
]);
|
|
400
|
-
return /* @__PURE__ */
|
|
401
|
-
value:
|
|
402
|
-
children:
|
|
393
|
+
return /* @__PURE__ */ Ie(v.Provider, {
|
|
394
|
+
value: nt,
|
|
395
|
+
children: Fe
|
|
403
396
|
});
|
|
404
397
|
}
|
|
405
|
-
var
|
|
398
|
+
var x = () => f(v) || null;
|
|
406
399
|
//#endregion
|
|
407
|
-
export {
|
|
400
|
+
export { b as ConversationWebSocketProvider, x as useConversationWebSocket };
|
|
408
401
|
|
|
409
402
|
//# sourceMappingURL=conversation-websocket-context.js.map
|