@openhands/agent-canvas 1.9.0 → 1.11.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.
Files changed (1386) hide show
  1. package/README.md +1 -1
  2. package/README.windows.md +2 -2
  3. package/build/assets/{acp-providers-C921BlYB.js → acp-providers-BkL3HWa3.js} +1 -1
  4. package/build/assets/active-backend-context-BBvP-bI2.js +2 -0
  5. package/build/assets/agent-context-settings-Bno1nwPL.js +1 -0
  6. package/build/assets/{agent-profiles-settings-BymJf3EP.js → agent-profiles-settings-DqoS7RL3.js} +1 -1
  7. package/build/assets/agent-server-conversation-service.api-0RztSdJJ.js +86 -0
  8. package/build/assets/agent-settings-BJHryp65.js +1 -0
  9. package/build/assets/{agent-settings-WzqXk6B4.js → agent-settings-h8hQz-IU.js} +2 -2
  10. package/build/assets/alert-banner-lrK-2_0Y.js +1 -0
  11. package/build/assets/{api-key-entry-screen-DI0I04O3.js → api-key-entry-screen-Qsb83VX1.js} +1 -1
  12. package/build/assets/{app-settings-DGistSFV.js → app-settings-r1RUbgGi.js} +1 -1
  13. package/build/assets/automation-detail-7LkL91j9.js +3 -0
  14. package/build/assets/automation-export-U2QNyNy6.js +2 -0
  15. package/build/assets/automation-setup-route-Bel9_Lue.js +1 -0
  16. package/build/assets/automation-templates-CRLDssaI.js +1 -0
  17. package/build/assets/automations-list-B2iV3ZKW.js +1 -0
  18. package/build/assets/{back-nav-button-D4ngzpSh.js → back-nav-button-B3pYwmUJ.js} +1 -1
  19. package/build/assets/backend-form-modal-OroTqnAv.js +1 -0
  20. package/build/assets/{backend-synced-settings-badge-BnzI8Ysj.js → backend-synced-settings-badge-DB4717Iu.js} +1 -1
  21. package/build/assets/{badge-1Mf1iPcX.js → badge-yR53enbU.js} +1 -1
  22. package/build/assets/{base-modal-BBuy0WQQ.js → base-modal-3NmIOKDm.js} +1 -1
  23. package/build/assets/bot-DuN83i3p.js +1 -0
  24. package/build/assets/{brand-button-DGN6Y9o6.js → brand-button-CJcwjnfb.js} +1 -1
  25. package/build/assets/{browser-D_ekTlTS.js → browser--eoQOo4M.js} +2 -2
  26. package/build/assets/{browser-tab-D4a4Ou_w.js → browser-tab-A94o33Vn.js} +1 -1
  27. package/build/assets/{chat-send-button-CgbcjD97.js → chat-send-button-B8n6-DQA.js} +1 -1
  28. package/build/assets/check-DLOKoFU9.js +1 -0
  29. package/build/assets/{checkmark-CxdXtM3b.js → checkmark-XZyokq_Y.js} +1 -1
  30. package/build/assets/chevron-down-CnIbtM6i.js +1 -0
  31. package/build/assets/circle-check-CxCYJrpZ.js +1 -0
  32. package/build/assets/{circle-plus-check-toggle-yTAS-nX3.js → circle-plus-check-toggle-BVzv5EkZ.js} +1 -1
  33. package/build/assets/{close-CDAVqnTn.js → close-ScPlnwyq.js} +1 -1
  34. package/build/assets/{cloud-funnel-analytics-CEOl5Gxr.js → cloud-funnel-analytics-CBQdPZl_.js} +1 -1
  35. package/build/assets/{combobox-caret-Bd2yySnF.js → combobox-caret-BlmRwiM8.js} +1 -1
  36. package/build/assets/command-menu-PsRXVBz2.js +1 -0
  37. package/build/assets/condenser-settings-w7L3EFvm.js +1 -0
  38. package/build/assets/{confirmation-modal-NCUPr2-O.js → confirmation-modal-DAH0XtOp.js} +1 -1
  39. package/build/assets/context-menu-list-item-BQhmFVEK.js +1 -0
  40. package/build/assets/{conversation-CUJ0Vo8g.js → conversation-BUzBZAc-.js} +7 -7
  41. package/build/assets/conversation-panel-pzAKsSDb.js +1 -0
  42. package/build/assets/conversation-pzAKsSDb.js +1 -0
  43. package/build/assets/{conversation-state-store-F62HvuI1.js → conversation-state-store-Bs8gA263.js} +1 -1
  44. package/build/assets/{conversation-store-C6hSXHw0.js → conversation-store-B8Eahyeg.js} +1 -1
  45. package/build/assets/{conversation-tab-empty-state-BCZ7rUMH.js → conversation-tab-empty-state-C9sfDOlt.js} +1 -1
  46. package/build/assets/{copy-z7idLzWO.js → copy-Drmhc2jD.js} +1 -1
  47. package/build/assets/{copy-to-clipboard-button-D_Lp6-Fl.js → copy-to-clipboard-button-DatoElj8.js} +1 -1
  48. package/build/assets/{device-verify-DLmolX8Q.js → device-verify-BIjXeW9N.js} +1 -1
  49. package/build/assets/{dist-hOnv1nn2.js → dist-Bl64nBZL.js} +1 -1
  50. package/build/assets/{dropdown-classes-BB8rzqXL.js → dropdown-classes-zFW7qPSK.js} +1 -1
  51. package/build/assets/entry.client-DzbDyLkV.js +2 -0
  52. package/build/assets/enum-filter-dropdown-CctILg5t.js +1 -0
  53. package/build/assets/{environment-switch-overlay-BepBBX66.js → environment-switch-overlay-Cvmo6clk.js} +1 -1
  54. package/build/assets/{extensions-hub-R3KNv-5V.js → extensions-hub-DOmHPGTA.js} +1 -1
  55. package/build/assets/{extensions-navigation-CfWFmI1I.js → extensions-navigation-6zU5M1pa.js} +1 -1
  56. package/build/assets/{external-link-BdBSg8rk.js → external-link-zWbg5KXS.js} +1 -1
  57. package/build/assets/file-text-RecuaId_.js +1 -0
  58. package/build/assets/files-tab-BzofBmF4.js +1 -0
  59. package/build/assets/{folder-C86qXV7M.js → folder-C1ou4_DT.js} +1 -1
  60. package/build/assets/{form-control-classes-DAfsCJTe.js → form-control-classes-DLN3Qgub.js} +1 -1
  61. package/build/assets/format-relative-time-DGPQlPx0.js +1 -0
  62. package/build/assets/format-time-delta-BIR5Os7T.js +1 -0
  63. package/build/assets/{git-provider-icon-BZqqUPlm.js → git-provider-icon-BLMlwy02.js} +1 -1
  64. package/build/assets/{git-repo-dropdown-DEpOwUez.js → git-repo-dropdown-B7RvO70z.js} +1 -1
  65. package/build/assets/git-repo-dropdown-B_PTq4ol.js +1 -0
  66. package/build/assets/{highlighted-source-view-CX9oIoVT.js → highlighted-source-view-CgJfD5VT.js} +1 -1
  67. package/build/assets/home-DEZaZqYv.js +1 -0
  68. package/build/assets/home-r89Vj2td.js +1 -0
  69. package/build/assets/{home-store-Ch1ErdBc.js → home-store-D7CjMN_-.js} +1 -1
  70. package/build/assets/{iconBase-B2rQun3J.js → iconBase-C2sR-uAp.js} +1 -1
  71. package/build/assets/index-home-r89Vj2td.js +1 -0
  72. package/build/assets/install-server-modal-BTwK5lbi.js +1 -0
  73. package/build/assets/kebab-menu-item-content-C4CkeiJO.js +1 -0
  74. package/build/assets/{launch-B1POpHuP.js → launch-DVlx4v9o.js} +1 -1
  75. package/build/assets/{link-external-BDBCz-_z.js → link-external-BNZzCM1I.js} +1 -1
  76. package/build/assets/{list-todo-DtiL3lTp.js → list-todo-CheUtB7F.js} +1 -1
  77. package/build/assets/llm-not-configured-banner-CwKu8C6g.js +27 -0
  78. package/build/assets/llm-settings-BJotLQND.js +1 -0
  79. package/build/assets/llm-settings-CDM-5H2A.js +1 -0
  80. package/build/assets/{llm-subscription-service-DBJbfd8Z.js → llm-subscription-service-7eVfDIE1.js} +1 -1
  81. package/build/assets/loader-circle-C5AnEN8r.js +1 -0
  82. package/build/assets/{loading-spinner-DfZ_bhV7.js → loading-spinner-CN3riY7k.js} +1 -1
  83. package/build/assets/{manage-backends-modal-CwyWsiag.js → manage-backends-modal-HNWKLYhq.js} +1 -1
  84. package/build/assets/manifest-2a36a8f8.js +1 -0
  85. package/build/assets/manifest-subpage-layout-D-m-h8_t.js +1 -0
  86. package/build/assets/map-provider-7Bp2aih5.js +1 -0
  87. package/build/assets/markdown-renderer-BiiiIznl.js +8 -0
  88. package/build/assets/mcp-gLgPP7AS.js +9 -0
  89. package/build/assets/mcp-marketplace-utils-Dr_HG_ol.js +1 -0
  90. package/build/assets/messages-D1cbVhRK.js +40 -0
  91. package/build/assets/{modal-backdrop-X-vKo61e.js → modal-backdrop-BSzNhM4r.js} +1 -1
  92. package/build/assets/{modal-body-CMsDpalT.js → modal-body-duRaxj_K.js} +1 -1
  93. package/build/assets/{modal-classes-B6PDrxXo.js → modal-classes-CLEXO6dj.js} +1 -1
  94. package/build/assets/{modal-close-button-DyxBZaAb.js → modal-close-button-D0aT02hs.js} +1 -1
  95. package/build/assets/mouse-pointer-click-Px-dXWcS.js +1 -0
  96. package/build/assets/{navigation-context-BOGzIng3.js → navigation-context-CQZwH_tC.js} +1 -1
  97. package/build/assets/navigation-link-Bxo3-4vo.js +1 -0
  98. package/build/assets/npm-DRzJF5Zn.js +1 -0
  99. package/build/assets/onboarding-DSr8hOpk.js +1 -0
  100. package/build/assets/onboarding-modal-C6Euf7N4.js +1 -0
  101. package/build/assets/{openhands-logo-CmYvJXBa.js → openhands-logo-BS-Epajy.js} +1 -1
  102. package/build/assets/{organization-service.api-UDy63-oC.js → organization-service.api-C4GYWwj9.js} +1 -1
  103. package/build/assets/{pencil-BjgtZmWp.js → pencil-Bl3GWhgq.js} +1 -1
  104. package/build/assets/{planner-tab-BWk8885v.js → planner-tab-CZcguxTK.js} +1 -1
  105. package/build/assets/{plugins-management-service-CjkgF2dd.js → plugins-management-service-BmDzOQsd.js} +1 -1
  106. package/build/assets/plus-CtzlyAoF.js +1 -0
  107. package/build/assets/{profiles-service.api-CukSFLzz.js → profiles-service.api-CoLTwjc1.js} +1 -1
  108. package/build/assets/{providers-CqUWC85T.js → providers-tBzTpz1w.js} +1 -1
  109. package/build/assets/{proxy-BBUG3sd2.js → proxy-DCI9S-LA.js} +1 -1
  110. package/build/assets/{puzzle-BoNc6zZ8.js → puzzle-B3v361yY.js} +1 -1
  111. package/build/assets/recommended-automations-launcher-BbJAJVED.js +1 -0
  112. package/build/assets/{refresh-cw-BrM5ZAZD.js → refresh-cw-B9GhC3QC.js} +1 -1
  113. package/build/assets/root-BfM_kC_d.css +1 -0
  114. package/build/assets/root-gstBEjty.js +2 -0
  115. package/build/assets/root-layout-BIAFLP9p.js +2 -0
  116. package/build/assets/{schema-field-nImDoY6-.js → schema-field-zhsVDllR.js} +1 -1
  117. package/build/assets/{sdk-section-page-BxMrtUNV.js → sdk-section-page-CS4GWn0y.js} +1 -1
  118. package/build/assets/{search-7DRiGm4Z.js → search-BatSpWed.js} +1 -1
  119. package/build/assets/search-CYaiKHRp.js +1 -0
  120. package/build/assets/{secrets-service-Dhjh3HhH.js → secrets-service-DjgGduXk.js} +1 -1
  121. package/build/assets/{secrets-settings-CPdxceT_.js → secrets-settings-f-qahfbi.js} +1 -1
  122. package/build/assets/{segmented-toggle-Do6oyepX.js → segmented-toggle-SmvsR3jW.js} +1 -1
  123. package/build/assets/settings-CWFxymAf.js +1 -0
  124. package/build/assets/settings-DQd0xLEw.js +1 -0
  125. package/build/assets/{settings-dropdown-input-DYCULKpp.js → settings-dropdown-input-TWIeiG02.js} +1 -1
  126. package/build/assets/{settings-gear-TYXnELES.js → settings-gear-DaJj6Pde.js} +1 -1
  127. package/build/assets/{settings-index-C9o2NBO0.js → settings-index-BVwy9JEp.js} +1 -1
  128. package/build/assets/{settings-input-B-q2gkVy.js → settings-input-D61Vzp9e.js} +1 -1
  129. package/build/assets/settings-like-page-layout-classes-Cw4Yzv_P.js +1 -0
  130. package/build/assets/{settings-list-classes-WpQi0q1L.js → settings-list-classes-sE0ASr1s.js} +1 -1
  131. package/build/assets/{settings-modal-CEK0AIx6.js → settings-modal-D6D5ngET.js} +1 -1
  132. package/build/assets/{settings-section-header-context-CnIIQAUn.js → settings-section-header-context-BOJ_Fbak.js} +1 -1
  133. package/build/assets/settings-service.api-DZp7E7A9.js +1 -0
  134. package/build/assets/{settings-switch-LqKdGxHL.js → settings-switch-Drt-rF5s.js} +1 -1
  135. package/build/assets/{settings-utils-BL_Z9uIe.js → settings-utils-gw2ppAvw.js} +1 -1
  136. package/build/assets/{shared-conversation-Bu-dQlgp.js → shared-conversation-DIxZjElr.js} +1 -1
  137. package/build/assets/shield-check-D2cpEpv3.js +1 -0
  138. package/build/assets/{sidebar-layout-oHBGQmLh.js → sidebar-layout-Dxg6zc2K.js} +1 -1
  139. package/build/assets/sidebar-mobile-menu-toggle-OoZBHxaT.js +1 -0
  140. package/build/assets/{sidebar-nav-link-CrujNA09.js → sidebar-nav-link-CxLoG-dG.js} +1 -1
  141. package/build/assets/sidebar-store-BJeYY-E9.js +1 -0
  142. package/build/assets/{skill-card-pill-row-CZBI7OqH.js → skill-card-pill-row-B_BYBONu.js} +1 -1
  143. package/build/assets/{skill-icon-badge-BOov_phZ.js → skill-icon-badge-CN41Hy9l.js} +1 -1
  144. package/build/assets/skill-scope-B1Per5XI.js +1 -0
  145. package/build/assets/{skills-CYFLsN5U.js → skills-B0IliMxw.js} +1 -1
  146. package/build/assets/{skills-plugins-D0PiHWAD.js → skills-plugins-B3AO6sMz.js} +1 -1
  147. package/build/assets/skills-settings-DmmgJ6CT.js +2 -0
  148. package/build/assets/sparkles-g7y3r-Ut.js +1 -0
  149. package/build/assets/{styled-tooltip-C7grwnOX.js → styled-tooltip-C5C07RQC.js} +1 -1
  150. package/build/assets/{switch-skeleton-BQoOhQTB.js → switch-skeleton-DwOoCqaL.js} +1 -1
  151. package/build/assets/{syntax-highlighter-B92AFGMy.js → syntax-highlighter-BGDg_7w9.js} +1 -1
  152. package/build/assets/{task-list-tab-R3ac6m7O.js → task-list-tab-C19Q_JNf.js} +1 -1
  153. package/build/assets/{terminal-cMS3RgVE.js → terminal-BUpID2wS.js} +1 -1
  154. package/build/assets/{terminal-yqkNdEAx.js → terminal-CbuMRYal.js} +1 -1
  155. package/build/assets/{toggle-switch-BeSrbgCg.js → toggle-switch-CIioisto.js} +1 -1
  156. package/build/assets/{trash-2-wW5TWcdN.js → trash-2-CzDVN-Iw.js} +1 -1
  157. package/build/assets/{typography-iYhzLlHO.js → typography-D9tiHct7.js} +1 -1
  158. package/build/assets/{u-check-circle-DBEvndTS.js → u-check-circle-BKn1spCL.js} +1 -1
  159. package/build/assets/{u-edit-809W9D9T.js → u-edit-DAkcF52u.js} +1 -1
  160. package/build/assets/{u-robot-CJtSzy5X.js → u-robot-BvAOA2ZD.js} +1 -1
  161. package/build/assets/{use-acp-credential-form-DUxbxmbq.js → use-acp-credential-form-DJmmJKMo.js} +1 -1
  162. package/build/assets/{use-activate-agent-profile-CDHA52tC.js → use-activate-agent-profile-CeFfYwu_.js} +1 -1
  163. package/build/assets/{use-agent-profiles-TsOdIyw5.js → use-agent-profiles-BHLkLbRR.js} +1 -1
  164. package/build/assets/{use-breakpoint-DA7JqsRN.js → use-breakpoint-DWtihr9g.js} +1 -1
  165. package/build/assets/{use-can-manage-org-profiles-Bt1M71u5.js → use-can-manage-org-profiles-Bu4y8gSx.js} +1 -1
  166. package/build/assets/{use-click-outside-element-DKqpqEEm.js → use-click-outside-element-W6Os4Nlb.js} +1 -1
  167. package/build/assets/{use-cloud-current-user-id-DWt7HCgf.js → use-cloud-current-user-id-QD9x3ySO.js} +1 -1
  168. package/build/assets/{use-config-CxlEdf_v.js → use-config-CPwqciXN.js} +1 -1
  169. package/build/assets/{use-create-conversation-nOJ6Um5h.js → use-create-conversation-DWaSVUOB.js} +1 -1
  170. package/build/assets/{use-create-secret-Dj5ang9x.js → use-create-secret-BsOfOLvg.js} +1 -1
  171. package/build/assets/use-is-authed-Bka89Xmm.js +1 -0
  172. package/build/assets/{use-is-creating-conversation-CAggrM75.js → use-is-creating-conversation-CVefC9Ns.js} +1 -1
  173. package/build/assets/{use-launch-skill-in-chat-DKzCTMt0.js → use-launch-skill-in-chat-BcKNjxxd.js} +1 -1
  174. package/build/assets/use-llm-profiles-CU8ah1pz.js +1 -0
  175. package/build/assets/use-manifest-capabilities-DBYPjyV6.js +1 -0
  176. package/build/assets/{use-onboarding-completion-gxQlcEy2.js → use-onboarding-completion-CtNJxkXG.js} +1 -1
  177. package/build/assets/{use-plugins-marketplace-CVO7sXYR.js → use-plugins-marketplace-ZEA-gyM9.js} +1 -1
  178. package/build/assets/use-save-agent-profile-DgI_Uz9a.js +1 -0
  179. package/build/assets/{use-save-settings-L3aMaDeS.js → use-save-settings-pSjRhD_m.js} +1 -1
  180. package/build/assets/{use-settings-8nt3DGxW.js → use-settings-BHWsOcIG.js} +1 -1
  181. package/build/assets/use-settings-nav-items-CQgkxUbV.js +16 -0
  182. package/build/assets/use-tracking-CGCsBWhg.js +3 -0
  183. package/build/assets/{use-user-conversation-BIIpGUgM.js → use-user-conversation-DRfEU8x0.js} +1 -1
  184. package/build/assets/{useInfiniteQuery-BLRVmVPU.js → useInfiniteQuery-DbCv0Jzd.js} +1 -1
  185. package/build/assets/{useMutation-CaSHLnX0.js → useMutation-ChpkYxI5.js} +1 -1
  186. package/build/assets/{useQueries--d_WWAzc.js → useQueries-Cjv3E8_1.js} +1 -1
  187. package/build/assets/useQuery-BCnzy4LX.js +1 -0
  188. package/build/assets/utils-DPQfkd-7.js +1 -0
  189. package/build/assets/{vendor-markdown-BML7QbqS.js → vendor-markdown-j0kYzV48.js} +1 -1
  190. package/build/assets/{vendor-styling-Bcgpimp9.js → vendor-styling-Ck5D_A2Q.js} +6 -6
  191. package/build/assets/{vendor~browser-jaN4ilxM.js → vendor~browser-C6uXH-dw.js} +2 -2
  192. package/build/assets/vendor~browser-DJ1pl_wn.js +47 -0
  193. package/build/assets/{vendor~browser-tab-_-VCXq8n.js → vendor~browser-tab-C5uuAxZX.js} +1 -1
  194. package/build/assets/vendor~entry.client-CgNUwtQL.js +1 -0
  195. package/build/assets/{vendor~entry.client-BcYIVQvB.js → vendor~entry.client-zSIea5EO.js} +2 -2
  196. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~cy4jtuc2-rfV8mQ9m.js +1 -0
  197. package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0bpqexo-CbTboogo.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kv3pap4j-oGvLV0dO.js} +4 -4
  198. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~lq5hicxx-cHFhpUBq.js +26 -0
  199. package/build/assets/{vendor~files-tab-C7RmQJwN.js → vendor~files-tab-C87pjSpi.js} +1 -1
  200. package/build/assets/{vendor~index-home~home~conversation-panel~conversation-Bqp1ZqJM.js → vendor~index-home~home~conversation-panel~conversation-DiXf0dkj.js} +1 -1
  201. package/build/assets/{vendor~conversation-panel~conversation~alert-banner-BNzz5FuZ.js → vendor~index-home~home~conversation-panel~conversation~alert-banner-B3qC_oj8.js} +1 -1
  202. package/build/assets/{vendor~launch-ChXCOGw8.js → vendor~launch-CHwEQG6e.js} +1 -1
  203. package/build/assets/vendor~module-DyG7x7JT.js +2 -0
  204. package/build/assets/{vendor~root-layout~conversation-panel~conversation-BCn8lzeG.js → vendor~root-layout~conversation-panel~conversation-DEzjR4K7.js} +1 -1
  205. package/build/assets/{vendor~root-layout~conversation-panel~conversation~shared-conversation-DRblkyXD.js → vendor~root-layout~conversation-panel~conversation~shared-conversation-DOuig0C0.js} +1 -1
  206. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-U-xdsAEx.js +1 -0
  207. package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~automation-setup-route-B_L-gcOG.js → vendor~root-layout~index-home~home~conversation-panel~conversation~automation-setup-route-CjECvSl5.js} +1 -1
  208. package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-sjx0x5ac.js → vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-CQR5Sa0H.js} +1 -1
  209. package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~gy8zbn65-CGt6bWRT.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~gxu4j2ea-Cwhh3zLe.js} +1 -1
  210. package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~dfc8ddxy-tTyxnjXT.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-CuQhkiS7.js} +1 -1
  211. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~9pstowjp-BOVIFA_g.js +73 -0
  212. package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~dufan6ng-Dtdw8H0q.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~ht43enc2-C0JXQb_q.js} +162 -54
  213. package/build/assets/{verification-settings-DBsnSXC3.js → verification-settings-BItwt998.js} +1 -1
  214. package/build/assets/wrench-B1_H-tL1.js +1 -0
  215. package/build/assets/x-RYDBg-e2.js +1 -0
  216. package/build/assets/{x-mark-jcTkPiOB.js → x-mark-BopmFoBq.js} +1 -1
  217. package/build/assets/zap-tbKDzCe3.js +1 -0
  218. package/build/index.html +4 -4
  219. package/build/locales/ar/openhands.json +108 -5
  220. package/build/locales/ca/openhands.json +108 -5
  221. package/build/locales/de/openhands.json +108 -5
  222. package/build/locales/en/openhands.json +108 -5
  223. package/build/locales/es/openhands.json +108 -5
  224. package/build/locales/fr/openhands.json +108 -5
  225. package/build/locales/it/openhands.json +108 -5
  226. package/build/locales/ja/openhands.json +108 -5
  227. package/build/locales/ko-KR/openhands.json +108 -5
  228. package/build/locales/no/openhands.json +108 -5
  229. package/build/locales/pt/openhands.json +108 -5
  230. package/build/locales/tr/openhands.json +108 -5
  231. package/build/locales/uk/openhands.json +108 -5
  232. package/build/locales/zh-CN/openhands.json +108 -5
  233. package/build/locales/zh-TW/openhands.json +108 -5
  234. package/build/mockServiceWorker.js +21 -9
  235. package/config/defaults.json +3 -3
  236. package/dist/api/agent-server-adapter.cjs +3 -3
  237. package/dist/api/agent-server-adapter.cjs.map +1 -1
  238. package/dist/api/agent-server-adapter.d.ts +32 -5
  239. package/dist/api/agent-server-adapter.js +120 -91
  240. package/dist/api/agent-server-adapter.js.map +1 -1
  241. package/dist/api/automation-service/automation-service.api.cjs +1 -1
  242. package/dist/api/automation-service/automation-service.api.cjs.map +1 -1
  243. package/dist/api/automation-service/automation-service.api.d.ts +5 -0
  244. package/dist/api/automation-service/automation-service.api.js +11 -0
  245. package/dist/api/automation-service/automation-service.api.js.map +1 -1
  246. package/dist/api/backend-registry/active-store.cjs +1 -1
  247. package/dist/api/backend-registry/active-store.cjs.map +1 -1
  248. package/dist/api/backend-registry/active-store.js +36 -31
  249. package/dist/api/backend-registry/active-store.js.map +1 -1
  250. package/dist/api/backend-registry/url-selection.cjs +2 -0
  251. package/dist/api/backend-registry/url-selection.cjs.map +1 -0
  252. package/dist/api/backend-registry/url-selection.d.ts +31 -0
  253. package/dist/api/backend-registry/url-selection.js +29 -0
  254. package/dist/api/backend-registry/url-selection.js.map +1 -0
  255. package/dist/api/cloud/conversation-service.api.cjs +1 -1
  256. package/dist/api/cloud/conversation-service.api.cjs.map +1 -1
  257. package/dist/api/cloud/conversation-service.api.d.ts +19 -2
  258. package/dist/api/cloud/conversation-service.api.js +51 -47
  259. package/dist/api/cloud/conversation-service.api.js.map +1 -1
  260. package/dist/api/conversation-file-upload.api.cjs +1 -1
  261. package/dist/api/conversation-file-upload.api.js +10 -10
  262. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
  263. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
  264. package/dist/api/conversation-service/agent-server-conversation-service.api.js +55 -61
  265. package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
  266. package/dist/api/event-service/event-service.api.cjs +1 -1
  267. package/dist/api/event-service/event-service.api.js +12 -12
  268. package/dist/api/launch-child-conversation-client-tool.cjs +47 -0
  269. package/dist/api/launch-child-conversation-client-tool.cjs.map +1 -0
  270. package/dist/api/launch-child-conversation-client-tool.d.ts +3 -0
  271. package/dist/api/launch-child-conversation-client-tool.js +93 -0
  272. package/dist/api/launch-child-conversation-client-tool.js.map +1 -0
  273. package/dist/api/mcp-service/mcp-redacted-credentials.cjs +1 -1
  274. package/dist/api/mcp-service/mcp-redacted-credentials.cjs.map +1 -1
  275. package/dist/api/mcp-service/mcp-redacted-credentials.d.ts +3 -2
  276. package/dist/api/mcp-service/mcp-redacted-credentials.js +32 -27
  277. package/dist/api/mcp-service/mcp-redacted-credentials.js.map +1 -1
  278. package/dist/api/mcp-service/mcp-service.api.cjs +1 -1
  279. package/dist/api/mcp-service/mcp-service.api.cjs.map +1 -1
  280. package/dist/api/mcp-service/mcp-service.api.js +19 -19
  281. package/dist/api/mcp-service/mcp-service.api.js.map +1 -1
  282. package/dist/api/open-hands.types.d.ts +1 -1
  283. package/dist/api/settings-service/settings-service.api.cjs +1 -1
  284. package/dist/api/settings-service/settings-service.api.cjs.map +1 -1
  285. package/dist/api/settings-service/settings-service.api.d.ts +10 -0
  286. package/dist/api/settings-service/settings-service.api.js +90 -100
  287. package/dist/api/settings-service/settings-service.api.js.map +1 -1
  288. package/dist/api/skills-service.cjs +1 -1
  289. package/dist/api/skills-service.cjs.map +1 -1
  290. package/dist/api/skills-service.js +1 -0
  291. package/dist/api/skills-service.js.map +1 -1
  292. package/dist/api/workspace-upload-path.cjs +1 -1
  293. package/dist/api/workspace-upload-path.js +8 -8
  294. package/dist/assets/chevron-left.d.ts +1 -1
  295. package/dist/assets/chevron-right.d.ts +1 -1
  296. package/dist/components/conversation-events/chat/event-content-helpers/get-action-event-title.cjs +1 -1
  297. package/dist/components/conversation-events/chat/event-content-helpers/get-action-event-title.cjs.map +1 -1
  298. package/dist/components/conversation-events/chat/event-content-helpers/get-action-event-title.js +24 -18
  299. package/dist/components/conversation-events/chat/event-content-helpers/get-action-event-title.js.map +1 -1
  300. package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.cjs +1 -1
  301. package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.cjs.map +1 -1
  302. package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.js +5 -0
  303. package/dist/components/conversation-events/chat/event-content-helpers/get-event-content.js.map +1 -1
  304. package/dist/components/conversation-events/chat/event-content-helpers/should-render-event.cjs +2 -2
  305. package/dist/components/conversation-events/chat/event-content-helpers/should-render-event.cjs.map +1 -1
  306. package/dist/components/conversation-events/chat/event-content-helpers/should-render-event.js +11 -7
  307. package/dist/components/conversation-events/chat/event-content-helpers/should-render-event.js.map +1 -1
  308. package/dist/components/conversation-events/chat/event-message-components/collapsible-thinking.d.ts +2 -1
  309. package/dist/components/conversation-events/chat/event-message-components/critic-result-display.d.ts +2 -1
  310. package/dist/components/conversation-events/chat/event-message-components/error-event-message.d.ts +2 -1
  311. package/dist/components/conversation-events/chat/event-message-components/event-group.d.ts +1 -1
  312. package/dist/components/conversation-events/chat/event-message-components/finish-event-message.d.ts +1 -1
  313. package/dist/components/conversation-events/chat/event-message-components/generic-event-message-wrapper.d.ts +1 -1
  314. package/dist/components/conversation-events/chat/event-message-components/observation-pair-event-message.d.ts +2 -1
  315. package/dist/components/conversation-events/chat/event-message-components/skill-item-expanded.d.ts +1 -1
  316. package/dist/components/conversation-events/chat/event-message-components/skill-ready-content-list.d.ts +2 -1
  317. package/dist/components/conversation-events/chat/event-message-components/thought-event-message.d.ts +1 -1
  318. package/dist/components/conversation-events/chat/event-message-components/user-assistant-event-message.d.ts +2 -1
  319. package/dist/components/conversation-events/chat/event-message.d.ts +2 -1
  320. package/dist/components/conversation-events/chat/task-tracking/task-item.d.ts +1 -1
  321. package/dist/components/conversation-events/chat/task-tracking/task-list-section.d.ts +1 -1
  322. package/dist/components/features/alerts/alert-banner.d.ts +1 -1
  323. package/dist/components/features/analytics/telemetry-consent-banner.d.ts +2 -1
  324. package/dist/components/features/automations/add-automation-modal.d.ts +1 -1
  325. package/dist/components/features/automations/automation-card-skeleton.d.ts +1 -1
  326. package/dist/components/features/automations/automation-card.d.ts +9 -1
  327. package/dist/components/features/automations/automation-group.d.ts +9 -1
  328. package/dist/components/features/automations/automation-health-badge.d.ts +8 -0
  329. package/dist/components/features/automations/automation-list-row.d.ts +3 -1
  330. package/dist/components/features/automations/automation-run-insights.d.ts +17 -0
  331. package/dist/components/features/automations/automation-view-toggle.d.ts +1 -1
  332. package/dist/components/features/automations/backend-not-configured.d.ts +1 -1
  333. package/dist/components/features/automations/create-instructions.d.ts +2 -2
  334. package/dist/components/features/automations/dashboard/automations-dashboard-controls.d.ts +18 -0
  335. package/dist/components/features/automations/dashboard/automations-filtered-empty-state.d.ts +9 -0
  336. package/dist/components/features/automations/dashboard/use-automation-sub-page-nav.d.ts +12 -0
  337. package/dist/components/features/automations/delete-confirmation-modal.d.ts +1 -1
  338. package/dist/components/features/automations/detail/active-status-badge.d.ts +1 -1
  339. package/dist/components/features/automations/detail/activity-log-item.d.ts +1 -1
  340. package/dist/components/features/automations/detail/activity-log-section.d.ts +3 -1
  341. package/dist/components/features/automations/detail/activity-section.d.ts +1 -1
  342. package/dist/components/features/automations/detail/back-link.d.ts +1 -1
  343. package/dist/components/features/automations/detail/branch-badge.d.ts +1 -1
  344. package/dist/components/features/automations/detail/config-field.d.ts +1 -1
  345. package/dist/components/features/automations/detail/configuration-section.d.ts +1 -1
  346. package/dist/components/features/automations/detail/debug-automation-button.d.ts +1 -1
  347. package/dist/components/features/automations/detail/detail-header.d.ts +1 -1
  348. package/dist/components/features/automations/detail/detail-skeleton.d.ts +1 -1
  349. package/dist/components/features/automations/detail/edit-automation-modal.d.ts +1 -1
  350. package/dist/components/features/automations/detail/not-found-state.d.ts +1 -1
  351. package/dist/components/features/automations/detail/plugin-chip.d.ts +1 -1
  352. package/dist/components/features/automations/detail/plugins-section.d.ts +1 -1
  353. package/dist/components/features/automations/detail/prompt-section.d.ts +2 -1
  354. package/dist/components/features/automations/detail/run-logs-modal.d.ts +1 -1
  355. package/dist/components/features/automations/detail/run-status-badge.d.ts +10 -1
  356. package/dist/components/features/automations/detail/section-card.d.ts +1 -1
  357. package/dist/components/features/automations/empty-state.d.ts +1 -1
  358. package/dist/components/features/automations/error-state.d.ts +1 -1
  359. package/dist/components/features/automations/import-automation-modal.d.ts +1 -1
  360. package/dist/components/features/automations/kebab-menu-item-content.d.ts +1 -1
  361. package/dist/components/features/automations/kebab-menu.d.ts +1 -1
  362. package/dist/components/features/automations/metadata-chip.d.ts +1 -1
  363. package/dist/components/features/automations/recommended-automations-launcher.d.ts +1 -1
  364. package/dist/components/features/automations/recommended-automations-section.d.ts +1 -1
  365. package/dist/components/features/automations/responder-deployment-modal.d.ts +1 -1
  366. package/dist/components/features/automations/search-input.d.ts +1 -1
  367. package/dist/components/features/automations/status-badge.d.ts +1 -1
  368. package/dist/components/features/automations/turn-off-confirmation-modal.d.ts +8 -0
  369. package/dist/components/features/automations/view-menu-item-content.d.ts +1 -1
  370. package/dist/components/features/backends/add-backend-modal.d.ts +1 -1
  371. package/dist/components/features/backends/api-key-entry-screen.d.ts +2 -1
  372. package/dist/components/features/backends/backend-form-modal.d.ts +3 -3
  373. package/dist/components/features/backends/backend-row.d.ts +1 -1
  374. package/dist/components/features/backends/backend-selector.d.ts +2 -1
  375. package/dist/components/features/backends/backend-status-dot.d.ts +2 -1
  376. package/dist/components/features/backends/backend-version.d.ts +1 -1
  377. package/dist/components/features/backends/device-flow-auth.d.ts +1 -1
  378. package/dist/components/features/backends/manage-backends-modal.d.ts +2 -1
  379. package/dist/components/features/browser/browser-chrome-bar.d.ts +1 -1
  380. package/dist/components/features/browser/browser-snapshot.d.ts +1 -1
  381. package/dist/components/features/browser/browser.d.ts +1 -1
  382. package/dist/components/features/browser/empty-browser-message.d.ts +1 -1
  383. package/dist/components/features/chat/btw-messages.d.ts +1 -1
  384. package/dist/components/features/chat/change-agent-button.d.ts +2 -1
  385. package/dist/components/features/chat/change-agent-context-menu.d.ts +1 -1
  386. package/dist/components/features/chat/chat-action-tooltip.d.ts +1 -1
  387. package/dist/components/features/chat/chat-add-file-button.d.ts +2 -1
  388. package/dist/components/features/chat/chat-interface.d.ts +2 -1
  389. package/dist/components/features/chat/chat-message.d.ts +1 -1
  390. package/dist/components/features/chat/chat-messages-skeleton.d.ts +2 -1
  391. package/dist/components/features/chat/chat-play-button.d.ts +1 -1
  392. package/dist/components/features/chat/chat-send-button.d.ts +1 -1
  393. package/dist/components/features/chat/chat-status-indicator.d.ts +1 -1
  394. package/dist/components/features/chat/chat-stop-button.d.ts +1 -1
  395. package/dist/components/features/chat/chat-suggestions.d.ts +1 -1
  396. package/dist/components/features/chat/components/chat-input-actions.d.ts +2 -1
  397. package/dist/components/features/chat/components/chat-input-container.d.ts +1 -1
  398. package/dist/components/features/chat/components/chat-input-field.d.ts +1 -1
  399. package/dist/components/features/chat/components/chat-input-grip.d.ts +1 -1
  400. package/dist/components/features/chat/components/chat-input-llm-profile-picker.d.ts +3 -2
  401. package/dist/components/features/chat/components/chat-input-model.d.ts +3 -2
  402. package/dist/components/features/chat/components/chat-input-profile-picker.d.ts +1 -1
  403. package/dist/components/features/chat/components/chat-input-row.d.ts +1 -1
  404. package/dist/components/features/chat/components/hidden-file-input.d.ts +1 -1
  405. package/dist/components/features/chat/components/slash-command-menu.d.ts +2 -1
  406. package/dist/components/features/chat/confirmation-mode-enabled.d.ts +1 -1
  407. package/dist/components/features/chat/custom-chat-input.d.ts +1 -1
  408. package/dist/components/features/chat/drag-over.d.ts +1 -1
  409. package/dist/components/features/chat/error-message-banner.d.ts +2 -1
  410. package/dist/components/features/chat/error-message.d.ts +2 -1
  411. package/dist/components/features/chat/generic-event-message.d.ts +1 -1
  412. package/dist/components/features/chat/git-control-bar-branch-button.d.ts +1 -1
  413. package/dist/components/features/chat/git-control-bar-pr-button.d.ts +1 -1
  414. package/dist/components/features/chat/git-control-bar-pull-button.d.ts +1 -1
  415. package/dist/components/features/chat/git-control-bar-push-button.d.ts +1 -1
  416. package/dist/components/features/chat/git-control-bar-repo-button.d.ts +1 -1
  417. package/dist/components/features/chat/git-control-bar-tooltip-wrapper.d.ts +1 -1
  418. package/dist/components/features/chat/git-control-bar.d.ts +1 -1
  419. package/dist/components/features/chat/git-external-link-icon.d.ts +1 -1
  420. package/dist/components/features/chat/goal-status-banner.d.ts +1 -1
  421. package/dist/components/features/chat/goal-status-content.d.ts +1 -1
  422. package/dist/components/features/chat/got-it-button.d.ts +1 -1
  423. package/dist/components/features/chat/interactive-chat-box.d.ts +1 -1
  424. package/dist/components/features/chat/model-messages.d.ts +2 -1
  425. package/dist/components/features/chat/mono-component.d.ts +1 -1
  426. package/dist/components/features/chat/open-repository-modal.d.ts +2 -1
  427. package/dist/components/features/chat/pasted-image-upload-as-file-button.d.ts +1 -1
  428. package/dist/components/features/chat/path-component.d.ts +1 -1
  429. package/dist/components/features/chat/pending-stop-icon.d.ts +1 -1
  430. package/dist/components/features/chat/pending-user-messages.d.ts +2 -1
  431. package/dist/components/features/chat/plan-preview.d.ts +1 -1
  432. package/dist/components/features/chat/remove-file-button.d.ts +1 -1
  433. package/dist/components/features/chat/skill-install-restart-banner.d.ts +1 -1
  434. package/dist/components/features/chat/success-indicator.d.ts +1 -1
  435. package/dist/components/features/chat/task-tracking/status-badge.d.ts +1 -1
  436. package/dist/components/features/chat/task-tracking/status-icon.d.ts +1 -1
  437. package/dist/components/features/chat/task-tracking/task-item.d.ts +1 -1
  438. package/dist/components/features/chat/task-tracking/task-list-section.d.ts +1 -1
  439. package/dist/components/features/chat/tool-visualizers/primitives/code-block.d.ts +2 -1
  440. package/dist/components/features/chat/tool-visualizers/primitives/diff-view.d.ts +2 -1
  441. package/dist/components/features/chat/tool-visualizers/primitives/file-path-chip.d.ts +2 -1
  442. package/dist/components/features/chat/tool-visualizers/primitives/key-value-grid.d.ts +1 -1
  443. package/dist/components/features/chat/tool-visualizers/primitives/output-pane.d.ts +2 -1
  444. package/dist/components/features/chat/typing-indicator.d.ts +1 -1
  445. package/dist/components/features/chat/uploaded-file.d.ts +1 -1
  446. package/dist/components/features/chat/uploaded-files.d.ts +1 -1
  447. package/dist/components/features/chat/uploaded-image.d.ts +2 -1
  448. package/dist/components/features/chat/user-message-body.d.ts +2 -2
  449. package/dist/components/features/chat/waiting-for-runtime-message.d.ts +1 -1
  450. package/dist/components/features/chat/workspace-mode-icon.d.ts +1 -1
  451. package/dist/components/features/chat/workspace-mode-selector.d.ts +1 -1
  452. package/dist/components/features/command-menu/command-menu-trigger.d.ts +2 -1
  453. package/dist/components/features/context-menu/archived-disabled-tooltip.d.ts +1 -1
  454. package/dist/components/features/context-menu/context-menu-icon-text-with-description.d.ts +1 -1
  455. package/dist/components/features/context-menu/context-menu-icon-text.d.ts +1 -1
  456. package/dist/components/features/context-menu/context-menu-list-item.cjs +1 -1
  457. package/dist/components/features/context-menu/context-menu-list-item.cjs.map +1 -1
  458. package/dist/components/features/context-menu/context-menu-list-item.d.ts +2 -1
  459. package/dist/components/features/context-menu/context-menu-list-item.js +2 -1
  460. package/dist/components/features/context-menu/context-menu-list-item.js.map +1 -1
  461. package/dist/components/features/controls/agent-loading.d.ts +1 -1
  462. package/dist/components/features/controls/agent-status.d.ts +1 -1
  463. package/dist/components/features/controls/git-tools-submenu.d.ts +1 -1
  464. package/dist/components/features/controls/macros-submenu.d.ts +1 -1
  465. package/dist/components/features/controls/server-status-context-menu-icon-text.d.ts +1 -1
  466. package/dist/components/features/controls/server-status-context-menu.d.ts +1 -1
  467. package/dist/components/features/controls/server-status.d.ts +1 -1
  468. package/dist/components/features/controls/tools-context-menu-icon-text.d.ts +1 -1
  469. package/dist/components/features/controls/tools-context-menu.d.ts +1 -1
  470. package/dist/components/features/controls/tools.d.ts +2 -1
  471. package/dist/components/features/conversation/conversation-loading.d.ts +1 -1
  472. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.d.ts +1 -1
  473. package/dist/components/features/conversation/conversation-main/conversation-main.d.ts +1 -1
  474. package/dist/components/features/conversation/conversation-main/conversation-mobile-panel-page.d.ts +2 -1
  475. package/dist/components/features/conversation/conversation-name-context-menu-icon-text.d.ts +1 -1
  476. package/dist/components/features/conversation/conversation-name-context-menu.d.ts +1 -1
  477. package/dist/components/features/conversation/conversation-name-with-status.d.ts +2 -1
  478. package/dist/components/features/conversation/conversation-name.d.ts +2 -1
  479. package/dist/components/features/conversation/conversation-tab-empty-state.d.ts +1 -1
  480. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content-crossfade.d.ts +1 -1
  481. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.d.ts +1 -1
  482. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/suspense-pending-fallback.d.ts +1 -1
  483. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/tab-container.d.ts +1 -1
  484. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/tab-content-area.d.ts +1 -1
  485. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/tab-wrapper.d.ts +1 -1
  486. package/dist/components/features/conversation/conversation-tabs/conversation-tab-nav.d.ts +1 -1
  487. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.d.ts +1 -1
  488. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.d.ts +1 -1
  489. package/dist/components/features/conversation/conversation-tabs/drawer-vscode-link.d.ts +1 -1
  490. package/dist/components/features/conversation/metrics-modal/context-window-section.d.ts +1 -1
  491. package/dist/components/features/conversation/metrics-modal/cost-section.d.ts +1 -1
  492. package/dist/components/features/conversation/metrics-modal/empty-state.d.ts +1 -1
  493. package/dist/components/features/conversation/metrics-modal/metric-row.d.ts +1 -1
  494. package/dist/components/features/conversation/metrics-modal/metrics-modal-header.d.ts +1 -1
  495. package/dist/components/features/conversation/metrics-modal/metrics-modal.d.ts +1 -1
  496. package/dist/components/features/conversation/metrics-modal/usage-section.d.ts +1 -1
  497. package/dist/components/features/conversation/right-panel-toggle.d.ts +1 -1
  498. package/dist/components/features/conversation/transcript-export-modal.d.ts +2 -1
  499. package/dist/components/features/conversation-panel/budget-display.d.ts +2 -1
  500. package/dist/components/features/conversation-panel/budget-progress-bar.d.ts +1 -1
  501. package/dist/components/features/conversation-panel/budget-usage-text.d.ts +2 -1
  502. package/dist/components/features/conversation-panel/cloud-new-conversation-menu.d.ts +1 -1
  503. package/dist/components/features/conversation-panel/compact-conversation-row.cjs +1 -1
  504. package/dist/components/features/conversation-panel/compact-conversation-row.cjs.map +1 -1
  505. package/dist/components/features/conversation-panel/compact-conversation-row.d.ts +2 -1
  506. package/dist/components/features/conversation-panel/compact-conversation-row.js +38 -37
  507. package/dist/components/features/conversation-panel/compact-conversation-row.js.map +1 -1
  508. package/dist/components/features/conversation-panel/confirm-delete-modal.d.ts +1 -1
  509. package/dist/components/features/conversation-panel/confirm-stop-modal.d.ts +1 -1
  510. package/dist/components/features/conversation-panel/conversation-card/conversation-card-actions.d.ts +1 -1
  511. package/dist/components/features/conversation-panel/conversation-card/conversation-card-context-menu.d.ts +1 -1
  512. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs +1 -2
  513. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs.map +1 -1
  514. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.d.ts +3 -9
  515. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js +48 -51
  516. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js.map +1 -1
  517. package/dist/components/features/conversation-panel/conversation-card/conversation-card-header.d.ts +1 -1
  518. package/dist/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.cjs +2 -0
  519. package/dist/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.cjs.map +1 -0
  520. package/dist/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.d.ts +12 -0
  521. package/dist/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.js +6 -0
  522. package/dist/components/features/conversation-panel/conversation-card/conversation-card-meta-chip.js.map +1 -0
  523. package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.cjs +1 -1
  524. package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.cjs.map +1 -1
  525. package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.d.ts +16 -1
  526. package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.js +95 -78
  527. package/dist/components/features/conversation-panel/conversation-card/conversation-card-preview.js.map +1 -1
  528. package/dist/components/features/conversation-panel/conversation-card/conversation-card-skeleton.d.ts +1 -1
  529. package/dist/components/features/conversation-panel/conversation-card/conversation-card-title.d.ts +1 -1
  530. package/dist/components/features/conversation-panel/conversation-card/conversation-card.d.ts +2 -1
  531. package/dist/components/features/conversation-panel/conversation-card/conversation-repo-link.cjs +1 -1
  532. package/dist/components/features/conversation-panel/conversation-card/conversation-repo-link.cjs.map +1 -1
  533. package/dist/components/features/conversation-panel/conversation-card/conversation-repo-link.d.ts +1 -1
  534. package/dist/components/features/conversation-panel/conversation-card/conversation-repo-link.js +40 -38
  535. package/dist/components/features/conversation-panel/conversation-card/conversation-repo-link.js.map +1 -1
  536. package/dist/components/features/conversation-panel/conversation-card/conversation-status-badges.d.ts +1 -1
  537. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs +2 -0
  538. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.cjs.map +1 -0
  539. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.d.ts +14 -0
  540. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js +167 -0
  541. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-chips.js.map +1 -0
  542. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs +2 -0
  543. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.cjs.map +1 -0
  544. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.d.ts +63 -0
  545. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js +66 -0
  546. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-display.js.map +1 -0
  547. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-icons.cjs +2 -0
  548. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-icons.cjs.map +1 -0
  549. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-icons.d.ts +15 -0
  550. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-icons.js +117 -0
  551. package/dist/components/features/conversation-panel/conversation-card/conversation-tag-icons.js.map +1 -0
  552. package/dist/components/features/conversation-panel/conversation-card/no-repository.cjs +1 -1
  553. package/dist/components/features/conversation-panel/conversation-card/no-repository.cjs.map +1 -1
  554. package/dist/components/features/conversation-panel/conversation-card/no-repository.d.ts +1 -1
  555. package/dist/components/features/conversation-panel/conversation-card/no-repository.js +30 -19
  556. package/dist/components/features/conversation-panel/conversation-card/no-repository.js.map +1 -1
  557. package/dist/components/features/conversation-panel/conversation-group-folder-list.d.ts +1 -1
  558. package/dist/components/features/conversation-panel/conversation-group-folder-row.d.ts +1 -1
  559. package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs +1 -1
  560. package/dist/components/features/conversation-panel/conversation-panel-filter-menu.cjs.map +1 -1
  561. package/dist/components/features/conversation-panel/conversation-panel-filter-menu.d.ts +7 -2
  562. package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js +146 -104
  563. package/dist/components/features/conversation-panel/conversation-panel-filter-menu.js.map +1 -1
  564. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs +1 -1
  565. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs.map +1 -1
  566. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.d.ts +20 -0
  567. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +53 -27
  568. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js.map +1 -1
  569. package/dist/components/features/conversation-panel/conversation-panel-new-thread-picker.d.ts +1 -1
  570. package/dist/components/features/conversation-panel/conversation-panel-pinned-section.d.ts +1 -1
  571. package/dist/components/features/conversation-panel/conversation-panel.cjs +1 -1
  572. package/dist/components/features/conversation-panel/conversation-panel.cjs.map +1 -1
  573. package/dist/components/features/conversation-panel/conversation-panel.d.ts +2 -1
  574. package/dist/components/features/conversation-panel/conversation-panel.js +169 -155
  575. package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
  576. package/dist/components/features/conversation-panel/conversation-status-dot.d.ts +1 -1
  577. package/dist/components/features/conversation-panel/exit-conversation-modal.d.ts +1 -1
  578. package/dist/components/features/conversation-panel/hook-event-item.d.ts +1 -1
  579. package/dist/components/features/conversation-panel/hook-matcher-content.d.ts +1 -1
  580. package/dist/components/features/conversation-panel/hooks-empty-state.d.ts +1 -1
  581. package/dist/components/features/conversation-panel/hooks-loading-state.d.ts +1 -1
  582. package/dist/components/features/conversation-panel/hooks-modal-header.d.ts +1 -1
  583. package/dist/components/features/conversation-panel/hooks-modal.d.ts +1 -1
  584. package/dist/components/features/conversation-panel/local-new-conversation-menu.d.ts +1 -1
  585. package/dist/components/features/conversation-panel/menu-heading.d.ts +1 -1
  586. package/dist/components/features/conversation-panel/menu-row.d.ts +1 -1
  587. package/dist/components/features/conversation-panel/menu-separator.d.ts +1 -1
  588. package/dist/components/features/conversation-panel/new-conversation-button.d.ts +2 -1
  589. package/dist/components/features/conversation-panel/plugins-modal.d.ts +1 -1
  590. package/dist/components/features/conversation-panel/runtime-waiting-state.d.ts +1 -1
  591. package/dist/components/features/conversation-panel/skill-content.d.ts +1 -1
  592. package/dist/components/features/conversation-panel/skill-item.d.ts +1 -1
  593. package/dist/components/features/conversation-panel/skill-triggers.d.ts +1 -1
  594. package/dist/components/features/conversation-panel/skills-empty-state.d.ts +1 -1
  595. package/dist/components/features/conversation-panel/skills-loading-state.d.ts +1 -1
  596. package/dist/components/features/conversation-panel/skills-modal-header.d.ts +1 -1
  597. package/dist/components/features/conversation-panel/skills-modal-section.d.ts +1 -1
  598. package/dist/components/features/conversation-panel/skills-modal.d.ts +1 -1
  599. package/dist/components/features/conversation-panel/start-task-card/start-task-card-footer.d.ts +1 -1
  600. package/dist/components/features/conversation-panel/start-task-card/start-task-card-header.d.ts +1 -1
  601. package/dist/components/features/conversation-panel/start-task-card/start-task-card.d.ts +1 -1
  602. package/dist/components/features/conversation-panel/start-task-card/start-task-status-badge.d.ts +1 -1
  603. package/dist/components/features/conversation-panel/start-task-card/start-task-status-indicator.d.ts +1 -1
  604. package/dist/components/features/conversation-panel/system-message-modal/empty-tools-state.d.ts +1 -1
  605. package/dist/components/features/conversation-panel/system-message-modal/system-message-content.d.ts +1 -1
  606. package/dist/components/features/conversation-panel/system-message-modal/system-message-header.d.ts +1 -1
  607. package/dist/components/features/conversation-panel/system-message-modal/tab-button.d.ts +1 -1
  608. package/dist/components/features/conversation-panel/system-message-modal/tab-content.d.ts +1 -1
  609. package/dist/components/features/conversation-panel/system-message-modal/tab-navigation.d.ts +1 -1
  610. package/dist/components/features/conversation-panel/system-message-modal/toggle-button.d.ts +1 -1
  611. package/dist/components/features/conversation-panel/system-message-modal/tool-item.d.ts +1 -1
  612. package/dist/components/features/conversation-panel/system-message-modal/tool-parameters.d.ts +1 -1
  613. package/dist/components/features/conversation-panel/system-message-modal/tools-list.d.ts +1 -1
  614. package/dist/components/features/conversation-panel/system-message-modal.d.ts +1 -1
  615. package/dist/components/features/diff-viewer/commit-list.d.ts +2 -1
  616. package/dist/components/features/diff-viewer/commit-row.d.ts +2 -1
  617. package/dist/components/features/diff-viewer/diff-drawer-icon.d.ts +1 -1
  618. package/dist/components/features/diff-viewer/editor-container.d.ts +1 -1
  619. package/dist/components/features/diff-viewer/empty-changes-message.d.ts +1 -1
  620. package/dist/components/features/diff-viewer/file-diff-viewer.d.ts +2 -1
  621. package/dist/components/features/diff-viewer/loading-spinner.d.ts +1 -1
  622. package/dist/components/features/files/file-item.d.ts +1 -1
  623. package/dist/components/features/files/file-list.d.ts +2 -1
  624. package/dist/components/features/files-tab/file-content-viewer.d.ts +1 -1
  625. package/dist/components/features/files-tab/file-quick-row.d.ts +1 -1
  626. package/dist/components/features/files-tab/file-tree-view.d.ts +1 -1
  627. package/dist/components/features/files-tab/highlighted-source-view.d.ts +1 -1
  628. package/dist/components/features/files-tab/no-file-selected-message.d.ts +1 -1
  629. package/dist/components/features/files-tab/segmented-toggle.d.ts +1 -1
  630. package/dist/components/features/files-tab/tree-node.d.ts +1 -1
  631. package/dist/components/features/home/featured-automations/automation-health-indicator.d.ts +11 -0
  632. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.d.ts +18 -0
  633. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.d.ts +14 -0
  634. package/dist/components/features/home/featured-automations/automation-run-health.d.ts +25 -0
  635. package/dist/components/features/home/featured-automations/build-home-automation-menu-items.d.ts +39 -0
  636. package/dist/components/features/home/featured-automations/build-pinned-automation-menu-items.d.ts +22 -0
  637. package/dist/components/features/home/featured-automations/home-automation-activity.d.ts +23 -0
  638. package/dist/components/features/home/featured-automations/home-automation-menu.d.ts +13 -0
  639. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.d.ts +12 -0
  640. package/dist/components/features/home/featured-automations/pinned-automation-card.d.ts +21 -0
  641. package/dist/components/features/home/featured-automations/pinned-automations-dashboard.d.ts +6 -0
  642. package/dist/components/features/home/featured-automations/running-automations-list.d.ts +6 -0
  643. package/dist/components/features/home/git-branch-dropdown/branch-dropdown-menu.d.ts +1 -1
  644. package/dist/components/features/home/git-branch-dropdown/git-branch-dropdown.d.ts +2 -1
  645. package/dist/components/features/home/git-provider-dropdown/git-provider-dropdown.d.ts +2 -1
  646. package/dist/components/features/home/git-repo-dropdown/git-repo-dropdown.d.ts +2 -1
  647. package/dist/components/features/home/home-chat-launcher.d.ts +1 -1
  648. package/dist/components/features/home/home-git-control-bar-preview.d.ts +1 -1
  649. package/dist/components/features/home/home-header/guide-message.d.ts +1 -1
  650. package/dist/components/features/home/home-header/home-header-title.d.ts +1 -1
  651. package/dist/components/features/home/home-header/home-header.d.ts +1 -1
  652. package/dist/components/features/home/llm-not-configured-banner.d.ts +1 -1
  653. package/dist/components/features/home/new-conversation/create-conversation-button.d.ts +1 -1
  654. package/dist/components/features/home/new-conversation/new-conversation.d.ts +1 -1
  655. package/dist/components/features/home/new-conversation.d.ts +1 -1
  656. package/dist/components/features/home/open-launcher-button.d.ts +1 -1
  657. package/dist/components/features/home/open-repository-dialog.d.ts +1 -1
  658. package/dist/components/features/home/open-workspace-dialog.d.ts +1 -1
  659. package/dist/components/features/home/repo-selection-form.d.ts +2 -1
  660. package/dist/components/features/home/shared/clear-button.d.ts +2 -1
  661. package/dist/components/features/home/shared/dropdown-item.d.ts +1 -1
  662. package/dist/components/features/home/shared/empty-state.d.ts +2 -1
  663. package/dist/components/features/home/shared/error-message.d.ts +2 -1
  664. package/dist/components/features/home/shared/generic-dropdown-menu.d.ts +1 -1
  665. package/dist/components/features/home/shared/loading-spinner.d.ts +2 -1
  666. package/dist/components/features/home/shared/toggle-button.d.ts +1 -1
  667. package/dist/components/features/home/tasks/task-card.d.ts +1 -1
  668. package/dist/components/features/home/tasks/task-group.d.ts +1 -1
  669. package/dist/components/features/home/tasks/task-issue-number.d.ts +1 -1
  670. package/dist/components/features/home/tasks/task-item-title.d.ts +1 -1
  671. package/dist/components/features/home/tasks/task-suggestions-skeleton.d.ts +1 -1
  672. package/dist/components/features/home/tasks/task-suggestions.d.ts +1 -1
  673. package/dist/components/features/home/workspace-dropdown/folder-browser-modal.d.ts +2 -1
  674. package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.d.ts +2 -1
  675. package/dist/components/features/home/workspace-dropdown/workspace-dropdown.d.ts +2 -1
  676. package/dist/components/features/home/workspace-selection-form.d.ts +2 -1
  677. package/dist/components/features/images/image-carousel.d.ts +2 -1
  678. package/dist/components/features/images/image-preview.d.ts +1 -1
  679. package/dist/components/features/images/thumbnail.d.ts +1 -1
  680. package/dist/components/features/launch/plugin-launch-modal.d.ts +2 -1
  681. package/dist/components/features/launch/plugin-launch-parameter-input.d.ts +1 -1
  682. package/dist/components/features/launch/plugin-launch-plugin-section.d.ts +1 -1
  683. package/dist/components/features/manifest/manifest-form-field.d.ts +1 -1
  684. package/dist/components/features/manifest/manifest-icons.d.ts +13 -0
  685. package/dist/components/features/manifest/manifest-overview-tiles.d.ts +19 -0
  686. package/dist/components/features/manifest/manifest-prerequisites-step.d.ts +1 -1
  687. package/dist/components/features/manifest/manifest-review-step.d.ts +1 -1
  688. package/dist/components/features/manifest/manifest-setup-dialog.d.ts +1 -1
  689. package/dist/components/features/manifest/manifest-subpage-layout.d.ts +23 -0
  690. package/dist/components/features/markdown/anchor.d.ts +1 -1
  691. package/dist/components/features/markdown/blockquote.d.ts +1 -1
  692. package/dist/components/features/markdown/code.d.ts +1 -1
  693. package/dist/components/features/markdown/headings.d.ts +6 -6
  694. package/dist/components/features/markdown/horizontal-rule.d.ts +1 -1
  695. package/dist/components/features/markdown/list.d.ts +3 -3
  696. package/dist/components/features/markdown/markdown-renderer.d.ts +1 -1
  697. package/dist/components/features/markdown/markdown-table-scroll.d.ts +1 -1
  698. package/dist/components/features/markdown/paragraph.d.ts +1 -1
  699. package/dist/components/features/markdown/plan-components.d.ts +36 -36
  700. package/dist/components/features/markdown/table.d.ts +3 -3
  701. package/dist/components/features/mcp-logo-badge.d.ts +1 -1
  702. package/dist/components/features/mcp-page/custom-server-editor.cjs +1 -1
  703. package/dist/components/features/mcp-page/custom-server-editor.cjs.map +1 -1
  704. package/dist/components/features/mcp-page/custom-server-editor.d.ts +2 -1
  705. package/dist/components/features/mcp-page/custom-server-editor.js +5 -0
  706. package/dist/components/features/mcp-page/custom-server-editor.js.map +1 -1
  707. package/dist/components/features/mcp-page/install-server-modal.cjs +1 -1
  708. package/dist/components/features/mcp-page/install-server-modal.cjs.map +1 -1
  709. package/dist/components/features/mcp-page/install-server-modal.d.ts +2 -1
  710. package/dist/components/features/mcp-page/install-server-modal.js +117 -118
  711. package/dist/components/features/mcp-page/install-server-modal.js.map +1 -1
  712. package/dist/components/features/mcp-page/installed-server-card.d.ts +2 -1
  713. package/dist/components/features/mcp-page/installed-servers-section.d.ts +1 -1
  714. package/dist/components/features/mcp-page/marketplace-card.d.ts +1 -1
  715. package/dist/components/features/mcp-page/marketplace-section.d.ts +1 -1
  716. package/dist/components/features/mcp-page/mcp-logo-stack-badge.d.ts +1 -1
  717. package/dist/components/features/mcp-page/mcp-section-filter-dropdown.d.ts +1 -1
  718. package/dist/components/features/mcp-page/mcp-server-health.d.ts +2 -1
  719. package/dist/components/features/mcp-page/mcp-toolbar.d.ts +1 -1
  720. package/dist/components/features/mcp-page/save-as-secret-toggle.d.ts +1 -1
  721. package/dist/components/features/onboarding/onboarding-host.d.ts +1 -1
  722. package/dist/components/features/onboarding/onboarding-modal.d.ts +2 -1
  723. package/dist/components/features/onboarding/onboarding-progress-bar.d.ts +1 -1
  724. package/dist/components/features/onboarding/steps/check-backend-step.d.ts +2 -1
  725. package/dist/components/features/onboarding/steps/choose-agent-step.d.ts +3 -2
  726. package/dist/components/features/onboarding/steps/say-hello-step.d.ts +2 -1
  727. package/dist/components/features/onboarding/steps/setup-acp-secrets-step.d.ts +2 -1
  728. package/dist/components/features/onboarding/steps/setup-llm-step.d.ts +2 -1
  729. package/dist/components/features/plugins/add-plugin-modal.d.ts +2 -1
  730. package/dist/components/features/plugins/plugin-card.d.ts +2 -1
  731. package/dist/components/features/plugins/plugin-detail-modal.d.ts +1 -1
  732. package/dist/components/features/plugins/plugin-files-section.d.ts +2 -1
  733. package/dist/components/features/plugins/plugin-picker-card.d.ts +1 -1
  734. package/dist/components/features/plugins/plugin-picker-modal.d.ts +1 -1
  735. package/dist/components/features/plugins/plugin-picker-trigger.d.ts +1 -1
  736. package/dist/components/features/plugins/plugin-picker.d.ts +1 -1
  737. package/dist/components/features/plugins/plugins-toolbar.d.ts +1 -1
  738. package/dist/components/features/settings/acp-auth-status-banner.d.ts +1 -1
  739. package/dist/components/features/settings/acp-conflict-warnings.d.ts +2 -1
  740. package/dist/components/features/settings/acp-credentials-section.d.ts +1 -1
  741. package/dist/components/features/settings/acp-secret-field.d.ts +2 -1
  742. package/dist/components/features/settings/agent-canvas-update-card.cjs +1 -1
  743. package/dist/components/features/settings/agent-canvas-update-card.cjs.map +1 -1
  744. package/dist/components/features/settings/agent-canvas-update-card.d.ts +10 -5
  745. package/dist/components/features/settings/agent-canvas-update-card.js +223 -149
  746. package/dist/components/features/settings/agent-canvas-update-card.js.map +1 -1
  747. package/dist/components/features/settings/agent-canvas-version-modal.cjs +2 -0
  748. package/dist/components/features/settings/agent-canvas-version-modal.cjs.map +1 -0
  749. package/dist/components/features/settings/agent-canvas-version-modal.d.ts +11 -0
  750. package/dist/components/features/settings/agent-canvas-version-modal.js +166 -0
  751. package/dist/components/features/settings/agent-canvas-version-modal.js.map +1 -0
  752. package/dist/components/features/settings/agent-canvas-version-tile.cjs +2 -0
  753. package/dist/components/features/settings/agent-canvas-version-tile.cjs.map +1 -0
  754. package/dist/components/features/settings/agent-canvas-version-tile.d.ts +13 -0
  755. package/dist/components/features/settings/agent-canvas-version-tile.js +60 -0
  756. package/dist/components/features/settings/agent-canvas-version-tile.js.map +1 -0
  757. package/dist/components/features/settings/agent-profiles/agent-profile-actions-menu.d.ts +1 -1
  758. package/dist/components/features/settings/agent-profiles/agent-profile-row.d.ts +1 -1
  759. package/dist/components/features/settings/agent-profiles/agent-profiles-body.d.ts +1 -1
  760. package/dist/components/features/settings/agent-profiles/agent-profiles-local-view.d.ts +1 -1
  761. package/dist/components/features/settings/agent-profiles/agent-profiles-manager.d.ts +1 -1
  762. package/dist/components/features/settings/agent-profiles/delete-agent-profile-modal.d.ts +1 -1
  763. package/dist/components/features/settings/agent-server-onboarding.d.ts +2 -1
  764. package/dist/components/features/settings/api-key-modal-base.d.ts +1 -1
  765. package/dist/components/features/settings/app-settings/app-settings-inputs-skeleton.d.ts +1 -1
  766. package/dist/components/features/settings/app-settings/language-input.d.ts +1 -1
  767. package/dist/components/features/settings/app-settings/theme-input.d.ts +2 -1
  768. package/dist/components/features/settings/backend-synced-settings-badge.d.ts +1 -1
  769. package/dist/components/features/settings/banner-message.d.ts +1 -1
  770. package/dist/components/features/settings/cloud-settings-link.d.ts +1 -1
  771. package/dist/components/features/settings/input-skeleton.d.ts +1 -1
  772. package/dist/components/features/settings/integrations-settings-link.d.ts +1 -1
  773. package/dist/components/features/settings/key-status-icon.d.ts +1 -1
  774. package/dist/components/features/settings/llm-profiles/delete-profile-modal.d.ts +1 -1
  775. package/dist/components/features/settings/llm-profiles/llm-profiles-manager.d.ts +1 -1
  776. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.d.ts +2 -1
  777. package/dist/components/features/settings/llm-profiles/profile-actions-menu-item.d.ts +1 -1
  778. package/dist/components/features/settings/llm-profiles/profile-actions-menu.d.ts +1 -1
  779. package/dist/components/features/settings/llm-profiles/profile-row.d.ts +1 -1
  780. package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +1 -1
  781. package/dist/components/features/settings/llm-profiles/rename-profile-modal.d.ts +1 -1
  782. package/dist/components/features/settings/llm-settings/llm-settings-inputs-skeleton.d.ts +1 -1
  783. package/dist/components/features/settings/llm-settings/openai-subscription-auth-card.d.ts +2 -1
  784. package/dist/components/features/settings/mcp-settings/mcp-server-form.cjs +1 -1
  785. package/dist/components/features/settings/mcp-settings/mcp-server-form.cjs.map +1 -1
  786. package/dist/components/features/settings/mcp-settings/mcp-server-form.d.ts +2 -1
  787. package/dist/components/features/settings/mcp-settings/mcp-server-form.js +2 -1
  788. package/dist/components/features/settings/mcp-settings/mcp-server-form.js.map +1 -1
  789. package/dist/components/features/settings/mcp-settings/mcp-server-list-item.d.ts +1 -1
  790. package/dist/components/features/settings/mcp-settings/mcp-server-list.d.ts +1 -1
  791. package/dist/components/features/settings/mobile-header.d.ts +1 -1
  792. package/dist/components/features/settings/optional-tag.d.ts +1 -1
  793. package/dist/components/features/settings/sdk-settings/field-help.d.ts +1 -1
  794. package/dist/components/features/settings/sdk-settings/schema-field.d.ts +2 -1
  795. package/dist/components/features/settings/sdk-settings/sdk-section-page.d.ts +1 -1
  796. package/dist/components/features/settings/sdk-settings/view-toggle.d.ts +1 -1
  797. package/dist/components/features/settings/secrets-settings/secret-form.d.ts +2 -1
  798. package/dist/components/features/settings/secrets-settings/secret-list-item.d.ts +2 -2
  799. package/dist/components/features/settings/settings-desktop-sidebar.cjs +1 -1
  800. package/dist/components/features/settings/settings-desktop-sidebar.cjs.map +1 -1
  801. package/dist/components/features/settings/settings-desktop-sidebar.d.ts +1 -1
  802. package/dist/components/features/settings/settings-desktop-sidebar.js +1 -1
  803. package/dist/components/features/settings/settings-desktop-sidebar.js.map +1 -1
  804. package/dist/components/features/settings/settings-dropdown-input.d.ts +1 -1
  805. package/dist/components/features/settings/settings-layout.d.ts +1 -1
  806. package/dist/components/features/settings/settings-mobile-drawer.cjs +1 -1
  807. package/dist/components/features/settings/settings-mobile-drawer.cjs.map +1 -1
  808. package/dist/components/features/settings/settings-mobile-drawer.d.ts +1 -1
  809. package/dist/components/features/settings/settings-mobile-drawer.js +1 -1
  810. package/dist/components/features/settings/settings-mobile-drawer.js.map +1 -1
  811. package/dist/components/features/settings/settings-mobile-hub.d.ts +1 -1
  812. package/dist/components/features/settings/settings-nav-divider.d.ts +1 -1
  813. package/dist/components/features/settings/settings-nav-header.d.ts +1 -1
  814. package/dist/components/features/settings/settings-nav-link.d.ts +1 -1
  815. package/dist/components/features/settings/settings-navigation.d.ts +1 -1
  816. package/dist/components/features/settings/settings-switch.d.ts +1 -1
  817. package/dist/components/features/settings/subtext-skeleton.d.ts +1 -1
  818. package/dist/components/features/settings/switch-skeleton.d.ts +1 -1
  819. package/dist/components/features/settings/upgrade-banner.d.ts +1 -1
  820. package/dist/components/features/settings/upgrade-button.d.ts +1 -1
  821. package/dist/components/features/sidebar/avatar.d.ts +1 -1
  822. package/dist/components/features/sidebar/sidebar-collapsed-icon-slot.d.ts +1 -1
  823. package/dist/components/features/sidebar/sidebar-conversation-list.d.ts +1 -1
  824. package/dist/components/features/sidebar/sidebar-mobile-menu-bar.d.ts +1 -1
  825. package/dist/components/features/sidebar/sidebar-mobile-menu-toggle.d.ts +1 -1
  826. package/dist/components/features/sidebar/sidebar-mobile-nav-context.d.ts +1 -1
  827. package/dist/components/features/sidebar/sidebar-nav-link.d.ts +1 -1
  828. package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
  829. package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
  830. package/dist/components/features/sidebar/sidebar-rail-body.d.ts +1 -1
  831. package/dist/components/features/sidebar/sidebar-rail-body.js +109 -108
  832. package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
  833. package/dist/components/features/sidebar/sidebar.d.ts +2 -1
  834. package/dist/components/features/sidebar/user-avatar.d.ts +1 -1
  835. package/dist/components/features/skills/add-skill-modal.d.ts +2 -1
  836. package/dist/components/features/skills/extensions-mobile-hub.d.ts +1 -1
  837. package/dist/components/features/skills/extensions-navigation.cjs +1 -1
  838. package/dist/components/features/skills/extensions-navigation.cjs.map +1 -1
  839. package/dist/components/features/skills/extensions-navigation.d.ts +1 -1
  840. package/dist/components/features/skills/extensions-navigation.js +9 -9
  841. package/dist/components/features/skills/extensions-navigation.js.map +1 -1
  842. package/dist/components/features/skills/skill-card-pill-row.d.ts +1 -1
  843. package/dist/components/features/skills/skill-card.d.ts +2 -1
  844. package/dist/components/features/skills/skill-detail-modal.d.ts +2 -1
  845. package/dist/components/features/skills/skill-facet-rail.d.ts +8 -0
  846. package/dist/components/features/skills/skill-facet-row.d.ts +13 -0
  847. package/dist/components/features/skills/skill-filter.d.ts +34 -0
  848. package/dist/components/features/skills/skill-filters-modal.d.ts +10 -0
  849. package/dist/components/features/skills/skill-icon-badge.d.ts +1 -1
  850. package/dist/components/features/skills/skill-type-badge.d.ts +1 -1
  851. package/dist/components/features/skills/skills-toolbar.d.ts +3 -4
  852. package/dist/components/features/suggestions/suggestion-item.d.ts +1 -1
  853. package/dist/components/features/suggestions/suggestions.d.ts +1 -1
  854. package/dist/components/features/terminal/empty-terminal-message.d.ts +1 -1
  855. package/dist/components/features/terminal/terminal.d.ts +1 -1
  856. package/dist/components/features/tips/random-tip.d.ts +2 -1
  857. package/dist/components/providers/agent-server-ui-providers.d.ts +1 -1
  858. package/dist/components/providers/agent-server-ui-root.d.ts +1 -1
  859. package/dist/components/providers/telemetry-provider.d.ts +1 -1
  860. package/dist/components/shared/action-tooltip.d.ts +1 -1
  861. package/dist/components/shared/agent-brand-icon.d.ts +1 -1
  862. package/dist/components/shared/badge.d.ts +1 -1
  863. package/dist/components/shared/buttons/back-nav-button-content.d.ts +1 -1
  864. package/dist/components/shared/buttons/circle-plus-check-toggle.d.ts +3 -2
  865. package/dist/components/shared/buttons/conversation-confirmation-buttons.d.ts +1 -1
  866. package/dist/components/shared/buttons/copy-to-clipboard-button.d.ts +1 -1
  867. package/dist/components/shared/buttons/copyable-content-wrapper.d.ts +1 -1
  868. package/dist/components/shared/buttons/modal-button.d.ts +1 -1
  869. package/dist/components/shared/buttons/openhands-logo-button.d.ts +1 -1
  870. package/dist/components/shared/buttons/remove-button.d.ts +1 -1
  871. package/dist/components/shared/buttons/scroll-to-bottom-button.d.ts +1 -1
  872. package/dist/components/shared/buttons/styled-tooltip.d.ts +1 -1
  873. package/dist/components/shared/filters/enum-filter-dropdown.cjs +1 -1
  874. package/dist/components/shared/filters/enum-filter-dropdown.cjs.map +1 -1
  875. package/dist/components/shared/filters/enum-filter-dropdown.d.ts +6 -2
  876. package/dist/components/shared/filters/enum-filter-dropdown.js +13 -13
  877. package/dist/components/shared/filters/enum-filter-dropdown.js.map +1 -1
  878. package/dist/components/shared/git-provider-icon.d.ts +1 -1
  879. package/dist/components/shared/hook-execution-event-message.d.ts +2 -1
  880. package/dist/components/shared/loading-spinner.d.ts +1 -1
  881. package/dist/components/shared/modals/confirmation-modal.d.ts +1 -1
  882. package/dist/components/shared/modals/confirmation-modals/base-modal.d.ts +3 -3
  883. package/dist/components/shared/modals/confirmation-modals/danger-modal.d.ts +1 -1
  884. package/dist/components/shared/modals/modal-body.d.ts +1 -1
  885. package/dist/components/shared/modals/modal-close-button.d.ts +1 -1
  886. package/dist/components/shared/modals/settings/model-selector.d.ts +2 -1
  887. package/dist/components/shared/modals/settings/settings-form.d.ts +2 -1
  888. package/dist/components/shared/modals/settings/settings-modal.d.ts +1 -1
  889. package/dist/components/shared/navigation-link.cjs +1 -1
  890. package/dist/components/shared/navigation-link.cjs.map +1 -1
  891. package/dist/components/shared/navigation-link.js +11 -7
  892. package/dist/components/shared/navigation-link.js.map +1 -1
  893. package/dist/components/shared/risk-alert.d.ts +1 -1
  894. package/dist/components/shared/text-shimmer.d.ts +1 -1
  895. package/dist/components/ui/resize-handle.d.ts +1 -1
  896. package/dist/config/defaults.cjs +1 -1
  897. package/dist/config/defaults.cjs.map +1 -1
  898. package/dist/config/defaults.js +3 -3
  899. package/dist/config/defaults.js.map +1 -1
  900. package/dist/constants/child-conversation.cjs +2 -0
  901. package/dist/constants/child-conversation.cjs.map +1 -0
  902. package/dist/constants/child-conversation.d.ts +29 -0
  903. package/dist/constants/child-conversation.js +6 -0
  904. package/dist/constants/child-conversation.js.map +1 -0
  905. package/dist/context/navigation-context.d.ts +1 -1
  906. package/dist/context/scroll-context.d.ts +1 -1
  907. package/dist/contexts/active-backend-context.d.ts +1 -1
  908. package/dist/contexts/conversation-websocket-context.cjs +3 -3
  909. package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
  910. package/dist/contexts/conversation-websocket-context.d.ts +1 -1
  911. package/dist/contexts/conversation-websocket-context.js +189 -188
  912. package/dist/contexts/conversation-websocket-context.js.map +1 -1
  913. package/dist/contexts/settings-section-header-context.d.ts +1 -1
  914. package/dist/contexts/websocket-provider-wrapper.d.ts +1 -1
  915. package/dist/fixtures/home-automations-demo.d.ts +19 -0
  916. package/dist/hooks/chat/use-model-interceptor.cjs +1 -1
  917. package/dist/hooks/chat/use-model-interceptor.js +6 -6
  918. package/dist/hooks/mutation/use-add-mcp-server.cjs +1 -1
  919. package/dist/hooks/mutation/use-add-mcp-server.cjs.map +1 -1
  920. package/dist/hooks/mutation/use-add-mcp-server.js +10 -14
  921. package/dist/hooks/mutation/use-add-mcp-server.js.map +1 -1
  922. package/dist/hooks/mutation/use-create-conversation.cjs +1 -1
  923. package/dist/hooks/mutation/use-create-conversation.js +6 -6
  924. package/dist/hooks/mutation/use-delete-mcp-server.cjs +1 -1
  925. package/dist/hooks/mutation/use-delete-mcp-server.cjs.map +1 -1
  926. package/dist/hooks/mutation/use-delete-mcp-server.d.ts +2 -7
  927. package/dist/hooks/mutation/use-delete-mcp-server.js +8 -34
  928. package/dist/hooks/mutation/use-delete-mcp-server.js.map +1 -1
  929. package/dist/hooks/mutation/use-save-settings.cjs +1 -1
  930. package/dist/hooks/mutation/use-save-settings.cjs.map +1 -1
  931. package/dist/hooks/mutation/use-save-settings.js +8 -4
  932. package/dist/hooks/mutation/use-save-settings.js.map +1 -1
  933. package/dist/hooks/mutation/use-update-mcp-server.cjs +1 -1
  934. package/dist/hooks/mutation/use-update-mcp-server.cjs.map +1 -1
  935. package/dist/hooks/mutation/use-update-mcp-server.d.ts +1 -1
  936. package/dist/hooks/mutation/use-update-mcp-server.js +31 -16
  937. package/dist/hooks/mutation/use-update-mcp-server.js.map +1 -1
  938. package/dist/hooks/query/use-active-conversation.d.ts +1 -1
  939. package/dist/hooks/query/use-agent-profiles.d.ts +1 -1
  940. package/dist/hooks/query/use-app-installations.d.ts +1 -1
  941. package/dist/hooks/query/use-automation-detail.d.ts +2 -2
  942. package/dist/hooks/query/use-automation-health.d.ts +2 -0
  943. package/dist/hooks/query/use-automations.d.ts +5 -1
  944. package/dist/hooks/query/use-bash-command-logs.d.ts +1 -1
  945. package/dist/hooks/query/use-cloud-sandbox.d.ts +1 -1
  946. package/dist/hooks/query/use-commit-changes.d.ts +1 -1
  947. package/dist/hooks/query/use-config.d.ts +1 -1
  948. package/dist/hooks/query/use-conversation-history.d.ts +1 -1
  949. package/dist/hooks/query/use-conversation-hooks.d.ts +1 -1
  950. package/dist/hooks/query/use-conversation-skills.d.ts +1 -1
  951. package/dist/hooks/query/use-get-secrets.d.ts +1 -1
  952. package/dist/hooks/query/use-home-automations.d.ts +20 -0
  953. package/dist/hooks/query/use-latest-automation-runs.d.ts +19 -0
  954. package/dist/hooks/query/use-llm-profiles.d.ts +1 -1
  955. package/dist/hooks/query/use-llm-subscription-models.d.ts +1 -1
  956. package/dist/hooks/query/use-llm-subscription-status.d.ts +1 -1
  957. package/dist/hooks/query/use-local-git-info.d.ts +1 -1
  958. package/dist/hooks/query/use-local-workspaces.d.ts +1 -1
  959. package/dist/hooks/query/use-manifest-capabilities.d.ts +2 -0
  960. package/dist/hooks/query/use-plugin-file-content.d.ts +1 -1
  961. package/dist/hooks/query/use-plugins-marketplace.d.ts +1 -1
  962. package/dist/hooks/query/use-provider-models.d.ts +1 -1
  963. package/dist/hooks/query/use-search-branches.d.ts +1 -1
  964. package/dist/hooks/query/use-search-providers.d.ts +1 -1
  965. package/dist/hooks/query/use-search-repositories.d.ts +1 -1
  966. package/dist/hooks/query/use-search-subdirs.d.ts +2 -2
  967. package/dist/hooks/query/use-settings.d.ts +2 -2
  968. package/dist/hooks/query/use-skills.d.ts +1 -1
  969. package/dist/hooks/query/use-start-tasks.d.ts +1 -1
  970. package/dist/hooks/query/use-sub-conversation-task-polling.d.ts +1 -1
  971. package/dist/hooks/query/use-sub-conversations.d.ts +1 -1
  972. package/dist/hooks/query/use-suggested-tasks.d.ts +1 -1
  973. package/dist/hooks/query/use-task-polling.d.ts +2 -2
  974. package/dist/hooks/query/use-unified-get-git-changes.d.ts +1 -1
  975. package/dist/hooks/query/use-unified-git-diff.d.ts +1 -1
  976. package/dist/hooks/query/use-user-conversation.d.ts +1 -1
  977. package/dist/hooks/query/use-workspace-file-content.d.ts +1 -1
  978. package/dist/hooks/use-backend-scoped-path.cjs +2 -0
  979. package/dist/hooks/use-backend-scoped-path.cjs.map +1 -0
  980. package/dist/hooks/use-backend-scoped-path.d.ts +10 -0
  981. package/dist/hooks/use-backend-scoped-path.js +13 -0
  982. package/dist/hooks/use-backend-scoped-path.js.map +1 -0
  983. package/dist/hooks/use-home-automation-actions.d.ts +23 -0
  984. package/dist/hooks/use-home-pinned-automations.d.ts +26 -0
  985. package/dist/hooks/use-tracking.cjs +1 -1
  986. package/dist/hooks/use-tracking.cjs.map +1 -1
  987. package/dist/hooks/use-tracking.d.ts +4 -0
  988. package/dist/hooks/use-tracking.js +6 -0
  989. package/dist/hooks/use-tracking.js.map +1 -1
  990. package/dist/i18n/declaration.cjs +1 -1
  991. package/dist/i18n/declaration.cjs.map +1 -1
  992. package/dist/i18n/declaration.d.ts +105 -2
  993. package/dist/i18n/declaration.js +1 -1
  994. package/dist/i18n/declaration.js.map +1 -1
  995. package/dist/i18n/translation.cjs +2 -2
  996. package/dist/i18n/translation.cjs.map +1 -1
  997. package/dist/i18n/translation.js +1813 -62
  998. package/dist/i18n/translation.js.map +1 -1
  999. package/dist/icons/code-pill.d.ts +1 -1
  1000. package/dist/icons/docker.cjs +2 -0
  1001. package/dist/icons/docker.cjs.map +1 -0
  1002. package/dist/icons/docker.js +19 -0
  1003. package/dist/icons/docker.js.map +1 -0
  1004. package/dist/icons/npm.cjs +2 -0
  1005. package/dist/icons/npm.cjs.map +1 -0
  1006. package/dist/icons/npm.js +19 -0
  1007. package/dist/icons/npm.js.map +1 -0
  1008. package/dist/locales/ar/openhands.json +108 -5
  1009. package/dist/locales/ca/openhands.json +108 -5
  1010. package/dist/locales/de/openhands.json +108 -5
  1011. package/dist/locales/en/openhands.json +108 -5
  1012. package/dist/locales/es/openhands.json +108 -5
  1013. package/dist/locales/fr/openhands.json +108 -5
  1014. package/dist/locales/it/openhands.json +108 -5
  1015. package/dist/locales/ja/openhands.json +108 -5
  1016. package/dist/locales/ko-KR/openhands.json +108 -5
  1017. package/dist/locales/no/openhands.json +108 -5
  1018. package/dist/locales/pt/openhands.json +108 -5
  1019. package/dist/locales/tr/openhands.json +108 -5
  1020. package/dist/locales/uk/openhands.json +108 -5
  1021. package/dist/locales/zh-CN/openhands.json +108 -5
  1022. package/dist/locales/zh-TW/openhands.json +108 -5
  1023. package/dist/manifests/automation-insights.d.ts +64 -0
  1024. package/dist/manifests/automation-interface.cjs +1 -1
  1025. package/dist/manifests/automation-interface.cjs.map +1 -1
  1026. package/dist/manifests/automation-interface.d.ts +33 -1
  1027. package/dist/manifests/automation-interface.js +2 -1
  1028. package/dist/manifests/automation-interface.js.map +1 -1
  1029. package/dist/manifests/interface-validation.cjs +1 -1
  1030. package/dist/manifests/interface-validation.cjs.map +1 -1
  1031. package/dist/manifests/interface-validation.js +228 -50
  1032. package/dist/manifests/interface-validation.js.map +1 -1
  1033. package/dist/manifests/manifest-template.d.ts +2 -0
  1034. package/dist/manifests/manifest-validation.cjs.map +1 -1
  1035. package/dist/manifests/manifest-validation.js.map +1 -1
  1036. package/dist/manifests/types.cjs +1 -1
  1037. package/dist/manifests/types.cjs.map +1 -1
  1038. package/dist/manifests/types.d.ts +128 -0
  1039. package/dist/manifests/types.js +35 -2
  1040. package/dist/manifests/types.js.map +1 -1
  1041. package/dist/mockServiceWorker.js +21 -9
  1042. package/dist/node_modules/@openhands/extensions/automations/catalog/upstream-fork-sync/manifest.cjs +9 -0
  1043. package/dist/node_modules/@openhands/extensions/automations/catalog/upstream-fork-sync/manifest.cjs.map +1 -0
  1044. package/dist/node_modules/@openhands/extensions/automations/catalog/upstream-fork-sync/manifest.js +74 -0
  1045. package/dist/node_modules/@openhands/extensions/automations/catalog/upstream-fork-sync/manifest.js.map +1 -0
  1046. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs +1 -1
  1047. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs.map +1 -1
  1048. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js +6 -4
  1049. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js.map +1 -1
  1050. package/dist/node_modules/@openhands/extensions/automations/interface.cjs +1 -1
  1051. package/dist/node_modules/@openhands/extensions/automations/interface.cjs.map +1 -1
  1052. package/dist/node_modules/@openhands/extensions/automations/interface.js +126 -5
  1053. package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
  1054. package/dist/node_modules/@openhands/extensions/skills/index.cjs +161 -53
  1055. package/dist/node_modules/@openhands/extensions/skills/index.cjs.map +1 -1
  1056. package/dist/node_modules/@openhands/extensions/skills/index.js +112 -50
  1057. package/dist/node_modules/@openhands/extensions/skills/index.js.map +1 -1
  1058. package/dist/node_modules/@openhands/typescript-client/dist/index.cjs +1 -1
  1059. package/dist/node_modules/@openhands/typescript-client/dist/index.js +1 -1
  1060. package/dist/node_modules/@tanstack/query-core/build/modern/utils.cjs +1 -1
  1061. package/dist/node_modules/@tanstack/query-core/build/modern/utils.cjs.map +1 -1
  1062. package/dist/node_modules/@tanstack/query-core/build/modern/utils.js +12 -1
  1063. package/dist/node_modules/@tanstack/query-core/build/modern/utils.js.map +1 -1
  1064. package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs +1 -1
  1065. package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.cjs.map +1 -1
  1066. package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js +14 -12
  1067. package/dist/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js.map +1 -1
  1068. package/dist/node_modules/html-parse-stringify/dist/esm/html-parse-stringify.cjs +2 -0
  1069. package/dist/node_modules/html-parse-stringify/dist/esm/html-parse-stringify.cjs.map +1 -0
  1070. package/dist/node_modules/html-parse-stringify/dist/esm/html-parse-stringify.js +177 -0
  1071. package/dist/node_modules/html-parse-stringify/dist/esm/html-parse-stringify.js.map +1 -0
  1072. package/dist/node_modules/i18next/dist/esm/i18next.cjs +1 -1
  1073. package/dist/node_modules/i18next/dist/esm/i18next.cjs.map +1 -1
  1074. package/dist/node_modules/i18next/dist/esm/i18next.js +31 -24
  1075. package/dist/node_modules/i18next/dist/esm/i18next.js.map +1 -1
  1076. package/dist/node_modules/lucide-react/dist/esm/icons/briefcase.cjs +2 -0
  1077. package/dist/node_modules/lucide-react/dist/esm/icons/briefcase.cjs.map +1 -0
  1078. package/dist/node_modules/lucide-react/dist/esm/icons/briefcase.js +16 -0
  1079. package/dist/node_modules/lucide-react/dist/esm/icons/briefcase.js.map +1 -0
  1080. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.cjs +2 -0
  1081. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.cjs.map +1 -0
  1082. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +27 -0
  1083. package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js.map +1 -0
  1084. package/dist/node_modules/lucide-react/dist/esm/icons/circle-arrow-up.cjs +2 -0
  1085. package/dist/node_modules/lucide-react/dist/esm/icons/circle-arrow-up.cjs.map +1 -0
  1086. package/dist/node_modules/lucide-react/dist/esm/icons/circle-arrow-up.js +21 -0
  1087. package/dist/node_modules/lucide-react/dist/esm/icons/circle-arrow-up.js.map +1 -0
  1088. package/dist/node_modules/lucide-react/dist/esm/icons/circle-user-round.cjs +2 -0
  1089. package/dist/node_modules/lucide-react/dist/esm/icons/circle-user-round.cjs.map +1 -0
  1090. package/dist/node_modules/lucide-react/dist/esm/icons/circle-user-round.js +23 -0
  1091. package/dist/node_modules/lucide-react/dist/esm/icons/circle-user-round.js.map +1 -0
  1092. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-cog.cjs +2 -0
  1093. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-cog.cjs.map +1 -0
  1094. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-cog.js +43 -0
  1095. package/dist/node_modules/lucide-react/dist/esm/icons/cloud-cog.js.map +1 -0
  1096. package/dist/node_modules/lucide-react/dist/esm/icons/earth.cjs +2 -0
  1097. package/dist/node_modules/lucide-react/dist/esm/icons/earth.cjs.map +1 -0
  1098. package/dist/node_modules/lucide-react/dist/esm/icons/earth.js +25 -0
  1099. package/dist/node_modules/lucide-react/dist/esm/icons/earth.js.map +1 -0
  1100. package/dist/node_modules/lucide-react/dist/esm/icons/flag.cjs +2 -0
  1101. package/dist/node_modules/lucide-react/dist/esm/icons/flag.cjs.map +1 -0
  1102. package/dist/node_modules/lucide-react/dist/esm/icons/flag.js +9 -0
  1103. package/dist/node_modules/lucide-react/dist/esm/icons/flag.js.map +1 -0
  1104. package/dist/node_modules/lucide-react/dist/esm/icons/folder-git-2.cjs +2 -0
  1105. package/dist/node_modules/lucide-react/dist/esm/icons/folder-git-2.cjs.map +1 -0
  1106. package/dist/node_modules/lucide-react/dist/esm/icons/folder-git-2.js +27 -0
  1107. package/dist/node_modules/lucide-react/dist/esm/icons/folder-git-2.js.map +1 -0
  1108. package/dist/node_modules/lucide-react/dist/esm/icons/folder-key.cjs +2 -0
  1109. package/dist/node_modules/lucide-react/dist/esm/icons/folder-key.cjs.map +1 -0
  1110. package/dist/node_modules/lucide-react/dist/esm/icons/folder-key.js +25 -0
  1111. package/dist/node_modules/lucide-react/dist/esm/icons/folder-key.js.map +1 -0
  1112. package/dist/node_modules/lucide-react/dist/esm/icons/git-pull-request.cjs +2 -0
  1113. package/dist/node_modules/lucide-react/dist/esm/icons/git-pull-request.cjs.map +1 -0
  1114. package/dist/node_modules/lucide-react/dist/esm/icons/git-pull-request.js +30 -0
  1115. package/dist/node_modules/lucide-react/dist/esm/icons/git-pull-request.js.map +1 -0
  1116. package/dist/node_modules/lucide-react/dist/esm/icons/hash.cjs +2 -0
  1117. package/dist/node_modules/lucide-react/dist/esm/icons/hash.cjs.map +1 -0
  1118. package/dist/node_modules/lucide-react/dist/esm/icons/hash.js +35 -0
  1119. package/dist/node_modules/lucide-react/dist/esm/icons/hash.js.map +1 -0
  1120. package/dist/node_modules/lucide-react/dist/esm/icons/house.cjs +2 -0
  1121. package/dist/node_modules/lucide-react/dist/esm/icons/house.cjs.map +1 -0
  1122. package/dist/node_modules/lucide-react/dist/esm/icons/house.js +12 -0
  1123. package/dist/node_modules/lucide-react/dist/esm/icons/house.js.map +1 -0
  1124. package/dist/node_modules/lucide-react/dist/esm/icons/id-card.cjs +2 -0
  1125. package/dist/node_modules/lucide-react/dist/esm/icons/id-card.cjs.map +1 -0
  1126. package/dist/node_modules/lucide-react/dist/esm/icons/id-card.js +33 -0
  1127. package/dist/node_modules/lucide-react/dist/esm/icons/id-card.js.map +1 -0
  1128. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.cjs +2 -0
  1129. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.cjs.map +1 -0
  1130. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +15 -0
  1131. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js.map +1 -0
  1132. package/dist/node_modules/lucide-react/dist/esm/icons/layers.cjs +2 -0
  1133. package/dist/node_modules/lucide-react/dist/esm/icons/layers.cjs.map +1 -0
  1134. package/dist/node_modules/lucide-react/dist/esm/icons/layers.js +19 -0
  1135. package/dist/node_modules/lucide-react/dist/esm/icons/layers.js.map +1 -0
  1136. package/dist/node_modules/lucide-react/dist/esm/icons/link-2.cjs +2 -0
  1137. package/dist/node_modules/lucide-react/dist/esm/icons/link-2.cjs.map +1 -0
  1138. package/dist/node_modules/lucide-react/dist/esm/icons/link-2.js +22 -0
  1139. package/dist/node_modules/lucide-react/dist/esm/icons/link-2.js.map +1 -0
  1140. package/dist/node_modules/lucide-react/dist/esm/icons/mails.cjs +2 -0
  1141. package/dist/node_modules/lucide-react/dist/esm/icons/mails.cjs.map +1 -0
  1142. package/dist/node_modules/lucide-react/dist/esm/icons/mails.js +23 -0
  1143. package/dist/node_modules/lucide-react/dist/esm/icons/mails.js.map +1 -0
  1144. package/dist/node_modules/lucide-react/dist/esm/icons/messages-square.cjs +2 -0
  1145. package/dist/node_modules/lucide-react/dist/esm/icons/messages-square.cjs.map +1 -0
  1146. package/dist/node_modules/lucide-react/dist/esm/icons/messages-square.js +12 -0
  1147. package/dist/node_modules/lucide-react/dist/esm/icons/messages-square.js.map +1 -0
  1148. package/dist/node_modules/lucide-react/dist/esm/icons/plug.cjs +2 -0
  1149. package/dist/node_modules/lucide-react/dist/esm/icons/plug.cjs.map +1 -0
  1150. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +23 -0
  1151. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js.map +1 -0
  1152. package/dist/node_modules/lucide-react/dist/esm/icons/square-kanban.cjs +2 -0
  1153. package/dist/node_modules/lucide-react/dist/esm/icons/square-kanban.cjs.map +1 -0
  1154. package/dist/node_modules/lucide-react/dist/esm/icons/square-kanban.js +27 -0
  1155. package/dist/node_modules/lucide-react/dist/esm/icons/square-kanban.js.map +1 -0
  1156. package/dist/node_modules/lucide-react/dist/esm/icons/ticket.cjs +2 -0
  1157. package/dist/node_modules/lucide-react/dist/esm/icons/ticket.cjs.map +1 -0
  1158. package/dist/node_modules/lucide-react/dist/esm/icons/ticket.js +23 -0
  1159. package/dist/node_modules/lucide-react/dist/esm/icons/ticket.js.map +1 -0
  1160. package/dist/node_modules/lucide-react/dist/esm/icons/users-round.cjs +2 -0
  1161. package/dist/node_modules/lucide-react/dist/esm/icons/users-round.cjs.map +1 -0
  1162. package/dist/node_modules/lucide-react/dist/esm/icons/users-round.js +21 -0
  1163. package/dist/node_modules/lucide-react/dist/esm/icons/users-round.js.map +1 -0
  1164. package/dist/node_modules/lucide-react/dist/esm/icons/waypoints.cjs +2 -0
  1165. package/dist/node_modules/lucide-react/dist/esm/icons/waypoints.cjs.map +1 -0
  1166. package/dist/node_modules/lucide-react/dist/esm/icons/waypoints.js +43 -0
  1167. package/dist/node_modules/lucide-react/dist/esm/icons/waypoints.js.map +1 -0
  1168. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.cjs +2 -0
  1169. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.cjs.map +1 -0
  1170. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.js +19 -0
  1171. package/dist/node_modules/lucide-react/dist/esm/icons/webhook.js.map +1 -0
  1172. package/dist/node_modules/lucide-react/dist/esm/icons/workflow.cjs +2 -0
  1173. package/dist/node_modules/lucide-react/dist/esm/icons/workflow.cjs.map +1 -0
  1174. package/dist/node_modules/lucide-react/dist/esm/icons/workflow.js +27 -0
  1175. package/dist/node_modules/lucide-react/dist/esm/icons/workflow.js.map +1 -0
  1176. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.cjs +2 -0
  1177. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.cjs.map +1 -0
  1178. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js +9 -0
  1179. package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js.map +1 -0
  1180. package/dist/node_modules/lucide-react/dist/esm/icons/zap.cjs +2 -0
  1181. package/dist/node_modules/lucide-react/dist/esm/icons/zap.cjs.map +1 -0
  1182. package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +9 -0
  1183. package/dist/node_modules/lucide-react/dist/esm/icons/zap.js.map +1 -0
  1184. package/dist/node_modules/posthog-js/dist/module.cjs +2 -2
  1185. package/dist/node_modules/posthog-js/dist/module.cjs.map +1 -1
  1186. package/dist/node_modules/posthog-js/dist/module.js +2055 -1929
  1187. package/dist/node_modules/posthog-js/dist/module.js.map +1 -1
  1188. package/dist/node_modules/react-i18next/dist/es/TransWithoutContext.cjs +1 -1
  1189. package/dist/node_modules/react-i18next/dist/es/TransWithoutContext.cjs.map +1 -1
  1190. package/dist/node_modules/react-i18next/dist/es/TransWithoutContext.js +43 -62
  1191. package/dist/node_modules/react-i18next/dist/es/TransWithoutContext.js.map +1 -1
  1192. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs +1 -1
  1193. package/dist/node_modules/react-i18next/dist/es/useTranslation.cjs.map +1 -1
  1194. package/dist/node_modules/react-i18next/dist/es/useTranslation.js +12 -6
  1195. package/dist/node_modules/react-i18next/dist/es/useTranslation.js.map +1 -1
  1196. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs +1 -1
  1197. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.cjs.map +1 -1
  1198. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +352 -310
  1199. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -1
  1200. package/dist/package.cjs +1 -1
  1201. package/dist/package.cjs.map +1 -1
  1202. package/dist/package.js +39 -35
  1203. package/dist/package.js.map +1 -1
  1204. package/dist/routes/agent-settings.d.ts +3 -2
  1205. package/dist/routes/app-settings.d.ts +2 -1
  1206. package/dist/routes/browser-tab.d.ts +1 -1
  1207. package/dist/routes/changes-tab.d.ts +2 -1
  1208. package/dist/routes/commits-tab.d.ts +1 -1
  1209. package/dist/routes/conversation.d.ts +2 -1
  1210. package/dist/routes/files-tab.d.ts +1 -1
  1211. package/dist/routes/llm-settings.d.ts +3 -2
  1212. package/dist/routes/mcp.cjs +1 -1
  1213. package/dist/routes/mcp.cjs.map +1 -1
  1214. package/dist/routes/mcp.d.ts +2 -1
  1215. package/dist/routes/mcp.js +1 -1
  1216. package/dist/routes/mcp.js.map +1 -1
  1217. package/dist/routes/planner-tab.d.ts +2 -1
  1218. package/dist/routes/secrets-settings.d.ts +2 -1
  1219. package/dist/routes/task-list-tab.d.ts +1 -1
  1220. package/dist/services/child-conversation-launch.cjs +2 -0
  1221. package/dist/services/child-conversation-launch.cjs.map +1 -0
  1222. package/dist/services/child-conversation-launch.d.ts +41 -0
  1223. package/dist/services/child-conversation-launch.js +182 -0
  1224. package/dist/services/child-conversation-launch.js.map +1 -0
  1225. package/dist/services/settings.cjs +1 -1
  1226. package/dist/services/settings.cjs.map +1 -1
  1227. package/dist/services/settings.js +3 -7
  1228. package/dist/services/settings.js.map +1 -1
  1229. package/dist/stores/conversation-panel-preferences-store.cjs +1 -1
  1230. package/dist/stores/conversation-panel-preferences-store.cjs.map +1 -1
  1231. package/dist/stores/conversation-panel-preferences-store.d.ts +5 -1
  1232. package/dist/stores/conversation-panel-preferences-store.js +8 -2
  1233. package/dist/stores/conversation-panel-preferences-store.js.map +1 -1
  1234. package/dist/types/agent-server/core/base/action.d.ts +17 -1
  1235. package/dist/types/agent-server/core/base/base.d.ts +2 -1
  1236. package/dist/types/agent-server/type-guards.cjs +1 -1
  1237. package/dist/types/agent-server/type-guards.cjs.map +1 -1
  1238. package/dist/types/agent-server/type-guards.d.ts +8 -1
  1239. package/dist/types/agent-server/type-guards.js +4 -3
  1240. package/dist/types/agent-server/type-guards.js.map +1 -1
  1241. package/dist/types/automation.d.ts +30 -1
  1242. package/dist/types/mcp-auth.cjs.map +1 -1
  1243. package/dist/types/mcp-auth.d.ts +5 -41
  1244. package/dist/types/mcp-auth.js.map +1 -1
  1245. package/dist/types/mcp-server.d.ts +17 -32
  1246. package/dist/types/settings.d.ts +8 -28
  1247. package/dist/ui/card-title.d.ts +1 -1
  1248. package/dist/ui/card.d.ts +1 -1
  1249. package/dist/ui/combobox-caret.d.ts +3 -3
  1250. package/dist/ui/context-menu.cjs +1 -1
  1251. package/dist/ui/context-menu.cjs.map +1 -1
  1252. package/dist/ui/context-menu.d.ts +3 -2
  1253. package/dist/ui/context-menu.js +10 -9
  1254. package/dist/ui/context-menu.js.map +1 -1
  1255. package/dist/ui/divider.d.ts +1 -1
  1256. package/dist/ui/dropdown/clear-button.d.ts +1 -1
  1257. package/dist/ui/dropdown/dropdown-input.d.ts +1 -1
  1258. package/dist/ui/dropdown/dropdown-menu.d.ts +1 -1
  1259. package/dist/ui/dropdown/dropdown.d.ts +1 -1
  1260. package/dist/ui/dropdown/loading-spinner.d.ts +1 -1
  1261. package/dist/ui/dropdown/toggle-button.d.ts +1 -1
  1262. package/dist/ui/help-link.d.ts +1 -1
  1263. package/dist/ui/pre.d.ts +1 -1
  1264. package/dist/ui/toggle-switch.d.ts +2 -2
  1265. package/dist/ui/typography.d.ts +7 -7
  1266. package/dist/utils/automation-activity-log-export.d.ts +17 -0
  1267. package/dist/utils/automation-timeout.d.ts +4 -6
  1268. package/dist/utils/custom-toast-handlers.cjs +1 -1
  1269. package/dist/utils/custom-toast-handlers.cjs.map +1 -1
  1270. package/dist/utils/custom-toast-handlers.d.ts +2 -2
  1271. package/dist/utils/custom-toast-handlers.js +18 -1
  1272. package/dist/utils/custom-toast-handlers.js.map +1 -1
  1273. package/dist/utils/format-relative-time.d.ts +3 -0
  1274. package/dist/utils/mcp-config.cjs +1 -1
  1275. package/dist/utils/mcp-config.cjs.map +1 -1
  1276. package/dist/utils/mcp-config.d.ts +12 -29
  1277. package/dist/utils/mcp-config.js +161 -143
  1278. package/dist/utils/mcp-config.js.map +1 -1
  1279. package/dist/utils/mcp-installed-servers.cjs +1 -1
  1280. package/dist/utils/mcp-installed-servers.cjs.map +1 -1
  1281. package/dist/utils/mcp-installed-servers.d.ts +2 -2
  1282. package/dist/utils/mcp-installed-servers.js +21 -32
  1283. package/dist/utils/mcp-installed-servers.js.map +1 -1
  1284. package/dist/utils/mcp-server-health-key.cjs.map +1 -1
  1285. package/dist/utils/mcp-server-health-key.d.ts +2 -4
  1286. package/dist/utils/mcp-server-health-key.js.map +1 -1
  1287. package/dist/utils/settings-like-page-layout-classes.cjs +1 -1
  1288. package/dist/utils/settings-like-page-layout-classes.cjs.map +1 -1
  1289. package/dist/utils/settings-like-page-layout-classes.d.ts +6 -2
  1290. package/dist/utils/settings-like-page-layout-classes.js +1 -1
  1291. package/dist/utils/settings-like-page-layout-classes.js.map +1 -1
  1292. package/dist/utils/skill-category.d.ts +12 -0
  1293. package/package.json +41 -35
  1294. package/scripts/brand-dev-electron.mjs +244 -0
  1295. package/scripts/check-sdk-version-sync.mjs +6 -6
  1296. package/scripts/check-translation-completeness.cjs +4 -0
  1297. package/scripts/dev-safe.mjs +2 -2
  1298. package/scripts/dev-with-automation.mjs +3 -2
  1299. package/scripts/generate-icons.mjs +109 -0
  1300. package/build/assets/Trans-Bwpzk1wT.js +0 -1
  1301. package/build/assets/active-backend-context-BiwzkzDy.js +0 -2
  1302. package/build/assets/agent-context-settings-DXNT_dcw.js +0 -1
  1303. package/build/assets/agent-server-conversation-service.api-CYSWw-2g.js +0 -41
  1304. package/build/assets/agent-settings-BjgQQe-_.js +0 -1
  1305. package/build/assets/alert-banner-DR8EVyZM.js +0 -1
  1306. package/build/assets/api-error-message-e16L1kwH.js +0 -1
  1307. package/build/assets/automation-detail-DY6x2FW1.js +0 -2
  1308. package/build/assets/automation-export-C09f-Lua.js +0 -2
  1309. package/build/assets/automation-setup-route-CqKp0717.js +0 -1
  1310. package/build/assets/automations-list-CqWJ7qXW.js +0 -1
  1311. package/build/assets/backend-form-modal-B8D5hBzK.js +0 -1
  1312. package/build/assets/check-CPLXgluF.js +0 -1
  1313. package/build/assets/chevron-down-CP4QHvyc.js +0 -1
  1314. package/build/assets/circle-check-Dpy2_xSI.js +0 -1
  1315. package/build/assets/command-menu-Bj6X4ckE.js +0 -1
  1316. package/build/assets/condenser-settings-EAXQNR2E.js +0 -1
  1317. package/build/assets/context-menu-list-item-CrCrYuPF.js +0 -1
  1318. package/build/assets/conversation-BzyIcSwr.js +0 -1
  1319. package/build/assets/conversation-panel-BzyIcSwr.js +0 -1
  1320. package/build/assets/copy-DCmZtz6n.js +0 -1
  1321. package/build/assets/entry.client-BbIYOsIg.js +0 -2
  1322. package/build/assets/enum-filter-dropdown-C08-srev.js +0 -1
  1323. package/build/assets/files-tab-DEq8MbHu.js +0 -1
  1324. package/build/assets/format-time-delta-CxfPJpzC.js +0 -1
  1325. package/build/assets/git-repo-dropdown-9WKINV6J.js +0 -1
  1326. package/build/assets/home-CY0JaxiY.js +0 -1
  1327. package/build/assets/home-CaNWlVvB.js +0 -1
  1328. package/build/assets/index-home-CaNWlVvB.js +0 -1
  1329. package/build/assets/info-CmWQXtRQ.js +0 -1
  1330. package/build/assets/install-server-modal-BWrudmZU.js +0 -1
  1331. package/build/assets/llm-not-configured-banner-3tMsM4K6.js +0 -27
  1332. package/build/assets/llm-settings-CXo8iPNW.js +0 -1
  1333. package/build/assets/llm-settings-D0W8mJDk.js +0 -1
  1334. package/build/assets/loader-circle-B4QDBARx.js +0 -1
  1335. package/build/assets/manifest-39f4789d.js +0 -1
  1336. package/build/assets/map-provider-CXU6issd.js +0 -1
  1337. package/build/assets/markdown-renderer-DgiLLhW6.js +0 -8
  1338. package/build/assets/mcp-DXG9LWrI.js +0 -9
  1339. package/build/assets/mcp-marketplace-utils-DFmhKc5s.js +0 -1
  1340. package/build/assets/messages-kBjKaAeA.js +0 -40
  1341. package/build/assets/navigation-link-Bxmn-pCs.js +0 -1
  1342. package/build/assets/onboarding-47hh2IHA.js +0 -1
  1343. package/build/assets/onboarding-modal-9BuvvROo.js +0 -1
  1344. package/build/assets/plus-DrKuuvMe.js +0 -1
  1345. package/build/assets/recommended-automations-launcher-ejxy1P27.js +0 -1
  1346. package/build/assets/root-5S-M8SYa.js +0 -2
  1347. package/build/assets/root-DZ39lS5f.css +0 -1
  1348. package/build/assets/root-layout-BPqoa0gv.js +0 -3
  1349. package/build/assets/search-Dc2qR4O2.js +0 -1
  1350. package/build/assets/settings-BRbnfKEm.js +0 -1
  1351. package/build/assets/settings-Chfn5xTD.js +0 -1
  1352. package/build/assets/settings-like-page-layout-classes-DyxyJ0k4.js +0 -1
  1353. package/build/assets/settings-service.api-CZiPD8__.js +0 -1
  1354. package/build/assets/sidebar-mobile-menu-toggle-ND-hgygu.js +0 -1
  1355. package/build/assets/sidebar-store-Bui-WNEr.js +0 -1
  1356. package/build/assets/skills-settings-B43KArIz.js +0 -2
  1357. package/build/assets/use-is-authed-BT7Iud4U.js +0 -1
  1358. package/build/assets/use-llm-profiles-2Wc2db8u.js +0 -1
  1359. package/build/assets/use-save-agent-profile-D0wC5ExW.js +0 -1
  1360. package/build/assets/use-settings-nav-items-DHAAD-zk.js +0 -16
  1361. package/build/assets/use-skills-CE6miQ3r.js +0 -1
  1362. package/build/assets/use-tracking-BGboadaZ.js +0 -68
  1363. package/build/assets/useQuery-DiPh8LRJ.js +0 -1
  1364. package/build/assets/utils-BgGG1znF.js +0 -1
  1365. package/build/assets/v4-DDdyfk2q.js +0 -1
  1366. package/build/assets/vendor~browser-IVYgIgG1.js +0 -47
  1367. package/build/assets/vendor~entry.client-CXM9oiAk.js +0 -1
  1368. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~d4by102p-C2f0ZhS-.js +0 -26
  1369. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~emdr2jt4-BrmgjeOw.js +0 -1
  1370. package/build/assets/vendor~module-BZXjBMvd.js +0 -2
  1371. package/build/assets/x-omAzpXkl.js +0 -1
  1372. package/dist/components/features/skills/skill-type-filter.d.ts +0 -3
  1373. package/dist/components/features/skills/skills-type-filter-dropdown.d.ts +0 -7
  1374. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.module.cjs +0 -2
  1375. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.module.cjs.map +0 -1
  1376. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +0 -81
  1377. package/dist/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js.map +0 -1
  1378. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.cjs +0 -2
  1379. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.cjs.map +0 -1
  1380. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -9
  1381. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js.map +0 -1
  1382. package/dist/node_modules/void-elements/index.cjs +0 -2
  1383. package/dist/node_modules/void-elements/index.cjs.map +0 -1
  1384. package/dist/node_modules/void-elements/index.js +0 -25
  1385. package/dist/node_modules/void-elements/index.js.map +0 -1
  1386. /package/build/assets/{vendor~root-layout~index-home~home~mcp~automations-list~automation-setup-route~onboarding-modal-D7IDevqN.js → vendor~root-layout~index-home~home~mcp~automations-list~automation-templates~automation-set~bxsimjx0-D7IDevqN.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { getActiveBackend as e } from "../backend-registry/active-store.js";
2
- import { AGENT_CANVAS_CLIENT_HEADERS as t } from "../client-source.js";
3
- import { callCloudProxy as n } from "./proxy.js";
1
+ import { getActiveBackend as e, getRegisteredBackends as t } from "../backend-registry/active-store.js";
2
+ import { AGENT_CANVAS_CLIENT_HEADERS as n } from "../client-source.js";
4
3
  import { getStoredConversationMetadata as r } from "../conversation-metadata-store.js";
4
+ import { callCloudProxy as i } from "./proxy.js";
5
5
  //#region src/api/cloud/conversation-service.api.ts
6
- function i(e) {
6
+ function a(e) {
7
7
  if (!e?.id) return e;
8
8
  let t = r(e.id);
9
9
  return t ? {
@@ -14,97 +14,101 @@ function i(e) {
14
14
  selected_workspace: e.selected_workspace ?? t.selected_workspace ?? null
15
15
  } : e;
16
16
  }
17
- function a() {
17
+ function o() {
18
18
  let t = e().backend;
19
19
  if (t.kind !== "cloud") throw Error("Cloud conversations call requires a cloud backend.");
20
20
  return t;
21
21
  }
22
- async function o(e = 20, t) {
23
- let r = a(), o = new URLSearchParams();
24
- o.set("limit", String(e)), t && o.set("page_id", t), o.set("sort_order", "UPDATED_AT_DESC");
25
- let s = await n({
26
- backend: r,
22
+ function s() {
23
+ let n = e().backend;
24
+ return n.kind === "cloud" ? n : t().find((e) => e.kind === "cloud" && !!e.apiKey) ?? null;
25
+ }
26
+ async function c(e = 20, t) {
27
+ let n = o(), r = new URLSearchParams();
28
+ r.set("limit", String(e)), t && r.set("page_id", t), r.set("sort_order", "UPDATED_AT_DESC");
29
+ let s = await i({
30
+ backend: n,
27
31
  method: "GET",
28
- path: `/api/v1/app-conversations/search?${o.toString()}`
32
+ path: `/api/v1/app-conversations/search?${r.toString()}`
29
33
  });
30
34
  return {
31
- items: (s?.items ?? []).map((e) => i(e)),
35
+ items: (s?.items ?? []).map((e) => a(e)),
32
36
  next_page_id: s?.next_page_id ?? null
33
37
  };
34
38
  }
35
- async function s(e) {
39
+ async function l(e) {
36
40
  if (e.length === 0) return [];
37
- let t = a(), r = new URLSearchParams();
38
- for (let t of e) r.append("ids", t);
39
- return (await n({
41
+ let t = o(), n = new URLSearchParams();
42
+ for (let t of e) n.append("ids", t);
43
+ return (await i({
40
44
  backend: t,
41
45
  method: "GET",
42
- path: `/api/v1/app-conversations?${r.toString()}`
43
- }) ?? []).map(i);
46
+ path: `/api/v1/app-conversations?${n.toString()}`
47
+ }) ?? []).map(a);
44
48
  }
45
- async function c(e) {
46
- return await n({
47
- backend: a(),
49
+ async function u(e, t) {
50
+ return await i({
51
+ backend: t ?? o(),
48
52
  method: "POST",
49
53
  path: "/api/v1/app-conversations",
50
54
  body: e,
51
- headers: t
55
+ headers: n
52
56
  });
53
57
  }
54
- async function l(e) {
55
- return n({
56
- backend: a(),
58
+ async function d(e) {
59
+ return i({
60
+ backend: o(),
57
61
  method: "GET",
58
62
  path: `/api/v1/app-conversations/${e}/download`,
59
63
  responseType: "blob"
60
64
  });
61
65
  }
62
- async function u(e) {
63
- await n({
64
- backend: a(),
66
+ async function f(e) {
67
+ await i({
68
+ backend: o(),
65
69
  method: "DELETE",
66
70
  path: `/api/v1/app-conversations/${e}`
67
71
  });
68
72
  }
69
- async function d(e, t) {
70
- return await n({
71
- backend: a(),
73
+ async function p(e, t) {
74
+ return await i({
75
+ backend: o(),
72
76
  method: "PATCH",
73
77
  path: `/api/v1/app-conversations/${e}`,
74
78
  body: { public: t }
75
79
  });
76
80
  }
77
- async function f(e) {
78
- await n({
79
- backend: a(),
81
+ async function m(e) {
82
+ await i({
83
+ backend: o(),
80
84
  method: "POST",
81
85
  path: `/api/v1/sandboxes/${e}/pause`
82
86
  });
83
87
  }
84
- async function p(e) {
85
- await n({
86
- backend: a(),
88
+ async function h(e) {
89
+ await i({
90
+ backend: o(),
87
91
  method: "POST",
88
92
  path: `/api/v1/sandboxes/${e}/resume`
89
93
  });
90
94
  }
91
- async function m(e, t) {
92
- let r = a(), i = new URLSearchParams();
93
- return i.append("file_path", t), await n({
94
- backend: r,
95
+ async function g(e, t) {
96
+ let n = o(), r = new URLSearchParams();
97
+ return r.append("file_path", t), await i({
98
+ backend: n,
95
99
  method: "GET",
96
- path: `/api/v1/app-conversations/${e}/file?${i.toString()}`
100
+ path: `/api/v1/app-conversations/${e}/file?${r.toString()}`
97
101
  }) ?? "";
98
102
  }
99
- async function h(e) {
100
- let t = a(), r = new URLSearchParams();
101
- return r.set("ids", e), (await n({
102
- backend: t,
103
+ async function _(e, t) {
104
+ let n = t ?? o(), r = new URLSearchParams();
105
+ return r.set("ids", e), (await i({
106
+ backend: n,
103
107
  method: "GET",
104
108
  path: `/api/v1/app-conversations/start-tasks?${r.toString()}`
105
109
  }))?.[0] ?? null;
106
110
  }
107
111
  //#endregion
108
- export { s as batchGetCloudConversations, c as createCloudAppConversation, u as deleteCloudConversation, l as downloadCloudConversation, h as getCloudAppConversationStartTask, f as pauseCloudSandbox, m as readCloudConversationFile, p as resumeCloudSandbox, o as searchCloudConversations, d as updateCloudConversationPublicFlag };
112
+ export { l as batchGetCloudConversations, u as createCloudAppConversation, f as deleteCloudConversation, d as downloadCloudConversation, _ as getCloudAppConversationStartTask, m as pauseCloudSandbox, s as pickCloudBackendForLaunch, g as readCloudConversationFile, h as resumeCloudSandbox, c as searchCloudConversations, p as updateCloudConversationPublicFlag };
109
113
 
110
114
  //# sourceMappingURL=conversation-service.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-service.api.js","names":[],"sources":["../../../src/api/cloud/conversation-service.api.ts"],"sourcesContent":["import { getActiveBackend } from \"../backend-registry/active-store\";\nimport type { Backend } from \"../backend-registry/types\";\nimport { getStoredConversationMetadata } from \"../conversation-metadata-store\";\nimport type {\n AppConversation,\n AppConversationPage,\n AppConversationStartRequest,\n AppConversationStartTask,\n} from \"../conversation-service/agent-server-conversation-service.types\";\nimport { AGENT_CANVAS_CLIENT_HEADERS } from \"../client-source\";\nimport { callCloudProxy } from \"./proxy\";\n\n/**\n * The cloud backend does not always echo `selected_repository` /\n * `selected_branch` / `git_provider` back from\n * `GET /api/v1/app-conversations` until its own background hydration\n * completes. We persist the selection to local storage at connect time\n * (see `AgentServerConversationService.updateConversationRepository`)\n * and overlay it here so the chat-page git control bar reflects the\n * connection immediately, instead of snapping back to the empty\n * \"Connect Repo\" state on every refetch.\n *\n * Server values take precedence whenever they're populated; the\n * local-storage fallback only fills in fields the server returned as\n * `null`/`undefined`.\n */\nfunction overlayStoredRepoSelection(\n conversation: AppConversation | null,\n): AppConversation | null {\n if (!conversation?.id) return conversation;\n const stored = getStoredConversationMetadata(conversation.id);\n if (!stored) return conversation;\n\n return {\n ...conversation,\n selected_repository:\n conversation.selected_repository ?? stored.selected_repository ?? null,\n selected_branch:\n conversation.selected_branch ?? stored.selected_branch ?? null,\n git_provider: conversation.git_provider ?? stored.git_provider ?? null,\n selected_workspace:\n conversation.selected_workspace ?? stored.selected_workspace ?? null,\n };\n}\n\nfunction getActiveCloudBackend(): Backend {\n const active = getActiveBackend().backend;\n if (active.kind !== \"cloud\") {\n throw new Error(\"Cloud conversations call requires a cloud backend.\");\n }\n return active;\n}\n\n/**\n * Search the cloud app-conversations list. Mirrors the local\n * `AgentServerConversationService.searchConversations` interface but calls\n * the cloud endpoint `/api/v1/app-conversations/search`.\n */\nexport async function searchCloudConversations(\n limit: number = 20,\n pageId?: string,\n): Promise<AppConversationPage> {\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n params.set(\"limit\", String(limit));\n if (pageId) params.set(\"page_id\", pageId);\n params.set(\"sort_order\", \"UPDATED_AT_DESC\");\n\n const data = await callCloudProxy<{\n items: AppConversation[];\n next_page_id: string | null;\n }>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/search?${params.toString()}`,\n });\n\n return {\n items: (data?.items ?? []).map(\n (item) => overlayStoredRepoSelection(item) as AppConversation,\n ),\n next_page_id: data?.next_page_id ?? null,\n };\n}\n\n/**\n * Batch-fetch cloud app-conversations by id. Mirrors the local\n * `AgentServerConversationService.batchGetAppConversations` interface.\n */\nexport async function batchGetCloudConversations(\n ids: string[],\n): Promise<(AppConversation | null)[]> {\n if (ids.length === 0) return [];\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n for (const id of ids) params.append(\"ids\", id);\n const data = await callCloudProxy<(AppConversation | null)[]>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations?${params.toString()}`,\n });\n return (data ?? []).map(overlayStoredRepoSelection);\n}\n\n/**\n * Create a v1 app-conversation on the cloud backend.\n *\n * Mirrors OpenHands' cloud flow: POST /api/v1/app-conversations with the\n * `AppConversationStartRequest` payload, returning a\n * `AppConversationStartTask`. The task is initially WORKING; the caller\n * polls `getCloudAppConversationStartTask` (3s cadence per OpenHands)\n * until status is READY (then `app_conversation_id`, `agent_server_url`,\n * and `session_api_key` are populated) or ERROR.\n *\n * This path does NOT use encrypted-settings round-tripping. Secrets stay\n * server-side on the cloud backend — the only auth carried is the cloud bearer\n * token, and the conversation runtime is\n * provisioned with its own ephemeral session_api_key returned in the\n * task.\n */\nexport async function createCloudAppConversation(\n request: AppConversationStartRequest,\n): Promise<AppConversationStartTask> {\n const backend = getActiveCloudBackend();\n const data = await callCloudProxy<AppConversationStartTask>({\n backend,\n method: \"POST\",\n path: \"/api/v1/app-conversations\",\n body: request as unknown as Record<string, unknown>,\n headers: AGENT_CANVAS_CLIENT_HEADERS,\n });\n return data;\n}\n\n/**\n * Download a v1 app-conversation as a ZIP from the cloud backend. Mirrors\n * the local `AgentServerConversationService.downloadConversation` interface but\n * calls\n * `GET /api/v1/app-conversations/{id}/download`, which returns\n * `application/zip` with `Content-Disposition` set by the cloud backend.\n */\nexport async function downloadCloudConversation(\n conversationId: string,\n): Promise<Blob> {\n const backend = getActiveCloudBackend();\n return callCloudProxy<Blob>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/${conversationId}/download`,\n responseType: \"blob\",\n });\n}\n\n/**\n * Delete a v1 app-conversation on the cloud backend. Mirrors the local\n * `AgentServerConversationService.deleteConversation` interface but calls\n * `DELETE /api/v1/app-conversations/{id}`, which returns a JSON\n * `Success` envelope (discarded here — the caller only needs to know\n * the request didn't error).\n */\nexport async function deleteCloudConversation(\n conversationId: string,\n): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"DELETE\",\n path: `/api/v1/app-conversations/${conversationId}`,\n });\n}\n\n/**\n * Toggle the public-sharing flag on a cloud v1 app-conversation. Mirrors\n * OpenHands' `AgentServerConversationService.updateConversationPublicFlag`:\n * `PATCH /api/v1/app-conversations/{id}` with `{ public }`, returning\n * the updated conversation.\n */\nexport async function updateCloudConversationPublicFlag(\n conversationId: string,\n isPublic: boolean,\n): Promise<AppConversation> {\n const backend = getActiveCloudBackend();\n const data = await callCloudProxy<AppConversation>({\n backend,\n method: \"PATCH\",\n path: `/api/v1/app-conversations/${conversationId}`,\n body: { public: isPublic },\n });\n return data;\n}\n\n/**\n * Pause the cloud sandbox backing a v1 app-conversation. Mirrors\n * OpenHands' `SandboxService.pauseSandbox`:\n * `POST /api/v1/sandboxes/{sandboxId}/pause` on the cloud backend, which stops\n * the runtime owning the conversation.\n */\nexport async function pauseCloudSandbox(sandboxId: string): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"POST\",\n path: `/api/v1/sandboxes/${sandboxId}/pause`,\n });\n}\n\n/**\n * Resume a paused cloud sandbox. Mirrors OpenHands' `SandboxService.resumeSandbox`\n * by calling `POST /api/v1/sandboxes/{sandboxId}/resume` on the SaaS.\n *\n * This is the correct endpoint for waking a PAUSED sandbox. It is a\n * lightweight unpause — NOT the same as creating a new start task via\n * `POST /api/v1/app-conversations`, which provisions a fresh conversation\n * and is subject to the 120-second sandbox-start timeout.\n */\nexport async function resumeCloudSandbox(sandboxId: string): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"POST\",\n path: `/api/v1/sandboxes/${sandboxId}/resume`,\n });\n}\n\n/**\n * Read a file from a cloud conversation's sandbox workspace. Mirrors\n * OpenHands' `AgentServerConversationService.readConversationFile` — hits\n * `GET /api/v1/app-conversations/{id}/file?file_path=...` on the cloud backend\n * and returns the file content as a string.\n */\nexport async function readCloudConversationFile(\n conversationId: string,\n filePath: string,\n): Promise<string> {\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n params.append(\"file_path\", filePath);\n const data = await callCloudProxy<string>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/${conversationId}/file?${params.toString()}`,\n });\n return data ?? \"\";\n}\n\n/**\n * Fetch a single v1 app-conversation start task. Mirrors OpenHands'\n * `AgentServerConversationService.getStartTask` — uses the batch search endpoint\n * with a single id and unwraps the first result.\n */\nexport async function getCloudAppConversationStartTask(\n taskId: string,\n): Promise<AppConversationStartTask | null> {\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n params.set(\"ids\", taskId);\n const data = await callCloudProxy<(AppConversationStartTask | null)[]>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/start-tasks?${params.toString()}`,\n });\n return data?.[0] ?? null;\n}\n"],"mappings":";;;;;AA0BA,SAAS,EACP,GACwB;CACxB,IAAI,CAAC,GAAc,IAAI,OAAO;CAC9B,IAAM,IAAS,EAA8B,EAAa,EAAE;CAG5D,OAFK,IAEE;EACL,GAAG;EACH,qBACE,EAAa,uBAAuB,EAAO,uBAAuB;EACpE,iBACE,EAAa,mBAAmB,EAAO,mBAAmB;EAC5D,cAAc,EAAa,gBAAgB,EAAO,gBAAgB;EAClE,oBACE,EAAa,sBAAsB,EAAO,sBAAsB;CACpE,IAXoB;AAYtB;AAEA,SAAS,IAAiC;CACxC,IAAM,IAAS,EAAiB,EAAE;CAClC,IAAI,EAAO,SAAS,SAClB,MAAU,MAAM,oDAAoD;CAEtE,OAAO;AACT;AAOA,eAAsB,EACpB,IAAgB,IAChB,GAC8B;CAC9B,IAAM,IAAU,EAAsB,GAChC,IAAS,IAAI,gBAAgB;CAGnC,AAFA,EAAO,IAAI,SAAS,OAAO,CAAK,CAAC,GAC7B,KAAQ,EAAO,IAAI,WAAW,CAAM,GACxC,EAAO,IAAI,cAAc,iBAAiB;CAE1C,IAAM,IAAO,MAAM,EAGhB;EACD;EACA,QAAQ;EACR,MAAM,oCAAoC,EAAO,SAAS;CAC5D,CAAC;CAED,OAAO;EACL,QAAQ,GAAM,SAAS,CAAC,GAAG,KACxB,MAAS,EAA2B,CAAI,CAC3C;EACA,cAAc,GAAM,gBAAgB;CACtC;AACF;AAMA,eAAsB,EACpB,GACqC;CACrC,IAAI,EAAI,WAAW,GAAG,OAAO,CAAC;CAC9B,IAAM,IAAU,EAAsB,GAChC,IAAS,IAAI,gBAAgB;CACnC,KAAK,IAAM,KAAM,GAAK,EAAO,OAAO,OAAO,CAAE;CAM7C,QAAQ,MALW,EAA2C;EAC5D;EACA,QAAQ;EACR,MAA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AyC,EAAO,SAAS;CACjE,CAAC,KACa,MAAM;AACtB"}
1
+ {"version":3,"file":"conversation-service.api.js","names":[],"sources":["../../../src/api/cloud/conversation-service.api.ts"],"sourcesContent":["import {\n getActiveBackend,\n getRegisteredBackends,\n} from \"../backend-registry/active-store\";\nimport type { Backend } from \"../backend-registry/types\";\nimport { getStoredConversationMetadata } from \"../conversation-metadata-store\";\nimport type {\n AppConversation,\n AppConversationPage,\n AppConversationStartRequest,\n AppConversationStartTask,\n} from \"../conversation-service/agent-server-conversation-service.types\";\nimport { AGENT_CANVAS_CLIENT_HEADERS } from \"../client-source\";\nimport { callCloudProxy } from \"./proxy\";\n\n/**\n * The cloud backend does not always echo `selected_repository` /\n * `selected_branch` / `git_provider` back from\n * `GET /api/v1/app-conversations` until its own background hydration\n * completes. We persist the selection to local storage at connect time\n * (see `AgentServerConversationService.updateConversationRepository`)\n * and overlay it here so the chat-page git control bar reflects the\n * connection immediately, instead of snapping back to the empty\n * \"Connect Repo\" state on every refetch.\n *\n * Server values take precedence whenever they're populated; the\n * local-storage fallback only fills in fields the server returned as\n * `null`/`undefined`.\n */\nfunction overlayStoredRepoSelection(\n conversation: AppConversation | null,\n): AppConversation | null {\n if (!conversation?.id) return conversation;\n const stored = getStoredConversationMetadata(conversation.id);\n if (!stored) return conversation;\n\n return {\n ...conversation,\n selected_repository:\n conversation.selected_repository ?? stored.selected_repository ?? null,\n selected_branch:\n conversation.selected_branch ?? stored.selected_branch ?? null,\n git_provider: conversation.git_provider ?? stored.git_provider ?? null,\n selected_workspace:\n conversation.selected_workspace ?? stored.selected_workspace ?? null,\n };\n}\n\nfunction getActiveCloudBackend(): Backend {\n const active = getActiveBackend().backend;\n if (active.kind !== \"cloud\") {\n throw new Error(\"Cloud conversations call requires a cloud backend.\");\n }\n return active;\n}\n\n/**\n * Resolve the cloud backend a Cloud conversation should be launched against\n * when the active backend may not be a cloud one. Cloud conversations cannot\n * register client tools, so the typed launch action always runs from a local\n * parent and has to reach a registered-but-inactive cloud backend.\n *\n * Prefers the active backend when it is already cloud, then the first\n * registered cloud backend that carries credentials. Returns `null` when the\n * user has no cloud backend connected, so callers can give the agent\n * corrective guidance instead of failing opaquely.\n *\n * Note: `createCloudClient` only sends `X-Org-Id` for the *active* backend, so\n * a conversation launched against an inactive backend lands in the API key's\n * own organization.\n */\nexport function pickCloudBackendForLaunch(): Backend | null {\n const active = getActiveBackend().backend;\n if (active.kind === \"cloud\") return active;\n return (\n getRegisteredBackends().find(\n (backend) => backend.kind === \"cloud\" && !!backend.apiKey,\n ) ?? null\n );\n}\n\n/**\n * Search the cloud app-conversations list. Mirrors the local\n * `AgentServerConversationService.searchConversations` interface but calls\n * the cloud endpoint `/api/v1/app-conversations/search`.\n */\nexport async function searchCloudConversations(\n limit: number = 20,\n pageId?: string,\n): Promise<AppConversationPage> {\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n params.set(\"limit\", String(limit));\n if (pageId) params.set(\"page_id\", pageId);\n params.set(\"sort_order\", \"UPDATED_AT_DESC\");\n\n const data = await callCloudProxy<{\n items: AppConversation[];\n next_page_id: string | null;\n }>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/search?${params.toString()}`,\n });\n\n return {\n items: (data?.items ?? []).map(\n (item) => overlayStoredRepoSelection(item) as AppConversation,\n ),\n next_page_id: data?.next_page_id ?? null,\n };\n}\n\n/**\n * Batch-fetch cloud app-conversations by id. Mirrors the local\n * `AgentServerConversationService.batchGetAppConversations` interface.\n */\nexport async function batchGetCloudConversations(\n ids: string[],\n): Promise<(AppConversation | null)[]> {\n if (ids.length === 0) return [];\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n for (const id of ids) params.append(\"ids\", id);\n const data = await callCloudProxy<(AppConversation | null)[]>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations?${params.toString()}`,\n });\n return (data ?? []).map(overlayStoredRepoSelection);\n}\n\n/**\n * Create a v1 app-conversation on the cloud backend.\n *\n * Mirrors OpenHands' cloud flow: POST /api/v1/app-conversations with the\n * `AppConversationStartRequest` payload, returning a\n * `AppConversationStartTask`. The task is initially WORKING; the caller\n * polls `getCloudAppConversationStartTask` (3s cadence per OpenHands)\n * until status is READY (then `app_conversation_id`, `agent_server_url`,\n * and `session_api_key` are populated) or ERROR.\n *\n * This path does NOT use encrypted-settings round-tripping. Secrets stay\n * server-side on the cloud backend — the only auth carried is the cloud bearer\n * token, and the conversation runtime is\n * provisioned with its own ephemeral session_api_key returned in the\n * task.\n */\nexport async function createCloudAppConversation(\n request: AppConversationStartRequest,\n // Defaults to the active backend. The typed launch action passes an explicit\n // backend because it always runs from a *local* parent conversation.\n backendOverride?: Backend,\n): Promise<AppConversationStartTask> {\n const backend = backendOverride ?? getActiveCloudBackend();\n const data = await callCloudProxy<AppConversationStartTask>({\n backend,\n method: \"POST\",\n path: \"/api/v1/app-conversations\",\n body: request as unknown as Record<string, unknown>,\n headers: AGENT_CANVAS_CLIENT_HEADERS,\n });\n return data;\n}\n\n/**\n * Download a v1 app-conversation as a ZIP from the cloud backend. Mirrors\n * the local `AgentServerConversationService.downloadConversation` interface but\n * calls\n * `GET /api/v1/app-conversations/{id}/download`, which returns\n * `application/zip` with `Content-Disposition` set by the cloud backend.\n */\nexport async function downloadCloudConversation(\n conversationId: string,\n): Promise<Blob> {\n const backend = getActiveCloudBackend();\n return callCloudProxy<Blob>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/${conversationId}/download`,\n responseType: \"blob\",\n });\n}\n\n/**\n * Delete a v1 app-conversation on the cloud backend. Mirrors the local\n * `AgentServerConversationService.deleteConversation` interface but calls\n * `DELETE /api/v1/app-conversations/{id}`, which returns a JSON\n * `Success` envelope (discarded here — the caller only needs to know\n * the request didn't error).\n */\nexport async function deleteCloudConversation(\n conversationId: string,\n): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"DELETE\",\n path: `/api/v1/app-conversations/${conversationId}`,\n });\n}\n\n/**\n * Toggle the public-sharing flag on a cloud v1 app-conversation. Mirrors\n * OpenHands' `AgentServerConversationService.updateConversationPublicFlag`:\n * `PATCH /api/v1/app-conversations/{id}` with `{ public }`, returning\n * the updated conversation.\n */\nexport async function updateCloudConversationPublicFlag(\n conversationId: string,\n isPublic: boolean,\n): Promise<AppConversation> {\n const backend = getActiveCloudBackend();\n const data = await callCloudProxy<AppConversation>({\n backend,\n method: \"PATCH\",\n path: `/api/v1/app-conversations/${conversationId}`,\n body: { public: isPublic },\n });\n return data;\n}\n\n/**\n * Pause the cloud sandbox backing a v1 app-conversation. Mirrors\n * OpenHands' `SandboxService.pauseSandbox`:\n * `POST /api/v1/sandboxes/{sandboxId}/pause` on the cloud backend, which stops\n * the runtime owning the conversation.\n */\nexport async function pauseCloudSandbox(sandboxId: string): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"POST\",\n path: `/api/v1/sandboxes/${sandboxId}/pause`,\n });\n}\n\n/**\n * Resume a paused cloud sandbox. Mirrors OpenHands' `SandboxService.resumeSandbox`\n * by calling `POST /api/v1/sandboxes/{sandboxId}/resume` on the SaaS.\n *\n * This is the correct endpoint for waking a PAUSED sandbox. It is a\n * lightweight unpause — NOT the same as creating a new start task via\n * `POST /api/v1/app-conversations`, which provisions a fresh conversation\n * and is subject to the 120-second sandbox-start timeout.\n */\nexport async function resumeCloudSandbox(sandboxId: string): Promise<void> {\n const backend = getActiveCloudBackend();\n await callCloudProxy<unknown>({\n backend,\n method: \"POST\",\n path: `/api/v1/sandboxes/${sandboxId}/resume`,\n });\n}\n\n/**\n * Read a file from a cloud conversation's sandbox workspace. Mirrors\n * OpenHands' `AgentServerConversationService.readConversationFile` — hits\n * `GET /api/v1/app-conversations/{id}/file?file_path=...` on the cloud backend\n * and returns the file content as a string.\n */\nexport async function readCloudConversationFile(\n conversationId: string,\n filePath: string,\n): Promise<string> {\n const backend = getActiveCloudBackend();\n const params = new URLSearchParams();\n params.append(\"file_path\", filePath);\n const data = await callCloudProxy<string>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/${conversationId}/file?${params.toString()}`,\n });\n return data ?? \"\";\n}\n\n/**\n * Fetch a single v1 app-conversation start task. Mirrors OpenHands'\n * `AgentServerConversationService.getStartTask` — uses the batch search endpoint\n * with a single id and unwraps the first result.\n */\nexport async function getCloudAppConversationStartTask(\n taskId: string,\n backendOverride?: Backend,\n): Promise<AppConversationStartTask | null> {\n const backend = backendOverride ?? getActiveCloudBackend();\n const params = new URLSearchParams();\n params.set(\"ids\", taskId);\n const data = await callCloudProxy<(AppConversationStartTask | null)[]>({\n backend,\n method: \"GET\",\n path: `/api/v1/app-conversations/start-tasks?${params.toString()}`,\n });\n return data?.[0] ?? null;\n}\n"],"mappings":";;;;;AA6BA,SAAS,EACP,GACwB;CACxB,IAAI,CAAC,GAAc,IAAI,OAAO;CAC9B,IAAM,IAAS,EAA8B,EAAa,EAAE;CAG5D,OAFK,IAEE;EACL,GAAG;EACH,qBACE,EAAa,uBAAuB,EAAO,uBAAuB;EACpE,iBACE,EAAa,mBAAmB,EAAO,mBAAmB;EAC5D,cAAc,EAAa,gBAAgB,EAAO,gBAAgB;EAClE,oBACE,EAAa,sBAAsB,EAAO,sBAAsB;CACpE,IAXoB;AAYtB;AAEA,SAAS,IAAiC;CACxC,IAAM,IAAS,EAAiB,EAAE;CAClC,IAAI,EAAO,SAAS,SAClB,MAAU,MAAM,oDAAoD;CAEtE,OAAO;AACT;AAiBA,SAAgB,IAA4C;CAC1D,IAAM,IAAS,EAAiB,EAAE;CAElC,OADI,EAAO,SAAS,UAAgB,IAElC,EAAsB,EAAE,MACrB,MAAY,EAAQ,SAAS,WAAW,CAAC,CAAC,EAAQ,MACrD,KAAK;AAET;AAOA,eAAsB,EACpB,IAAgB,IAChB,GAC8B;CAC9B,IAAM,IAAU,EAAsB,GAChC,IAAS,IAAI,gBAAgB;CAGnC,AAFA,EAAO,IAAI,SAAS,OAAO,CAAK,CAAC,GA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AAC;AACH;AAWA,eAAsB,EAAmB,GAAkC;CAEzE,MAAM,EAAwB;EAC5B,SAFc,EAEd;EACA,QAAQ;EACR,MAAM,qBAAqB,EAAU;CACvC,CAAC;AACH;AAQA,eAAsB,EACpB,GACA,GACiB;CACjB,IAAM,IAAU,EAAsB,GAChC,IAAS,IAAI,gBAAgB;CAOnC,OANA,EAAO,OAAO,aAAa,CAAQ,GAM5B,MALY,EAAuB;EACxC;EACA,QAAQ;EACR,MAAM,6BAA6B,EAAe,QAAQ,EAAO,SAAS;CAC5E,CAAC,KACc;AACjB;AAOA,eAAsB,EACpB,GACA,GAC0C;CAC1C,IAAM,IAAU,KAAmB,EAAsB,GACnD,IAAS,IAAI,gBAAgB;CAOnC,OANA,EAAO,IAAI,OAAO,CAAM,IAMjB,MALY,EAAoD;EACrE;EACA,QAAQ;EACR,MAAM,yCAAyC,EAAO,SAAS;CACjE,CAAC,KACa,MAAM;AACtB"}
@@ -1,2 +1,2 @@
1
- require("../_virtual/_rolldown/runtime.cjs");const e=require("./backend-registry/active-store.cjs"),t=require("./agent-server-client-options.cjs"),n=require("../node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.cjs"),r=require("./cloud/conversation-service.api.cjs"),i=require("./workspace-upload-path.cjs");var a=5;async function o(t,n){if(n?.id===t&&n.conversation_url?.trim()&&n.session_api_key?.trim())return{conversationUrl:n.conversation_url.trim(),sessionApiKey:n.session_api_key.trim()};if(e.getActiveBackend().backend.kind===`cloud`){let[e]=await r.batchGetCloudConversations([t]);return{conversationUrl:e?.conversation_url?.trim()??null,sessionApiKey:e?.session_api_key?.trim()??null}}return{conversationUrl:null,sessionApiKey:null}}function s(e){if(!e.conversationUrl||!e.sessionApiKey)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return{conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey}}async function c(t,n,r){let a=await i.resolveConversationUploadWorkingDir(t,r),c=await o(t,r),u=e.getActiveBackend().backend.kind===`cloud`,d=r?.id===t?r.session_api_key??c.sessionApiKey:c.sessionApiKey,f=r?.id===t?r.conversation_url??c.conversationUrl:c.conversationUrl;if(u){let e=s({conversationUrl:f,sessionApiKey:d});return l({files:n,workingDir:a,conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey})}return l({files:n,workingDir:a,conversationUrl:f,sessionApiKey:d})}async function l(e){let{files:r,workingDir:o,conversationUrl:s,sessionApiKey:c}=e,l=new n.RemoteWorkspace(t.getAgentServerClientOptions({conversationUrl:s,sessionApiKey:c,workingDir:o})),u=async e=>{try{let t=i.getSafeUploadFileName(e.name),n=await i.buildWorkspaceUploadPath(e.name,o,{conversationUrl:s,sessionApiKey:c});return await l.fileUpload(e,n),{uploadedFile:t,skippedFile:null}}catch(t){return{uploadedFile:null,skippedFile:{name:e.name,reason:t instanceof Error?t.message:`Upload failed`}}}},d=[];for(let e=0;e<r.length;e+=a){let t=r.slice(e,e+a);d.push(...await Promise.all(t.map(u)))}return{uploaded_files:d.flatMap(e=>e.uploadedFile?[e.uploadedFile]:[]),skipped_files:d.flatMap(e=>e.skippedFile?[e.skippedFile]:[])}}exports.resolveConversationRuntime=o,exports.uploadFilesToConversation=c;
1
+ require("../_virtual/_rolldown/runtime.cjs");const e=require("./backend-registry/active-store.cjs"),t=require("./agent-server-client-options.cjs"),n=require("./cloud/conversation-service.api.cjs"),r=require("../node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.cjs"),i=require("./workspace-upload-path.cjs");var a=5;async function o(t,r){if(r?.id===t&&r.conversation_url?.trim()&&r.session_api_key?.trim())return{conversationUrl:r.conversation_url.trim(),sessionApiKey:r.session_api_key.trim()};if(e.getActiveBackend().backend.kind===`cloud`){let[e]=await n.batchGetCloudConversations([t]);return{conversationUrl:e?.conversation_url?.trim()??null,sessionApiKey:e?.session_api_key?.trim()??null}}return{conversationUrl:null,sessionApiKey:null}}function s(e){if(!e.conversationUrl||!e.sessionApiKey)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return{conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey}}async function c(t,n,r){let a=await i.resolveConversationUploadWorkingDir(t,r),c=await o(t,r),u=e.getActiveBackend().backend.kind===`cloud`,d=r?.id===t?r.session_api_key??c.sessionApiKey:c.sessionApiKey,f=r?.id===t?r.conversation_url??c.conversationUrl:c.conversationUrl;if(u){let e=s({conversationUrl:f,sessionApiKey:d});return l({files:n,workingDir:a,conversationUrl:e.conversationUrl,sessionApiKey:e.sessionApiKey})}return l({files:n,workingDir:a,conversationUrl:f,sessionApiKey:d})}async function l(e){let{files:n,workingDir:o,conversationUrl:s,sessionApiKey:c}=e,l=new r.RemoteWorkspace(t.getAgentServerClientOptions({conversationUrl:s,sessionApiKey:c,workingDir:o})),u=async e=>{try{let t=i.getSafeUploadFileName(e.name),n=await i.buildWorkspaceUploadPath(e.name,o,{conversationUrl:s,sessionApiKey:c});return await l.fileUpload(e,n),{uploadedFile:t,skippedFile:null}}catch(t){return{uploadedFile:null,skippedFile:{name:e.name,reason:t instanceof Error?t.message:`Upload failed`}}}},d=[];for(let e=0;e<n.length;e+=a){let t=n.slice(e,e+a);d.push(...await Promise.all(t.map(u)))}return{uploaded_files:d.flatMap(e=>e.uploadedFile?[e.uploadedFile]:[]),skipped_files:d.flatMap(e=>e.skippedFile?[e.skippedFile]:[])}}exports.resolveConversationRuntime=o,exports.uploadFilesToConversation=c;
2
2
  //# sourceMappingURL=conversation-file-upload.api.cjs.map
@@ -1,17 +1,17 @@
1
1
  import { getActiveBackend as e } from "./backend-registry/active-store.js";
2
2
  import { getAgentServerClientOptions as t } from "./agent-server-client-options.js";
3
- import { RemoteWorkspace as n } from "../node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.js";
4
- import { batchGetCloudConversations as r } from "./cloud/conversation-service.api.js";
3
+ import { batchGetCloudConversations as n } from "./cloud/conversation-service.api.js";
4
+ import { RemoteWorkspace as r } from "../node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.js";
5
5
  import { buildWorkspaceUploadPath as i, getSafeUploadFileName as a, resolveConversationUploadWorkingDir as o } from "./workspace-upload-path.js";
6
6
  //#region src/api/conversation-file-upload.api.ts
7
7
  var s = 5;
8
- async function c(t, n) {
9
- if (n?.id === t && n.conversation_url?.trim() && n.session_api_key?.trim()) return {
10
- conversationUrl: n.conversation_url.trim(),
11
- sessionApiKey: n.session_api_key.trim()
8
+ async function c(t, r) {
9
+ if (r?.id === t && r.conversation_url?.trim() && r.session_api_key?.trim()) return {
10
+ conversationUrl: r.conversation_url.trim(),
11
+ sessionApiKey: r.session_api_key.trim()
12
12
  };
13
13
  if (e().backend.kind === "cloud") {
14
- let [e] = await r([t]);
14
+ let [e] = await n([t]);
15
15
  return {
16
16
  conversationUrl: e?.conversation_url?.trim() ?? null,
17
17
  sessionApiKey: e?.session_api_key?.trim() ?? null
@@ -51,7 +51,7 @@ async function u(t, n, r) {
51
51
  });
52
52
  }
53
53
  async function d(e) {
54
- let { files: r, workingDir: o, conversationUrl: c, sessionApiKey: l } = e, u = new n(t({
54
+ let { files: n, workingDir: o, conversationUrl: c, sessionApiKey: l } = e, u = new r(t({
55
55
  conversationUrl: c,
56
56
  sessionApiKey: l,
57
57
  workingDir: o
@@ -75,8 +75,8 @@ async function d(e) {
75
75
  };
76
76
  }
77
77
  }, f = [];
78
- for (let e = 0; e < r.length; e += s) {
79
- let t = r.slice(e, e + s);
78
+ for (let e = 0; e < n.length; e += s) {
79
+ let t = n.slice(e, e + s);
80
80
  f.push(...await Promise.all(t.map(d)));
81
81
  }
82
82
  return {
@@ -1,2 +1,2 @@
1
- require("../../_virtual/_rolldown/runtime.cjs");const e=require("../../node_modules/@openhands/typescript-client/dist/client/conversation-client.cjs"),t=require("../../node_modules/@openhands/typescript-client/dist/client/file-client.cjs"),n=require("../../node_modules/@openhands/typescript-client/dist/client/profiles-client.cjs"),r=require("../../node_modules/@openhands/typescript-client/dist/client/vscode-client.cjs");require("../../node_modules/@openhands/typescript-client/dist/clients.cjs");const i=require("../../utils/websocket-url.cjs"),a=require("../agent-server-config.cjs"),o=require("../backend-registry/active-store.cjs"),s=require("../agent-server-client-options.cjs"),c=require("../../node_modules/uuid/dist/v4.cjs"),l=require("../cloud/proxy.cjs"),u=require("../../node_modules/@openhands/typescript-client/dist/models/conversation.cjs");require("../../node_modules/@openhands/typescript-client/dist/index.cjs");const d=require("../agent-server-home.cjs"),f=require("../profiles-service/profiles-service.api.cjs"),p=require("../conversation-metadata-store.cjs"),m=require("../cloud/conversation-service.api.cjs"),h=require("../settings-service/settings-service.api.cjs"),g=require("../agent-server-adapter.cjs"),_=require("../../utils/title-llm-profile.cjs");var v=`1970-01-01T00:00:00.000Z`,y=300*1e3,b=`Unable to load conversations because the selected agent server returned data this UI does not understand. Check the backend URL/session key and update the agent server if needed.`;function x(){return Error(b)}function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C(e){return typeof e==`number`?e:null}function w(e){return typeof e==`number`?e:0}function T(e){return typeof e==`string`?e:null}function E(e,t,n){let r=e[t]??e[n];return typeof r==`string`&&r.trim()?r:v}function D(e){return S(e)?{prompt_tokens:w(e.prompt_tokens),completion_tokens:w(e.completion_tokens),cache_read_tokens:w(e.cache_read_tokens),cache_write_tokens:w(e.cache_write_tokens),context_window:w(e.context_window),per_turn_token:w(e.per_turn_token)}:null}function O(e){return S(e)?{accumulated_cost:C(e.accumulated_cost),max_budget_per_task:C(e.max_budget_per_task),accumulated_token_usage:D(e.accumulated_token_usage)}:null}function k(e){if(!S(e))return null;let t=S(e.llm)?{model:T(e.llm.model)}:null;return{kind:T(e.kind),acp_server:T(e.acp_server),acp_model:T(e.acp_model),llm:t}}function A(e){return S(e)?{working_dir:T(e.working_dir)}:null}function j(e){if(!S(e))return null;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}function M(e){if(!S(e))return null;let{agent_profile_id:t,revision:n}=e;return typeof t!=`string`||typeof n!=`number`?null:{agent_profile_id:t,revision:n}}function N(e){if(!e.startsWith(`/`))return null;let t=[];for(let n of e.split(`/`))if(n&&n!==`.`)if(n===`..`){if(!t.length)return null;t.pop()}else t.push(n);return`/${t.join(`/`)}`}function P(e,t){let n=N(e),r=N(t);if(!n||!r||n!==r&&!n.startsWith(`${r}/`))throw Error(`Conversation file path must stay inside the workspace`);return n}function F(e){if(!S(e)||typeof e.id!=`string`||!e.id.trim())throw x();return{id:e.id.trim(),title:T(e.title),created_at:E(e,`created_at`,`createdAt`),updated_at:E(e,`updated_at`,`updatedAt`),execution_status:T(e.execution_status),sandbox_status:T(e.sandbox_status),metrics:O(e.metrics),agent:k(e.agent),workspace:A(e.workspace),tags:j(e.tags),launched_agent_profile:M(e.launched_agent_profile),current_model_id:T(e.current_model_id),current_model_name:T(e.current_model_name)}}function I(e){if(!Array.isArray(e))throw x();return e.map(F)}function L(e){if(Array.isArray(e))return{items:I(e),next_page_id:null};if(!S(e))throw x();return{items:I(e.items),next_page_id:typeof e.next_page_id==`string`?e.next_page_id:null}}var R=new Set([`idle`,`running`,`paused`,`waiting_for_confirmation`,`finished`,`error`,`stuck`]);function z(e){let t=e??`idle`;return R.has(t)?t:`idle`}function B(e,t){if(!e)throw Error(`Conversation ${t} was not found`);return e}var V=class{static async sendMessage(t,n,r){let a=o.getActiveBackend().backend,c=r?.conversationUrl??null,u=r?.sessionApiKey??null;if(a.kind===`cloud`){if(!c||!u){let[e]=await m.batchGetCloudConversations([t]);c=e?.conversation_url?.trim()??null,u=e?.session_api_key?.trim()??null}if(!c||!u)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return await l.callCloudProxy({backend:a,method:`POST`,hostOverride:i.buildHttpBaseUrl(c),path:`/api/conversations/${t}/events`,body:{...n,run:!0},authMode:`session-api-key`,sessionApiKey:u}),n}return await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:c,sessionApiKey:u})).sendEvent(t,n,{run:!0}),n}static async createConversation(t,n,r,i,l,u,v,b,x,S,C){if(o.getActiveBackend().backend.kind===`cloud`)return m.createCloudAppConversation({initial_message:t?{role:`user`,content:[{type:`text`,text:t}]}:null,title:n??null,selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,plugins:r??null,parent_conversation_id:v??null,agent_type:b,sandbox_id:x??null,agent_profile_id:S??null});let[w,T]=await Promise.all([h.default.getSettings(),f.default.listProfiles().catch(()=>void 0)]),E=_.resolveTitleLlmProfile(w.title_llm_profile,T),D=c.default(),O=await d.resolveAbsoluteAgentServerPath(l??a.buildConversationWorkingDir(D)),k=u??(l?`local_repo`:`new_worktree`),A=await g.buildStartConversationRequestWithEncryptedSettings({settings:w,query:t,conversationInstructions:n,plugins:r,conversationId:D,workingDir:O,worktree:k===`new_worktree`,agentProfileId:S,agentProfileKind:C,titleLlmProfile:E}),j=await new e.ConversationClient(s.getAgentServerClientOptions({timeout:y})).createConversation(A),M=o.getEffectiveLocalBackend();if(!M)throw new s.NoBackendAvailableError;return(i?.selected_repository||l)&&p.setStoredConversationMetadata(j.id,{selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,selected_workspace:l??null,workspace_mode:k}),{id:j.id,created_by_user_id:null,status:`READY`,detail:null,app_conversation_id:j.id,agent_server_url:M.host,request:{initial_message:A.initial_message,plugins:r??null},created_at:j.created_at,updated_at:j.updated_at}}static async getStartTask(e){return o.getActiveBackend().backend.kind===`cloud`?m.getCloudAppConversationStartTask(e):null}static async getVSCodeUrl(e,t,n){let i=await this.resolveConversationWorkingDir(e);return{vscode_url:await new r.VSCodeClient(s.getAgentServerClientOptions({conversationUrl:t,sessionApiKey:n})).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:i})}}static async resolveConversationWorkingDir(e){let[t]=await this.batchGetAppConversations([e]);return t?.workspace?.working_dir??a.getAgentServerWorkingDir()}static async batchGetAppConversations(t){return t.length===0?[]:o.getActiveBackend().backend.kind===`cloud`?m.batchGetCloudConversations(t):I(await new e.ConversationClient(s.getAgentServerClientOptions()).getConversations(t)).map(e=>g.toAppConversation(e))}static async updateConversationPublicFlag(e,t){if(o.getActiveBackend().backend.kind!==`cloud`)throw Error(`Public sharing requires a cloud backend.`);return m.updateCloudConversationPublicFlag(e,t)}static async updateConversationRepository(e,t,n,r){t?p.setStoredConversationMetadata(e,{...p.getStoredConversationMetadata(e)??{},selected_repository:t,selected_branch:n??null,git_provider:r??null}):p.removeStoredConversationMetadata(e);let[i]=await this.batchGetAppConversations([e]);return B(i,e)}static async readConversationFile(e,n){if(o.getActiveBackend().backend.kind===`cloud`)return m.readCloudConversationFile(e,P(n??`/workspace/project/.agents_tmp/PLAN.md`,`/workspace/project`));let r=await this.resolveConversationWorkingDir(e),i=P(n??`${r}/.agents_tmp/PLAN.md`,r);return new t.FileClient(s.getAgentServerClientOptions()).downloadTextFile(i)}static async downloadConversation(e){return o.getActiveBackend().backend.kind===`cloud`?m.downloadCloudConversation(e):new t.FileClient(s.getAgentServerClientOptions()).downloadTrajectory(e)}static async getHooks(e){return g.emptyHooksResponse()}static async getRuntimeConversation(t,n,r){let a=o.getActiveBackend().backend,c=a.kind===`cloud`&&n?await l.callCloudProxy({backend:a,method:`GET`,hostOverride:i.buildHttpBaseUrl(n),path:`/api/conversations/${t}`,authMode:`session-api-key`,sessionApiKey:r}):await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:n,sessionApiKey:r})).getConversation(t),u=F(c),d=S(c)?c.stats:null;return{id:u.id,title:u.title?.trim()?u.title:g.getDefaultConversationTitle(u.id),metrics:O(u.metrics),created_at:u.created_at,updated_at:u.updated_at,status:z(u.execution_status),stats:S(d)?d:{usage_to_metrics:{}}}}static async searchConversations(t=20,n){return o.getActiveBackend().backend.kind===`cloud`?m.searchCloudConversations(t,n):g.toConversationPage(L(await new e.ConversationClient(s.getAgentServerClientOptions()).searchConversations({limit:t,page_id:n,sort_order:u.ConversationSortOrder.UPDATED_AT_DESC})))}static async deleteConversation(t){o.getActiveBackend().backend.kind===`cloud`?await m.deleteCloudConversation(t):await new e.ConversationClient(s.getAgentServerClientOptions()).deleteConversation(t),p.removeStoredConversationMetadata(t)}static async updateConversationTitle(t,n){await new e.ConversationClient(s.getAgentServerClientOptions()).updateConversation(t,{title:n});let[r]=await this.batchGetAppConversations([t]);return B(r,t)}static async forkConversation(t,n,r){if(o.getActiveBackend().backend.kind===`cloud`)throw Error(`Branching a conversation isn't supported on the cloud backend yet.`);let i=await new e.ConversationClient(s.getAgentServerClientOptions()).forkConversation(t,{from_event_id:n,...r?{title:r}:{}}),a=p.getStoredConversationMetadata(t);return a&&p.setStoredConversationMetadata(i.id,a),i}static async getEventParentId(t,n){return(await new e.ConversationClient(s.getAgentServerClientOptions()).getEvent(t,n)).parent_id??void 0}static async switchProfile(t,r){let{backend:i}=o.getActiveBackend();if(i.kind===`cloud`){if(!t){await f.default.activateProfile(r);return}await l.callCloudProxy({backend:i,method:`POST`,path:`/api/v1/app-conversations/${t}/switch_profile`,body:{profile_name:r}});return}if(!t){await new n.ProfilesClient(s.getAgentServerClientOptions()).activateProfile(r);return}let a=s.getAgentServerClientOptions(),u=new e.ConversationClient(a),d=await new n.ProfilesClient(a).getProfile(r,{exposeSecrets:`encrypted`}),p=typeof d.config.model==`string`?d.config.model:``;if(!p)throw Error(`Profile '${r}' has no model.`);await g.assertSubscriptionAuthReady({llm:d.config}),await u.switchLLM(t,{...d.config,model:p,stream:!0,usage_id:`profile:${r}:${c.default()}`})}static async switchAcpModel(t,n){let{backend:r}=o.getActiveBackend();if(r.kind===`cloud`){await l.callCloudProxy({backend:r,method:`POST`,path:`/api/v1/app-conversations/${t}/switch_acp_model`,body:{model:n}});return}await new e.ConversationClient(s.getAgentServerClientOptions()).switchAcpModel(t,n)}};exports.default=V;
1
+ require("../../_virtual/_rolldown/runtime.cjs");const e=require("../../node_modules/@openhands/typescript-client/dist/client/conversation-client.cjs"),t=require("../../node_modules/@openhands/typescript-client/dist/client/file-client.cjs"),n=require("../../node_modules/@openhands/typescript-client/dist/client/profiles-client.cjs"),r=require("../../node_modules/@openhands/typescript-client/dist/client/vscode-client.cjs");require("../../node_modules/@openhands/typescript-client/dist/clients.cjs");const i=require("../../utils/websocket-url.cjs"),a=require("../agent-server-config.cjs"),o=require("../backend-registry/active-store.cjs"),s=require("../agent-server-client-options.cjs"),c=require("../conversation-metadata-store.cjs"),l=require("../cloud/proxy.cjs"),u=require("../cloud/conversation-service.api.cjs"),d=require("../../node_modules/@openhands/typescript-client/dist/models/conversation.cjs");require("../../node_modules/@openhands/typescript-client/dist/index.cjs");const f=require("../../node_modules/uuid/dist/v4.cjs"),p=require("../agent-server-home.cjs"),m=require("../profiles-service/profiles-service.api.cjs"),h=require("../settings-service/settings-service.api.cjs"),g=require("../agent-server-adapter.cjs"),_=require("../../utils/title-llm-profile.cjs");var v=`1970-01-01T00:00:00.000Z`,y=300*1e3,b=`Unable to load conversations because the selected agent server returned data this UI does not understand. Check the backend URL/session key and update the agent server if needed.`;function x(){return Error(b)}function S(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C(e){return typeof e==`number`?e:null}function w(e){return typeof e==`number`?e:0}function T(e){return typeof e==`string`?e:null}function E(e,t,n){let r=e[t]??e[n];return typeof r==`string`&&r.trim()?r:v}function D(e){return S(e)?{prompt_tokens:w(e.prompt_tokens),completion_tokens:w(e.completion_tokens),cache_read_tokens:w(e.cache_read_tokens),cache_write_tokens:w(e.cache_write_tokens),context_window:w(e.context_window),per_turn_token:w(e.per_turn_token)}:null}function O(e){return S(e)?{accumulated_cost:C(e.accumulated_cost),max_budget_per_task:C(e.max_budget_per_task),accumulated_token_usage:D(e.accumulated_token_usage)}:null}function k(e){if(!S(e))return null;let t=S(e.llm)?{model:T(e.llm.model)}:null;return{kind:T(e.kind),acp_server:T(e.acp_server),acp_model:T(e.acp_model),llm:t}}function A(e){return S(e)?{working_dir:T(e.working_dir)}:null}function j(e){if(!S(e))return null;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}function M(e){if(!S(e))return null;let{agent_profile_id:t,revision:n}=e;return typeof t!=`string`||typeof n!=`number`?null:{agent_profile_id:t,revision:n}}function N(e){if(!e.startsWith(`/`))return null;let t=[];for(let n of e.split(`/`))if(n&&n!==`.`)if(n===`..`){if(!t.length)return null;t.pop()}else t.push(n);return`/${t.join(`/`)}`}function P(e,t){let n=N(e),r=N(t);if(!n||!r||n!==r&&!n.startsWith(`${r}/`))throw Error(`Conversation file path must stay inside the workspace`);return n}function F(e){if(!S(e)||typeof e.id!=`string`||!e.id.trim())throw x();return{id:e.id.trim(),title:T(e.title),created_at:E(e,`created_at`,`createdAt`),updated_at:E(e,`updated_at`,`updatedAt`),execution_status:T(e.execution_status),sandbox_status:T(e.sandbox_status),metrics:O(e.metrics),agent:k(e.agent),workspace:A(e.workspace),tags:j(e.tags),launched_agent_profile:M(e.launched_agent_profile),current_model_id:T(e.current_model_id),current_model_name:T(e.current_model_name)}}function I(e){if(!Array.isArray(e))throw x();return e.map(F)}function L(e){if(Array.isArray(e))return{items:I(e),next_page_id:null};if(!S(e))throw x();return{items:I(e.items),next_page_id:typeof e.next_page_id==`string`?e.next_page_id:null}}var R=new Set([`idle`,`running`,`paused`,`waiting_for_confirmation`,`finished`,`error`,`stuck`]);function z(e){let t=e??`idle`;return R.has(t)?t:`idle`}function B(e,t){if(!e)throw Error(`Conversation ${t} was not found`);return e}var V=class{static async sendMessage(t,n,r){let a=o.getActiveBackend().backend,c=r?.conversationUrl??null,d=r?.sessionApiKey??null;if(a.kind===`cloud`){if(!c||!d){let[e]=await u.batchGetCloudConversations([t]);c=e?.conversation_url?.trim()??null,d=e?.session_api_key?.trim()??null}if(!c||!d)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return await l.callCloudProxy({backend:a,method:`POST`,hostOverride:i.buildHttpBaseUrl(c),path:`/api/conversations/${t}/events`,body:{...n,run:!0},authMode:`session-api-key`,sessionApiKey:d}),n}return await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:c,sessionApiKey:d})).sendEvent(t,n,{run:!0}),n}static async createConversation(t,n,r,i,l,d,v,b,x,S,C){if(o.getActiveBackend().backend.kind===`cloud`)return u.createCloudAppConversation({initial_message:t?{role:`user`,content:[{type:`text`,text:t}]}:null,title:n??null,selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,plugins:r??null,parent_conversation_id:v??null,agent_type:b,sandbox_id:x??null,agent_profile_id:S??null});let[w,T]=await Promise.all([h.default.getSettings(),m.default.listProfiles().catch(()=>void 0)]),E=_.resolveTitleLlmProfile(w.title_llm_profile,T),D=f.default(),O=await p.resolveAbsoluteAgentServerPath(l??a.buildConversationWorkingDir(D)),k=d??(l?`local_repo`:`new_worktree`),A=await g.buildStartConversationRequestWithEncryptedSettings({settings:w,query:t,conversationInstructions:n,plugins:r,conversationId:D,parentConversationId:v,workingDir:O,worktree:k===`new_worktree`,agentProfileId:S,agentProfileKind:C,titleLlmProfile:E}),j=await new e.ConversationClient(s.getAgentServerClientOptions({timeout:y})).createConversation(A),M=o.getEffectiveLocalBackend();if(!M)throw new s.NoBackendAvailableError;return(i?.selected_repository||l)&&c.setStoredConversationMetadata(j.id,{selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,selected_workspace:l??null,workspace_mode:k}),{id:j.id,created_by_user_id:null,status:`READY`,detail:null,app_conversation_id:j.id,agent_server_url:M.host,request:{initial_message:A.initial_message,plugins:r??null},created_at:j.created_at,updated_at:j.updated_at}}static async getStartTask(e){return o.getActiveBackend().backend.kind===`cloud`?u.getCloudAppConversationStartTask(e):null}static async getVSCodeUrl(e,t,n){let i=await this.resolveConversationWorkingDir(e);return{vscode_url:await new r.VSCodeClient(s.getAgentServerClientOptions({conversationUrl:t,sessionApiKey:n})).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:i})}}static async resolveConversationWorkingDir(e){let[t]=await this.batchGetAppConversations([e]);return t?.workspace?.working_dir??a.getAgentServerWorkingDir()}static async batchGetAppConversations(t){return t.length===0?[]:o.getActiveBackend().backend.kind===`cloud`?u.batchGetCloudConversations(t):I(await new e.ConversationClient(s.getAgentServerClientOptions()).getConversations(t)).map(e=>g.toAppConversation(e))}static async updateConversationPublicFlag(e,t){if(o.getActiveBackend().backend.kind!==`cloud`)throw Error(`Public sharing requires a cloud backend.`);return u.updateCloudConversationPublicFlag(e,t)}static async updateConversationRepository(e,t,n,r){t?c.setStoredConversationMetadata(e,{...c.getStoredConversationMetadata(e)??{},selected_repository:t,selected_branch:n??null,git_provider:r??null}):c.removeStoredConversationMetadata(e);let[i]=await this.batchGetAppConversations([e]);return B(i,e)}static async readConversationFile(e,n){if(o.getActiveBackend().backend.kind===`cloud`)return u.readCloudConversationFile(e,P(n??`/workspace/project/.agents_tmp/PLAN.md`,`/workspace/project`));let r=await this.resolveConversationWorkingDir(e),i=P(n??`${r}/.agents_tmp/PLAN.md`,r);return new t.FileClient(s.getAgentServerClientOptions()).downloadTextFile(i)}static async downloadConversation(e){return o.getActiveBackend().backend.kind===`cloud`?u.downloadCloudConversation(e):new t.FileClient(s.getAgentServerClientOptions()).downloadTrajectory(e)}static async getHooks(e){return g.emptyHooksResponse()}static async getRuntimeConversation(t,n,r){let i=await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:n,sessionApiKey:r})).getConversation(t),a=F(i),o=S(i)?i.stats:null;return{id:a.id,title:a.title?.trim()?a.title:g.getDefaultConversationTitle(a.id),metrics:O(a.metrics),created_at:a.created_at,updated_at:a.updated_at,status:z(a.execution_status),stats:S(o)?o:{usage_to_metrics:{}}}}static async searchConversations(t=20,n){return o.getActiveBackend().backend.kind===`cloud`?u.searchCloudConversations(t,n):g.toConversationPage(L(await new e.ConversationClient(s.getAgentServerClientOptions()).searchConversations({limit:t,page_id:n,sort_order:d.ConversationSortOrder.UPDATED_AT_DESC})))}static async deleteConversation(t){o.getActiveBackend().backend.kind===`cloud`?await u.deleteCloudConversation(t):await new e.ConversationClient(s.getAgentServerClientOptions()).deleteConversation(t),c.removeStoredConversationMetadata(t)}static async updateConversationTitle(t,n){await new e.ConversationClient(s.getAgentServerClientOptions()).updateConversation(t,{title:n});let[r]=await this.batchGetAppConversations([t]);return B(r,t)}static async forkConversation(t,n,r){if(o.getActiveBackend().backend.kind===`cloud`)throw Error(`Branching a conversation isn't supported on the cloud backend yet.`);let i=await new e.ConversationClient(s.getAgentServerClientOptions()).forkConversation(t,{from_event_id:n,...r?{title:r}:{}}),a=c.getStoredConversationMetadata(t);return a&&c.setStoredConversationMetadata(i.id,a),i}static async getEventParentId(t,n){return(await new e.ConversationClient(s.getAgentServerClientOptions()).getEvent(t,n)).parent_id??void 0}static async switchProfile(t,r){let{backend:i}=o.getActiveBackend();if(i.kind===`cloud`){if(!t){await m.default.activateProfile(r);return}await l.callCloudProxy({backend:i,method:`POST`,path:`/api/v1/app-conversations/${t}/switch_profile`,body:{profile_name:r}});return}if(!t){await new n.ProfilesClient(s.getAgentServerClientOptions()).activateProfile(r);return}let a=s.getAgentServerClientOptions(),c=new e.ConversationClient(a),u=await new n.ProfilesClient(a).getProfile(r,{exposeSecrets:`encrypted`}),d=typeof u.config.model==`string`?u.config.model:``;if(!d)throw Error(`Profile '${r}' has no model.`);await g.assertSubscriptionAuthReady({llm:u.config}),await c.switchLLM(t,{...u.config,model:d,stream:!0,usage_id:`profile:${r}:${f.default()}`})}static async switchAcpModel(t,n){let{backend:r}=o.getActiveBackend();if(r.kind===`cloud`){await l.callCloudProxy({backend:r,method:`POST`,path:`/api/v1/app-conversations/${t}/switch_acp_model`,body:{model:n}});return}await new e.ConversationClient(s.getAgentServerClientOptions()).switchAcpModel(t,n)}};exports.default=V;
2
2
  //# sourceMappingURL=agent-server-conversation-service.api.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-server-conversation-service.api.cjs","names":[],"sources":["../../../src/api/conversation-service/agent-server-conversation-service.api.ts"],"sourcesContent":["import {\n ConversationSortOrder,\n type ForkConversationRequest,\n type LLMConfig,\n} from \"@openhands/typescript-client\";\nimport {\n ConversationClient,\n FileClient,\n ProfilesClient,\n VSCodeClient,\n} from \"@openhands/typescript-client/clients\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { AgentKind, Provider } from \"#/types/settings\";\nimport type { ConversationRuntimeContext } from \"#/api/conversation-file-upload.api\";\nimport { buildHttpBaseUrl } from \"#/utils/websocket-url\";\nimport {\n buildConversationWorkingDir,\n getAgentServerWorkingDir,\n} from \"../agent-server-config\";\nimport { resolveAbsoluteAgentServerPath } from \"../agent-server-home\";\nimport {\n getActiveBackend,\n getEffectiveLocalBackend,\n} from \"../backend-registry/active-store\";\nimport { callCloudProxy } from \"../cloud/proxy\";\nimport ProfilesService from \"../profiles-service/profiles-service.api\";\nimport {\n batchGetCloudConversations,\n createCloudAppConversation,\n deleteCloudConversation,\n downloadCloudConversation,\n getCloudAppConversationStartTask,\n readCloudConversationFile,\n searchCloudConversations,\n updateCloudConversationPublicFlag,\n} from \"../cloud/conversation-service.api\";\nimport {\n DirectConversationInfo,\n assertSubscriptionAuthReady,\n buildStartConversationRequestWithEncryptedSettings,\n emptyHooksResponse,\n getDefaultConversationTitle,\n toAppConversation,\n toConversationPage,\n} from \"../agent-server-adapter\";\nimport { GetVSCodeUrlResponse } from \"../open-hands.types\";\nimport {\n getAgentServerClientOptions,\n NoBackendAvailableError,\n} from \"../agent-server-client-options\";\nimport SettingsService from \"../settings-service/settings-service.api\";\nimport {\n ConversationMetadata,\n getStoredConversationMetadata,\n removeStoredConversationMetadata,\n setStoredConversationMetadata,\n type WorkspaceMode,\n} from \"../conversation-metadata-store\";\nimport { resolveTitleLlmProfile } from \"#/utils/title-llm-profile\";\nimport type {\n GetHooksResponse,\n PluginSpec,\n AppConversation,\n AppConversationPage,\n AppConversationStartRequest,\n AppConversationStartTask,\n MetricsSnapshot,\n RuntimeConversationInfo,\n SendMessageRequest,\n SendMessageResponse,\n} from \"./agent-server-conversation-service.types\";\n\nconst DEFAULT_CONVERSATION_TIMESTAMP = \"1970-01-01T00:00:00.000Z\";\n// Creating the first conversation right after a cold agent-server boot (fresh\n// machine or the packaged desktop app, where uvx may still be warming caches)\n// can exceed the client's 60s default timeout.\nconst CREATE_CONVERSATION_TIMEOUT_MS = 5 * 60 * 1000;\nconst INVALID_CONVERSATION_RESPONSE_MESSAGE =\n \"Unable to load conversations because the selected agent server returned \" +\n \"data this UI does not understand. Check the backend URL/session key and \" +\n \"update the agent server if needed.\";\nfunction invalidConversationResponse(): Error {\n return new Error(INVALID_CONVERSATION_RESPONSE_MESSAGE);\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction numberOrNull(value: unknown): number | null {\n return typeof value === \"number\" ? value : null;\n}\n\nfunction numberOrZero(value: unknown): number {\n return typeof value === \"number\" ? value : 0;\n}\n\nfunction stringOrNull(value: unknown): string | null {\n return typeof value === \"string\" ? value : null;\n}\n\nfunction readTimestamp(\n item: Record<string, unknown>,\n snakeKey: \"created_at\" | \"updated_at\",\n camelKey: \"createdAt\" | \"updatedAt\",\n): string {\n const value = item[snakeKey] ?? item[camelKey];\n return typeof value === \"string\" && value.trim()\n ? value\n : DEFAULT_CONVERSATION_TIMESTAMP;\n}\n\nfunction normalizeTokenUsage(\n value: unknown,\n): NonNullable<MetricsSnapshot[\"accumulated_token_usage\"]> | null {\n if (!isRecord(value)) return null;\n\n return {\n prompt_tokens: numberOrZero(value.prompt_tokens),\n completion_tokens: numberOrZero(value.completion_tokens),\n cache_read_tokens: numberOrZero(value.cache_read_tokens),\n cache_write_tokens: numberOrZero(value.cache_write_tokens),\n context_window: numberOrZero(value.context_window),\n per_turn_token: numberOrZero(value.per_turn_token),\n };\n}\n\nfunction normalizeMetrics(value: unknown): MetricsSnapshot | null {\n if (!isRecord(value)) return null;\n\n return {\n accumulated_cost: numberOrNull(value.accumulated_cost),\n max_budget_per_task: numberOrNull(value.max_budget_per_task),\n accumulated_token_usage: normalizeTokenUsage(value.accumulated_token_usage),\n };\n}\n\nfunction normalizeAgent(value: unknown): DirectConversationInfo[\"agent\"] {\n if (!isRecord(value)) return null;\n const llm = isRecord(value.llm)\n ? { model: stringOrNull(value.llm.model) }\n : null;\n // ``kind`` is the SDK's pydantic discriminator (``\"Agent\"`` vs ``\"ACPAgent\"``);\n // ``toAppConversation`` reads it to derive ``agent_kind``. ``acp_server`` is\n // the ACP provider identity (``ACPAgent.acp_server``, SDK #3692) — required so\n // the adapter can source the chip + in-conversation model list from the agent\n // when the ``acpserver`` tag is absent (a profile launch doesn't stamp it,\n // #1571). ``acp_model`` is the Canvas-configured model — preserved so the chip\n // can fall back to it when the SDK runtime model fields aren't populated.\n // Preserving these makes the wire path agree with the unit-test path that\n // builds ``DirectConversationInfo`` directly\n // (e.g. ``__tests__/api/agent-server-adapter.test.ts``).\n return {\n kind: stringOrNull(value.kind),\n acp_server: stringOrNull(value.acp_server),\n acp_model: stringOrNull(value.acp_model),\n llm,\n };\n}\n\nfunction normalizeWorkspace(\n value: unknown,\n): DirectConversationInfo[\"workspace\"] {\n if (!isRecord(value)) return null;\n return { working_dir: stringOrNull(value.working_dir) };\n}\n\n/**\n * Accept the agent-server's ``tags: Record[str, str]`` payload defensively:\n * the wire shape is guaranteed by the server-side validator (keys\n * ``^[a-z0-9]+$``, string values), but a non-conforming response (older\n * server, raw API write, future schema drift) must never crash the parser\n * — Canvas only consumes ``acpserver`` and falls back to a generic chip\n * for anything it doesn't recognize. Drop entries whose value isn't a\n * plain string; return ``null`` when the wire field is absent or not an\n * object so consumers can use ``info.tags?.[KEY] ?? null`` uniformly.\n */\nfunction normalizeTags(value: unknown): Record<string, string> | null {\n if (!isRecord(value)) return null;\n const tags: Record<string, string> = {};\n for (const [key, entry] of Object.entries(value)) {\n if (typeof entry === \"string\") {\n tags[key] = entry;\n }\n }\n return tags;\n}\n\nfunction normalizeLaunchedAgentProfile(\n value: unknown,\n): DirectConversationInfo[\"launched_agent_profile\"] {\n if (!isRecord(value)) return null;\n const { agent_profile_id: agentProfileId, revision } = value;\n if (typeof agentProfileId !== \"string\" || typeof revision !== \"number\") {\n return null;\n }\n return { agent_profile_id: agentProfileId, revision };\n}\n\nfunction normalizeAbsolutePath(path: string): string | null {\n if (!path.startsWith(\"/\")) return null;\n\n const segments: string[] = [];\n for (const segment of path.split(\"/\")) {\n if (segment && segment !== \".\") {\n if (segment === \"..\") {\n if (!segments.length) return null;\n segments.pop();\n } else {\n segments.push(segment);\n }\n }\n }\n\n return `/${segments.join(\"/\")}`;\n}\n\nfunction requirePathInsideDirectory(path: string, directory: string): string {\n const normalizedPath = normalizeAbsolutePath(path);\n const normalizedDirectory = normalizeAbsolutePath(directory);\n\n if (\n !normalizedPath ||\n !normalizedDirectory ||\n (normalizedPath !== normalizedDirectory &&\n !normalizedPath.startsWith(`${normalizedDirectory}/`))\n ) {\n throw new Error(\"Conversation file path must stay inside the workspace\");\n }\n\n return normalizedPath;\n}\n\nfunction requireDirectConversationInfo(item: unknown): DirectConversationInfo {\n if (!isRecord(item) || typeof item.id !== \"string\" || !item.id.trim()) {\n throw invalidConversationResponse();\n }\n\n return {\n id: item.id.trim(),\n title: stringOrNull(item.title),\n created_at: readTimestamp(item, \"created_at\", \"createdAt\"),\n updated_at: readTimestamp(item, \"updated_at\", \"updatedAt\"),\n execution_status: stringOrNull(item.execution_status),\n sandbox_status: stringOrNull(item.sandbox_status),\n metrics: normalizeMetrics(item.metrics),\n agent: normalizeAgent(item.agent),\n workspace: normalizeWorkspace(item.workspace),\n tags: normalizeTags(item.tags),\n launched_agent_profile: normalizeLaunchedAgentProfile(\n item.launched_agent_profile,\n ),\n // SDK-runtime ACP model fields (populated when the agent-server supports\n // ``ConversationInfo.current_model_*``). Consumed by the conversation\n // adapter to drive the per-card chip's model text. Older agent-servers\n // omit these — adapter handles ``undefined`` / ``null`` gracefully.\n current_model_id: stringOrNull(item.current_model_id),\n current_model_name: stringOrNull(item.current_model_name),\n };\n}\n\nfunction requireDirectConversationItems(\n items: unknown,\n): DirectConversationInfo[] {\n if (!Array.isArray(items)) {\n throw invalidConversationResponse();\n }\n return items.map(requireDirectConversationInfo);\n}\n\nfunction requireConversationSearchPage(page: unknown): {\n items: DirectConversationInfo[];\n next_page_id: string | null;\n} {\n if (Array.isArray(page)) {\n return {\n items: requireDirectConversationItems(page),\n next_page_id: null,\n };\n }\n\n if (!isRecord(page)) {\n throw invalidConversationResponse();\n }\n\n return {\n items: requireDirectConversationItems(page.items),\n next_page_id:\n typeof page.next_page_id === \"string\" ? page.next_page_id : null,\n };\n}\n\nconst RUNTIME_STATUSES = new Set<string>([\n \"idle\",\n \"running\",\n \"paused\",\n \"waiting_for_confirmation\",\n \"finished\",\n \"error\",\n \"stuck\",\n]);\n\nfunction toRuntimeStatus(\n status: DirectConversationInfo[\"execution_status\"],\n): RuntimeConversationInfo[\"status\"] {\n const nextStatus = status ?? \"idle\";\n return (\n RUNTIME_STATUSES.has(nextStatus) ? nextStatus : \"idle\"\n ) as RuntimeConversationInfo[\"status\"];\n}\n\nfunction requireAppConversation(\n conversation: AppConversation | null | undefined,\n conversationId: string,\n): AppConversation {\n if (!conversation) {\n throw new Error(`Conversation ${conversationId} was not found`);\n }\n return conversation;\n}\n\nclass AgentServerConversationService {\n static async sendMessage(\n conversationId: string,\n message: SendMessageRequest,\n runtime?: ConversationRuntimeContext | null,\n ): Promise<SendMessageResponse> {\n const active = getActiveBackend().backend;\n let conversationUrl = runtime?.conversationUrl ?? null;\n let sessionApiKey = runtime?.sessionApiKey ?? null;\n\n if (active.kind === \"cloud\") {\n if (!conversationUrl || !sessionApiKey) {\n const [conversation] = await batchGetCloudConversations([\n conversationId,\n ]);\n conversationUrl = conversation?.conversation_url?.trim() ?? null;\n sessionApiKey = conversation?.session_api_key?.trim() ?? null;\n }\n\n if (!conversationUrl || !sessionApiKey) {\n throw new Error(\n \"Conversation sandbox is still starting. Wait for it to finish, then try again.\",\n );\n }\n\n await callCloudProxy({\n backend: active,\n method: \"POST\",\n hostOverride: buildHttpBaseUrl(conversationUrl),\n path: `/api/conversations/${conversationId}/events`,\n body: { ...message, run: true },\n authMode: \"session-api-key\",\n sessionApiKey,\n });\n\n return message;\n }\n\n await new ConversationClient(\n getAgentServerClientOptions({ conversationUrl, sessionApiKey }),\n ).sendEvent(conversationId, message, {\n run: true,\n });\n\n return message;\n }\n\n static async createConversation(\n initialUserMsg?: string,\n conversationInstructions?: string,\n plugins?: PluginSpec[],\n metadata?: ConversationMetadata | null,\n workingDirOverride?: string,\n workspaceMode?: WorkspaceMode,\n parentConversationId?: string,\n agentType?: \"default\" | \"plan\",\n sandboxId?: string,\n // Launch from a saved AgentProfile (resolved server-side) instead of the\n // current encrypted agent_settings (#3727). Supported on both local and the\n // cloud app-server (OpenHands #15060): local threads it through the\n // encrypted-settings builder; cloud sends it as a flat request field.\n agentProfileId?: string,\n agentProfileKind?: AgentKind,\n ): Promise<AppConversationStartTask> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n // Cloud path mirrors OpenHands' frontend: build a flat\n // AppConversationStartRequest, POST /api/v1/app-conversations\n // (returns a WORKING task), and let the conversation route's\n // useTaskPolling drive it to READY. NO encrypted-settings\n // round-trip — the cloud backend holds secrets server-side.\n // When launching from a profile, send `agent_profile_id`; the backend\n // resolves it to agent_settings server-side.\n const request: AppConversationStartRequest = {\n initial_message: initialUserMsg\n ? {\n role: \"user\",\n content: [{ type: \"text\", text: initialUserMsg }],\n }\n : null,\n title: conversationInstructions ?? null,\n selected_repository: metadata?.selected_repository ?? null,\n selected_branch: metadata?.selected_branch ?? null,\n git_provider: metadata?.git_provider ?? null,\n plugins: plugins ?? null,\n parent_conversation_id: parentConversationId ?? null,\n agent_type: agentType,\n sandbox_id: sandboxId ?? null,\n agent_profile_id: agentProfileId ?? null,\n };\n return createCloudAppConversation(request);\n }\n\n const [settings, profiles] = await Promise.all([\n SettingsService.getSettings(),\n ProfilesService.listProfiles().catch(() => undefined),\n ]);\n const titleLlmProfile = resolveTitleLlmProfile(\n settings.title_llm_profile,\n profiles,\n );\n const conversationId = uuidv4();\n // @spec WUP-001 — Send an absolute working_dir to the agent-server.\n // The default is `workspace/project/<hex>` (relative); without\n // resolving it here, `/api/file/upload` later prepends `/` and writes\n // to `/workspace/...` (read-only on macOS and fresh containers). When\n // the user picks an explicit workspace, `workingDirOverride` is\n // already absolute (it comes from `search_subdirs`).\n const workingDir = await resolveAbsoluteAgentServerPath(\n workingDirOverride ?? buildConversationWorkingDir(conversationId),\n );\n const resolvedWorkspaceMode =\n workspaceMode ?? (workingDirOverride ? \"local_repo\" : \"new_worktree\");\n\n // Use encrypted settings to avoid exposing secrets in the browser\n const payload = await buildStartConversationRequestWithEncryptedSettings({\n settings,\n query: initialUserMsg,\n conversationInstructions,\n plugins,\n conversationId,\n workingDir,\n worktree: resolvedWorkspaceMode === \"new_worktree\",\n agentProfileId,\n agentProfileKind,\n titleLlmProfile,\n });\n\n const data = await new ConversationClient(\n getAgentServerClientOptions({ timeout: CREATE_CONVERSATION_TIMEOUT_MS }),\n ).createConversation<DirectConversationInfo>(payload);\n const localBackend = getEffectiveLocalBackend();\n if (!localBackend) throw new NoBackendAvailableError();\n\n if (metadata?.selected_repository || workingDirOverride) {\n // The agent-server runtime has no concept of selected repo/branch/\n // workspace, so persist the home-page selection client-side.\n // `toAppConversation` reads the repo/branch fields back to hydrate\n // the chat-page badges; `useHasAttachedSource` reads\n // `selected_workspace` to default the Files tab to Diff mode when\n // the user explicitly attached a local workspace.\n setStoredConversationMetadata(data.id, {\n selected_repository: metadata?.selected_repository ?? null,\n selected_branch: metadata?.selected_branch ?? null,\n git_provider: metadata?.git_provider ?? null,\n selected_workspace: workingDirOverride ?? null,\n workspace_mode: resolvedWorkspaceMode,\n });\n }\n\n return {\n id: data.id,\n created_by_user_id: null,\n status: \"READY\",\n detail: null,\n app_conversation_id: data.id,\n agent_server_url: localBackend.host,\n request: {\n initial_message: payload.initial_message as\n | AppConversationStartRequest[\"initial_message\"]\n | undefined,\n plugins: plugins ?? null,\n },\n created_at: data.created_at,\n updated_at: data.updated_at,\n };\n }\n\n static async getStartTask(\n taskId: string,\n ): Promise<AppConversationStartTask | null> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return getCloudAppConversationStartTask(taskId);\n }\n // Local agent-server creates conversations synchronously — every\n // local \"task\" is already READY when createConversation returns, so\n // there's nothing to poll for.\n return null;\n }\n\n static async getVSCodeUrl(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<GetVSCodeUrlResponse> {\n // Local-only path. Cloud conversations read the VSCode URL straight\n // from the cloud-computed `sandbox.exposed_urls` (see\n // `useUnifiedVSCodeUrl` + `useCloudSandbox`); the runtime's own\n // `/api/vscode/url` only knows its internal `localhost:8001`, which\n // the user's browser can't reach.\n const workspaceDir =\n await this.resolveConversationWorkingDir(conversationId);\n // Local mode: the typescript-client targets the local agent-server\n // directly via the conversationUrl override.\n const vscodeUrl = await new VSCodeClient(\n getAgentServerClientOptions({\n conversationUrl,\n sessionApiKey,\n }),\n ).getUrl({\n baseUrl:\n typeof window !== \"undefined\" ? window.location.origin : undefined,\n workspaceDir,\n });\n\n return { vscode_url: vscodeUrl };\n }\n\n static async resolveConversationWorkingDir(\n conversationId: string,\n ): Promise<string> {\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return conversation?.workspace?.working_dir ?? getAgentServerWorkingDir();\n }\n\n static async batchGetAppConversations(\n ids: string[],\n ): Promise<(AppConversation | null)[]> {\n if (ids.length === 0) return [];\n\n if (getActiveBackend().backend.kind === \"cloud\") {\n return batchGetCloudConversations(ids);\n }\n\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).getConversations<DirectConversationInfo>(ids);\n\n return requireDirectConversationItems(data).map((item) =>\n toAppConversation(item),\n );\n }\n\n static async updateConversationPublicFlag(\n conversationId: string,\n isPublic: boolean,\n ): Promise<AppConversation> {\n if (getActiveBackend().backend.kind !== \"cloud\") {\n throw new Error(\"Public sharing requires a cloud backend.\");\n }\n return updateCloudConversationPublicFlag(conversationId, isPublic);\n }\n\n static async updateConversationRepository(\n conversationId: string,\n repository: string | null,\n branch?: string | null,\n gitProvider?: string | null,\n ): Promise<AppConversation> {\n if (repository) {\n const existing = getStoredConversationMetadata(conversationId);\n setStoredConversationMetadata(conversationId, {\n ...(existing ?? {}),\n selected_repository: repository,\n selected_branch: branch ?? null,\n git_provider: (gitProvider as Provider | null | undefined) ?? null,\n });\n } else {\n removeStoredConversationMetadata(conversationId);\n }\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return requireAppConversation(conversation, conversationId);\n }\n\n static async readConversationFile(\n conversationId: string,\n filePath?: string,\n ): Promise<string> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n // Cloud exposes a per-conversation file endpoint; the sandbox\n // working dir is fixed (`/workspace/project`), so PLAN.md lives at\n // a known absolute path. Mirrors OpenHands' readConversationFile.\n const path = requirePathInsideDirectory(\n filePath ?? \"/workspace/project/.agents_tmp/PLAN.md\",\n \"/workspace/project\",\n );\n return readCloudConversationFile(conversationId, path);\n }\n\n const workingDir = await this.resolveConversationWorkingDir(conversationId);\n const path = requirePathInsideDirectory(\n filePath ?? `${workingDir}/.agents_tmp/PLAN.md`,\n workingDir,\n );\n return new FileClient(getAgentServerClientOptions()).downloadTextFile(path);\n }\n\n static async downloadConversation(conversationId: string): Promise<Blob> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return downloadCloudConversation(conversationId);\n }\n\n return new FileClient(getAgentServerClientOptions()).downloadTrajectory(\n conversationId,\n );\n }\n\n static async getHooks(conversationId: string): Promise<GetHooksResponse> {\n if (!conversationId) {\n return emptyHooksResponse();\n }\n return emptyHooksResponse();\n }\n\n static async getRuntimeConversation(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<RuntimeConversationInfo> {\n const active = getActiveBackend().backend;\n\n type RawRuntime = DirectConversationInfo & {\n stats?: RuntimeConversationInfo[\"stats\"];\n };\n\n // Cloud mode: route through the cloud-proxy to the runtime sandbox at\n // the conversation's runtime URL — same pattern as getVSCodeUrl. Local\n // mode forwards conversationUrl so the host explicitly resolves to the\n // conversation's runtime instead of falling back to the active backend.\n const response =\n active.kind === \"cloud\" && conversationUrl\n ? await callCloudProxy<RawRuntime>({\n backend: active,\n method: \"GET\",\n hostOverride: buildHttpBaseUrl(conversationUrl),\n path: `/api/conversations/${conversationId}`,\n authMode: \"session-api-key\",\n sessionApiKey,\n })\n : await new ConversationClient(\n getAgentServerClientOptions({\n conversationUrl,\n sessionApiKey,\n }),\n ).getConversation<RawRuntime>(conversationId);\n const data = requireDirectConversationInfo(response);\n const stats = isRecord(response) ? response.stats : null;\n\n return {\n id: data.id,\n title: data.title?.trim()\n ? data.title\n : getDefaultConversationTitle(data.id),\n metrics: normalizeMetrics(data.metrics),\n created_at: data.created_at,\n updated_at: data.updated_at,\n status: toRuntimeStatus(data.execution_status),\n stats: isRecord(stats) ? stats : { usage_to_metrics: {} },\n };\n }\n\n static async searchConversations(\n limit: number = 20,\n pageId?: string,\n ): Promise<AppConversationPage> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return searchCloudConversations(limit, pageId);\n }\n\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).searchConversations({\n limit,\n page_id: pageId,\n sort_order: ConversationSortOrder.UPDATED_AT_DESC,\n });\n\n return toConversationPage(requireConversationSearchPage(data));\n }\n\n static async deleteConversation(conversationId: string): Promise<void> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n await deleteCloudConversation(conversationId);\n } else {\n await new ConversationClient(\n getAgentServerClientOptions(),\n ).deleteConversation(conversationId);\n }\n removeStoredConversationMetadata(conversationId);\n }\n\n static async updateConversationTitle(\n conversationId: string,\n title: string,\n ): Promise<AppConversation> {\n await new ConversationClient(\n getAgentServerClientOptions(),\n ).updateConversation(conversationId, {\n title,\n });\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return requireAppConversation(conversation, conversationId);\n }\n\n /**\n * Forks a conversation, copying event history up to and including\n * `fromEventId`. Local agent-server only; needs agent-server >= 1.31.0 for\n * `from_event_id` (older backends copy the whole conversation).\n */\n static async forkConversation(\n sourceConversationId: string,\n fromEventId: string,\n title?: string,\n ): Promise<DirectConversationInfo> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n throw new Error(\n \"Branching a conversation isn't supported on the cloud backend yet.\",\n );\n }\n\n // `from_event_id` is accepted by `/fork` but not yet typed in\n // ForkConversationRequest (through client 1.32.0); the client forwards the\n // body verbatim, so cast to carry it. A title also suppresses the backend\n // auto-title, so the \"(branch)\" marker sticks.\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).forkConversation<DirectConversationInfo>(sourceConversationId, {\n from_event_id: fromEventId,\n ...(title ? { title } : {}),\n } as ForkConversationRequest & { from_event_id: string });\n\n // Carry over the source's client-side metadata (repo/branch/workspace/\n // profile/plugins) so the fork hydrates its chat-page badges the same way.\n const sourceMetadata = getStoredConversationMetadata(sourceConversationId);\n if (sourceMetadata) {\n setStoredConversationMetadata(data.id, sourceMetadata);\n }\n\n return data;\n }\n\n /**\n * Returns an event's `parent_id` (the fork point for branching *before* it),\n * or undefined at the root. Uses the single-event endpoint because the events\n * *search* API omits `parent_id`.\n */\n static async getEventParentId(\n conversationId: string,\n eventId: string,\n ): Promise<string | undefined> {\n const event = (await new ConversationClient(\n getAgentServerClientOptions(),\n ).getEvent(conversationId, eventId)) as { parent_id?: string | null };\n return event.parent_id ?? undefined;\n }\n\n /**\n * Switches the LLM profile for the running conversation when one is open\n * (POST /switch_profile — per-conversation swap, doesn't change the user's\n * default profile). When called without a conversationId (home page),\n * falls back to POST /activate so the next conversation created picks up\n * the chosen profile.\n *\n * The per-conversation endpoint accepts only the profile name, so the UI does\n * not need to fetch or forward profile secrets. That keeps switching working\n * even when the agent server has no OH_SECRET_KEY for encrypted secret export.\n *\n * Cloud backends route to the app-server's per-conversation\n * `/switch_profile`, which owns the profiles and resolves the swap\n * server-side (base_url/api_key fixups, usage_id derivation, then the\n * agent-server's switch_llm) — so the client only forwards the profile name,\n * mirroring {@link switchAcpModel}.\n */\n static async switchProfile(\n conversationId: string | null,\n profileName: string,\n ): Promise<void> {\n const { backend } = getActiveBackend();\n\n if (backend.kind === \"cloud\") {\n // No conversation (home page): activate globally so the next\n // conversation starts with it. ProfilesService routes to the cloud\n // activate endpoint.\n if (!conversationId) {\n await ProfilesService.activateProfile(profileName);\n return;\n }\n await callCloudProxy({\n backend,\n method: \"POST\",\n path: `/api/v1/app-conversations/${conversationId}/switch_profile`,\n body: { profile_name: profileName },\n });\n return;\n }\n\n if (!conversationId) {\n await new ProfilesClient(getAgentServerClientOptions()).activateProfile(\n profileName,\n );\n return;\n }\n\n const clientOptions = getAgentServerClientOptions();\n const conversationClient = new ConversationClient(clientOptions);\n const profile = await new ProfilesClient(clientOptions).getProfile(\n profileName,\n { exposeSecrets: \"encrypted\" },\n );\n const model =\n typeof profile.config.model === \"string\" ? profile.config.model : \"\";\n if (!model) throw new Error(`Profile '${profileName}' has no model.`);\n await assertSubscriptionAuthReady({ llm: profile.config });\n await conversationClient.switchLLM(conversationId, {\n ...profile.config,\n model,\n // Keep streaming on after a switch (parity with conversation start);\n // the profile config would otherwise default it to stream=False.\n stream: true,\n // Avoid stale first-write-wins entries in the backend LLM registry.\n usage_id: `profile:${profileName}:${uuidv4()}`,\n } as LLMConfig);\n }\n\n /**\n * Switches the model of a running ACP conversation in place (POST\n * /switch_acp_model — the ACP analog of {@link switchProfile}'s /switch_profile).\n * The agent-server calls the ACP wrapper's ``session/set_model`` on the live\n * session, preserving context. Mirrors {@link switchProfile}'s\n * local-backend-only guard and per-conversation ConversationClient call.\n *\n * Works on a created-but-not-yet-run conversation too: the agent-server\n * treats a pre-first-run switch as a persist-only deferral (the model is\n * mirrored into the conversation's stored agent and applied when the session\n * starts). The home/no-conversation default is persisted via the active ACP\n * profile / Settings instead (see ``use-switch-acp-model``).\n */\n static async switchAcpModel(\n conversationId: string,\n model: string,\n ): Promise<void> {\n const { backend } = getActiveBackend();\n if (backend.kind === \"cloud\") {\n await callCloudProxy({\n backend,\n method: \"POST\",\n path: `/api/v1/app-conversations/${conversationId}/switch_acp_model`,\n body: { model },\n });\n return;\n }\n\n await new ConversationClient(getAgentServerClientOptions()).switchAcpModel(\n conversationId,\n model,\n );\n }\n}\n\nexport default AgentServerConversationService;\n"],"mappings":"+vCAwEA,IAAM,EAAiC,2BAIjC,EAAiC,IAAS,IAC1C,EACJ,qLAGF,SAAS,GAAqC,CAC5C,OAAW,MAAM,CAAqC,CACxD,CAEA,SAAS,EAAS,EAAkD,CAClE,OAAO,OAAO,GAAU,YAAY,GAAkB,CAAC,MAAM,QAAQ,CAAK,CAC5E,CAEA,SAAS,EAAa,EAA+B,CACnD,OAAO,OAAO,GAAU,SAAW,EAAQ,IAC7C,CAEA,SAAS,EAAa,EAAwB,CAC5C,OAAO,OAAO,GAAU,SAAW,EAAQ,CAC7C,CAEA,SAAS,EAAa,EAA+B,CACnD,OAAO,OAAO,GAAU,SAAW,EAAQ,IAC7C,CAEA,SAAS,EACP,EACA,EACA,EACQ,CACR,IAAM,EAAQ,EAAK,IAAa,EAAK,GACrC,OAAO,OAAO,GAAU,UAAY,EAAM,KAAK,EAC3C,EACA,CACN,CAEA,SAAS,EACP,EACgE,CAGhE,OAFK,EAAS,CAAK,EAEZ,CACL,cAAe,EAAa,EAAM,aAAa,EAC/C,kBAAmB,EAAa,EAAM,iBAAiB,EACvD,kBAAmB,EAAa,EAAM,iBAAiB,EACvD,mBAAoB,EAAa,EAAM,kBAAkB,EACzD,eAAgB,EAAa,EAAM,cAAc,EACjD,eAAgB,EAAa,EAAM,cAAc,CACnD,EAT6B,IAU/B,CAEA,SAAS,EAAiB,EAAwC,CAGhE,OAFK,EAAS,CAAK,EAEZ,CACL,iBAAkB,EAAa,EAAM,gBAAgB,EACrD,oBAAqB,EAAa,EAAM,mBAAmB,EAC3D,wBAAyB,E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GAAI,CAAC,EAAgB,CACnB,MAAM,EAAA,QAAgB,gBAAgB,CAAW,EACjD,MACF,CACA,MAAM,EAAA,eAAe,CACnB,UACA,OAAQ,OACR,KAAM,6BAA6B,EAAe,iBAClD,KAAM,CAAE,aAAc,CAAY,CACpC,CAAC,EACD,MACF,CAEA,GAAI,CAAC,EAAgB,CACnB,MAAM,IAAI,EAAA,eAAe,EAAA,4BAA4B,CAAC,EAAE,gBACtD,CACF,EACA,MACF,CAEA,IAAM,EAAgB,EAAA,4BAA4B,EAC5C,EAAqB,IAAI,EAAA,mBAAmB,CAAa,EACzD,EAAU,MAAM,IAAI,EAAA,eAAe,CAAa,EAAE,WACtD,EACA,CAAE,cAAe,WAAY,CAC/B,EACM,EACJ,OAAO,EAAQ,OAAO,OAAU,SAAW,EAAQ,OAAO,MAAQ,GACpE,GAAI,CAAC,EAAO,MAAU,MAAM,YAAY,EAAY,gBAAgB,EACpE,MAAM,EAAA,4BAA4B,CAAE,IAAK,EAAQ,MAAO,CAAC,EACzD,MAAM,EAAmB,UAAU,EAAgB,CACjD,GAAG,EAAQ,OACX,QAGA,OAAQ,GAER,SAAU,WAAW,EAAY,GAAG,EAAA,QAAO,GAC7C,CAAc,CAChB,CAeA,aAAa,eACX,EACA,EACe,CACf,GAAM,CAAE,WAAY,EAAA,iBAAiB,EACrC,GAAI,EAAQ,OAAS,QAAS,CAC5B,MAAM,EAAA,eAAe,CACnB,UACA,OAAQ,OACR,KAAM,6BAA6B,EAAe,mBAClD,KAAM,CAAE,OAAM,CAChB,CAAC,EACD,MACF,CAEA,MAAM,IAAI,EAAA,mBAAmB,EAAA,4BAA4B,CAAC,EAAE,eAC1D,EACA,CACF,CACF,CACF"}
1
+ {"version":3,"file":"agent-server-conversation-service.api.cjs","names":[],"sources":["../../../src/api/conversation-service/agent-server-conversation-service.api.ts"],"sourcesContent":["import {\n ConversationSortOrder,\n type ForkConversationRequest,\n type LLMConfig,\n} from \"@openhands/typescript-client\";\nimport {\n ConversationClient,\n FileClient,\n ProfilesClient,\n VSCodeClient,\n} from \"@openhands/typescript-client/clients\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport { AgentKind, Provider } from \"#/types/settings\";\nimport type { ConversationRuntimeContext } from \"#/api/conversation-file-upload.api\";\nimport { buildHttpBaseUrl } from \"#/utils/websocket-url\";\nimport {\n buildConversationWorkingDir,\n getAgentServerWorkingDir,\n} from \"../agent-server-config\";\nimport { resolveAbsoluteAgentServerPath } from \"../agent-server-home\";\nimport {\n getActiveBackend,\n getEffectiveLocalBackend,\n} from \"../backend-registry/active-store\";\nimport { callCloudProxy } from \"../cloud/proxy\";\nimport ProfilesService from \"../profiles-service/profiles-service.api\";\nimport {\n batchGetCloudConversations,\n createCloudAppConversation,\n deleteCloudConversation,\n downloadCloudConversation,\n getCloudAppConversationStartTask,\n readCloudConversationFile,\n searchCloudConversations,\n updateCloudConversationPublicFlag,\n} from \"../cloud/conversation-service.api\";\nimport {\n DirectConversationInfo,\n assertSubscriptionAuthReady,\n buildStartConversationRequestWithEncryptedSettings,\n emptyHooksResponse,\n getDefaultConversationTitle,\n toAppConversation,\n toConversationPage,\n} from \"../agent-server-adapter\";\nimport { GetVSCodeUrlResponse } from \"../open-hands.types\";\nimport {\n getAgentServerClientOptions,\n NoBackendAvailableError,\n} from \"../agent-server-client-options\";\nimport SettingsService from \"../settings-service/settings-service.api\";\nimport {\n ConversationMetadata,\n getStoredConversationMetadata,\n removeStoredConversationMetadata,\n setStoredConversationMetadata,\n type WorkspaceMode,\n} from \"../conversation-metadata-store\";\nimport { resolveTitleLlmProfile } from \"#/utils/title-llm-profile\";\nimport type {\n GetHooksResponse,\n PluginSpec,\n AppConversation,\n AppConversationPage,\n AppConversationStartRequest,\n AppConversationStartTask,\n MetricsSnapshot,\n RuntimeConversationInfo,\n SendMessageRequest,\n SendMessageResponse,\n} from \"./agent-server-conversation-service.types\";\n\nconst DEFAULT_CONVERSATION_TIMESTAMP = \"1970-01-01T00:00:00.000Z\";\n// Creating the first conversation right after a cold agent-server boot (fresh\n// machine or the packaged desktop app, where uvx may still be warming caches)\n// can exceed the client's 60s default timeout.\nconst CREATE_CONVERSATION_TIMEOUT_MS = 5 * 60 * 1000;\nconst INVALID_CONVERSATION_RESPONSE_MESSAGE =\n \"Unable to load conversations because the selected agent server returned \" +\n \"data this UI does not understand. Check the backend URL/session key and \" +\n \"update the agent server if needed.\";\nfunction invalidConversationResponse(): Error {\n return new Error(INVALID_CONVERSATION_RESPONSE_MESSAGE);\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\nfunction numberOrNull(value: unknown): number | null {\n return typeof value === \"number\" ? value : null;\n}\n\nfunction numberOrZero(value: unknown): number {\n return typeof value === \"number\" ? value : 0;\n}\n\nfunction stringOrNull(value: unknown): string | null {\n return typeof value === \"string\" ? value : null;\n}\n\nfunction readTimestamp(\n item: Record<string, unknown>,\n snakeKey: \"created_at\" | \"updated_at\",\n camelKey: \"createdAt\" | \"updatedAt\",\n): string {\n const value = item[snakeKey] ?? item[camelKey];\n return typeof value === \"string\" && value.trim()\n ? value\n : DEFAULT_CONVERSATION_TIMESTAMP;\n}\n\nfunction normalizeTokenUsage(\n value: unknown,\n): NonNullable<MetricsSnapshot[\"accumulated_token_usage\"]> | null {\n if (!isRecord(value)) return null;\n\n return {\n prompt_tokens: numberOrZero(value.prompt_tokens),\n completion_tokens: numberOrZero(value.completion_tokens),\n cache_read_tokens: numberOrZero(value.cache_read_tokens),\n cache_write_tokens: numberOrZero(value.cache_write_tokens),\n context_window: numberOrZero(value.context_window),\n per_turn_token: numberOrZero(value.per_turn_token),\n };\n}\n\nfunction normalizeMetrics(value: unknown): MetricsSnapshot | null {\n if (!isRecord(value)) return null;\n\n return {\n accumulated_cost: numberOrNull(value.accumulated_cost),\n max_budget_per_task: numberOrNull(value.max_budget_per_task),\n accumulated_token_usage: normalizeTokenUsage(value.accumulated_token_usage),\n };\n}\n\nfunction normalizeAgent(value: unknown): DirectConversationInfo[\"agent\"] {\n if (!isRecord(value)) return null;\n const llm = isRecord(value.llm)\n ? { model: stringOrNull(value.llm.model) }\n : null;\n // ``kind`` is the SDK's pydantic discriminator (``\"Agent\"`` vs ``\"ACPAgent\"``);\n // ``toAppConversation`` reads it to derive ``agent_kind``. ``acp_server`` is\n // the ACP provider identity (``ACPAgent.acp_server``, SDK #3692) — required so\n // the adapter can source the chip + in-conversation model list from the agent\n // when the ``acpserver`` tag is absent (a profile launch doesn't stamp it,\n // #1571). ``acp_model`` is the Canvas-configured model — preserved so the chip\n // can fall back to it when the SDK runtime model fields aren't populated.\n // Preserving these makes the wire path agree with the unit-test path that\n // builds ``DirectConversationInfo`` directly\n // (e.g. ``__tests__/api/agent-server-adapter.test.ts``).\n return {\n kind: stringOrNull(value.kind),\n acp_server: stringOrNull(value.acp_server),\n acp_model: stringOrNull(value.acp_model),\n llm,\n };\n}\n\nfunction normalizeWorkspace(\n value: unknown,\n): DirectConversationInfo[\"workspace\"] {\n if (!isRecord(value)) return null;\n return { working_dir: stringOrNull(value.working_dir) };\n}\n\n/**\n * Accept the agent-server's ``tags: Record[str, str]`` payload defensively:\n * the wire shape is guaranteed by the server-side validator (keys\n * ``^[a-z0-9]+$``, string values), but a non-conforming response (older\n * server, raw API write, future schema drift) must never crash the parser\n * — Canvas only consumes ``acpserver`` and falls back to a generic chip\n * for anything it doesn't recognize. Drop entries whose value isn't a\n * plain string; return ``null`` when the wire field is absent or not an\n * object so consumers can use ``info.tags?.[KEY] ?? null`` uniformly.\n */\nfunction normalizeTags(value: unknown): Record<string, string> | null {\n if (!isRecord(value)) return null;\n const tags: Record<string, string> = {};\n for (const [key, entry] of Object.entries(value)) {\n if (typeof entry === \"string\") {\n tags[key] = entry;\n }\n }\n return tags;\n}\n\nfunction normalizeLaunchedAgentProfile(\n value: unknown,\n): DirectConversationInfo[\"launched_agent_profile\"] {\n if (!isRecord(value)) return null;\n const { agent_profile_id: agentProfileId, revision } = value;\n if (typeof agentProfileId !== \"string\" || typeof revision !== \"number\") {\n return null;\n }\n return { agent_profile_id: agentProfileId, revision };\n}\n\nfunction normalizeAbsolutePath(path: string): string | null {\n if (!path.startsWith(\"/\")) return null;\n\n const segments: string[] = [];\n for (const segment of path.split(\"/\")) {\n if (segment && segment !== \".\") {\n if (segment === \"..\") {\n if (!segments.length) return null;\n segments.pop();\n } else {\n segments.push(segment);\n }\n }\n }\n\n return `/${segments.join(\"/\")}`;\n}\n\nfunction requirePathInsideDirectory(path: string, directory: string): string {\n const normalizedPath = normalizeAbsolutePath(path);\n const normalizedDirectory = normalizeAbsolutePath(directory);\n\n if (\n !normalizedPath ||\n !normalizedDirectory ||\n (normalizedPath !== normalizedDirectory &&\n !normalizedPath.startsWith(`${normalizedDirectory}/`))\n ) {\n throw new Error(\"Conversation file path must stay inside the workspace\");\n }\n\n return normalizedPath;\n}\n\nfunction requireDirectConversationInfo(item: unknown): DirectConversationInfo {\n if (!isRecord(item) || typeof item.id !== \"string\" || !item.id.trim()) {\n throw invalidConversationResponse();\n }\n\n return {\n id: item.id.trim(),\n title: stringOrNull(item.title),\n created_at: readTimestamp(item, \"created_at\", \"createdAt\"),\n updated_at: readTimestamp(item, \"updated_at\", \"updatedAt\"),\n execution_status: stringOrNull(item.execution_status),\n sandbox_status: stringOrNull(item.sandbox_status),\n metrics: normalizeMetrics(item.metrics),\n agent: normalizeAgent(item.agent),\n workspace: normalizeWorkspace(item.workspace),\n tags: normalizeTags(item.tags),\n launched_agent_profile: normalizeLaunchedAgentProfile(\n item.launched_agent_profile,\n ),\n // SDK-runtime ACP model fields (populated when the agent-server supports\n // ``ConversationInfo.current_model_*``). Consumed by the conversation\n // adapter to drive the per-card chip's model text. Older agent-servers\n // omit these — adapter handles ``undefined`` / ``null`` gracefully.\n current_model_id: stringOrNull(item.current_model_id),\n current_model_name: stringOrNull(item.current_model_name),\n };\n}\n\nfunction requireDirectConversationItems(\n items: unknown,\n): DirectConversationInfo[] {\n if (!Array.isArray(items)) {\n throw invalidConversationResponse();\n }\n return items.map(requireDirectConversationInfo);\n}\n\nfunction requireConversationSearchPage(page: unknown): {\n items: DirectConversationInfo[];\n next_page_id: string | null;\n} {\n if (Array.isArray(page)) {\n return {\n items: requireDirectConversationItems(page),\n next_page_id: null,\n };\n }\n\n if (!isRecord(page)) {\n throw invalidConversationResponse();\n }\n\n return {\n items: requireDirectConversationItems(page.items),\n next_page_id:\n typeof page.next_page_id === \"string\" ? page.next_page_id : null,\n };\n}\n\nconst RUNTIME_STATUSES = new Set<string>([\n \"idle\",\n \"running\",\n \"paused\",\n \"waiting_for_confirmation\",\n \"finished\",\n \"error\",\n \"stuck\",\n]);\n\nfunction toRuntimeStatus(\n status: DirectConversationInfo[\"execution_status\"],\n): RuntimeConversationInfo[\"status\"] {\n const nextStatus = status ?? \"idle\";\n return (\n RUNTIME_STATUSES.has(nextStatus) ? nextStatus : \"idle\"\n ) as RuntimeConversationInfo[\"status\"];\n}\n\nfunction requireAppConversation(\n conversation: AppConversation | null | undefined,\n conversationId: string,\n): AppConversation {\n if (!conversation) {\n throw new Error(`Conversation ${conversationId} was not found`);\n }\n return conversation;\n}\n\nclass AgentServerConversationService {\n static async sendMessage(\n conversationId: string,\n message: SendMessageRequest,\n runtime?: ConversationRuntimeContext | null,\n ): Promise<SendMessageResponse> {\n const active = getActiveBackend().backend;\n let conversationUrl = runtime?.conversationUrl ?? null;\n let sessionApiKey = runtime?.sessionApiKey ?? null;\n\n if (active.kind === \"cloud\") {\n if (!conversationUrl || !sessionApiKey) {\n const [conversation] = await batchGetCloudConversations([\n conversationId,\n ]);\n conversationUrl = conversation?.conversation_url?.trim() ?? null;\n sessionApiKey = conversation?.session_api_key?.trim() ?? null;\n }\n\n if (!conversationUrl || !sessionApiKey) {\n throw new Error(\n \"Conversation sandbox is still starting. Wait for it to finish, then try again.\",\n );\n }\n\n await callCloudProxy({\n backend: active,\n method: \"POST\",\n hostOverride: buildHttpBaseUrl(conversationUrl),\n path: `/api/conversations/${conversationId}/events`,\n body: { ...message, run: true },\n authMode: \"session-api-key\",\n sessionApiKey,\n });\n\n return message;\n }\n\n await new ConversationClient(\n getAgentServerClientOptions({ conversationUrl, sessionApiKey }),\n ).sendEvent(conversationId, message, {\n run: true,\n });\n\n return message;\n }\n\n static async createConversation(\n initialUserMsg?: string,\n conversationInstructions?: string,\n plugins?: PluginSpec[],\n metadata?: ConversationMetadata | null,\n workingDirOverride?: string,\n workspaceMode?: WorkspaceMode,\n parentConversationId?: string,\n agentType?: \"default\" | \"plan\",\n sandboxId?: string,\n // Launch from a saved AgentProfile (resolved server-side) instead of the\n // current encrypted agent_settings (#3727). Supported on both local and the\n // cloud app-server (OpenHands #15060): local threads it through the\n // encrypted-settings builder; cloud sends it as a flat request field.\n agentProfileId?: string,\n agentProfileKind?: AgentKind,\n ): Promise<AppConversationStartTask> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n // Cloud path mirrors OpenHands' frontend: build a flat\n // AppConversationStartRequest, POST /api/v1/app-conversations\n // (returns a WORKING task), and let the conversation route's\n // useTaskPolling drive it to READY. NO encrypted-settings\n // round-trip — the cloud backend holds secrets server-side.\n // When launching from a profile, send `agent_profile_id`; the backend\n // resolves it to agent_settings server-side.\n const request: AppConversationStartRequest = {\n initial_message: initialUserMsg\n ? {\n role: \"user\",\n content: [{ type: \"text\", text: initialUserMsg }],\n }\n : null,\n title: conversationInstructions ?? null,\n selected_repository: metadata?.selected_repository ?? null,\n selected_branch: metadata?.selected_branch ?? null,\n git_provider: metadata?.git_provider ?? null,\n plugins: plugins ?? null,\n parent_conversation_id: parentConversationId ?? null,\n agent_type: agentType,\n sandbox_id: sandboxId ?? null,\n agent_profile_id: agentProfileId ?? null,\n };\n return createCloudAppConversation(request);\n }\n\n const [settings, profiles] = await Promise.all([\n SettingsService.getSettings(),\n ProfilesService.listProfiles().catch(() => undefined),\n ]);\n const titleLlmProfile = resolveTitleLlmProfile(\n settings.title_llm_profile,\n profiles,\n );\n const conversationId = uuidv4();\n // @spec WUP-001 — Send an absolute working_dir to the agent-server.\n // The default is `workspace/project/<hex>` (relative); without\n // resolving it here, `/api/file/upload` later prepends `/` and writes\n // to `/workspace/...` (read-only on macOS and fresh containers). When\n // the user picks an explicit workspace, `workingDirOverride` is\n // already absolute (it comes from `search_subdirs`).\n const workingDir = await resolveAbsoluteAgentServerPath(\n workingDirOverride ?? buildConversationWorkingDir(conversationId),\n );\n const resolvedWorkspaceMode =\n workspaceMode ?? (workingDirOverride ? \"local_repo\" : \"new_worktree\");\n\n // Use encrypted settings to avoid exposing secrets in the browser\n const payload = await buildStartConversationRequestWithEncryptedSettings({\n settings,\n query: initialUserMsg,\n conversationInstructions,\n plugins,\n conversationId,\n // The agent-server rejects a parent in a different workspace, so callers\n // launching a child must pass the parent's own `working_dir` as\n // `workingDirOverride` (see `resolveConversationWorkingDir`). Servers\n // older than 1.37.1 ignore the field and create an unlinked conversation.\n parentConversationId,\n workingDir,\n worktree: resolvedWorkspaceMode === \"new_worktree\",\n agentProfileId,\n agentProfileKind,\n titleLlmProfile,\n });\n\n const data = await new ConversationClient(\n getAgentServerClientOptions({ timeout: CREATE_CONVERSATION_TIMEOUT_MS }),\n ).createConversation<DirectConversationInfo>(payload);\n const localBackend = getEffectiveLocalBackend();\n if (!localBackend) throw new NoBackendAvailableError();\n\n if (metadata?.selected_repository || workingDirOverride) {\n // The agent-server runtime has no concept of selected repo/branch/\n // workspace, so persist the home-page selection client-side.\n // `toAppConversation` reads the repo/branch fields back to hydrate\n // the chat-page badges; `useHasAttachedSource` reads\n // `selected_workspace` to default the Files tab to Diff mode when\n // the user explicitly attached a local workspace.\n setStoredConversationMetadata(data.id, {\n selected_repository: metadata?.selected_repository ?? null,\n selected_branch: metadata?.selected_branch ?? null,\n git_provider: metadata?.git_provider ?? null,\n selected_workspace: workingDirOverride ?? null,\n workspace_mode: resolvedWorkspaceMode,\n });\n }\n\n return {\n id: data.id,\n created_by_user_id: null,\n status: \"READY\",\n detail: null,\n app_conversation_id: data.id,\n agent_server_url: localBackend.host,\n request: {\n initial_message: payload.initial_message as\n | AppConversationStartRequest[\"initial_message\"]\n | undefined,\n plugins: plugins ?? null,\n },\n created_at: data.created_at,\n updated_at: data.updated_at,\n };\n }\n\n static async getStartTask(\n taskId: string,\n ): Promise<AppConversationStartTask | null> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return getCloudAppConversationStartTask(taskId);\n }\n // Local agent-server creates conversations synchronously — every\n // local \"task\" is already READY when createConversation returns, so\n // there's nothing to poll for.\n return null;\n }\n\n static async getVSCodeUrl(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<GetVSCodeUrlResponse> {\n // Local-only path. Cloud conversations read the VSCode URL straight\n // from the cloud-computed `sandbox.exposed_urls` (see\n // `useUnifiedVSCodeUrl` + `useCloudSandbox`); the runtime's own\n // `/api/vscode/url` only knows its internal `localhost:8001`, which\n // the user's browser can't reach.\n const workspaceDir =\n await this.resolveConversationWorkingDir(conversationId);\n // Local mode: the typescript-client targets the local agent-server\n // directly via the conversationUrl override.\n const vscodeUrl = await new VSCodeClient(\n getAgentServerClientOptions({\n conversationUrl,\n sessionApiKey,\n }),\n ).getUrl({\n baseUrl:\n typeof window !== \"undefined\" ? window.location.origin : undefined,\n workspaceDir,\n });\n\n return { vscode_url: vscodeUrl };\n }\n\n static async resolveConversationWorkingDir(\n conversationId: string,\n ): Promise<string> {\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return conversation?.workspace?.working_dir ?? getAgentServerWorkingDir();\n }\n\n static async batchGetAppConversations(\n ids: string[],\n ): Promise<(AppConversation | null)[]> {\n if (ids.length === 0) return [];\n\n if (getActiveBackend().backend.kind === \"cloud\") {\n return batchGetCloudConversations(ids);\n }\n\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).getConversations<DirectConversationInfo>(ids);\n\n return requireDirectConversationItems(data).map((item) =>\n toAppConversation(item),\n );\n }\n\n static async updateConversationPublicFlag(\n conversationId: string,\n isPublic: boolean,\n ): Promise<AppConversation> {\n if (getActiveBackend().backend.kind !== \"cloud\") {\n throw new Error(\"Public sharing requires a cloud backend.\");\n }\n return updateCloudConversationPublicFlag(conversationId, isPublic);\n }\n\n static async updateConversationRepository(\n conversationId: string,\n repository: string | null,\n branch?: string | null,\n gitProvider?: string | null,\n ): Promise<AppConversation> {\n if (repository) {\n const existing = getStoredConversationMetadata(conversationId);\n setStoredConversationMetadata(conversationId, {\n ...(existing ?? {}),\n selected_repository: repository,\n selected_branch: branch ?? null,\n git_provider: (gitProvider as Provider | null | undefined) ?? null,\n });\n } else {\n removeStoredConversationMetadata(conversationId);\n }\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return requireAppConversation(conversation, conversationId);\n }\n\n static async readConversationFile(\n conversationId: string,\n filePath?: string,\n ): Promise<string> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n // Cloud exposes a per-conversation file endpoint; the sandbox\n // working dir is fixed (`/workspace/project`), so PLAN.md lives at\n // a known absolute path. Mirrors OpenHands' readConversationFile.\n const path = requirePathInsideDirectory(\n filePath ?? \"/workspace/project/.agents_tmp/PLAN.md\",\n \"/workspace/project\",\n );\n return readCloudConversationFile(conversationId, path);\n }\n\n const workingDir = await this.resolveConversationWorkingDir(conversationId);\n const path = requirePathInsideDirectory(\n filePath ?? `${workingDir}/.agents_tmp/PLAN.md`,\n workingDir,\n );\n return new FileClient(getAgentServerClientOptions()).downloadTextFile(path);\n }\n\n static async downloadConversation(conversationId: string): Promise<Blob> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return downloadCloudConversation(conversationId);\n }\n\n return new FileClient(getAgentServerClientOptions()).downloadTrajectory(\n conversationId,\n );\n }\n\n static async getHooks(conversationId: string): Promise<GetHooksResponse> {\n if (!conversationId) {\n return emptyHooksResponse();\n }\n return emptyHooksResponse();\n }\n\n static async getRuntimeConversation(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<RuntimeConversationInfo> {\n type RawRuntime = DirectConversationInfo & {\n stats?: RuntimeConversationInfo[\"stats\"];\n };\n\n // Fetch directly from the per-conversation runtime agent-server at conversationUrl.\n const response = await new ConversationClient(\n getAgentServerClientOptions({\n conversationUrl,\n sessionApiKey,\n }),\n ).getConversation<RawRuntime>(conversationId);\n const data = requireDirectConversationInfo(response);\n const stats = isRecord(response) ? response.stats : null;\n\n return {\n id: data.id,\n title: data.title?.trim()\n ? data.title\n : getDefaultConversationTitle(data.id),\n metrics: normalizeMetrics(data.metrics),\n created_at: data.created_at,\n updated_at: data.updated_at,\n status: toRuntimeStatus(data.execution_status),\n stats: isRecord(stats) ? stats : { usage_to_metrics: {} },\n };\n }\n\n static async searchConversations(\n limit: number = 20,\n pageId?: string,\n ): Promise<AppConversationPage> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n return searchCloudConversations(limit, pageId);\n }\n\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).searchConversations({\n limit,\n page_id: pageId,\n sort_order: ConversationSortOrder.UPDATED_AT_DESC,\n });\n\n return toConversationPage(requireConversationSearchPage(data));\n }\n\n static async deleteConversation(conversationId: string): Promise<void> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n await deleteCloudConversation(conversationId);\n } else {\n await new ConversationClient(\n getAgentServerClientOptions(),\n ).deleteConversation(conversationId);\n }\n removeStoredConversationMetadata(conversationId);\n }\n\n static async updateConversationTitle(\n conversationId: string,\n title: string,\n ): Promise<AppConversation> {\n await new ConversationClient(\n getAgentServerClientOptions(),\n ).updateConversation(conversationId, {\n title,\n });\n const [conversation] = await this.batchGetAppConversations([\n conversationId,\n ]);\n return requireAppConversation(conversation, conversationId);\n }\n\n /**\n * Forks a conversation, copying event history up to and including\n * `fromEventId`. Local agent-server only; needs agent-server >= 1.31.0 for\n * `from_event_id` (older backends copy the whole conversation).\n */\n static async forkConversation(\n sourceConversationId: string,\n fromEventId: string,\n title?: string,\n ): Promise<DirectConversationInfo> {\n if (getActiveBackend().backend.kind === \"cloud\") {\n throw new Error(\n \"Branching a conversation isn't supported on the cloud backend yet.\",\n );\n }\n\n // `from_event_id` is accepted by `/fork` but not yet typed in\n // ForkConversationRequest (through client 1.32.0); the client forwards the\n // body verbatim, so cast to carry it. A title also suppresses the backend\n // auto-title, so the \"(branch)\" marker sticks.\n const data = await new ConversationClient(\n getAgentServerClientOptions(),\n ).forkConversation<DirectConversationInfo>(sourceConversationId, {\n from_event_id: fromEventId,\n ...(title ? { title } : {}),\n } as ForkConversationRequest & { from_event_id: string });\n\n // Carry over the source's client-side metadata (repo/branch/workspace/\n // profile/plugins) so the fork hydrates its chat-page badges the same way.\n const sourceMetadata = getStoredConversationMetadata(sourceConversationId);\n if (sourceMetadata) {\n setStoredConversationMetadata(data.id, sourceMetadata);\n }\n\n return data;\n }\n\n /**\n * Returns an event's `parent_id` (the fork point for branching *before* it),\n * or undefined at the root. Uses the single-event endpoint because the events\n * *search* API omits `parent_id`.\n */\n static async getEventParentId(\n conversationId: string,\n eventId: string,\n ): Promise<string | undefined> {\n const event = (await new ConversationClient(\n getAgentServerClientOptions(),\n ).getEvent(conversationId, eventId)) as { parent_id?: string | null };\n return event.parent_id ?? undefined;\n }\n\n /**\n * Switches the LLM profile for the running conversation when one is open\n * (POST /switch_profile — per-conversation swap, doesn't change the user's\n * default profile). When called without a conversationId (home page),\n * falls back to POST /activate so the next conversation created picks up\n * the chosen profile.\n *\n * The per-conversation endpoint accepts only the profile name, so the UI does\n * not need to fetch or forward profile secrets. That keeps switching working\n * even when the agent server has no OH_SECRET_KEY for encrypted secret export.\n *\n * Cloud backends route to the app-server's per-conversation\n * `/switch_profile`, which owns the profiles and resolves the swap\n * server-side (base_url/api_key fixups, usage_id derivation, then the\n * agent-server's switch_llm) — so the client only forwards the profile name,\n * mirroring {@link switchAcpModel}.\n */\n static async switchProfile(\n conversationId: string | null,\n profileName: string,\n ): Promise<void> {\n const { backend } = getActiveBackend();\n\n if (backend.kind === \"cloud\") {\n // No conversation (home page): activate globally so the next\n // conversation starts with it. ProfilesService routes to the cloud\n // activate endpoint.\n if (!conversationId) {\n await ProfilesService.activateProfile(profileName);\n return;\n }\n await callCloudProxy({\n backend,\n method: \"POST\",\n path: `/api/v1/app-conversations/${conversationId}/switch_profile`,\n body: { profile_name: profileName },\n });\n return;\n }\n\n if (!conversationId) {\n await new ProfilesClient(getAgentServerClientOptions()).activateProfile(\n profileName,\n );\n return;\n }\n\n const clientOptions = getAgentServerClientOptions();\n const conversationClient = new ConversationClient(clientOptions);\n const profile = await new ProfilesClient(clientOptions).getProfile(\n profileName,\n { exposeSecrets: \"encrypted\" },\n );\n const model =\n typeof profile.config.model === \"string\" ? profile.config.model : \"\";\n if (!model) throw new Error(`Profile '${profileName}' has no model.`);\n await assertSubscriptionAuthReady({ llm: profile.config });\n await conversationClient.switchLLM(conversationId, {\n ...profile.config,\n model,\n // Keep streaming on after a switch (parity with conversation start);\n // the profile config would otherwise default it to stream=False.\n stream: true,\n // Avoid stale first-write-wins entries in the backend LLM registry.\n usage_id: `profile:${profileName}:${uuidv4()}`,\n } as LLMConfig);\n }\n\n /**\n * Switches the model of a running ACP conversation in place (POST\n * /switch_acp_model — the ACP analog of {@link switchProfile}'s /switch_profile).\n * The agent-server calls the ACP wrapper's ``session/set_model`` on the live\n * session, preserving context. Mirrors {@link switchProfile}'s\n * local-backend-only guard and per-conversation ConversationClient call.\n *\n * Works on a created-but-not-yet-run conversation too: the agent-server\n * treats a pre-first-run switch as a persist-only deferral (the model is\n * mirrored into the conversation's stored agent and applied when the session\n * starts). The home/no-conversation default is persisted via the active ACP\n * profile / Settings instead (see ``use-switch-acp-model``).\n */\n static async switchAcpModel(\n conversationId: string,\n model: string,\n ): Promise<void> {\n const { backend } = getActiveBackend();\n if (backend.kind === \"cloud\") {\n await callCloudProxy({\n backend,\n method: \"POST\",\n path: `/api/v1/app-conversations/${conversationId}/switch_acp_model`,\n body: { model },\n });\n return;\n }\n\n await new ConversationClient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