@openhands/agent-canvas 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1590) hide show
  1. package/README.md +1 -1
  2. package/README.windows.md +2 -2
  3. package/build/assets/acp-providers-BKvmTf82.js +1 -0
  4. package/build/assets/active-backend-context-DKFSMbn3.js +2 -0
  5. package/build/assets/agent-context-settings-D3PjSTU1.js +1 -0
  6. package/build/assets/agent-profiles-settings-D4cY5U2T.js +1 -0
  7. package/build/assets/agent-server-conversation-service.api-DozDKIW_.js +86 -0
  8. package/build/assets/agent-settings-351vXWc9.js +2 -0
  9. package/build/assets/agent-settings-Ce7BDZ6I.js +1 -0
  10. package/build/assets/alert-banner-Kyy1YWZU.js +1 -0
  11. package/build/assets/api-error-message-BJyfWp6p.js +1 -0
  12. package/build/assets/api-key-entry-screen-INIxqAMs.js +1 -0
  13. package/build/assets/app-settings-CbHqzQus.js +1 -0
  14. package/build/assets/automation-detail-DXDhUwPq.js +3 -0
  15. package/build/assets/automation-export-BRopEHMu.js +2 -0
  16. package/build/assets/automation-git-sync-CzyS4cn1.js +1 -0
  17. package/build/assets/automation-setup-route-FRr05f_g.js +1 -0
  18. package/build/assets/automation-templates-C_0FZgLG.js +1 -0
  19. package/build/assets/automations-list-CERuQWE6.js +1 -0
  20. package/build/assets/back-nav-button-Dm9tIjVf.js +1 -0
  21. package/build/assets/backend-form-modal-DK78-jn1.js +1 -0
  22. package/build/assets/backend-synced-settings-badge-3fOwg6Bd.js +1 -0
  23. package/build/assets/badge-D4SqUCsR.js +1 -0
  24. package/build/assets/base-modal-C7_BDl_U.js +1 -0
  25. package/build/assets/bot-C-0Wu7vQ.js +1 -0
  26. package/build/assets/brand-button-Dxv6PDeN.js +1 -0
  27. package/build/assets/browser-11etCQ04.js +7 -0
  28. package/build/assets/browser-tab-BAl4ckJE.js +1 -0
  29. package/build/assets/chat-send-button-DWwR2cgI.js +1 -0
  30. package/build/assets/check-Cf2YoT90.js +1 -0
  31. package/build/assets/chevron-down-C3OQ-ehx.js +1 -0
  32. package/build/assets/chevron-right-CN1uUiJ1.js +1 -0
  33. package/build/assets/circle-check-g5yeGMd-.js +1 -0
  34. package/build/assets/circle-plus-check-toggle-CBh_qomE.js +1 -0
  35. package/build/assets/cloud-funnel-analytics-287iIERo.js +1 -0
  36. package/build/assets/cog-C4rrw-ZK.js +1 -0
  37. package/build/assets/command-menu-BZQ8S3Ke.js +1 -0
  38. package/build/assets/commits-tab-DZtJgaDM.js +1 -0
  39. package/build/assets/condenser-settings-BcNmYR4s.js +1 -0
  40. package/build/assets/confirmation-modal-Bk4JRcCM.js +1 -0
  41. package/build/assets/context-menu-list-item-lVYETtY5.js +1 -0
  42. package/build/assets/conversation-CchMzpGl.js +1 -0
  43. package/build/assets/conversation-Dpzftz57.js +93 -0
  44. package/build/assets/conversation-panel-CchMzpGl.js +1 -0
  45. package/build/assets/conversation-state-store-a9d2fxRc.js +1 -0
  46. package/build/assets/conversation-store-Ca3ghXap.js +6 -0
  47. package/build/assets/conversation-tab-empty-state-HJtkmHZj.js +1 -0
  48. package/build/assets/copy-to-clipboard-button-Cjkswvnj.js +1 -0
  49. package/build/assets/device-verify-EZhHhBT7.js +1 -0
  50. package/build/assets/dropdown-classes-DJe-E6MC.js +1 -0
  51. package/build/assets/edit-automation-modal-D-urtv8n.js +1 -0
  52. package/build/assets/empty-state-CvaVahVr.js +1 -0
  53. package/build/assets/entry.client-C7Bi2tkU.js +2 -0
  54. package/build/assets/enum-filter-dropdown-DliX_Lo0.js +1 -0
  55. package/build/assets/environment-switch-overlay-CEKrFiMw.js +1 -0
  56. package/build/assets/error-state-BALXiBNy.js +1 -0
  57. package/build/assets/extension-module-card-classes-DpeaYhYo.js +1 -0
  58. package/build/assets/extensions-hub-CFduxBnk.js +1 -0
  59. package/build/assets/extensions-navigation-BeC224yX.js +1 -0
  60. package/build/assets/external-link-DFpYunfj.js +1 -0
  61. package/build/assets/files-tab-CL3J9b3p.js +1 -0
  62. package/build/assets/form-control-classes-CGw40z5h.js +1 -0
  63. package/build/assets/get-git-path-DlAJa_i6.js +1 -0
  64. package/build/assets/git-repo-dropdown-DGMEhz7d.js +1 -0
  65. package/build/assets/git-repo-dropdown-ai8qaNkD.js +1 -0
  66. package/build/assets/highlighted-source-view-C3sxykQi.js +1 -0
  67. package/build/assets/home-BCGlNJCA.js +1 -0
  68. package/build/assets/home-DB1pRqTC.js +1 -0
  69. package/build/assets/home-automation-run-tooltip-CooFQRIG.js +1 -0
  70. package/build/assets/home-store-Dl1dPE58.js +1 -0
  71. package/build/assets/index-home-DB1pRqTC.js +1 -0
  72. package/build/assets/info-uYSVzX86.js +1 -0
  73. package/build/assets/install-server-modal-BbJdhzet.js +1 -0
  74. package/build/assets/kebab-menu-item-content-BYokkRHi.js +1 -0
  75. package/build/assets/key-Cn5za3rg.js +1 -0
  76. package/build/assets/launch-C1ieiOGe.js +1 -0
  77. package/build/assets/list-filter-OFkpRrmi.js +1 -0
  78. package/build/assets/list-todo-Cuu-STFc.js +1 -0
  79. package/build/assets/llm-not-configured-banner-BqqYnJ1t.js +27 -0
  80. package/build/assets/llm-settings-CnDbbmVW.js +1 -0
  81. package/build/assets/llm-settings-S8Yjg__1.js +1 -0
  82. package/build/assets/llm-subscription-service-BpPfzW4x.js +1 -0
  83. package/build/assets/loader-circle-nvrwthvj.js +1 -0
  84. package/build/assets/loading-spinner-0L3ZTToZ.js +1 -0
  85. package/build/assets/manage-backends-modal-BCUPswyl.js +1 -0
  86. package/build/assets/manifest-58597dde.js +1 -0
  87. package/build/assets/manifest-subpage-layout-BGhiUQbA.js +1 -0
  88. package/build/assets/map-provider-B9LTm23I.js +1 -0
  89. package/build/assets/markdown-renderer-Cb2sBWtV.js +8 -0
  90. package/build/assets/mcp-CKbR4Vft.js +1 -0
  91. package/build/assets/mcp-marketplace-utils-C13fFccR.js +1 -0
  92. package/build/assets/mcp-page-Bm4K2NQq.js +9 -0
  93. package/build/assets/messages-BTN5thLe.js +40 -0
  94. package/build/assets/modal-body-CMOc2tLl.js +1 -0
  95. package/build/assets/modal-classes-BAb4Y_BG.js +1 -0
  96. package/build/assets/modal-close-button-CkJ0Ktjj.js +1 -0
  97. package/build/assets/mouse-pointer-click-CsgRs_-r.js +1 -0
  98. package/build/assets/onboarding-Cx_kaiD1.js +1 -0
  99. package/build/assets/onboarding-modal-vMwn7ihv.js +1 -0
  100. package/build/assets/organization-service.api-C8XpQ0pM.js +1 -0
  101. package/build/assets/parse-git-remote-url-DpDM9bK6.js +1 -0
  102. package/build/assets/pencil-Clh1Wjvh.js +1 -0
  103. package/build/assets/planner-tab-DQvDU3ap.js +1 -0
  104. package/build/assets/plug-BuQhHSSG.js +1 -0
  105. package/build/assets/plugins-management-service-BjYeF0b0.js +1 -0
  106. package/build/assets/plus-CEKne-Yp.js +1 -0
  107. package/build/assets/profiles-service.api-QB-T_u-g.js +1 -0
  108. package/build/assets/providers-FfSZ5TXP.js +1 -0
  109. package/build/assets/proxy-tcFL2yTQ.js +1 -0
  110. package/build/assets/puzzle-A9pGxxai.js +1 -0
  111. package/build/assets/recommended-automations-launcher-Bw8uC4V6.js +1 -0
  112. package/build/assets/refresh-cw-Bh69DyYO.js +1 -0
  113. package/build/assets/root-BLeQfBEq.css +1 -0
  114. package/build/assets/root-ZKKYPR1Z.js +2 -0
  115. package/build/assets/root-layout-luJoE9IG.js +2 -0
  116. package/build/assets/schema-field-Csw5fhtN.js +1 -0
  117. package/build/assets/scroll-fade-state-Dw-i4SGq.js +1 -0
  118. package/build/assets/sdk-section-page-HTffvm7Q.js +1 -0
  119. package/build/assets/secret-form-HTUbYw5o.js +1 -0
  120. package/build/assets/secrets-service-BTor9uAU.js +1 -0
  121. package/build/assets/secrets-settings-BizaTEr1.js +1 -0
  122. package/build/assets/server-process-C9RKzd1x.js +1 -0
  123. package/build/assets/settings-BlmrkwRi.js +1 -0
  124. package/build/assets/settings-dropdown-input-tM0A0ipy.js +1 -0
  125. package/build/assets/settings-index-CKq0b0Vg.js +1 -0
  126. package/build/assets/settings-input-C03KUoSC.js +1 -0
  127. package/build/assets/settings-list-classes-BJ0g8rWj.js +1 -0
  128. package/build/assets/settings-modal-AzEF1QPP.js +1 -0
  129. package/build/assets/settings-service.api-B2agVfjL.js +1 -0
  130. package/build/assets/settings-switch-CQE0EGC-.js +1 -0
  131. package/build/assets/settings-utils-ClYOkbbI.js +1 -0
  132. package/build/assets/shared-conversation-B55pCyBG.js +1 -0
  133. package/build/assets/shield-check-CFDViW82.js +1 -0
  134. package/build/assets/sidebar-layout-D3hE08wK.js +1 -0
  135. package/build/assets/sidebar-mobile-menu-toggle-BOtyJHwE.js +1 -0
  136. package/build/assets/sidebar-nav-link-CPzhyHQg.js +1 -0
  137. package/build/assets/sidebar-onboarding-checklist-storage-3qYflszY.js +1 -0
  138. package/build/assets/sidebar-store-DtpU7zaI.js +1 -0
  139. package/build/assets/skill-card-pill-row-CFxjoqxn.js +1 -0
  140. package/build/assets/skill-filter-CWZ5kjcg.js +2 -0
  141. package/build/assets/skill-icon-badge-CPQJ6A-I.js +1 -0
  142. package/build/assets/skill-scope-CV1dkAbW.js +1 -0
  143. package/build/assets/skills-plugins-DGHULTq6.js +1 -0
  144. package/build/assets/skills-settings-CM1lFv3e.js +1 -0
  145. package/build/assets/styled-tooltip-Dl06rkpY.js +1 -0
  146. package/build/assets/task-list-tab-04GNQuii.js +1 -0
  147. package/build/assets/terminal-Cj0iHIW7.js +3 -0
  148. package/build/assets/toggle-switch-Fd_QGz0r.js +1 -0
  149. package/build/assets/trash-2-Dl8_RGz0.js +1 -0
  150. package/build/assets/trash-_RMt7Ayc.js +1 -0
  151. package/build/assets/triangle-alert-SM-q4NU_.js +1 -0
  152. package/build/assets/typography-SgFy466J.js +1 -0
  153. package/build/assets/usage-tab-BcfWV6db.js +1 -0
  154. package/build/assets/use-acp-credential-form-BsSW5NHG.js +1 -0
  155. package/build/assets/use-activate-agent-profile-B2NS8nA5.js +1 -0
  156. package/build/assets/use-agent-profiles-DWBPC0Si.js +1 -0
  157. package/build/assets/use-automation-health-BxXdzZMP.js +1 -0
  158. package/build/assets/use-automations-zYb0dUny.js +1 -0
  159. package/build/assets/use-can-manage-org-profiles-BWMahtUh.js +1 -0
  160. package/build/assets/use-cloud-current-user-id-CPHMDG-C.js +1 -0
  161. package/build/assets/use-config-Bft35DOK.js +1 -0
  162. package/build/assets/use-create-conversation-DwN5vv2f.js +1 -0
  163. package/build/assets/use-create-secret-BSxJMxHp.js +1 -0
  164. package/build/assets/use-get-secrets-BT4ihRwj.js +1 -0
  165. package/build/assets/use-has-permission-B3C8rQmR.js +1 -0
  166. package/build/assets/use-is-authed-CFGkY3-Z.js +1 -0
  167. package/build/assets/use-launch-skill-in-chat-BYjYihBP.js +1 -0
  168. package/build/assets/use-llm-configured-BI6obxsc.js +1 -0
  169. package/build/assets/use-llm-profiles-djGAhTWL.js +1 -0
  170. package/build/assets/use-manifest-capabilities-3z0-1G59.js +1 -0
  171. package/build/assets/use-onboarding-completion-BXpyUSsJ.js +1 -0
  172. package/build/assets/use-plugins-marketplace-DI4_pK56.js +1 -0
  173. package/build/assets/use-save-agent-profile-DdBSTdpN.js +1 -0
  174. package/build/assets/use-save-settings-CUZW6yXP.js +1 -0
  175. package/build/assets/use-settings-C5VhGpqd.js +1 -0
  176. package/build/assets/use-settings-nav-items-DHaUu1Dg.js +16 -0
  177. package/build/assets/use-tracking-D5t9otIF.js +3 -0
  178. package/build/assets/use-user-conversation-DT0_QCnL.js +1 -0
  179. package/build/assets/useInfiniteQuery-CgeUQPfs.js +1 -0
  180. package/build/assets/useMutation-DFnzkf6f.js +1 -0
  181. package/build/assets/useQueries-BhbrGEf1.js +1 -0
  182. package/build/assets/useQuery-BXWbZBZl.js +1 -0
  183. package/build/assets/utils-DaCIEEQP.js +1 -0
  184. package/build/assets/vendor~browser-hbU4u2Ag.js +47 -0
  185. package/build/assets/vendor~commits-tab-BaO2Ce3e.js +11 -0
  186. package/build/assets/vendor~conversation-panel~conversation-CTvDDiXg.js +1 -0
  187. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js +186 -0
  188. package/build/assets/vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js +13 -0
  189. package/build/assets/vendor~root-layout-BlUaZ18v.js +1 -0
  190. package/build/assets/vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js +1 -0
  191. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js +1 -0
  192. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js +1 -0
  193. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DXqM7vqB.js +1 -0
  194. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js +48 -0
  195. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js +1 -0
  196. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js +4949 -0
  197. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js +8420 -0
  198. package/build/assets/verification-settings-Bj6bo097.js +1 -0
  199. package/build/assets/wrench-hi7Q13dF.js +1 -0
  200. package/build/assets/x-DkgltWa0.js +1 -0
  201. package/build/index.html +4 -4
  202. package/build/locales/ar/openhands.json +124 -43
  203. package/build/locales/ca/openhands.json +124 -43
  204. package/build/locales/de/openhands.json +124 -43
  205. package/build/locales/en/openhands.json +124 -43
  206. package/build/locales/es/openhands.json +124 -43
  207. package/build/locales/fr/openhands.json +124 -43
  208. package/build/locales/it/openhands.json +124 -43
  209. package/build/locales/ja/openhands.json +124 -43
  210. package/build/locales/ko-KR/openhands.json +124 -43
  211. package/build/locales/no/openhands.json +124 -43
  212. package/build/locales/pt/openhands.json +124 -43
  213. package/build/locales/tr/openhands.json +124 -43
  214. package/build/locales/uk/openhands.json +124 -43
  215. package/build/locales/zh-CN/openhands.json +124 -43
  216. package/build/locales/zh-TW/openhands.json +124 -43
  217. package/config/defaults.json +2 -2
  218. package/dist/api/agent-server-adapter.cjs +3 -3
  219. package/dist/api/agent-server-adapter.cjs.map +1 -1
  220. package/dist/api/agent-server-adapter.d.ts +10 -1
  221. package/dist/api/agent-server-adapter.js +115 -110
  222. package/dist/api/agent-server-adapter.js.map +1 -1
  223. package/dist/api/automation-service/automation-service.api.cjs +1 -1
  224. package/dist/api/automation-service/automation-service.api.cjs.map +1 -1
  225. package/dist/api/automation-service/automation-service.api.d.ts +13 -2
  226. package/dist/api/automation-service/automation-service.api.js +99 -84
  227. package/dist/api/automation-service/automation-service.api.js.map +1 -1
  228. package/dist/api/backend-registry/url-selection.cjs +1 -1
  229. package/dist/api/backend-registry/url-selection.cjs.map +1 -1
  230. package/dist/api/backend-registry/url-selection.d.ts +2 -1
  231. package/dist/api/backend-registry/url-selection.js +2 -2
  232. package/dist/api/backend-registry/url-selection.js.map +1 -1
  233. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
  234. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
  235. package/dist/api/conversation-service/agent-server-conversation-service.api.js +29 -24
  236. package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
  237. package/dist/api/git-provider-items-service.cjs +2 -0
  238. package/dist/api/git-provider-items-service.cjs.map +1 -0
  239. package/dist/api/git-provider-items-service.d.ts +25 -0
  240. package/dist/api/git-provider-items-service.js +127 -0
  241. package/dist/api/git-provider-items-service.js.map +1 -0
  242. package/dist/api/mcp-health/probe-mcp-server-health.cjs +1 -1
  243. package/dist/api/mcp-health/probe-mcp-server-health.js +31 -31
  244. package/dist/api/open-hands.types.d.ts +0 -19
  245. package/dist/api/profiles-service/profiles-service.api.cjs.map +1 -1
  246. package/dist/api/profiles-service/profiles-service.api.d.ts +16 -2
  247. package/dist/api/profiles-service/profiles-service.api.js.map +1 -1
  248. package/dist/api/provider-connections-service/provider-connections-service.api.cjs +2 -0
  249. package/dist/api/provider-connections-service/provider-connections-service.api.cjs.map +1 -0
  250. package/dist/api/provider-connections-service/provider-connections-service.api.d.ts +34 -0
  251. package/dist/api/provider-connections-service/provider-connections-service.api.js +50 -0
  252. package/dist/api/provider-connections-service/provider-connections-service.api.js.map +1 -0
  253. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs +1 -1
  254. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs.map +1 -1
  255. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js +1 -1
  256. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js.map +1 -1
  257. package/dist/components/conversation-events/chat/event-message.cjs +1 -1
  258. package/dist/components/conversation-events/chat/event-message.cjs.map +1 -1
  259. package/dist/components/conversation-events/chat/event-message.js +1 -1
  260. package/dist/components/conversation-events/chat/event-message.js.map +1 -1
  261. package/dist/components/conversation-events/chat/messages.cjs.map +1 -1
  262. package/dist/components/conversation-events/chat/messages.js.map +1 -1
  263. package/dist/components/features/automations/add-automation-menu.d.ts +7 -0
  264. package/dist/components/features/automations/add-automation-modal.cjs +2 -0
  265. package/dist/components/features/automations/add-automation-modal.cjs.map +1 -0
  266. package/dist/components/features/automations/add-automation-modal.js +42 -0
  267. package/dist/components/features/automations/add-automation-modal.js.map +1 -0
  268. package/dist/components/features/automations/automation-action-button-classes.cjs +2 -0
  269. package/dist/components/features/automations/automation-action-button-classes.cjs.map +1 -0
  270. package/dist/components/features/automations/automation-action-button-classes.d.ts +0 -2
  271. package/dist/components/features/automations/automation-action-button-classes.js +8 -0
  272. package/dist/components/features/automations/automation-action-button-classes.js.map +1 -0
  273. package/dist/components/features/automations/automation-card-skeleton.cjs +2 -0
  274. package/dist/components/features/automations/automation-card-skeleton.cjs.map +1 -0
  275. package/dist/components/features/automations/automation-card-skeleton.js +33 -0
  276. package/dist/components/features/automations/automation-card-skeleton.js.map +1 -0
  277. package/dist/components/features/automations/automation-card.cjs +2 -0
  278. package/dist/components/features/automations/automation-card.cjs.map +1 -0
  279. package/dist/components/features/automations/automation-card.d.ts +1 -1
  280. package/dist/components/features/automations/automation-card.js +160 -0
  281. package/dist/components/features/automations/automation-card.js.map +1 -0
  282. package/dist/components/features/automations/automation-group.cjs +2 -0
  283. package/dist/components/features/automations/automation-group.cjs.map +1 -0
  284. package/dist/components/features/automations/automation-group.js +54 -0
  285. package/dist/components/features/automations/automation-group.js.map +1 -0
  286. package/dist/components/features/automations/automation-list-row.cjs +2 -0
  287. package/dist/components/features/automations/automation-list-row.cjs.map +1 -0
  288. package/dist/components/features/automations/automation-list-row.js +152 -0
  289. package/dist/components/features/automations/automation-list-row.js.map +1 -0
  290. package/dist/components/features/automations/automation-run-insights.cjs +2 -0
  291. package/dist/components/features/automations/automation-run-insights.cjs.map +1 -0
  292. package/dist/components/features/automations/automation-run-insights.js +46 -0
  293. package/dist/components/features/automations/automation-run-insights.js.map +1 -0
  294. package/dist/components/features/automations/automation-view-mode.cjs +2 -0
  295. package/dist/components/features/automations/automation-view-mode.cjs.map +1 -0
  296. package/dist/components/features/automations/automation-view-mode.d.ts +5 -1
  297. package/dist/components/features/automations/automation-view-mode.js +6 -0
  298. package/dist/components/features/automations/automation-view-mode.js.map +1 -0
  299. package/dist/components/features/automations/backend-not-configured.cjs +2 -0
  300. package/dist/components/features/automations/backend-not-configured.cjs.map +1 -0
  301. package/dist/components/features/automations/backend-not-configured.js +34 -0
  302. package/dist/components/features/automations/backend-not-configured.js.map +1 -0
  303. package/dist/components/features/automations/build-automation-menu-items.cjs +2 -0
  304. package/dist/components/features/automations/build-automation-menu-items.cjs.map +1 -0
  305. package/dist/components/features/automations/build-automation-menu-items.js +53 -0
  306. package/dist/components/features/automations/build-automation-menu-items.js.map +1 -0
  307. package/dist/components/features/automations/build-automation-pills.cjs +2 -0
  308. package/dist/components/features/automations/build-automation-pills.cjs.map +1 -0
  309. package/dist/components/features/automations/build-automation-pills.js +71 -0
  310. package/dist/components/features/automations/build-automation-pills.js.map +1 -0
  311. package/dist/components/features/automations/create-instructions.cjs +2 -0
  312. package/dist/components/features/automations/create-instructions.cjs.map +1 -0
  313. package/dist/components/features/automations/create-instructions.js +102 -0
  314. package/dist/components/features/automations/create-instructions.js.map +1 -0
  315. package/dist/components/features/automations/dashboard/automations-dashboard-controls.d.ts +4 -3
  316. package/dist/components/features/automations/detail/run-status-badge.cjs +2 -0
  317. package/dist/components/features/automations/detail/run-status-badge.cjs.map +1 -0
  318. package/dist/components/features/automations/detail/run-status-badge.js +102 -0
  319. package/dist/components/features/automations/detail/run-status-badge.js.map +1 -0
  320. package/dist/components/features/automations/empty-state.cjs +2 -0
  321. package/dist/components/features/automations/empty-state.cjs.map +1 -0
  322. package/dist/components/features/automations/empty-state.js +35 -0
  323. package/dist/components/features/automations/empty-state.js.map +1 -0
  324. package/dist/components/features/automations/error-state.cjs +2 -0
  325. package/dist/components/features/automations/error-state.cjs.map +1 -0
  326. package/dist/components/features/automations/error-state.js +28 -0
  327. package/dist/components/features/automations/error-state.js.map +1 -0
  328. package/dist/components/features/automations/import-automation-modal.d.ts +2 -1
  329. package/dist/components/features/automations/kebab-menu-item-content.cjs +2 -0
  330. package/dist/components/features/automations/kebab-menu-item-content.cjs.map +1 -0
  331. package/dist/components/features/automations/kebab-menu-item-content.js +21 -0
  332. package/dist/components/features/automations/kebab-menu-item-content.js.map +1 -0
  333. package/dist/components/features/automations/kebab-menu.cjs +2 -0
  334. package/dist/components/features/automations/kebab-menu.cjs.map +1 -0
  335. package/dist/components/features/automations/kebab-menu.d.ts +2 -1
  336. package/dist/components/features/automations/kebab-menu.js +76 -0
  337. package/dist/components/features/automations/kebab-menu.js.map +1 -0
  338. package/dist/components/features/automations/recommended-automations-launcher.cjs +2 -0
  339. package/dist/components/features/automations/recommended-automations-launcher.cjs.map +1 -0
  340. package/dist/components/features/automations/recommended-automations-launcher.d.ts +7 -1
  341. package/dist/components/features/automations/recommended-automations-launcher.js +134 -0
  342. package/dist/components/features/automations/recommended-automations-launcher.js.map +1 -0
  343. package/dist/components/features/automations/recommended-automations-rail.cjs +2 -0
  344. package/dist/components/features/automations/recommended-automations-rail.cjs.map +1 -0
  345. package/dist/components/features/automations/recommended-automations-rail.d.ts +9 -0
  346. package/dist/components/features/automations/recommended-automations-rail.js +127 -0
  347. package/dist/components/features/automations/recommended-automations-rail.js.map +1 -0
  348. package/dist/components/features/automations/recommended-automations-section.cjs +2 -0
  349. package/dist/components/features/automations/recommended-automations-section.cjs.map +1 -0
  350. package/dist/components/features/automations/recommended-automations-section.d.ts +2 -2
  351. package/dist/components/features/automations/recommended-automations-section.js +198 -0
  352. package/dist/components/features/automations/recommended-automations-section.js.map +1 -0
  353. package/dist/components/features/automations/responder-deployment-modal.cjs +2 -0
  354. package/dist/components/features/automations/responder-deployment-modal.cjs.map +1 -0
  355. package/dist/components/features/automations/responder-deployment-modal.js +75 -0
  356. package/dist/components/features/automations/responder-deployment-modal.js.map +1 -0
  357. package/dist/components/features/automations/status-badge.cjs +2 -0
  358. package/dist/components/features/automations/status-badge.cjs.map +1 -0
  359. package/dist/components/features/automations/status-badge.js +12 -0
  360. package/dist/components/features/automations/status-badge.js.map +1 -0
  361. package/dist/components/features/automations/to-latest-run-state.cjs +2 -0
  362. package/dist/components/features/automations/to-latest-run-state.cjs.map +1 -0
  363. package/dist/components/features/automations/to-latest-run-state.d.ts +6 -0
  364. package/dist/components/features/automations/to-latest-run-state.js +21 -0
  365. package/dist/components/features/automations/to-latest-run-state.js.map +1 -0
  366. package/dist/components/features/backends/backend-form-modal.cjs +1 -1
  367. package/dist/components/features/backends/backend-form-modal.js +10 -10
  368. package/dist/components/features/backends/manage-backends-modal.cjs +1 -1
  369. package/dist/components/features/backends/manage-backends-modal.js +5 -5
  370. package/dist/components/features/chat/chat-interface.cjs +2 -2
  371. package/dist/components/features/chat/chat-interface.cjs.map +1 -1
  372. package/dist/components/features/chat/chat-interface.js +179 -177
  373. package/dist/components/features/chat/chat-interface.js.map +1 -1
  374. package/dist/components/features/command-menu/command-menu-items.d.ts +10 -4
  375. package/dist/components/features/conversation/conversation-git-actions-menu.cjs +2 -0
  376. package/dist/components/features/conversation/conversation-git-actions-menu.cjs.map +1 -0
  377. package/dist/components/features/conversation/conversation-git-actions-menu.d.ts +15 -0
  378. package/dist/components/features/conversation/conversation-git-actions-menu.js +123 -0
  379. package/dist/components/features/conversation/conversation-git-actions-menu.js.map +1 -0
  380. package/dist/components/features/conversation/conversation-git-actions-toggle.cjs +2 -0
  381. package/dist/components/features/conversation/conversation-git-actions-toggle.cjs.map +1 -0
  382. package/dist/components/features/conversation/conversation-git-actions-toggle.d.ts +10 -0
  383. package/dist/components/features/conversation/conversation-git-actions-toggle.js +60 -0
  384. package/dist/components/features/conversation/conversation-git-actions-toggle.js.map +1 -0
  385. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs +1 -1
  386. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs.map +1 -1
  387. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js +46 -10
  388. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js.map +1 -1
  389. package/dist/components/features/conversation/conversation-main/conversation-main.cjs +1 -1
  390. package/dist/components/features/conversation/conversation-main/conversation-main.cjs.map +1 -1
  391. package/dist/components/features/conversation/conversation-main/conversation-main.js +49 -43
  392. package/dist/components/features/conversation/conversation-main/conversation-main.js.map +1 -1
  393. package/dist/components/features/conversation/conversation-name-with-status.cjs +1 -1
  394. package/dist/components/features/conversation/conversation-name-with-status.cjs.map +1 -1
  395. package/dist/components/features/conversation/conversation-name-with-status.js +49 -40
  396. package/dist/components/features/conversation/conversation-name-with-status.js.map +1 -1
  397. package/dist/components/features/conversation/conversation-name.cjs +1 -1
  398. package/dist/components/features/conversation/conversation-name.js +4 -4
  399. package/dist/components/features/conversation/conversation-overview-automations-panel.cjs +2 -0
  400. package/dist/components/features/conversation/conversation-overview-automations-panel.cjs.map +1 -0
  401. package/dist/components/features/conversation/conversation-overview-automations-panel.d.ts +6 -0
  402. package/dist/components/features/conversation/conversation-overview-automations-panel.js +48 -0
  403. package/dist/components/features/conversation/conversation-overview-automations-panel.js.map +1 -0
  404. package/dist/components/features/conversation/conversation-overview-context-menu.cjs +2 -0
  405. package/dist/components/features/conversation/conversation-overview-context-menu.cjs.map +1 -0
  406. package/dist/components/features/conversation/conversation-overview-context-menu.d.ts +10 -0
  407. package/dist/components/features/conversation/conversation-overview-context-menu.js +221 -0
  408. package/dist/components/features/conversation/conversation-overview-context-menu.js.map +1 -0
  409. package/dist/components/features/conversation/conversation-overview-diffs-row.cjs +2 -0
  410. package/dist/components/features/conversation/conversation-overview-diffs-row.cjs.map +1 -0
  411. package/dist/components/features/conversation/conversation-overview-diffs-row.d.ts +2 -0
  412. package/dist/components/features/conversation/conversation-overview-diffs-row.js +88 -0
  413. package/dist/components/features/conversation/conversation-overview-diffs-row.js.map +1 -0
  414. package/dist/components/features/conversation/conversation-overview-drawer-content.cjs +2 -0
  415. package/dist/components/features/conversation/conversation-overview-drawer-content.cjs.map +1 -0
  416. package/dist/components/features/conversation/conversation-overview-drawer-content.d.ts +6 -0
  417. package/dist/components/features/conversation/conversation-overview-drawer-content.js +138 -0
  418. package/dist/components/features/conversation/conversation-overview-drawer-content.js.map +1 -0
  419. package/dist/components/features/conversation/conversation-overview-drawer-context.cjs +2 -0
  420. package/dist/components/features/conversation/conversation-overview-drawer-context.cjs.map +1 -0
  421. package/dist/components/features/conversation/conversation-overview-drawer-context.d.ts +17 -0
  422. package/dist/components/features/conversation/conversation-overview-drawer-context.js +43 -0
  423. package/dist/components/features/conversation/conversation-overview-drawer-context.js.map +1 -0
  424. package/dist/components/features/conversation/conversation-overview-drawer.cjs +2 -0
  425. package/dist/components/features/conversation/conversation-overview-drawer.cjs.map +1 -0
  426. package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs +2 -0
  427. package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs.map +1 -0
  428. package/dist/components/features/conversation/conversation-overview-drawer.constants.d.ts +6 -0
  429. package/dist/components/features/conversation/conversation-overview-drawer.constants.js +6 -0
  430. package/dist/components/features/conversation/conversation-overview-drawer.constants.js.map +1 -0
  431. package/dist/components/features/conversation/conversation-overview-drawer.d.ts +7 -0
  432. package/dist/components/features/conversation/conversation-overview-drawer.js +45 -0
  433. package/dist/components/features/conversation/conversation-overview-drawer.js.map +1 -0
  434. package/dist/components/features/conversation/conversation-overview-drawer.types.cjs +2 -0
  435. package/dist/components/features/conversation/conversation-overview-drawer.types.cjs.map +1 -0
  436. package/dist/components/features/conversation/conversation-overview-drawer.types.d.ts +12 -0
  437. package/dist/components/features/conversation/conversation-overview-drawer.types.js +13 -0
  438. package/dist/components/features/conversation/conversation-overview-drawer.types.js.map +1 -0
  439. package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs +2 -0
  440. package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs.map +1 -0
  441. package/dist/components/features/conversation/conversation-overview-git-items-panel.d.ts +7 -0
  442. package/dist/components/features/conversation/conversation-overview-git-items-panel.js +81 -0
  443. package/dist/components/features/conversation/conversation-overview-git-items-panel.js.map +1 -0
  444. package/dist/components/features/conversation/conversation-overview-git-section.cjs +2 -0
  445. package/dist/components/features/conversation/conversation-overview-git-section.cjs.map +1 -0
  446. package/dist/components/features/conversation/conversation-overview-git-section.d.ts +6 -0
  447. package/dist/components/features/conversation/conversation-overview-git-section.js +143 -0
  448. package/dist/components/features/conversation/conversation-overview-git-section.js.map +1 -0
  449. package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs +2 -0
  450. package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs.map +1 -0
  451. package/dist/components/features/conversation/conversation-overview-mcp-panel.d.ts +6 -0
  452. package/dist/components/features/conversation/conversation-overview-mcp-panel.js +108 -0
  453. package/dist/components/features/conversation/conversation-overview-mcp-panel.js.map +1 -0
  454. package/dist/components/features/conversation/conversation-overview-panel.cjs +2 -0
  455. package/dist/components/features/conversation/conversation-overview-panel.cjs.map +1 -0
  456. package/dist/components/features/conversation/conversation-overview-panel.constants.cjs +2 -0
  457. package/dist/components/features/conversation/conversation-overview-panel.constants.cjs.map +1 -0
  458. package/dist/components/features/conversation/conversation-overview-panel.constants.d.ts +24 -0
  459. package/dist/components/features/conversation/conversation-overview-panel.constants.js +12 -0
  460. package/dist/components/features/conversation/conversation-overview-panel.constants.js.map +1 -0
  461. package/dist/components/features/conversation/conversation-overview-panel.d.ts +2 -0
  462. package/dist/components/features/conversation/conversation-overview-panel.js +102 -0
  463. package/dist/components/features/conversation/conversation-overview-panel.js.map +1 -0
  464. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs +2 -0
  465. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs.map +1 -0
  466. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.d.ts +8 -0
  467. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js +29 -0
  468. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js.map +1 -0
  469. package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs +2 -0
  470. package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs.map +1 -0
  471. package/dist/components/features/conversation/conversation-overview-secrets-panel.d.ts +6 -0
  472. package/dist/components/features/conversation/conversation-overview-secrets-panel.js +89 -0
  473. package/dist/components/features/conversation/conversation-overview-secrets-panel.js.map +1 -0
  474. package/dist/components/features/conversation/conversation-overview-sections.cjs +2 -0
  475. package/dist/components/features/conversation/conversation-overview-sections.cjs.map +1 -0
  476. package/dist/components/features/conversation/conversation-overview-sections.d.ts +43 -0
  477. package/dist/components/features/conversation/conversation-overview-sections.js +27 -0
  478. package/dist/components/features/conversation/conversation-overview-sections.js.map +1 -0
  479. package/dist/components/features/conversation/conversation-overview-skills-panel.cjs +2 -0
  480. package/dist/components/features/conversation/conversation-overview-skills-panel.cjs.map +1 -0
  481. package/dist/components/features/conversation/conversation-overview-skills-panel.d.ts +6 -0
  482. package/dist/components/features/conversation/conversation-overview-skills-panel.js +138 -0
  483. package/dist/components/features/conversation/conversation-overview-skills-panel.js.map +1 -0
  484. package/dist/components/features/conversation/conversation-overview-toggle.cjs +2 -0
  485. package/dist/components/features/conversation/conversation-overview-toggle.cjs.map +1 -0
  486. package/dist/components/features/conversation/conversation-overview-toggle.d.ts +11 -0
  487. package/dist/components/features/conversation/conversation-overview-toggle.js +99 -0
  488. package/dist/components/features/conversation/conversation-overview-toggle.js.map +1 -0
  489. package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs +2 -0
  490. package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs.map +1 -0
  491. package/dist/components/features/conversation/conversation-secondary-drawer.classes.d.ts +4 -0
  492. package/dist/components/features/conversation/conversation-secondary-drawer.classes.js +7 -0
  493. package/dist/components/features/conversation/conversation-secondary-drawer.classes.js.map +1 -0
  494. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs +1 -1
  495. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs.map +1 -1
  496. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js +10 -9
  497. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js.map +1 -1
  498. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs +1 -1
  499. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs.map +1 -1
  500. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js +68 -62
  501. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js.map +1 -1
  502. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs +1 -1
  503. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs.map +1 -1
  504. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js +98 -88
  505. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
  506. package/dist/components/features/conversation/right-panel-toggle.cjs +1 -1
  507. package/dist/components/features/conversation/right-panel-toggle.cjs.map +1 -1
  508. package/dist/components/features/conversation/right-panel-toggle.d.ts +3 -2
  509. package/dist/components/features/conversation/right-panel-toggle.js +34 -33
  510. package/dist/components/features/conversation/right-panel-toggle.js.map +1 -1
  511. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs +1 -1
  512. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs.map +1 -1
  513. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.d.ts +2 -1
  514. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +14 -7
  515. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js.map +1 -1
  516. package/dist/components/features/conversation-panel/conversation-panel.cjs +1 -1
  517. package/dist/components/features/conversation-panel/conversation-panel.cjs.map +1 -1
  518. package/dist/components/features/conversation-panel/conversation-panel.js +252 -225
  519. package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
  520. package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs +1 -1
  521. package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs.map +1 -1
  522. package/dist/components/features/conversation-panel/local-new-conversation-menu.js +4 -4
  523. package/dist/components/features/conversation-panel/local-new-conversation-menu.js.map +1 -1
  524. package/dist/components/features/diff-viewer/accordion-panel.cjs +2 -0
  525. package/dist/components/features/diff-viewer/accordion-panel.cjs.map +1 -0
  526. package/dist/components/features/diff-viewer/accordion-panel.d.ts +13 -0
  527. package/dist/components/features/diff-viewer/accordion-panel.js +41 -0
  528. package/dist/components/features/diff-viewer/accordion-panel.js.map +1 -0
  529. package/dist/components/features/diff-viewer/commit-list.cjs +1 -1
  530. package/dist/components/features/diff-viewer/commit-list.cjs.map +1 -1
  531. package/dist/components/features/diff-viewer/commit-list.d.ts +5 -1
  532. package/dist/components/features/diff-viewer/commit-list.js +30 -16
  533. package/dist/components/features/diff-viewer/commit-list.js.map +1 -1
  534. package/dist/components/features/diff-viewer/commit-row.cjs +1 -1
  535. package/dist/components/features/diff-viewer/commit-row.cjs.map +1 -1
  536. package/dist/components/features/diff-viewer/commit-row.d.ts +1 -2
  537. package/dist/components/features/diff-viewer/commit-row.js +38 -34
  538. package/dist/components/features/diff-viewer/commit-row.js.map +1 -1
  539. package/dist/components/features/diff-viewer/diff-change-list.cjs +2 -0
  540. package/dist/components/features/diff-viewer/diff-change-list.cjs.map +1 -0
  541. package/dist/components/features/diff-viewer/diff-change-list.d.ts +18 -0
  542. package/dist/components/features/diff-viewer/diff-change-list.js +22 -0
  543. package/dist/components/features/diff-viewer/diff-change-list.js.map +1 -0
  544. package/dist/components/features/diff-viewer/editor-container.cjs +1 -1
  545. package/dist/components/features/diff-viewer/editor-container.cjs.map +1 -1
  546. package/dist/components/features/diff-viewer/editor-container.d.ts +2 -1
  547. package/dist/components/features/diff-viewer/editor-container.js +8 -7
  548. package/dist/components/features/diff-viewer/editor-container.js.map +1 -1
  549. package/dist/components/features/diff-viewer/file-diff-viewer.cjs +1 -1
  550. package/dist/components/features/diff-viewer/file-diff-viewer.cjs.map +1 -1
  551. package/dist/components/features/diff-viewer/file-diff-viewer.d.ts +10 -1
  552. package/dist/components/features/diff-viewer/file-diff-viewer.js +138 -112
  553. package/dist/components/features/diff-viewer/file-diff-viewer.js.map +1 -1
  554. package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs +2 -0
  555. package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs.map +1 -0
  556. package/dist/components/features/diff-viewer/uncommitted-changes-row.d.ts +12 -0
  557. package/dist/components/features/diff-viewer/uncommitted-changes-row.js +51 -0
  558. package/dist/components/features/diff-viewer/uncommitted-changes-row.js.map +1 -0
  559. package/dist/components/features/files-tab/file-content-viewer.cjs +1 -1
  560. package/dist/components/features/files-tab/file-content-viewer.cjs.map +1 -1
  561. package/dist/components/features/files-tab/file-content-viewer.js +0 -1
  562. package/dist/components/features/files-tab/file-content-viewer.js.map +1 -1
  563. package/dist/components/features/files-tab/file-quick-row.cjs +1 -1
  564. package/dist/components/features/files-tab/file-quick-row.cjs.map +1 -1
  565. package/dist/components/features/files-tab/file-quick-row.d.ts +9 -7
  566. package/dist/components/features/files-tab/file-quick-row.js +63 -34
  567. package/dist/components/features/files-tab/file-quick-row.js.map +1 -1
  568. package/dist/components/features/files-tab/files-tab-tree.constants.cjs +2 -0
  569. package/dist/components/features/files-tab/files-tab-tree.constants.cjs.map +1 -0
  570. package/dist/components/features/files-tab/files-tab-tree.constants.d.ts +7 -0
  571. package/dist/components/features/files-tab/files-tab-tree.constants.js +6 -0
  572. package/dist/components/features/files-tab/files-tab-tree.constants.js.map +1 -0
  573. package/dist/components/features/files-tab/segmented-toggle.cjs +1 -1
  574. package/dist/components/features/files-tab/segmented-toggle.cjs.map +1 -1
  575. package/dist/components/features/files-tab/segmented-toggle.d.ts +5 -3
  576. package/dist/components/features/files-tab/segmented-toggle.js +10 -13
  577. package/dist/components/features/files-tab/segmented-toggle.js.map +1 -1
  578. package/dist/components/features/files-tab/tree-node.cjs +1 -1
  579. package/dist/components/features/files-tab/tree-node.cjs.map +1 -1
  580. package/dist/components/features/files-tab/tree-node.js +34 -32
  581. package/dist/components/features/files-tab/tree-node.js.map +1 -1
  582. package/dist/components/features/files-tab/workspace-path.cjs +2 -0
  583. package/dist/components/features/files-tab/workspace-path.cjs.map +1 -0
  584. package/dist/components/features/files-tab/workspace-path.d.ts +6 -0
  585. package/dist/components/features/files-tab/workspace-path.js +41 -0
  586. package/dist/components/features/files-tab/workspace-path.js.map +1 -0
  587. package/dist/components/features/home/featured-automations/automation-health-indicator.cjs +2 -0
  588. package/dist/components/features/home/featured-automations/automation-health-indicator.cjs.map +1 -0
  589. package/dist/components/features/home/featured-automations/automation-health-indicator.js +22 -0
  590. package/dist/components/features/home/featured-automations/automation-health-indicator.js.map +1 -0
  591. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs +2 -0
  592. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs.map +1 -0
  593. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js +45 -0
  594. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js.map +1 -0
  595. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs +2 -0
  596. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs.map +1 -0
  597. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js +108 -0
  598. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js.map +1 -0
  599. package/dist/components/features/home/featured-automations/automation-run-health.cjs +2 -0
  600. package/dist/components/features/home/featured-automations/automation-run-health.cjs.map +1 -0
  601. package/dist/components/features/home/featured-automations/automation-run-health.js +75 -0
  602. package/dist/components/features/home/featured-automations/automation-run-health.js.map +1 -0
  603. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +2 -0
  604. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -0
  605. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +74 -0
  606. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -0
  607. package/dist/components/features/home/featured-automations/pinned-automation-card.d.ts +3 -3
  608. package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs +1 -1
  609. package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs.map +1 -1
  610. package/dist/components/features/home/git-repo-dropdown/use-url-search.js +1 -1
  611. package/dist/components/features/home/git-repo-dropdown/use-url-search.js.map +1 -1
  612. package/dist/components/features/home/workspace-dropdown/folder-browser-modal.cjs +1 -1
  613. package/dist/components/features/home/workspace-dropdown/folder-browser-modal.js +6 -6
  614. package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.cjs +1 -1
  615. package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.js +6 -6
  616. package/dist/components/features/manifest/manifest-form-field.d.ts +4 -3
  617. package/dist/components/features/manifest/manifest-icons.cjs +2 -0
  618. package/dist/components/features/manifest/manifest-icons.cjs.map +1 -0
  619. package/dist/components/features/manifest/manifest-icons.d.ts +1 -0
  620. package/dist/components/features/manifest/manifest-icons.js +21 -0
  621. package/dist/components/features/manifest/manifest-icons.js.map +1 -0
  622. package/dist/components/features/manifest/manifest-repository-list.d.ts +25 -0
  623. package/dist/components/features/markdown/markdown-table-scroll.cjs +1 -1
  624. package/dist/components/features/markdown/markdown-table-scroll.cjs.map +1 -1
  625. package/dist/components/features/markdown/markdown-table-scroll.d.ts +2 -6
  626. package/dist/components/features/markdown/markdown-table-scroll.js +15 -21
  627. package/dist/components/features/markdown/markdown-table-scroll.js.map +1 -1
  628. package/dist/components/features/mcp-logo-badge.cjs +1 -1
  629. package/dist/components/features/mcp-logo-badge.cjs.map +1 -1
  630. package/dist/components/features/mcp-logo-badge.d.ts +1 -1
  631. package/dist/components/features/mcp-logo-badge.js +1 -0
  632. package/dist/components/features/mcp-logo-badge.js.map +1 -1
  633. package/dist/components/features/mcp-page/custom-server-editor.cjs +1 -1
  634. package/dist/components/features/mcp-page/custom-server-editor.js +16 -16
  635. package/dist/components/features/mcp-page/index.cjs +1 -1
  636. package/dist/components/features/mcp-page/index.js +2 -2
  637. package/dist/components/features/mcp-page/install-server-modal.cjs +1 -1
  638. package/dist/components/features/mcp-page/install-server-modal.cjs.map +1 -1
  639. package/dist/components/features/mcp-page/install-server-modal.js +25 -25
  640. package/dist/components/features/mcp-page/install-server-modal.js.map +1 -1
  641. package/dist/components/features/mcp-page/installed-server-card.cjs +1 -1
  642. package/dist/components/features/mcp-page/installed-server-card.js +5 -5
  643. package/dist/components/features/mcp-page/marketplace-card.cjs +1 -1
  644. package/dist/components/features/mcp-page/marketplace-card.js +4 -4
  645. package/dist/components/features/mcp-page/marketplace-section.cjs +1 -1
  646. package/dist/components/features/mcp-page/marketplace-section.js +3 -3
  647. package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs +2 -0
  648. package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs.map +1 -0
  649. package/dist/components/features/mcp-page/mcp-logo-stack-badge.js +60 -0
  650. package/dist/components/features/mcp-page/mcp-logo-stack-badge.js.map +1 -0
  651. package/dist/components/features/mcp-page/mcp-server-health.cjs +1 -1
  652. package/dist/components/features/mcp-page/mcp-server-health.js +18 -18
  653. package/dist/components/features/onboarding/use-onboarding-completion.cjs +2 -0
  654. package/dist/components/features/onboarding/use-onboarding-completion.cjs.map +1 -0
  655. package/dist/components/features/onboarding/use-onboarding-completion.js +32 -0
  656. package/dist/components/features/onboarding/use-onboarding-completion.js.map +1 -0
  657. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs +2 -0
  658. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs.map +1 -0
  659. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.d.ts +1 -0
  660. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js +22 -0
  661. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js.map +1 -0
  662. package/dist/components/features/settings/brand-button.cjs +1 -1
  663. package/dist/components/features/settings/brand-button.cjs.map +1 -1
  664. package/dist/components/features/settings/brand-button.d.ts +2 -0
  665. package/dist/components/features/settings/brand-button.js +4 -2
  666. package/dist/components/features/settings/brand-button.js.map +1 -1
  667. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.cjs +1 -0
  668. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.d.ts +7 -0
  669. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.js +7 -0
  670. package/dist/components/features/settings/llm-profiles/llm-profiles-manager.cjs +1 -1
  671. package/dist/components/features/settings/llm-profiles/llm-profiles-manager.js +3 -0
  672. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.cjs +1 -1
  673. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.js +1 -0
  674. package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +20 -1
  675. package/dist/components/features/settings/llm-profiles/provider-connection-modal.cjs +1 -0
  676. package/dist/components/features/settings/llm-profiles/provider-connection-modal.d.ts +19 -0
  677. package/dist/components/features/settings/llm-profiles/provider-connection-modal.js +10 -0
  678. package/dist/components/features/settings/llm-profiles/provider-connection-row.cjs +1 -0
  679. package/dist/components/features/settings/llm-profiles/provider-connection-row.d.ts +10 -0
  680. package/dist/components/features/settings/llm-profiles/provider-connection-row.js +6 -0
  681. package/dist/components/features/settings/llm-profiles/provider-connections-manager.cjs +1 -0
  682. package/dist/components/features/settings/llm-profiles/provider-connections-manager.d.ts +15 -0
  683. package/dist/components/features/settings/llm-profiles/provider-connections-manager.js +8 -0
  684. package/dist/components/features/settings/sdk-settings/schema-field.cjs +1 -1
  685. package/dist/components/features/settings/sdk-settings/schema-field.js +6 -6
  686. package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs +1 -1
  687. package/dist/components/features/settings/sdk-settings/sdk-section-page.js +7 -7
  688. package/dist/components/features/settings/sdk-settings/sdk-section-page.js.map +1 -1
  689. package/dist/components/features/settings/secrets-settings/secret-form.cjs +1 -1
  690. package/dist/components/features/settings/secrets-settings/secret-form.js +7 -7
  691. package/dist/components/features/settings/settings-input.cjs +1 -1
  692. package/dist/components/features/settings/settings-input.cjs.map +1 -1
  693. package/dist/components/features/settings/settings-input.d.ts +6 -0
  694. package/dist/components/features/settings/settings-input.js +14 -13
  695. package/dist/components/features/settings/settings-input.js.map +1 -1
  696. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs +2 -0
  697. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs.map +1 -0
  698. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.d.ts +7 -0
  699. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js +102 -0
  700. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js.map +1 -0
  701. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs +2 -0
  702. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs.map +1 -0
  703. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.d.ts +8 -0
  704. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js +66 -0
  705. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js.map +1 -0
  706. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs +2 -0
  707. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs.map +1 -0
  708. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.d.ts +3 -0
  709. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js +15 -0
  710. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js.map +1 -0
  711. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs +2 -0
  712. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs.map +1 -0
  713. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.d.ts +10 -0
  714. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js +39 -0
  715. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js.map +1 -0
  716. package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs +2 -0
  717. package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs.map +1 -0
  718. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs +2 -0
  719. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs.map +1 -0
  720. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.d.ts +26 -0
  721. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js +78 -0
  722. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js.map +1 -0
  723. package/dist/components/features/sidebar/sidebar-onboarding-checklist.d.ts +5 -0
  724. package/dist/components/features/sidebar/sidebar-onboarding-checklist.js +127 -0
  725. package/dist/components/features/sidebar/sidebar-onboarding-checklist.js.map +1 -0
  726. package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
  727. package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
  728. package/dist/components/features/sidebar/sidebar-rail-body.js +115 -111
  729. package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
  730. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs +2 -0
  731. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs.map +1 -0
  732. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.d.ts +1 -0
  733. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js +10 -0
  734. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js.map +1 -0
  735. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs +2 -0
  736. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs.map +1 -0
  737. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.d.ts +15 -0
  738. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js +75 -0
  739. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js.map +1 -0
  740. package/dist/components/features/skills/add-skill-modal.cjs +2 -0
  741. package/dist/components/features/skills/add-skill-modal.cjs.map +1 -0
  742. package/dist/components/features/skills/add-skill-modal.js +164 -0
  743. package/dist/components/features/skills/add-skill-modal.js.map +1 -0
  744. package/dist/components/features/skills/build-skill-pills.cjs +2 -0
  745. package/dist/components/features/skills/build-skill-pills.cjs.map +1 -0
  746. package/dist/components/features/skills/build-skill-pills.js +88 -0
  747. package/dist/components/features/skills/build-skill-pills.js.map +1 -0
  748. package/dist/components/features/skills/get-skill-card-description.cjs +2 -0
  749. package/dist/components/features/skills/get-skill-card-description.cjs.map +1 -0
  750. package/dist/components/features/skills/get-skill-card-description.js +34 -0
  751. package/dist/components/features/skills/get-skill-card-description.js.map +1 -0
  752. package/dist/components/features/skills/get-skill-chat-launch-message.cjs +2 -0
  753. package/dist/components/features/skills/get-skill-chat-launch-message.cjs.map +1 -0
  754. package/dist/components/features/skills/get-skill-chat-launch-message.js +9 -0
  755. package/dist/components/features/skills/get-skill-chat-launch-message.js.map +1 -0
  756. package/dist/components/features/skills/is-copyable-skill-source.cjs +2 -0
  757. package/dist/components/features/skills/is-copyable-skill-source.cjs.map +1 -0
  758. package/dist/components/features/skills/is-copyable-skill-source.js +9 -0
  759. package/dist/components/features/skills/is-copyable-skill-source.js.map +1 -0
  760. package/dist/components/features/skills/skill-card-pill-row.cjs +2 -0
  761. package/dist/components/features/skills/skill-card-pill-row.cjs.map +1 -0
  762. package/dist/components/features/skills/skill-card-pill-row.d.ts +1 -1
  763. package/dist/components/features/skills/skill-card-pill-row.js +137 -0
  764. package/dist/components/features/skills/skill-card-pill-row.js.map +1 -0
  765. package/dist/components/features/skills/skill-card.cjs +2 -0
  766. package/dist/components/features/skills/skill-card.cjs.map +1 -0
  767. package/dist/components/features/skills/skill-card.js +93 -0
  768. package/dist/components/features/skills/skill-card.js.map +1 -0
  769. package/dist/components/features/skills/skill-detail-modal.cjs +3 -0
  770. package/dist/components/features/skills/skill-detail-modal.cjs.map +1 -0
  771. package/dist/components/features/skills/skill-detail-modal.js +150 -0
  772. package/dist/components/features/skills/skill-detail-modal.js.map +1 -0
  773. package/dist/components/features/skills/skill-facet-rail.cjs +2 -0
  774. package/dist/components/features/skills/skill-facet-rail.cjs.map +1 -0
  775. package/dist/components/features/skills/skill-facet-rail.js +42 -0
  776. package/dist/components/features/skills/skill-facet-rail.js.map +1 -0
  777. package/dist/components/features/skills/skill-facet-row.cjs +2 -0
  778. package/dist/components/features/skills/skill-facet-row.cjs.map +1 -0
  779. package/dist/components/features/skills/skill-facet-row.js +44 -0
  780. package/dist/components/features/skills/skill-facet-row.js.map +1 -0
  781. package/dist/components/features/skills/skill-filter.cjs +2 -0
  782. package/dist/components/features/skills/skill-filter.cjs.map +1 -0
  783. package/dist/components/features/skills/skill-filter.js +166 -0
  784. package/dist/components/features/skills/skill-filter.js.map +1 -0
  785. package/dist/components/features/skills/skill-filters-modal.cjs +2 -0
  786. package/dist/components/features/skills/skill-filters-modal.cjs.map +1 -0
  787. package/dist/components/features/skills/skill-filters-modal.js +53 -0
  788. package/dist/components/features/skills/skill-filters-modal.js.map +1 -0
  789. package/dist/components/features/skills/skill-icon-badge.cjs +2 -0
  790. package/dist/components/features/skills/skill-icon-badge.cjs.map +1 -0
  791. package/dist/components/features/skills/skill-icon-badge.js +17 -0
  792. package/dist/components/features/skills/skill-icon-badge.js.map +1 -0
  793. package/dist/components/features/skills/skill-type-badge.cjs +2 -0
  794. package/dist/components/features/skills/skill-type-badge.cjs.map +1 -0
  795. package/dist/components/features/skills/skill-type-badge.js +21 -0
  796. package/dist/components/features/skills/skill-type-badge.js.map +1 -0
  797. package/dist/components/features/skills/skills-toolbar.cjs +2 -0
  798. package/dist/components/features/skills/skills-toolbar.cjs.map +1 -0
  799. package/dist/components/features/skills/skills-toolbar.js +63 -0
  800. package/dist/components/features/skills/skills-toolbar.js.map +1 -0
  801. package/dist/components/shared/buttons/circle-plus-check-toggle.cjs +1 -1
  802. package/dist/components/shared/buttons/circle-plus-check-toggle.cjs.map +1 -1
  803. package/dist/components/shared/buttons/circle-plus-check-toggle.js +19 -6
  804. package/dist/components/shared/buttons/circle-plus-check-toggle.js.map +1 -1
  805. package/dist/components/shared/filters/enum-filter-dropdown.cjs +1 -1
  806. package/dist/components/shared/filters/enum-filter-dropdown.cjs.map +1 -1
  807. package/dist/components/shared/filters/enum-filter-dropdown.d.ts +4 -1
  808. package/dist/components/shared/filters/enum-filter-dropdown.js +14 -14
  809. package/dist/components/shared/filters/enum-filter-dropdown.js.map +1 -1
  810. package/dist/components/shared/modals/settings/settings-form.cjs +1 -1
  811. package/dist/components/shared/modals/settings/settings-form.js +4 -4
  812. package/dist/components/ui/resize-handle.cjs +1 -1
  813. package/dist/components/ui/resize-handle.cjs.map +1 -1
  814. package/dist/components/ui/resize-handle.d.ts +2 -1
  815. package/dist/components/ui/resize-handle.js +6 -5
  816. package/dist/components/ui/resize-handle.js.map +1 -1
  817. package/dist/config/defaults.cjs +1 -1
  818. package/dist/config/defaults.cjs.map +1 -1
  819. package/dist/config/defaults.js +2 -2
  820. package/dist/config/defaults.js.map +1 -1
  821. package/dist/constants/skills-docs.cjs +2 -0
  822. package/dist/constants/skills-docs.cjs.map +1 -0
  823. package/dist/constants/skills-docs.js +6 -0
  824. package/dist/constants/skills-docs.js.map +1 -0
  825. package/dist/contexts/conversation-websocket-context.cjs +3 -3
  826. package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
  827. package/dist/contexts/conversation-websocket-context.js +174 -149
  828. package/dist/contexts/conversation-websocket-context.js.map +1 -1
  829. package/dist/fixtures/home-automations-demo.cjs +2 -0
  830. package/dist/fixtures/home-automations-demo.cjs.map +1 -0
  831. package/dist/fixtures/home-automations-demo.d.ts +1 -3
  832. package/dist/fixtures/home-automations-demo.js +384 -0
  833. package/dist/fixtures/home-automations-demo.js.map +1 -0
  834. package/dist/hooks/chat/use-slash-command.cjs +1 -1
  835. package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
  836. package/dist/hooks/chat/use-slash-command.d.ts +1 -2
  837. package/dist/hooks/chat/use-slash-command.js +1 -0
  838. package/dist/hooks/chat/use-slash-command.js.map +1 -1
  839. package/dist/hooks/mutation/use-create-conversation.cjs +1 -1
  840. package/dist/hooks/mutation/use-create-conversation.cjs.map +1 -1
  841. package/dist/hooks/mutation/use-create-conversation.js +27 -30
  842. package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
  843. package/dist/hooks/mutation/use-create-provider-connection.cjs +1 -0
  844. package/dist/hooks/mutation/use-create-provider-connection.d.ts +2 -0
  845. package/dist/hooks/mutation/use-create-provider-connection.js +1 -0
  846. package/dist/hooks/mutation/use-delete-mcp-server.cjs +1 -1
  847. package/dist/hooks/mutation/use-delete-mcp-server.js +3 -3
  848. package/dist/hooks/mutation/use-delete-provider-connection.cjs +1 -0
  849. package/dist/hooks/mutation/use-delete-provider-connection.d.ts +1 -0
  850. package/dist/hooks/mutation/use-delete-provider-connection.js +1 -0
  851. package/dist/hooks/mutation/use-switch-acp-model.cjs +1 -1
  852. package/dist/hooks/mutation/use-switch-acp-model.cjs.map +1 -1
  853. package/dist/hooks/mutation/use-switch-acp-model.d.ts +5 -3
  854. package/dist/hooks/mutation/use-switch-acp-model.js +9 -13
  855. package/dist/hooks/mutation/use-switch-acp-model.js.map +1 -1
  856. package/dist/hooks/mutation/use-update-mcp-server.cjs +1 -1
  857. package/dist/hooks/mutation/use-update-mcp-server.js +6 -6
  858. package/dist/hooks/mutation/use-update-provider-connection.cjs +1 -0
  859. package/dist/hooks/mutation/use-update-provider-connection.d.ts +7 -0
  860. package/dist/hooks/mutation/use-update-provider-connection.js +1 -0
  861. package/dist/hooks/query/query-keys.cjs +1 -1
  862. package/dist/hooks/query/query-keys.cjs.map +1 -1
  863. package/dist/hooks/query/query-keys.d.ts +3 -0
  864. package/dist/hooks/query/query-keys.js +4 -4
  865. package/dist/hooks/query/query-keys.js.map +1 -1
  866. package/dist/hooks/query/use-automation-detail.cjs +1 -0
  867. package/dist/hooks/query/use-automation-detail.js +2 -0
  868. package/dist/hooks/query/use-automation-health.cjs +2 -0
  869. package/dist/hooks/query/use-automation-health.cjs.map +1 -0
  870. package/dist/hooks/query/use-automation-health.js +22 -0
  871. package/dist/hooks/query/use-automation-health.js.map +1 -0
  872. package/dist/hooks/query/use-automations.cjs +2 -0
  873. package/dist/hooks/query/use-automations.cjs.map +1 -0
  874. package/dist/hooks/query/use-automations.js +28 -0
  875. package/dist/hooks/query/use-automations.js.map +1 -0
  876. package/dist/hooks/query/use-backends-health.cjs +1 -1
  877. package/dist/hooks/query/use-backends-health.cjs.map +1 -1
  878. package/dist/hooks/query/use-backends-health.js +1 -1
  879. package/dist/hooks/query/use-backends-health.js.map +1 -1
  880. package/dist/hooks/query/use-commit-changes.cjs +1 -1
  881. package/dist/hooks/query/use-commit-changes.js +4 -4
  882. package/dist/hooks/query/use-conversation-history.cjs +1 -1
  883. package/dist/hooks/query/use-conversation-history.cjs.map +1 -1
  884. package/dist/hooks/query/use-conversation-history.js +3 -1
  885. package/dist/hooks/query/use-conversation-history.js.map +1 -1
  886. package/dist/hooks/query/use-conversation-metrics.cjs +1 -1
  887. package/dist/hooks/query/use-conversation-metrics.js +3 -3
  888. package/dist/hooks/query/use-latest-automation-runs.cjs +1 -0
  889. package/dist/hooks/query/use-latest-automation-runs.d.ts +2 -0
  890. package/dist/hooks/query/use-latest-automation-runs.js +3 -0
  891. package/dist/hooks/query/use-llm-profiles.d.ts +1 -1
  892. package/dist/hooks/query/use-paginated-conversations.cjs +1 -1
  893. package/dist/hooks/query/use-paginated-conversations.cjs.map +1 -1
  894. package/dist/hooks/query/use-paginated-conversations.js +1 -1
  895. package/dist/hooks/query/use-paginated-conversations.js.map +1 -1
  896. package/dist/hooks/query/use-provider-connections.cjs +2 -0
  897. package/dist/hooks/query/use-provider-connections.cjs.map +1 -0
  898. package/dist/hooks/query/use-provider-connections.d.ts +8 -0
  899. package/dist/hooks/query/use-provider-connections.js +19 -0
  900. package/dist/hooks/query/use-provider-connections.js.map +1 -0
  901. package/dist/hooks/query/use-repository-git-items.cjs +2 -0
  902. package/dist/hooks/query/use-repository-git-items.cjs.map +1 -0
  903. package/dist/hooks/query/use-repository-git-items.d.ts +3 -0
  904. package/dist/hooks/query/use-repository-git-items.js +33 -0
  905. package/dist/hooks/query/use-repository-git-items.js.map +1 -0
  906. package/dist/hooks/query/use-unified-get-git-changes.cjs +1 -1
  907. package/dist/hooks/query/use-unified-get-git-changes.js +4 -4
  908. package/dist/hooks/query/use-unified-git-commits.cjs +1 -1
  909. package/dist/hooks/query/use-unified-git-commits.js +4 -4
  910. package/dist/hooks/query/use-unified-git-diff.cjs +1 -1
  911. package/dist/hooks/query/use-unified-git-diff.js +4 -4
  912. package/dist/hooks/query/use-workspace-files.cjs +1 -1
  913. package/dist/hooks/query/use-workspace-files.js +6 -6
  914. package/dist/hooks/use-bash-command-runner.cjs +1 -1
  915. package/dist/hooks/use-bash-command-runner.cjs.map +1 -1
  916. package/dist/hooks/use-bash-command-runner.js +45 -42
  917. package/dist/hooks/use-bash-command-runner.js.map +1 -1
  918. package/dist/hooks/use-conversation-overview-column-space.cjs +2 -0
  919. package/dist/hooks/use-conversation-overview-column-space.cjs.map +1 -0
  920. package/dist/hooks/use-conversation-overview-column-space.d.ts +2 -0
  921. package/dist/hooks/use-conversation-overview-column-space.js +25 -0
  922. package/dist/hooks/use-conversation-overview-column-space.js.map +1 -0
  923. package/dist/hooks/use-conversation-overview-git-diff-stats.cjs +2 -0
  924. package/dist/hooks/use-conversation-overview-git-diff-stats.cjs.map +1 -0
  925. package/dist/hooks/use-conversation-overview-git-diff-stats.d.ts +7 -0
  926. package/dist/hooks/use-conversation-overview-git-diff-stats.js +37 -0
  927. package/dist/hooks/use-conversation-overview-git-diff-stats.js.map +1 -0
  928. package/dist/hooks/use-conversation-overview-panel-peek.cjs +2 -0
  929. package/dist/hooks/use-conversation-overview-panel-peek.cjs.map +1 -0
  930. package/dist/hooks/use-conversation-overview-panel-peek.d.ts +9 -0
  931. package/dist/hooks/use-conversation-overview-panel-peek.js +32 -0
  932. package/dist/hooks/use-conversation-overview-panel-peek.js.map +1 -0
  933. package/dist/hooks/use-conversation-overview-stats.cjs +2 -0
  934. package/dist/hooks/use-conversation-overview-stats.cjs.map +1 -0
  935. package/dist/hooks/use-conversation-overview-stats.d.ts +4 -0
  936. package/dist/hooks/use-conversation-overview-stats.js +15 -0
  937. package/dist/hooks/use-conversation-overview-stats.js.map +1 -0
  938. package/dist/hooks/use-conversation-primary-repository.cjs +2 -0
  939. package/dist/hooks/use-conversation-primary-repository.cjs.map +1 -0
  940. package/dist/hooks/use-conversation-primary-repository.d.ts +11 -0
  941. package/dist/hooks/use-conversation-primary-repository.js +17 -0
  942. package/dist/hooks/use-conversation-primary-repository.js.map +1 -0
  943. package/dist/hooks/use-drag-scroll.cjs +2 -0
  944. package/dist/hooks/use-drag-scroll.cjs.map +1 -0
  945. package/dist/hooks/use-drag-scroll.d.ts +12 -0
  946. package/dist/hooks/use-drag-scroll.js +41 -0
  947. package/dist/hooks/use-drag-scroll.js.map +1 -0
  948. package/dist/hooks/use-has-permission.cjs +2 -0
  949. package/dist/hooks/use-has-permission.cjs.map +1 -0
  950. package/dist/hooks/use-has-permission.js +8 -0
  951. package/dist/hooks/use-has-permission.js.map +1 -0
  952. package/dist/hooks/use-home-automation-actions.cjs +2 -0
  953. package/dist/hooks/use-home-automation-actions.cjs.map +1 -0
  954. package/dist/hooks/use-home-automation-actions.js +15 -0
  955. package/dist/hooks/use-home-automation-actions.js.map +1 -0
  956. package/dist/hooks/use-launch-skill-in-chat.cjs +2 -0
  957. package/dist/hooks/use-launch-skill-in-chat.cjs.map +1 -0
  958. package/dist/hooks/use-launch-skill-in-chat.js +16 -0
  959. package/dist/hooks/use-launch-skill-in-chat.js.map +1 -0
  960. package/dist/hooks/use-mcp-server-health.cjs +1 -1
  961. package/dist/hooks/use-mcp-server-health.js +3 -3
  962. package/dist/hooks/use-resizable-drawer-width.cjs +2 -0
  963. package/dist/hooks/use-resizable-drawer-width.cjs.map +1 -0
  964. package/dist/hooks/use-resizable-drawer-width.d.ts +22 -0
  965. package/dist/hooks/use-resizable-drawer-width.js +46 -0
  966. package/dist/hooks/use-resizable-drawer-width.js.map +1 -0
  967. package/dist/hooks/use-responder-url-secret.cjs +2 -0
  968. package/dist/hooks/use-responder-url-secret.cjs.map +1 -0
  969. package/dist/hooks/use-responder-url-secret.js +51 -0
  970. package/dist/hooks/use-responder-url-secret.js.map +1 -0
  971. package/dist/hooks/use-select-conversation-tab.cjs +1 -1
  972. package/dist/hooks/use-select-conversation-tab.cjs.map +1 -1
  973. package/dist/hooks/use-select-conversation-tab.d.ts +2 -0
  974. package/dist/hooks/use-select-conversation-tab.js +15 -7
  975. package/dist/hooks/use-select-conversation-tab.js.map +1 -1
  976. package/dist/hooks/use-tracking.cjs +1 -1
  977. package/dist/hooks/use-tracking.cjs.map +1 -1
  978. package/dist/hooks/use-tracking.d.ts +17 -0
  979. package/dist/hooks/use-tracking.js +10 -0
  980. package/dist/hooks/use-tracking.js.map +1 -1
  981. package/dist/hooks/use-websocket.cjs +1 -1
  982. package/dist/hooks/use-websocket.cjs.map +1 -1
  983. package/dist/hooks/use-websocket.d.ts +1 -2
  984. package/dist/hooks/use-websocket.js +58 -51
  985. package/dist/hooks/use-websocket.js.map +1 -1
  986. package/dist/i18n/declaration.cjs +1 -1
  987. package/dist/i18n/declaration.cjs.map +1 -1
  988. package/dist/i18n/declaration.d.ts +124 -43
  989. package/dist/i18n/declaration.js +1 -1
  990. package/dist/i18n/declaration.js.map +1 -1
  991. package/dist/i18n/translation.cjs +3 -3
  992. package/dist/i18n/translation.cjs.map +1 -1
  993. package/dist/i18n/translation.js +2091 -714
  994. package/dist/i18n/translation.js.map +1 -1
  995. package/dist/icons/check-circle.cjs +2 -0
  996. package/dist/icons/check-circle.cjs.map +1 -0
  997. package/dist/icons/check-circle.js +20 -0
  998. package/dist/icons/check-circle.js.map +1 -0
  999. package/dist/icons/chevron-down.cjs +2 -0
  1000. package/dist/icons/chevron-down.cjs.map +1 -0
  1001. package/dist/icons/chevron-down.js +20 -0
  1002. package/dist/icons/chevron-down.js.map +1 -0
  1003. package/dist/icons/clock.cjs +2 -0
  1004. package/dist/icons/clock.cjs.map +1 -0
  1005. package/dist/icons/clock.js +20 -0
  1006. package/dist/icons/clock.js.map +1 -0
  1007. package/dist/icons/exclamation-circle.cjs +2 -0
  1008. package/dist/icons/exclamation-circle.cjs.map +1 -0
  1009. package/dist/icons/exclamation-circle.js +20 -0
  1010. package/dist/icons/exclamation-circle.js.map +1 -0
  1011. package/dist/icons/kebab-vertical.cjs +2 -0
  1012. package/dist/icons/kebab-vertical.cjs.map +1 -0
  1013. package/dist/icons/kebab-vertical.js +14 -0
  1014. package/dist/icons/kebab-vertical.js.map +1 -0
  1015. package/dist/icons/key.cjs +2 -0
  1016. package/dist/icons/key.cjs.map +1 -0
  1017. package/dist/icons/key.js +21 -0
  1018. package/dist/icons/key.js.map +1 -0
  1019. package/dist/icons/message-square-share.cjs +2 -0
  1020. package/dist/icons/message-square-share.cjs.map +1 -0
  1021. package/dist/icons/message-square-share.js +22 -0
  1022. package/dist/icons/message-square-share.js.map +1 -0
  1023. package/dist/icons/play.cjs +2 -0
  1024. package/dist/icons/play.cjs.map +1 -0
  1025. package/dist/icons/play.js +19 -0
  1026. package/dist/icons/play.js.map +1 -0
  1027. package/dist/icons/power.cjs +2 -0
  1028. package/dist/icons/power.cjs.map +1 -0
  1029. package/dist/icons/power.js +20 -0
  1030. package/dist/icons/power.js.map +1 -0
  1031. package/dist/icons/sparkle.cjs +2 -0
  1032. package/dist/icons/sparkle.cjs.map +1 -0
  1033. package/dist/icons/sparkle.js +20 -0
  1034. package/dist/icons/sparkle.js.map +1 -0
  1035. package/dist/icons/trash.cjs +2 -0
  1036. package/dist/icons/trash.cjs.map +1 -0
  1037. package/dist/icons/trash.js +20 -0
  1038. package/dist/icons/trash.js.map +1 -0
  1039. package/dist/icons/x-circle.cjs +2 -0
  1040. package/dist/icons/x-circle.cjs.map +1 -0
  1041. package/dist/icons/x-circle.js +20 -0
  1042. package/dist/icons/x-circle.js.map +1 -0
  1043. package/dist/locales/ar/openhands.json +124 -43
  1044. package/dist/locales/ca/openhands.json +124 -43
  1045. package/dist/locales/de/openhands.json +124 -43
  1046. package/dist/locales/en/openhands.json +124 -43
  1047. package/dist/locales/es/openhands.json +124 -43
  1048. package/dist/locales/fr/openhands.json +124 -43
  1049. package/dist/locales/it/openhands.json +124 -43
  1050. package/dist/locales/ja/openhands.json +124 -43
  1051. package/dist/locales/ko-KR/openhands.json +124 -43
  1052. package/dist/locales/no/openhands.json +124 -43
  1053. package/dist/locales/pt/openhands.json +124 -43
  1054. package/dist/locales/tr/openhands.json +124 -43
  1055. package/dist/locales/uk/openhands.json +124 -43
  1056. package/dist/locales/zh-CN/openhands.json +124 -43
  1057. package/dist/locales/zh-TW/openhands.json +124 -43
  1058. package/dist/manifests/automation-insights.cjs +2 -0
  1059. package/dist/manifests/automation-insights.cjs.map +1 -0
  1060. package/dist/manifests/automation-insights.d.ts +2 -0
  1061. package/dist/manifests/automation-insights.js +9 -0
  1062. package/dist/manifests/automation-insights.js.map +1 -0
  1063. package/dist/manifests/automation-interface.cjs +1 -1
  1064. package/dist/manifests/automation-interface.cjs.map +1 -1
  1065. package/dist/manifests/automation-interface.d.ts +47 -31
  1066. package/dist/manifests/automation-interface.js +48 -54
  1067. package/dist/manifests/automation-interface.js.map +1 -1
  1068. package/dist/manifests/automation-setup.cjs +1 -1
  1069. package/dist/manifests/automation-setup.cjs.map +1 -1
  1070. package/dist/manifests/automation-setup.d.ts +37 -3
  1071. package/dist/manifests/automation-setup.js +16 -2
  1072. package/dist/manifests/automation-setup.js.map +1 -1
  1073. package/dist/manifests/interface-validation.cjs +1 -1
  1074. package/dist/manifests/interface-validation.cjs.map +1 -1
  1075. package/dist/manifests/interface-validation.js +56 -52
  1076. package/dist/manifests/interface-validation.js.map +1 -1
  1077. package/dist/manifests/manifest-actions.d.ts +5 -0
  1078. package/dist/manifests/manifest-bundle.d.ts +30 -0
  1079. package/dist/manifests/manifest-local-validation.d.ts +10 -1
  1080. package/dist/manifests/manifest-sources.cjs +1 -1
  1081. package/dist/manifests/manifest-sources.cjs.map +1 -1
  1082. package/dist/manifests/manifest-sources.js +3 -3
  1083. package/dist/manifests/manifest-sources.js.map +1 -1
  1084. package/dist/manifests/manifest-template.d.ts +14 -0
  1085. package/dist/manifests/manifest-validation.cjs +1 -1
  1086. package/dist/manifests/manifest-validation.cjs.map +1 -1
  1087. package/dist/manifests/manifest-validation.js +78 -45
  1088. package/dist/manifests/manifest-validation.js.map +1 -1
  1089. package/dist/manifests/types.cjs +1 -1
  1090. package/dist/manifests/types.cjs.map +1 -1
  1091. package/dist/manifests/types.d.ts +64 -3
  1092. package/dist/manifests/types.js +7 -6
  1093. package/dist/manifests/types.js.map +1 -1
  1094. package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.cjs +1 -1
  1095. package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.js +10 -10
  1096. package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.cjs +1 -1
  1097. package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.js +8 -8
  1098. package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.cjs +1 -1
  1099. package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.js +9 -9
  1100. package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs +4843 -0
  1101. package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs.map +1 -0
  1102. package/dist/node_modules/@openhands/extensions/automations/bundle-index.js +11 -0
  1103. package/dist/node_modules/@openhands/extensions/automations/bundle-index.js.map +1 -0
  1104. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs +13 -0
  1105. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs.map +1 -0
  1106. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js +87 -0
  1107. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js.map +1 -0
  1108. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs +12 -0
  1109. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs.map +1 -0
  1110. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js +98 -0
  1111. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js.map +1 -0
  1112. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs +9 -7
  1113. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs.map +1 -1
  1114. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js +32 -13
  1115. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js.map +1 -1
  1116. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs +2 -2
  1117. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs.map +1 -1
  1118. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js +29 -34
  1119. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js.map +1 -1
  1120. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs +3 -3
  1121. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs.map +1 -1
  1122. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js +2 -2
  1123. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js.map +1 -1
  1124. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs +14 -0
  1125. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs.map +1 -0
  1126. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js +72 -0
  1127. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js.map +1 -0
  1128. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs +1 -1
  1129. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs.map +1 -1
  1130. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js +16 -10
  1131. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js.map +1 -1
  1132. package/dist/node_modules/@openhands/extensions/automations/index.cjs +1 -1
  1133. package/dist/node_modules/@openhands/extensions/automations/index.cjs.map +1 -1
  1134. package/dist/node_modules/@openhands/extensions/automations/index.js +18 -13
  1135. package/dist/node_modules/@openhands/extensions/automations/index.js.map +1 -1
  1136. package/dist/node_modules/@openhands/extensions/automations/interface.cjs +1 -1
  1137. package/dist/node_modules/@openhands/extensions/automations/interface.cjs.map +1 -1
  1138. package/dist/node_modules/@openhands/extensions/automations/interface.js +6 -2
  1139. package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
  1140. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs +1 -1
  1141. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs.map +1 -1
  1142. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js +36 -3
  1143. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js.map +1 -1
  1144. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs +2 -0
  1145. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs.map +1 -0
  1146. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js +75 -0
  1147. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js.map +1 -0
  1148. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs +1 -1
  1149. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs.map +1 -1
  1150. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js +68 -66
  1151. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js.map +1 -1
  1152. package/dist/node_modules/@openhands/extensions/skills/index.cjs +1002 -47
  1153. package/dist/node_modules/@openhands/extensions/skills/index.cjs.map +1 -1
  1154. package/dist/node_modules/@openhands/extensions/skills/index.js +59 -17
  1155. package/dist/node_modules/@openhands/extensions/skills/index.js.map +1 -1
  1156. package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs +2 -0
  1157. package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs.map +1 -0
  1158. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +9 -0
  1159. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js.map +1 -0
  1160. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs +2 -0
  1161. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs.map +1 -0
  1162. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js +12 -0
  1163. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js.map +1 -0
  1164. package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs +2 -0
  1165. package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs.map +1 -0
  1166. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +19 -0
  1167. package/dist/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -0
  1168. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs +2 -0
  1169. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs.map +1 -0
  1170. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +27 -0
  1171. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js.map +1 -0
  1172. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs +2 -0
  1173. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs.map +1 -0
  1174. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js +27 -0
  1175. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js.map +1 -0
  1176. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs +2 -0
  1177. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs.map +1 -0
  1178. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js +12 -0
  1179. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js.map +1 -0
  1180. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs +2 -0
  1181. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs.map +1 -0
  1182. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +39 -0
  1183. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js.map +1 -0
  1184. package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs +2 -0
  1185. package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs.map +1 -0
  1186. package/dist/node_modules/lucide-react/dist/esm/icons/library.js +23 -0
  1187. package/dist/node_modules/lucide-react/dist/esm/icons/library.js.map +1 -0
  1188. package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs +2 -0
  1189. package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs.map +1 -0
  1190. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +23 -0
  1191. package/dist/node_modules/lucide-react/dist/esm/icons/package.js.map +1 -0
  1192. package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs +2 -0
  1193. package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs.map +1 -0
  1194. package/dist/node_modules/lucide-react/dist/esm/icons/palette.js +39 -0
  1195. package/dist/node_modules/lucide-react/dist/esm/icons/palette.js.map +1 -0
  1196. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs +2 -0
  1197. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs.map +1 -0
  1198. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +12 -0
  1199. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js.map +1 -0
  1200. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs +2 -0
  1201. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs.map +1 -0
  1202. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +12 -0
  1203. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js.map +1 -0
  1204. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs +2 -0
  1205. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs.map +1 -0
  1206. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +25 -0
  1207. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js.map +1 -0
  1208. package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs +2 -0
  1209. package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs.map +1 -0
  1210. package/dist/node_modules/lucide-react/dist/esm/icons/timer.js +27 -0
  1211. package/dist/node_modules/lucide-react/dist/esm/icons/timer.js.map +1 -0
  1212. package/dist/package.cjs +1 -1
  1213. package/dist/package.cjs.map +1 -1
  1214. package/dist/package.js +3 -3
  1215. package/dist/package.js.map +1 -1
  1216. package/dist/routes/app-settings.cjs +1 -1
  1217. package/dist/routes/app-settings.cjs.map +1 -1
  1218. package/dist/routes/app-settings.js +87 -85
  1219. package/dist/routes/app-settings.js.map +1 -1
  1220. package/dist/routes/commits-tab.cjs +1 -1
  1221. package/dist/routes/commits-tab.cjs.map +1 -1
  1222. package/dist/routes/commits-tab.js +27 -21
  1223. package/dist/routes/commits-tab.js.map +1 -1
  1224. package/dist/routes/conversation.cjs +1 -1
  1225. package/dist/routes/conversation.cjs.map +1 -1
  1226. package/dist/routes/conversation.js +56 -55
  1227. package/dist/routes/conversation.js.map +1 -1
  1228. package/dist/routes/files-tab.cjs +1 -1
  1229. package/dist/routes/files-tab.cjs.map +1 -1
  1230. package/dist/routes/files-tab.d.ts +4 -0
  1231. package/dist/routes/files-tab.js +121 -151
  1232. package/dist/routes/files-tab.js.map +1 -1
  1233. package/dist/routes/llm-settings.cjs +1 -1
  1234. package/dist/routes/llm-settings.cjs.map +1 -1
  1235. package/dist/routes/llm-settings.d.ts +9 -1
  1236. package/dist/routes/llm-settings.js +137 -107
  1237. package/dist/routes/llm-settings.js.map +1 -1
  1238. package/dist/routes/mcp.cjs +1 -1
  1239. package/dist/routes/mcp.cjs.map +1 -1
  1240. package/dist/routes/mcp.js +20 -20
  1241. package/dist/routes/secrets-settings.cjs +1 -1
  1242. package/dist/routes/secrets-settings.js +15 -15
  1243. package/dist/stores/conversation-store.cjs +1 -1
  1244. package/dist/stores/conversation-store.cjs.map +1 -1
  1245. package/dist/stores/conversation-store.d.ts +8 -1
  1246. package/dist/stores/conversation-store.js +9 -0
  1247. package/dist/stores/conversation-store.js.map +1 -1
  1248. package/dist/stores/files-tab-store.cjs +1 -1
  1249. package/dist/stores/files-tab-store.cjs.map +1 -1
  1250. package/dist/stores/files-tab-store.d.ts +13 -0
  1251. package/dist/stores/files-tab-store.js +49 -5
  1252. package/dist/stores/files-tab-store.js.map +1 -1
  1253. package/dist/stores/use-event-store.cjs +1 -1
  1254. package/dist/stores/use-event-store.cjs.map +1 -1
  1255. package/dist/stores/use-event-store.js +11 -11
  1256. package/dist/stores/use-event-store.js.map +1 -1
  1257. package/dist/types/agent-server/core/events/message-event.d.ts +2 -2
  1258. package/dist/types/automation.cjs +2 -0
  1259. package/dist/types/automation.cjs.map +1 -0
  1260. package/dist/types/automation.js +8 -0
  1261. package/dist/types/automation.js.map +1 -0
  1262. package/dist/utils/automation-catalog.cjs +1 -1
  1263. package/dist/utils/automation-catalog.cjs.map +1 -1
  1264. package/dist/utils/automation-catalog.d.ts +12 -0
  1265. package/dist/utils/automation-catalog.js +20 -1
  1266. package/dist/utils/automation-catalog.js.map +1 -1
  1267. package/dist/utils/automation-schedule.cjs +2 -0
  1268. package/dist/utils/automation-schedule.cjs.map +1 -0
  1269. package/dist/utils/automation-schedule.js +8 -0
  1270. package/dist/utils/automation-schedule.js.map +1 -0
  1271. package/dist/utils/automation-stack-section.cjs +2 -0
  1272. package/dist/utils/automation-stack-section.cjs.map +1 -0
  1273. package/dist/utils/automation-stack-section.d.ts +2 -0
  1274. package/dist/utils/automation-stack-section.js +6 -0
  1275. package/dist/utils/automation-stack-section.js.map +1 -0
  1276. package/dist/utils/constants.cjs +1 -1
  1277. package/dist/utils/constants.cjs.map +1 -1
  1278. package/dist/utils/constants.js +4 -0
  1279. package/dist/utils/constants.js.map +1 -1
  1280. package/dist/utils/conversation-local-storage.cjs +1 -1
  1281. package/dist/utils/conversation-local-storage.cjs.map +1 -1
  1282. package/dist/utils/conversation-local-storage.d.ts +17 -4
  1283. package/dist/utils/conversation-local-storage.js +111 -63
  1284. package/dist/utils/conversation-local-storage.js.map +1 -1
  1285. package/dist/utils/conversation-metrics.cjs +1 -1
  1286. package/dist/utils/conversation-metrics.cjs.map +1 -1
  1287. package/dist/utils/conversation-metrics.d.ts +3 -2
  1288. package/dist/utils/conversation-metrics.js +16 -14
  1289. package/dist/utils/conversation-metrics.js.map +1 -1
  1290. package/dist/utils/conversation-overview-project-scope.cjs +2 -0
  1291. package/dist/utils/conversation-overview-project-scope.cjs.map +1 -0
  1292. package/dist/utils/conversation-overview-project-scope.d.ts +16 -0
  1293. package/dist/utils/conversation-overview-project-scope.js +22 -0
  1294. package/dist/utils/conversation-overview-project-scope.js.map +1 -0
  1295. package/dist/utils/extension-module-card-classes.cjs +1 -1
  1296. package/dist/utils/extension-module-card-classes.cjs.map +1 -1
  1297. package/dist/utils/extension-module-card-classes.d.ts +1 -1
  1298. package/dist/utils/extension-module-card-classes.js +2 -2
  1299. package/dist/utils/extension-module-card-classes.js.map +1 -1
  1300. package/dist/utils/format-relative-time.cjs +2 -0
  1301. package/dist/utils/format-relative-time.cjs.map +1 -0
  1302. package/dist/utils/format-relative-time.js +17 -0
  1303. package/dist/utils/format-relative-time.js.map +1 -0
  1304. package/dist/utils/git-diff-stats.cjs +5 -0
  1305. package/dist/utils/git-diff-stats.cjs.map +1 -0
  1306. package/dist/utils/git-diff-stats.d.ts +9 -0
  1307. package/dist/utils/git-diff-stats.js +53 -0
  1308. package/dist/utils/git-diff-stats.js.map +1 -0
  1309. package/dist/utils/handle-event-for-ui.cjs +1 -1
  1310. package/dist/utils/handle-event-for-ui.cjs.map +1 -1
  1311. package/dist/utils/handle-event-for-ui.js +13 -11
  1312. package/dist/utils/handle-event-for-ui.js.map +1 -1
  1313. package/dist/utils/mcp-credential-validation.cjs +1 -1
  1314. package/dist/utils/mcp-credential-validation.js +3 -3
  1315. package/dist/utils/mcp-marketplace-utils.cjs +1 -1
  1316. package/dist/utils/mcp-marketplace-utils.cjs.map +1 -1
  1317. package/dist/utils/mcp-marketplace-utils.js +22 -9
  1318. package/dist/utils/mcp-marketplace-utils.js.map +1 -1
  1319. package/dist/utils/parse-git-remote-url.cjs +1 -1
  1320. package/dist/utils/parse-git-remote-url.cjs.map +1 -1
  1321. package/dist/utils/parse-git-remote-url.js +6 -7
  1322. package/dist/utils/parse-git-remote-url.js.map +1 -1
  1323. package/dist/utils/recommended-automation-rail.cjs +2 -0
  1324. package/dist/utils/recommended-automation-rail.cjs.map +1 -0
  1325. package/dist/utils/recommended-automation-rail.d.ts +22 -0
  1326. package/dist/utils/recommended-automation-rail.js +44 -0
  1327. package/dist/utils/recommended-automation-rail.js.map +1 -0
  1328. package/dist/utils/responder-deployment.cjs +2 -0
  1329. package/dist/utils/responder-deployment.cjs.map +1 -0
  1330. package/dist/utils/responder-deployment.js +42 -0
  1331. package/dist/utils/responder-deployment.js.map +1 -0
  1332. package/dist/utils/scroll-fade-state.cjs +2 -0
  1333. package/dist/utils/scroll-fade-state.cjs.map +1 -0
  1334. package/dist/utils/scroll-fade-state.d.ts +6 -0
  1335. package/dist/utils/scroll-fade-state.js +13 -0
  1336. package/dist/utils/scroll-fade-state.js.map +1 -0
  1337. package/dist/utils/skill-category.cjs +2 -0
  1338. package/dist/utils/skill-category.cjs.map +1 -0
  1339. package/dist/utils/skill-category.js +51 -0
  1340. package/dist/utils/skill-category.js.map +1 -0
  1341. package/dist/utils/skill-scope.cjs +1 -1
  1342. package/dist/utils/skill-scope.cjs.map +1 -1
  1343. package/dist/utils/skill-scope.js +1 -1
  1344. package/dist/utils/skill-scope.js.map +1 -1
  1345. package/dist/utils/streaming-delta-batcher.cjs +2 -0
  1346. package/dist/utils/streaming-delta-batcher.cjs.map +1 -0
  1347. package/dist/utils/streaming-delta-batcher.d.ts +21 -0
  1348. package/dist/utils/streaming-delta-batcher.js +31 -0
  1349. package/dist/utils/streaming-delta-batcher.js.map +1 -0
  1350. package/dist/utils/tar-gzip.d.ts +26 -0
  1351. package/dist/utils/utils.cjs +1 -1
  1352. package/dist/utils/utils.cjs.map +1 -1
  1353. package/dist/utils/utils.d.ts +1 -41
  1354. package/dist/utils/utils.js +27 -6
  1355. package/dist/utils/utils.js.map +1 -1
  1356. package/dist/utils/websocket-handshake.cjs +2 -0
  1357. package/dist/utils/websocket-handshake.cjs.map +1 -0
  1358. package/dist/utils/websocket-handshake.d.ts +11 -0
  1359. package/dist/utils/websocket-handshake.js +12 -0
  1360. package/dist/utils/websocket-handshake.js.map +1 -0
  1361. package/package.json +3 -3
  1362. package/scripts/check-translation-completeness.cjs +4 -0
  1363. package/scripts/dev-static.mjs +49 -43
  1364. package/scripts/dev-with-automation.mjs +13 -5
  1365. package/scripts/seed-automation-ux-data.mjs +810 -0
  1366. package/build/assets/acp-providers-CYy8qA2z.js +0 -1
  1367. package/build/assets/active-backend-context-BZDG15C0.js +0 -2
  1368. package/build/assets/agent-context-settings-DGWBBbcp.js +0 -1
  1369. package/build/assets/agent-profiles-settings-DrkGdf4_.js +0 -1
  1370. package/build/assets/agent-server-conversation-service.api-DK56YPTs.js +0 -86
  1371. package/build/assets/agent-settings-DfcSgkLD.js +0 -2
  1372. package/build/assets/agent-settings-Lrc5-twS.js +0 -1
  1373. package/build/assets/alert-banner-BgDHhL7b.js +0 -1
  1374. package/build/assets/api-error-message-BEIE_yD1.js +0 -1
  1375. package/build/assets/api-key-entry-screen-DaZnOlVo.js +0 -1
  1376. package/build/assets/app-settings-BG5NAUbC.js +0 -1
  1377. package/build/assets/automation-detail-D4Hs831Z.js +0 -3
  1378. package/build/assets/automation-export-n0X6FB0C.js +0 -2
  1379. package/build/assets/automation-git-sync-CDrm8WV7.js +0 -1
  1380. package/build/assets/automation-setup-route-CZCl4ONs.js +0 -1
  1381. package/build/assets/automation-templates-DFF96AdL.js +0 -1
  1382. package/build/assets/automations-list-Bl-oGOrV.js +0 -1
  1383. package/build/assets/back-nav-button-H_ThtDA0.js +0 -1
  1384. package/build/assets/backend-form-modal-CbCemvHt.js +0 -1
  1385. package/build/assets/backend-not-configured-DP8KLNq_.js +0 -1
  1386. package/build/assets/backend-synced-settings-badge-BBASWqsb.js +0 -1
  1387. package/build/assets/badge-B-51h-SW.js +0 -1
  1388. package/build/assets/base-modal-BbjycA8X.js +0 -1
  1389. package/build/assets/bot-CGPCg03p.js +0 -1
  1390. package/build/assets/brand-button-Blxv5nww.js +0 -1
  1391. package/build/assets/browser-CuW0nWvh.js +0 -7
  1392. package/build/assets/browser-tab-D5G0ORwt.js +0 -1
  1393. package/build/assets/chat-send-button-BD2tii1r.js +0 -1
  1394. package/build/assets/check-DSuS-lyr.js +0 -1
  1395. package/build/assets/chevron-down-CgGcmtE2.js +0 -1
  1396. package/build/assets/circle-check-CG5-NPw7.js +0 -1
  1397. package/build/assets/circle-plus-check-toggle-ASbpB8vN.js +0 -1
  1398. package/build/assets/cloud-funnel-analytics-GlCUG0gk.js +0 -1
  1399. package/build/assets/cog-CZiR80uT.js +0 -1
  1400. package/build/assets/combobox-caret-DvpEsh2O.js +0 -1
  1401. package/build/assets/command-menu-DwUQzjYP.js +0 -1
  1402. package/build/assets/condenser-settings-BptcoiLA.js +0 -1
  1403. package/build/assets/confirmation-modal-CiEwxZAA.js +0 -1
  1404. package/build/assets/context-menu-list-item-CdcamfM1.js +0 -1
  1405. package/build/assets/conversation-DREHj4nT.js +0 -1
  1406. package/build/assets/conversation-DotRfiDz.js +0 -90
  1407. package/build/assets/conversation-panel-DREHj4nT.js +0 -1
  1408. package/build/assets/conversation-state-store-DMLtlHbE.js +0 -1
  1409. package/build/assets/conversation-store-Blc5xysY.js +0 -6
  1410. package/build/assets/conversation-tab-empty-state-D-puECpY.js +0 -1
  1411. package/build/assets/copy-to-clipboard-button-BGxcUbgy.js +0 -1
  1412. package/build/assets/device-verify-CZJfWaJf.js +0 -1
  1413. package/build/assets/dropdown-classes-tLhpwtxS.js +0 -1
  1414. package/build/assets/entry.client-D8GnI6GZ.js +0 -2
  1415. package/build/assets/enum-filter-dropdown-Fk8k60nk.js +0 -1
  1416. package/build/assets/environment-switch-overlay-DeztVYuL.js +0 -1
  1417. package/build/assets/extension-module-card-classes-Bo43vY5V.js +0 -1
  1418. package/build/assets/extensions-hub-Cd6GCYzq.js +0 -1
  1419. package/build/assets/extensions-navigation-C4sgZg-y.js +0 -1
  1420. package/build/assets/external-link-C0UpBgsE.js +0 -1
  1421. package/build/assets/file-text-C6WYtNdV.js +0 -1
  1422. package/build/assets/files-tab-BW_qzyAm.js +0 -1
  1423. package/build/assets/form-control-classes-CGXBLcn1.js +0 -1
  1424. package/build/assets/format-relative-time-ZhQD4rsl.js +0 -1
  1425. package/build/assets/git-provider-icon-CaQ1yLPi.js +0 -1
  1426. package/build/assets/git-repo-dropdown-CgXR6M_E.js +0 -1
  1427. package/build/assets/git-repo-dropdown-D2Uei3CO.js +0 -1
  1428. package/build/assets/highlighted-source-view-C_YOp8Fo.js +0 -1
  1429. package/build/assets/home-DNzzJcMP.js +0 -1
  1430. package/build/assets/home-aCos-5vc.js +0 -1
  1431. package/build/assets/home-store-DgzViC3f.js +0 -1
  1432. package/build/assets/index-home-DNzzJcMP.js +0 -1
  1433. package/build/assets/info-CLoC1LRo.js +0 -1
  1434. package/build/assets/install-server-modal-D7zIqNKz.js +0 -1
  1435. package/build/assets/kebab-menu-item-content-DERMdnDv.js +0 -1
  1436. package/build/assets/launch-5PjKeLak.js +0 -1
  1437. package/build/assets/list-todo-BF049YaY.js +0 -1
  1438. package/build/assets/llm-not-configured-banner-BK9z5eS0.js +0 -27
  1439. package/build/assets/llm-settings-BLAMK2tR.js +0 -1
  1440. package/build/assets/llm-settings-BWsbarGM.js +0 -1
  1441. package/build/assets/llm-subscription-service-SfnEV9Uc.js +0 -1
  1442. package/build/assets/loader-circle-D7IagAyF.js +0 -1
  1443. package/build/assets/loading-spinner-DBgXgra0.js +0 -1
  1444. package/build/assets/manage-backends-modal-BTqNPhzc.js +0 -1
  1445. package/build/assets/manifest-abebca3c.js +0 -1
  1446. package/build/assets/manifest-subpage-layout-Rn-glaxV.js +0 -1
  1447. package/build/assets/map-provider-BK4HnqYz.js +0 -1
  1448. package/build/assets/markdown-renderer-Cp6DlHQN.js +0 -8
  1449. package/build/assets/mcp-BC-Ixn4T.js +0 -9
  1450. package/build/assets/mcp-marketplace-utils-BJWJgbB6.js +0 -1
  1451. package/build/assets/messages-CzFKrzPG.js +0 -40
  1452. package/build/assets/modal-body-BdKfD3Hl.js +0 -1
  1453. package/build/assets/modal-classes-D5_b5vMi.js +0 -1
  1454. package/build/assets/modal-close-button-objukxk_.js +0 -1
  1455. package/build/assets/mouse-pointer-click-C_gXyLyD.js +0 -1
  1456. package/build/assets/npm-CHVHV1MC.js +0 -1
  1457. package/build/assets/onboarding-Diw0V51A.js +0 -1
  1458. package/build/assets/onboarding-modal-Da4yHzsA.js +0 -1
  1459. package/build/assets/organization-service.api-BztSy69u.js +0 -1
  1460. package/build/assets/parse-git-remote-url-BkXN9jzl.js +0 -1
  1461. package/build/assets/pencil-49avMHlD.js +0 -1
  1462. package/build/assets/planner-tab-CJiSpNax.js +0 -1
  1463. package/build/assets/plugins-management-service-lHdNKWNU.js +0 -1
  1464. package/build/assets/plus-C0BagBpV.js +0 -1
  1465. package/build/assets/profiles-service.api-BLr7FXec.js +0 -1
  1466. package/build/assets/providers-CWXnb7S3.js +0 -1
  1467. package/build/assets/proxy-DYDXxtje.js +0 -1
  1468. package/build/assets/puzzle-Bt2B1rzf.js +0 -1
  1469. package/build/assets/recommended-automations-launcher-CcFMfJRR.js +0 -1
  1470. package/build/assets/refresh-cw-nmcesifB.js +0 -1
  1471. package/build/assets/root-CT4t7apy.css +0 -1
  1472. package/build/assets/root-DnRgLKpU.js +0 -2
  1473. package/build/assets/root-layout-2L9tr-BN.js +0 -2
  1474. package/build/assets/schema-field-C59lVZTA.js +0 -1
  1475. package/build/assets/sdk-section-page-BbBEQQjq.js +0 -1
  1476. package/build/assets/search-CYSDBczG.js +0 -1
  1477. package/build/assets/secrets-service-BtsgYSlj.js +0 -1
  1478. package/build/assets/secrets-settings-DJ0OKa4_.js +0 -1
  1479. package/build/assets/segmented-toggle-DiVfTZuN.js +0 -1
  1480. package/build/assets/settings-CDqL_Uqh.js +0 -1
  1481. package/build/assets/settings-dropdown-input-Ba1UN5Du.js +0 -1
  1482. package/build/assets/settings-index-Cz2cKt2K.js +0 -1
  1483. package/build/assets/settings-input-CWUEHHvS.js +0 -1
  1484. package/build/assets/settings-list-classes-DdcLXDGn.js +0 -1
  1485. package/build/assets/settings-modal-nEEK1Kh1.js +0 -1
  1486. package/build/assets/settings-service.api-3yAUFcaP.js +0 -1
  1487. package/build/assets/settings-switch-Dk9hChx1.js +0 -1
  1488. package/build/assets/settings-utils-CxjtCSB3.js +0 -1
  1489. package/build/assets/shared-conversation-DbAcrx3s.js +0 -1
  1490. package/build/assets/shield-check-CiOTXxV2.js +0 -1
  1491. package/build/assets/sidebar-layout-lrfPooIB.js +0 -1
  1492. package/build/assets/sidebar-mobile-menu-toggle-KERXfNu1.js +0 -1
  1493. package/build/assets/sidebar-nav-link-B8lFD6Cb.js +0 -1
  1494. package/build/assets/sidebar-store-u6pUpxJ7.js +0 -1
  1495. package/build/assets/skill-card-pill-row-dGIUzr_b.js +0 -1
  1496. package/build/assets/skill-icon-badge-kkOWZ89w.js +0 -1
  1497. package/build/assets/skill-scope-DWN1PBPH.js +0 -1
  1498. package/build/assets/skills-plugins-DFjH2Nq6.js +0 -1
  1499. package/build/assets/skills-settings-DIHpl3ol.js +0 -2
  1500. package/build/assets/sparkles-ntyMLnbj.js +0 -1
  1501. package/build/assets/styled-tooltip-B6JXcsmL.js +0 -1
  1502. package/build/assets/task-list-tab-aEJzEcHD.js +0 -1
  1503. package/build/assets/terminal-Dch7Ty5K.js +0 -3
  1504. package/build/assets/toggle-switch-B2MLKsgt.js +0 -1
  1505. package/build/assets/trash-2-yZnDM4Ji.js +0 -1
  1506. package/build/assets/typography-DB5HoCk0.js +0 -1
  1507. package/build/assets/usage-tab-DrEtBmBT.js +0 -1
  1508. package/build/assets/use-acp-credential-form-c8KXAa8A.js +0 -1
  1509. package/build/assets/use-activate-agent-profile-B0p34N3q.js +0 -1
  1510. package/build/assets/use-agent-profiles-CPIc6wLH.js +0 -1
  1511. package/build/assets/use-can-manage-org-profiles-Dz_8Eqkv.js +0 -1
  1512. package/build/assets/use-cloud-current-user-id-DvUVqCle.js +0 -1
  1513. package/build/assets/use-config-C3PO4TBw.js +0 -1
  1514. package/build/assets/use-create-conversation-DVrA_uLD.js +0 -1
  1515. package/build/assets/use-create-secret-DbBIpaCR.js +0 -1
  1516. package/build/assets/use-get-secrets-6PBitf54.js +0 -1
  1517. package/build/assets/use-has-permission-CQ31Cl8j.js +0 -1
  1518. package/build/assets/use-is-authed-2UrDIziV.js +0 -1
  1519. package/build/assets/use-is-creating-conversation-BvYpmb3v.js +0 -1
  1520. package/build/assets/use-launch-skill-in-chat-COnDpxCQ.js +0 -1
  1521. package/build/assets/use-llm-profiles-diZS4FiN.js +0 -1
  1522. package/build/assets/use-manifest-capabilities-HIWCtIUm.js +0 -1
  1523. package/build/assets/use-onboarding-completion-Bs8PcXik.js +0 -1
  1524. package/build/assets/use-plugins-marketplace-BCuNLFsr.js +0 -1
  1525. package/build/assets/use-save-agent-profile-BaMNSpBV.js +0 -1
  1526. package/build/assets/use-save-settings-BahvC2Gw.js +0 -1
  1527. package/build/assets/use-settings-C6ZxpBDX.js +0 -1
  1528. package/build/assets/use-settings-nav-items-Bqn69Ggw.js +0 -16
  1529. package/build/assets/use-tracking-Bhu7gk2y.js +0 -3
  1530. package/build/assets/use-user-conversation-BkNXpXrd.js +0 -1
  1531. package/build/assets/useInfiniteQuery-c_OmS3lK.js +0 -1
  1532. package/build/assets/useMutation-6ZsQCqAn.js +0 -1
  1533. package/build/assets/useQueries-xDrGlTO_.js +0 -1
  1534. package/build/assets/useQuery-Bs5NFz2s.js +0 -1
  1535. package/build/assets/utils-DUD5ScdA.js +0 -1
  1536. package/build/assets/vendor~browser-B-fae1JU.js +0 -47
  1537. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js +0 -186
  1538. package/build/assets/vendor~files-tab-B6POTS66.js +0 -11
  1539. package/build/assets/vendor~index-home~home~conversation-panel~conversation-53Q_U6uP.js +0 -13
  1540. package/build/assets/vendor~root-layout-DeQACFVA.js +0 -1
  1541. package/build/assets/vendor~root-layout~conversation-panel~conversation-bv7ooVgH.js +0 -1
  1542. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-e8pX05xf.js +0 -1
  1543. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-BvS6PCK2.js +0 -1
  1544. package/build/assets/vendor~root-layout~index-home~home~mcp~automations-list~automation-templates~automation-set~bxsimjx0-D7IDevqN.js +0 -1
  1545. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-DOPLJMH9.js +0 -48
  1546. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js +0 -1
  1547. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BOVIFA_g.js +0 -73
  1548. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C0JXQb_q.js +0 -7465
  1549. package/build/assets/verification-settings-COueVXmM.js +0 -1
  1550. package/build/assets/wrench-C95ujnYo.js +0 -1
  1551. package/build/assets/x-86ZCfxKY.js +0 -1
  1552. package/build/assets/zap-DRa-r-Tf.js +0 -1
  1553. package/dist/components/features/diff-viewer/empty-changes-message.cjs +0 -2
  1554. package/dist/components/features/diff-viewer/empty-changes-message.cjs.map +0 -1
  1555. package/dist/components/features/diff-viewer/empty-changes-message.js +0 -17
  1556. package/dist/components/features/diff-viewer/empty-changes-message.js.map +0 -1
  1557. package/dist/components/features/tips/random-tip.cjs +0 -2
  1558. package/dist/components/features/tips/random-tip.cjs.map +0 -1
  1559. package/dist/components/features/tips/random-tip.js +0 -41
  1560. package/dist/components/features/tips/random-tip.js.map +0 -1
  1561. package/dist/hooks/query/use-has-git-commits.cjs +0 -2
  1562. package/dist/hooks/query/use-has-git-commits.cjs.map +0 -1
  1563. package/dist/hooks/query/use-has-git-commits.d.ts +0 -25
  1564. package/dist/hooks/query/use-has-git-commits.js +0 -31
  1565. package/dist/hooks/query/use-has-git-commits.js.map +0 -1
  1566. package/dist/hooks/use-has-attached-source.cjs +0 -2
  1567. package/dist/hooks/use-has-attached-source.cjs.map +0 -1
  1568. package/dist/hooks/use-has-attached-source.d.ts +0 -18
  1569. package/dist/hooks/use-has-attached-source.js +0 -14
  1570. package/dist/hooks/use-has-attached-source.js.map +0 -1
  1571. package/dist/icons/chveron-up.cjs +0 -2
  1572. package/dist/icons/chveron-up.cjs.map +0 -1
  1573. package/dist/icons/chveron-up.js +0 -21
  1574. package/dist/icons/chveron-up.js.map +0 -1
  1575. package/dist/routes/changes-tab.cjs +0 -2
  1576. package/dist/routes/changes-tab.cjs.map +0 -1
  1577. package/dist/routes/changes-tab.d.ts +0 -3
  1578. package/dist/routes/changes-tab.js +0 -64
  1579. package/dist/routes/changes-tab.js.map +0 -1
  1580. package/dist/utils/file-priority.cjs +0 -2
  1581. package/dist/utils/file-priority.cjs.map +0 -1
  1582. package/dist/utils/file-priority.d.ts +0 -27
  1583. package/dist/utils/file-priority.js +0 -61
  1584. package/dist/utils/file-priority.js.map +0 -1
  1585. package/dist/utils/table-row-classes.d.ts +0 -9
  1586. package/dist/utils/tips.cjs +0 -2
  1587. package/dist/utils/tips.cjs.map +0 -1
  1588. package/dist/utils/tips.js +0 -45
  1589. package/dist/utils/tips.js.map +0 -1
  1590. /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dcc51rps-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js} +0 -0
@@ -3,8 +3,8 @@ var e = "backend";
3
3
  function t(t, n) {
4
4
  let { backend: r, orgId: i } = n;
5
5
  if (!r.id) return t;
6
- let [a, o = ""] = t.split("?"), s = new URLSearchParams(o);
7
- return s.set(e, r.id), i && s.set("org", i), `${a}?${s.toString()}`;
6
+ let a = t.indexOf("#"), o = a === -1 ? "" : t.slice(a), s = a === -1 ? t : t.slice(0, a), c = s.indexOf("?"), l = c === -1 ? s : s.slice(0, c), u = c === -1 ? "" : s.slice(c + 1), d = new URLSearchParams(u);
7
+ return d.set(e, r.id), i && d.set("org", i), `${l}?${d.toString()}${o}`;
8
8
  }
9
9
  function n(t, n) {
10
10
  if (!n) return null;
@@ -1 +1 @@
1
- {"version":3,"file":"url-selection.js","names":[],"sources":["../../../src/api/backend-registry/url-selection.ts"],"sourcesContent":["import type { Backend, BackendSelection, ResolvedActiveBackend } from \"./types\";\n\n/**\n * Query parameters that pin a link to the backend (and cloud org) that owns\n * the linked resource.\n *\n * The active backend is tab-scoped: `readStoredActiveBackend()` prefers\n * `sessionStorage` and only falls back to `localStorage`. A tab opened with\n * cmd/ctrl-click or middle-click does not reliably inherit the opener's\n * `sessionStorage`, so it can boot from the `localStorage` fallback — which\n * holds whichever backend was selected *last in any tab*, not the one the\n * sidebar we were just looking at belongs to. The new tab then resolves the\n * conversation id against the wrong backend and shows \"conversation not\n * found\". Carrying the identity in the URL makes the link self-describing so\n * the new tab pins to the right backend regardless of what storage holds.\n */\nexport const BACKEND_QUERY_PARAM = \"backend\";\nexport const ORG_QUERY_PARAM = \"org\";\n\n/**\n * Append the active backend identity to an in-app path so opening it in a new\n * browsing context resolves against the same backend.\n */\nexport function withBackendSelectionParams(\n path: string,\n active: ResolvedActiveBackend,\n): string {\n const { backend, orgId } = active;\n if (!backend.id) return path;\n\n const [pathname, existingSearch = \"\"] = path.split(\"?\");\n const params = new URLSearchParams(existingSearch);\n params.set(BACKEND_QUERY_PARAM, backend.id);\n if (orgId) params.set(ORG_QUERY_PARAM, orgId);\n\n return `${pathname}?${params.toString()}`;\n}\n\n/**\n * Read a backend selection off the current URL, keeping it only when it names\n * a registered backend. An unknown id (a link from another machine, or a\n * backend that has since been removed) is ignored so the caller falls back to\n * the stored selection.\n */\nexport function readBackendSelectionFromUrl(\n backends: Backend[],\n search: string,\n): BackendSelection | null {\n if (!search) return null;\n\n let params: URLSearchParams;\n try {\n params = new URLSearchParams(search);\n } catch {\n return null;\n }\n\n const backendId = params.get(BACKEND_QUERY_PARAM);\n if (!backendId) return null;\n if (!backends.some((backend) => backend.id === backendId)) return null;\n\n const orgId = params.get(ORG_QUERY_PARAM);\n return { backendId, orgId: orgId || null };\n}\n\n/** The current tab's query string, or \"\" outside a browser. */\nexport function currentLocationSearch(): string {\n if (typeof window === \"undefined\") return \"\";\n return window.location.search;\n}\n"],"mappings":";AAgBA,IAAa,IAAsB;AAOnC,SAAgB,EACd,GACA,GACQ;CACR,IAAM,EAAE,YAAS,aAAU;CAC3B,IAAI,CAAC,EAAQ,IAAI,OAAO;CAExB,IAAM,CAAC,GAAU,IAAiB,MAAM,EAAK,MAAM,GAAG,GAChD,IAAS,IAAI,gBAAgB,CAAc;CAIjD,OAHA,EAAO,IAAI,GAAqB,EAAQ,EAAE,GACtC,KAAO,EAAO,IAAA,OAAqB,CAAK,GAErC,GAAG,EAAS,GAAG,EAAO,SAAS;AACxC;AAQA,SAAgB,EACd,GACA,GACyB;CACzB,IAAI,CAAC,GAAQ,OAAO;CAEpB,IAAI;CACJ,IAAI;EACF,IAAS,IAAI,gBAAgB,CAAM;CACrC,QAAQ;EACN,OAAO;CACT;CAEA,IAAM,IAAY,EAAO,IAAI,CAAmB;CAKhD,OAJI,CAAC,KACD,CAAC,EAAS,MAAM,MAAY,EAAQ,OAAO,CAAS,IAAU,OAG3D;EAAE;EAAW,OADN,EAAO,IAAA,KACM,KAAS;CAAK;AAC3C;AAGA,SAAgB,IAAgC;CAE9C,OADI,OAAO,SAAW,MAAoB,KACnC,OAAO,SAAS;AACzB"}
1
+ {"version":3,"file":"url-selection.js","names":[],"sources":["../../../src/api/backend-registry/url-selection.ts"],"sourcesContent":["import type { Backend, BackendSelection, ResolvedActiveBackend } from \"./types\";\n\n/**\n * Query parameters that pin a link to the backend (and cloud org) that owns\n * the linked resource.\n *\n * The active backend is tab-scoped: `readStoredActiveBackend()` prefers\n * `sessionStorage` and only falls back to `localStorage`. A tab opened with\n * cmd/ctrl-click or middle-click does not reliably inherit the opener's\n * `sessionStorage`, so it can boot from the `localStorage` fallback — which\n * holds whichever backend was selected *last in any tab*, not the one the\n * sidebar we were just looking at belongs to. The new tab then resolves the\n * conversation id against the wrong backend and shows \"conversation not\n * found\". Carrying the identity in the URL makes the link self-describing so\n * the new tab pins to the right backend regardless of what storage holds.\n */\nexport const BACKEND_QUERY_PARAM = \"backend\";\nexport const ORG_QUERY_PARAM = \"org\";\n\n/**\n * Append the active backend identity to an in-app path so opening it in a new\n * browsing context resolves against the same backend. Any fragment on the\n * path is preserved verbatim and kept after the query string.\n */\nexport function withBackendSelectionParams(\n path: string,\n active: ResolvedActiveBackend,\n): string {\n const { backend, orgId } = active;\n if (!backend.id) return path;\n\n const hashIndex = path.indexOf(\"#\");\n const fragment = hashIndex === -1 ? \"\" : path.slice(hashIndex);\n const withoutFragment = hashIndex === -1 ? path : path.slice(0, hashIndex);\n\n // Split at the *first* `?` only. A later `?` is ordinary query data (a\n // `next=` redirect carrying its own query, say), and `split(\"?\")` would\n // silently drop everything past it.\n const queryIndex = withoutFragment.indexOf(\"?\");\n const pathname =\n queryIndex === -1 ? withoutFragment : withoutFragment.slice(0, queryIndex);\n const existingSearch =\n queryIndex === -1 ? \"\" : withoutFragment.slice(queryIndex + 1);\n\n const params = new URLSearchParams(existingSearch);\n params.set(BACKEND_QUERY_PARAM, backend.id);\n if (orgId) params.set(ORG_QUERY_PARAM, orgId);\n\n return `${pathname}?${params.toString()}${fragment}`;\n}\n\n/**\n * Read a backend selection off the current URL, keeping it only when it names\n * a registered backend. An unknown id (a link from another machine, or a\n * backend that has since been removed) is ignored so the caller falls back to\n * the stored selection.\n */\nexport function readBackendSelectionFromUrl(\n backends: Backend[],\n search: string,\n): BackendSelection | null {\n if (!search) return null;\n\n let params: URLSearchParams;\n try {\n params = new URLSearchParams(search);\n } catch {\n return null;\n }\n\n const backendId = params.get(BACKEND_QUERY_PARAM);\n if (!backendId) return null;\n if (!backends.some((backend) => backend.id === backendId)) return null;\n\n const orgId = params.get(ORG_QUERY_PARAM);\n return { backendId, orgId: orgId || null };\n}\n\n/** The current tab's query string, or \"\" outside a browser. */\nexport function currentLocationSearch(): string {\n if (typeof window === \"undefined\") return \"\";\n return window.location.search;\n}\n"],"mappings":";AAgBA,IAAa,IAAsB;AAQnC,SAAgB,EACd,GACA,GACQ;CACR,IAAM,EAAE,YAAS,aAAU;CAC3B,IAAI,CAAC,EAAQ,IAAI,OAAO;CAExB,IAAM,IAAY,EAAK,QAAQ,GAAG,GAC5B,IAAW,MAAc,KAAK,KAAK,EAAK,MAAM,CAAS,GACvD,IAAkB,MAAc,KAAK,IAAO,EAAK,MAAM,GAAG,CAAS,GAKnE,IAAa,EAAgB,QAAQ,GAAG,GACxC,IACJ,MAAe,KAAK,IAAkB,EAAgB,MAAM,GAAG,CAAU,GACrE,IACJ,MAAe,KAAK,KAAK,EAAgB,MAAM,IAAa,CAAC,GAEzD,IAAS,IAAI,gBAAgB,CAAc;CAIjD,OAHA,EAAO,IAAI,GAAqB,EAAQ,EAAE,GACtC,KAAO,EAAO,IAAA,OAAqB,CAAK,GAErC,GAAG,EAAS,GAAG,EAAO,SAAS,IAAI;AAC5C;AAQA,SAAgB,EACd,GACA,GACyB;CACzB,IAAI,CAAC,GAAQ,OAAO;CAEpB,IAAI;CACJ,IAAI;EACF,IAAS,IAAI,gBAAgB,CAAM;CACrC,QAAQ;EACN,OAAO;CACT;CAEA,IAAM,IAAY,EAAO,IAAI,CAAmB;CAKhD,OAJI,CAAC,KACD,CAAC,EAAS,MAAM,MAAY,EAAQ,OAAO,CAAS,IAAU,OAG3D;EAAE;EAAW,OADN,EAAO,IAAA,KACM,KAAS;CAAK;AAC3C;AAGA,SAAgB,IAAgC;CAE9C,OADI,OAAO,SAAW,MAAoB,KACnC,OAAO,SAAS;AACzB"}
@@ -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("../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={}){let{initialUserMsg:n,conversationInstructions:r,plugins:i,metadata:l,workingDirOverride:d,workspaceMode:v,parentConversationId:b,agentType:x,sandboxId:S,agentProfileId:C,agentProfileKind:w}=t;if(o.getActiveBackend().backend.kind===`cloud`)return u.createCloudAppConversation({initial_message:n?{role:`user`,content:[{type:`text`,text:n}]}:null,title:r??null,selected_repository:l?.selected_repository??null,selected_branch:l?.selected_branch??null,git_provider:l?.git_provider??null,plugins:i??null,parent_conversation_id:b??null,agent_type:x,sandbox_id:S??null,agent_profile_id:C??null});let[T,E]=await Promise.all([h.default.getSettings(),m.default.listProfiles().catch(()=>void 0)]),D=_.resolveTitleLlmProfile(T.title_llm_profile,E),O=f.default(),k=await p.resolveAbsoluteAgentServerPath(d??a.buildConversationWorkingDir(O)),A=v??(d?`local_repo`:`new_worktree`),j=await g.buildStartConversationRequestWithEncryptedSettings({settings:T,query:n,conversationInstructions:r,plugins:i,conversationId:O,parentConversationId:b,workingDir:k,worktree:A===`new_worktree`,agentProfileId:C,agentProfileKind:w,titleLlmProfile:D}),M=await new e.ConversationClient(s.getAgentServerClientOptions({timeout:y})).createConversation(j),N=o.getEffectiveLocalBackend();if(!N)throw new s.NoBackendAvailableError;return(l?.selected_repository||d)&&c.setStoredConversationMetadata(M.id,{selected_repository:l?.selected_repository??null,selected_branch:l?.selected_branch??null,git_provider:l?.git_provider??null,selected_workspace:d??null,workspace_mode:A}),{id:M.id,created_by_user_id:null,status:`READY`,detail:null,app_conversation_id:M.id,agent_server_url:N.host,request:{initial_message:j.initial_message,plugins:i??null},created_at:M.created_at,updated_at:M.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 condenseConversation(t,n,r){let a=o.getActiveBackend().backend;if(a.kind===`cloud`&&n){await l.callCloudProxy({backend:a,method:`POST`,hostOverride:i.buildHttpBaseUrl(n),path:`/api/conversations/${t}/condense`,authMode:`session-api-key`,sessionApiKey:r});return}await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:n,sessionApiKey:r})).condenseConversation(t)}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;
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){return S(e)?e:null}function A(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 j(e){return S(e)?{working_dir:T(e.working_dir)}:null}function M(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 N(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 P(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 F(e,t){let n=P(e),r=P(t);if(!n||!r||n!==r&&!n.startsWith(`${r}/`))throw Error(`Conversation file path must stay inside the workspace`);return n}function I(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),stats:k(e.stats),agent:A(e.agent),workspace:j(e.workspace),tags:M(e.tags),launched_agent_profile:N(e.launched_agent_profile),current_model_id:T(e.current_model_id),current_model_name:T(e.current_model_name)}}function L(e){if(!Array.isArray(e))throw x();return e.map(I)}function R(e){if(Array.isArray(e))return{items:L(e),next_page_id:null};if(!S(e))throw x();return{items:L(e.items),next_page_id:typeof e.next_page_id==`string`?e.next_page_id:null}}var z=new Set([`idle`,`running`,`paused`,`waiting_for_confirmation`,`finished`,`error`,`stuck`]);function B(e){let t=e??`idle`;return z.has(t)?t:`idle`}function V(e,t){if(!e)throw Error(`Conversation ${t} was not found`);return e}var H=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={}){let{initialUserMsg:n,conversationInstructions:r,plugins:i,metadata:l,workingDirOverride:d,workspaceMode:v,parentConversationId:b,agentType:x,sandboxId:S,agentProfileId:C,agentProfileKind:w}=t;if(o.getActiveBackend().backend.kind===`cloud`)return u.createCloudAppConversation({initial_message:n?{role:`user`,content:[{type:`text`,text:n}]}:null,title:r??null,selected_repository:l?.selected_repository??null,selected_branch:l?.selected_branch??null,git_provider:l?.git_provider??null,plugins:i??null,parent_conversation_id:b??null,agent_type:x,sandbox_id:S??null,agent_profile_id:C??null,trigger:`gui`});let[T,E]=await Promise.all([h.default.getSettings(),m.default.listProfiles().catch(()=>void 0)]),D=_.resolveTitleLlmProfile(T.title_llm_profile,E),O=f.default(),k=await p.resolveAbsoluteAgentServerPath(d??a.buildConversationWorkingDir(O)),A=v??(d?`local_repo`:`new_worktree`),j=await g.buildStartConversationRequestWithEncryptedSettings({settings:T,query:n,conversationInstructions:r,plugins:i,conversationId:O,parentConversationId:b,workingDir:k,worktree:A===`new_worktree`,agentProfileId:C,agentProfileKind:w,titleLlmProfile:D}),M=await new e.ConversationClient(s.getAgentServerClientOptions({timeout:y})).createConversation(j),N=o.getEffectiveLocalBackend();if(!N)throw new s.NoBackendAvailableError;return(l?.selected_repository||d)&&c.setStoredConversationMetadata(M.id,{selected_repository:l?.selected_repository??null,selected_branch:l?.selected_branch??null,git_provider:l?.git_provider??null,selected_workspace:d??null,workspace_mode:A}),{id:M.id,created_by_user_id:null,status:`READY`,detail:null,app_conversation_id:M.id,agent_server_url:N.host,request:{initial_message:j.initial_message,plugins:i??null},created_at:M.created_at,updated_at:M.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):L(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 V(i,e)}static async readConversationFile(e,n){if(o.getActiveBackend().backend.kind===`cloud`)return u.readCloudConversationFile(e,F(n??`/workspace/project/.agents_tmp/PLAN.md`,`/workspace/project`));let r=await this.resolveConversationWorkingDir(e),i=F(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=I(await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:n,sessionApiKey:r})).getConversation(t));return{id:i.id,title:i.title?.trim()?i.title:g.getDefaultConversationTitle(i.id),metrics:O(i.metrics),created_at:i.created_at,updated_at:i.updated_at,status:B(i.execution_status),stats:i.stats??{usage_to_metrics:{}}}}static async condenseConversation(t,n,r){let a=o.getActiveBackend().backend;if(a.kind===`cloud`&&n){await l.callCloudProxy({backend:a,method:`POST`,hostOverride:i.buildHttpBaseUrl(n),path:`/api/conversations/${t}/condense`,authMode:`session-api-key`,sessionApiKey:r});return}await new e.ConversationClient(s.getAgentServerClientOptions({conversationUrl:n,sessionApiKey:r})).condenseConversation(t)}static async searchConversations(t=20,n){return o.getActiveBackend().backend.kind===`cloud`?u.searchCloudConversations(t,n):g.toConversationPage(R(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 V(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=H;
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\n/**\n * Options for {@link AgentServerConversationService.createConversation}.\n */\nexport interface CreateConversationOptions {\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}\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 options: CreateConversationOptions = {},\n ): Promise<AppConversationStartTask> {\n const {\n initialUserMsg,\n conversationInstructions,\n plugins,\n metadata,\n workingDirOverride,\n workspaceMode,\n parentConversationId,\n agentType,\n sandboxId,\n agentProfileId,\n agentProfileKind,\n } = options;\n\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 /**\n * Force condensation (\"compact\") of the conversation history via\n * `POST /api/conversations/{id}/condense`. Routed the same way as\n * {@link sendMessage}: through the cloud proxy at the conversation's own\n * runtime host for cloud backends, directly against that runtime otherwise.\n */\n static async condenseConversation(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<void> {\n const active = getActiveBackend().backend;\n\n if (active.kind === \"cloud\" && conversationUrl) {\n await callCloudProxy({\n backend: active,\n method: \"POST\",\n hostOverride: buildHttpBaseUrl(conversationUrl),\n path: `/api/conversations/${conversationId}/condense`,\n authMode: \"session-api-key\",\n sessionApiKey,\n });\n return;\n }\n\n await new ConversationClient(\n getAgentServerClientOptions({ conversationUrl, sessionApiKey }),\n ).condenseConversation(conversationId);\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,E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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 RuntimeConversationStats,\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\n// Shallow check only (matches the trust level `getRuntimeConversation` used\n// before this field was threaded through `DirectConversationInfo`): the\n// per-usage-id entries are consumed via `combineUsageMetrics`, which already\n// tolerates missing/malformed fields, so there's no need to validate them here.\nfunction normalizeStats(value: unknown): RuntimeConversationStats | null {\n return isRecord(value)\n ? (value as unknown as RuntimeConversationStats)\n : null;\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 stats: normalizeStats(item.stats),\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\n/**\n * Options for {@link AgentServerConversationService.createConversation}.\n */\nexport interface CreateConversationOptions {\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}\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 options: CreateConversationOptions = {},\n ): Promise<AppConversationStartTask> {\n const {\n initialUserMsg,\n conversationInstructions,\n plugins,\n metadata,\n workingDirOverride,\n workspaceMode,\n parentConversationId,\n agentType,\n sandboxId,\n agentProfileId,\n agentProfileKind,\n } = options;\n\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 trigger: \"gui\",\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 // 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<DirectConversationInfo>(conversationId);\n const data = requireDirectConversationInfo(response);\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: data.stats ?? { usage_to_metrics: {} },\n };\n }\n\n /**\n * Force condensation (\"compact\") of the conversation history via\n * `POST /api/conversations/{id}/condense`. Routed the same way as\n * {@link sendMessage}: through the cloud proxy at the conversation's own\n * runtime host for cloud backends, directly against that runtime otherwise.\n */\n static async condenseConversation(\n conversationId: string,\n conversationUrl: string | null | undefined,\n sessionApiKey?: string | null,\n ): Promise<void> {\n const active = getActiveBackend().backend;\n\n if (active.kind === \"cloud\" && conversationUrl) {\n await callCloudProxy({\n backend: active,\n method: \"POST\",\n hostOverride: buildHttpBaseUrl(conversationUrl),\n path: `/api/conversations/${conversationId}/condense`,\n authMode: \"session-api-key\",\n sessionApiKey,\n });\n return;\n }\n\n await new ConversationClient(\n getAgentServerClientOptions({ conversationUrl, sessionApiKey }),\n ).condenseConversation(conversationId);\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":"+vCAyEA,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,w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AEA,MAAM,IAAI,EAAA,mBAAmB,EAAA,4BAA4B,CAAC,EAAE,eAC1D,EACA,CACF,CACF,CACF"}
@@ -57,6 +57,9 @@ function G(e) {
57
57
  } : null;
58
58
  }
59
59
  function K(e) {
60
+ return z(e) ? e : null;
61
+ }
62
+ function q(e) {
60
63
  if (!z(e)) return null;
61
64
  let t = z(e.llm) ? { model: H(e.llm.model) } : null;
62
65
  return {
@@ -66,16 +69,16 @@ function K(e) {
66
69
  llm: t
67
70
  };
68
71
  }
69
- function q(e) {
72
+ function J(e) {
70
73
  return z(e) ? { working_dir: H(e.working_dir) } : null;
71
74
  }
72
- function J(e) {
75
+ function ee(e) {
73
76
  if (!z(e)) return null;
74
77
  let t = {};
75
78
  for (let [n, r] of Object.entries(e)) typeof r == "string" && (t[n] = r);
76
79
  return t;
77
80
  }
78
- function ee(e) {
81
+ function te(e) {
79
82
  if (!z(e)) return null;
80
83
  let { agent_profile_id: t, revision: n } = e;
81
84
  return typeof t != "string" || typeof n != "number" ? null : {
@@ -107,10 +110,11 @@ function Z(e) {
107
110
  execution_status: H(e.execution_status),
108
111
  sandbox_status: H(e.sandbox_status),
109
112
  metrics: G(e.metrics),
110
- agent: K(e.agent),
111
- workspace: q(e.workspace),
112
- tags: J(e.tags),
113
- launched_agent_profile: ee(e.launched_agent_profile),
113
+ stats: K(e.stats),
114
+ agent: q(e.agent),
115
+ workspace: J(e.workspace),
116
+ tags: ee(e.tags),
117
+ launched_agent_profile: te(e.launched_agent_profile),
114
118
  current_model_id: H(e.current_model_id),
115
119
  current_model_name: H(e.current_model_name)
116
120
  };
@@ -119,7 +123,7 @@ function Q(e) {
119
123
  if (!Array.isArray(e)) throw R();
120
124
  return e.map(Z);
121
125
  }
122
- function te(e) {
126
+ function ne(e) {
123
127
  if (Array.isArray(e)) return {
124
128
  items: Q(e),
125
129
  next_page_id: null
@@ -130,7 +134,7 @@ function te(e) {
130
134
  next_page_id: typeof e.next_page_id == "string" ? e.next_page_id : null
131
135
  };
132
136
  }
133
- var ne = new Set([
137
+ var re = new Set([
134
138
  "idle",
135
139
  "running",
136
140
  "paused",
@@ -139,15 +143,15 @@ var ne = new Set([
139
143
  "error",
140
144
  "stuck"
141
145
  ]);
142
- function re(e) {
146
+ function ie(e) {
143
147
  let t = e ?? "idle";
144
- return ne.has(t) ? t : "idle";
148
+ return re.has(t) ? t : "idle";
145
149
  }
146
150
  function $(e, t) {
147
151
  if (!e) throw Error(`Conversation ${t} was not found`);
148
152
  return e;
149
153
  }
150
- var ie = class {
154
+ var ae = class {
151
155
  static async sendMessage(t, n, r) {
152
156
  let a = s().backend, o = r?.conversationUrl ?? null, c = r?.sessionApiKey ?? null;
153
157
  if (a.kind === "cloud") {
@@ -192,7 +196,8 @@ var ie = class {
192
196
  parent_conversation_id: m ?? null,
193
197
  agent_type: h,
194
198
  sandbox_id: _ ?? null,
195
- agent_profile_id: v ?? null
199
+ agent_profile_id: v ?? null,
200
+ trigger: "gui"
196
201
  });
197
202
  let [b, x] = await Promise.all([D.getSettings(), E.listProfiles().catch(() => void 0)]), S = P(b.title_llm_profile, x), C = w(), O = await T(d ?? a(C)), A = f ?? (d ? "local_repo" : "new_worktree"), j = await k({
198
203
  settings: b,
@@ -275,18 +280,18 @@ var ie = class {
275
280
  return A();
276
281
  }
277
282
  static async getRuntimeConversation(t, n, r) {
278
- let i = await new e(u({
283
+ let i = Z(await new e(u({
279
284
  conversationUrl: n,
280
285
  sessionApiKey: r
281
- })).getConversation(t), a = Z(i), o = z(i) ? i.stats : null;
286
+ })).getConversation(t));
282
287
  return {
283
- id: a.id,
284
- title: a.title?.trim() ? a.title : j(a.id),
285
- metrics: G(a.metrics),
286
- created_at: a.created_at,
287
- updated_at: a.updated_at,
288
- status: re(a.execution_status),
289
- stats: z(o) ? o : { usage_to_metrics: {} }
288
+ id: i.id,
289
+ title: i.title?.trim() ? i.title : j(i.id),
290
+ metrics: G(i.metrics),
291
+ created_at: i.created_at,
292
+ updated_at: i.updated_at,
293
+ status: ie(i.execution_status),
294
+ stats: i.stats ?? { usage_to_metrics: {} }
290
295
  };
291
296
  }
292
297
  static async condenseConversation(t, n, r) {
@@ -308,7 +313,7 @@ var ie = class {
308
313
  })).condenseConversation(t);
309
314
  }
310
315
  static async searchConversations(t = 20, n) {
311
- return s().backend.kind === "cloud" ? x(t, n) : N(te(await new e(u()).searchConversations({
316
+ return s().backend.kind === "cloud" ? x(t, n) : N(ne(await new e(u()).searchConversations({
312
317
  limit: t,
313
318
  page_id: n,
314
319
  sort_order: C.UPDATED_AT_DESC
@@ -376,6 +381,6 @@ var ie = class {
376
381
  }
377
382
  };
378
383
  //#endregion
379
- export { ie as default };
384
+ export { ae as default };
380
385
 
381
386
  //# sourceMappingURL=agent-server-conversation-service.api.js.map