@openhands/agent-canvas 1.17.0 → 1.19.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 (601) hide show
  1. package/README.md +1 -1
  2. package/README.windows.md +2 -2
  3. package/build/assets/acp-providers-BQ4o4vqy.js +1 -0
  4. package/build/assets/active-backend-context-BsLfwrXB.js +2 -0
  5. package/build/assets/{agent-context-settings-CJUrcBut.js → agent-context-settings-D9i6ezoJ.js} +1 -1
  6. package/build/assets/{agent-profiles-service.api-Biieml2L.js → agent-profiles-service.api-U-9YzDFU.js} +1 -1
  7. package/build/assets/agent-profiles-settings-D-bUV2PX.js +1 -0
  8. package/build/assets/agent-server-client-options-EHB23gyx.js +1 -0
  9. package/build/assets/agent-server-config-C_x8Otd9.js +1 -0
  10. package/build/assets/agent-server-conversation-service.api-BaVQ6NpE.js +88 -0
  11. package/build/assets/agent-settings-BZJHtaIK.js +2 -0
  12. package/build/assets/agent-settings-D4snDd6u.js +1 -0
  13. package/build/assets/alert-banner-BkVt_8Or.js +1 -0
  14. package/build/assets/{api-error-message-Ve79qDcN.js → api-error-message-BXo0lCI5.js} +1 -1
  15. package/build/assets/api-key-entry-screen-fAIld-n7.js +1 -0
  16. package/build/assets/app-settings-DITbrM2u.js +1 -0
  17. package/build/assets/automation-detail-DawHmaOl.js +3 -0
  18. package/build/assets/automation-disabled-reason-DtgC8Ppt.js +1 -0
  19. package/build/assets/{automation-export-DxY47m3T.js → automation-export-Kv6e0bHx.js} +1 -1
  20. package/build/assets/automation-git-sync-Dd98G_Oz.js +1 -0
  21. package/build/assets/automation-setup-route-Cdc109ZD.js +3 -0
  22. package/build/assets/{automation-templates-4C4PM8K7.js → automation-templates-Xhr-FDAB.js} +1 -1
  23. package/build/assets/automations-list-BeP1LuzQ.js +1 -0
  24. package/build/assets/{back-nav-button-B8tH0BEp.js → back-nav-button-DWNiN277.js} +1 -1
  25. package/build/assets/backend-form-modal-DeaUJIik.js +1 -0
  26. package/build/assets/backend-synced-settings-badge-Br85iWIY.js +1 -0
  27. package/build/assets/badge-Cdnei7Ly.js +1 -0
  28. package/build/assets/{base-modal-DTULovNc.js → base-modal-Ds7grR67.js} +1 -1
  29. package/build/assets/{bot-CLMxGFaq.js → bot-ByolqPEr.js} +1 -1
  30. package/build/assets/{brand-button-DxPO4Lf8.js → brand-button-mQq2Ld1I.js} +1 -1
  31. package/build/assets/browser-Bfum8fkE.js +46 -0
  32. package/build/assets/browser-tab-CmYT4j_r.js +1 -0
  33. package/build/assets/canvas-extension-page-CokKSVRG.js +1 -0
  34. package/build/assets/canvas-extensions-BoQEYG-2.js +1 -0
  35. package/build/assets/{canvas-extensions-runtime-DdnkgJXV.js → canvas-extensions-runtime-Du2M5iEX.js} +1 -1
  36. package/build/assets/{chat-send-button-B3SFSIg5.js → chat-send-button-DM3JgMc2.js} +1 -1
  37. package/build/assets/check-Bo8s5Ylg.js +1 -0
  38. package/build/assets/chevron-down-Cr6Fn_wS.js +1 -0
  39. package/build/assets/chevron-right-CfdfRn-8.js +1 -0
  40. package/build/assets/circle-check-5pH3qCji.js +1 -0
  41. package/build/assets/circle-plus-check-toggle-BbYBiUwv.js +1 -0
  42. package/build/assets/{cloud-funnel-analytics-BQanUEEC.js → cloud-funnel-analytics-D02kgq1s.js} +1 -1
  43. package/build/assets/{cog-VBlRo6iw.js → cog-Dy1eWbSZ.js} +1 -1
  44. package/build/assets/command-menu-mehU3Evb.js +1 -0
  45. package/build/assets/commits-tab-DhQW8CXi.js +1 -0
  46. package/build/assets/{condenser-settings-eVKFMvap.js → condenser-settings-eRk6Fkx6.js} +1 -1
  47. package/build/assets/confirmation-modal-BmVt_c0I.js +1 -0
  48. package/build/assets/{context-menu-list-item-DDROe12Z.js → context-menu-list-item-lx2zk9G7.js} +1 -1
  49. package/build/assets/{conversation-BnjJSFf5.js → conversation-BOj0ENI6.js} +8 -8
  50. package/build/assets/conversation-SouWlGvs.js +1 -0
  51. package/build/assets/conversation-panel-SouWlGvs.js +1 -0
  52. package/build/assets/conversation-state-store-C6YncQNo.js +1 -0
  53. package/build/assets/conversation-store-DC-JlJuq.js +6 -0
  54. package/build/assets/{conversation-tab-empty-state-DKlzAz5c.js → conversation-tab-empty-state-DIhwCC2J.js} +1 -1
  55. package/build/assets/copy-to-clipboard-button-DVNXLylP.js +1 -0
  56. package/build/assets/device-verify-LP-x7nra.js +1 -0
  57. package/build/assets/{dropdown-classes-B9kJVDIk.js → dropdown-classes-goDldkiu.js} +1 -1
  58. package/build/assets/edit-automation-modal-BJJR9wSW.js +1 -0
  59. package/build/assets/empty-state-Cd-TFe7i.js +1 -0
  60. package/build/assets/{entry.client-Ds8LVp-E.js → entry.client-CJdjIvMZ.js} +2 -2
  61. package/build/assets/enum-filter-dropdown-pocrz9AL.js +1 -0
  62. package/build/assets/environment-switch-overlay-Dwe78wRl.js +1 -0
  63. package/build/assets/error-state-SuWwztxV.js +1 -0
  64. package/build/assets/extensions-hub-O0esK3Er.js +1 -0
  65. package/build/assets/extensions-navigation-CgCVSXje.js +1 -0
  66. package/build/assets/{external-link-DQtv7eTh.js → external-link-Bd7Tga-1.js} +1 -1
  67. package/build/assets/files-tab-B_6t8ljw.js +1 -0
  68. package/build/assets/{form-control-classes-B-z85REi.js → form-control-classes-lQfLxzH4.js} +1 -1
  69. package/build/assets/format-model-name-Dfh9Udrx.js +1 -0
  70. package/build/assets/get-git-path-Bp5rsUkl.js +1 -0
  71. package/build/assets/git-repo-dropdown-CbD0_LPN.js +1 -0
  72. package/build/assets/git-repo-dropdown-DPQVumZg.js +1 -0
  73. package/build/assets/highlighted-source-view-Bp0sgK-f.js +1 -0
  74. package/build/assets/home-BghzJd-D.js +1 -0
  75. package/build/assets/home-CXZ8zawS.js +1 -0
  76. package/build/assets/home-automation-run-tooltip-BdpCckKO.js +1 -0
  77. package/build/assets/home-store-DNQpfIEO.js +1 -0
  78. package/build/assets/hooks-service-DkxnQa4N.js +1 -0
  79. package/build/assets/index-home-Ca6Q5CtT.js +1 -0
  80. package/build/assets/info-BcajzHn1.js +1 -0
  81. package/build/assets/install-server-modal-DvxxYKia.js +1 -0
  82. package/build/assets/{key-CfXbJa8w.js → key-CwTE6XJj.js} +1 -1
  83. package/build/assets/launch-jsRGPRBx.js +1 -0
  84. package/build/assets/link-external-B4gx3EeM.js +1 -0
  85. package/build/assets/list-filter-B8PQk3RA.js +1 -0
  86. package/build/assets/{list-todo-ByXMdY4W.js → list-todo-Caa8E1X_.js} +1 -1
  87. package/build/assets/llm-not-configured-banner-DMdL1vaX.js +27 -0
  88. package/build/assets/llm-settings-dkQ5Oq7W.js +1 -0
  89. package/build/assets/llm-settings-lNDerSlu.js +1 -0
  90. package/build/assets/{llm-subscription-service-aDNBQ7Gq.js → llm-subscription-service-BiQaZbvv.js} +1 -1
  91. package/build/assets/loader-circle-BxJgk73D.js +1 -0
  92. package/build/assets/{loading-spinner-DfHI77BA.js → loading-spinner-DK1sAwVg.js} +1 -1
  93. package/build/assets/manage-backends-modal-DqCJohsX.js +1 -0
  94. package/build/assets/manifest-ff93dc8c.js +1 -0
  95. package/build/assets/manifest-subpage-layout-sxuPqfUr.js +1 -0
  96. package/build/assets/{map-provider-DXvssjw9.js → map-provider-iRs80q_6.js} +1 -1
  97. package/build/assets/markdown-renderer-BH5pqDuJ.js +8 -0
  98. package/build/assets/mcp-BtaJDXnP.js +1 -0
  99. package/build/assets/mcp-installed-servers-Br4ZLsjr.js +1 -0
  100. package/build/assets/mcp-marketplace-utils-BwEnDYqm.js +1 -0
  101. package/build/assets/mcp-page-DwbnQpVs.js +9 -0
  102. package/build/assets/messages-DmFJlW6c.js +41 -0
  103. package/build/assets/{modal-body-DJw4xBki.js → modal-body-DBweM2EN.js} +1 -1
  104. package/build/assets/{modal-classes-Dg0ngBPO.js → modal-classes-jvG85nkU.js} +1 -1
  105. package/build/assets/modal-close-button-BrM5fNnn.js +1 -0
  106. package/build/assets/{mouse-pointer-click-DEhsSUpu.js → mouse-pointer-click-BXlRN92t.js} +1 -1
  107. package/build/assets/onboarding-CQ8T6T0U.js +1 -0
  108. package/build/assets/onboarding-modal-CnliiaSN.js +1 -0
  109. package/build/assets/{organization-service.api-Cyg1Tn03.js → organization-service.api-DmFUEmu5.js} +1 -1
  110. package/build/assets/parse-git-remote-url-BG8pcKL8.js +1 -0
  111. package/build/assets/{pencil-D5c47kyN.js → pencil-q-ihqDYv.js} +1 -1
  112. package/build/assets/{pin-C7vMagvf.js → pin-BdroVQdN.js} +1 -1
  113. package/build/assets/planner-tab-CXph_C9F.js +1 -0
  114. package/build/assets/{plug-CeaqeF6u.js → plug-7ACOEbMs.js} +1 -1
  115. package/build/assets/{plugins-management-service-Bh_pBuf-.js → plugins-management-service-CcEpfNKz.js} +1 -1
  116. package/build/assets/plus-C2e21TFC.js +1 -0
  117. package/build/assets/{profiles-service.api-BbOK0EkF.js → profiles-service.api-DdF_4Zhe.js} +1 -1
  118. package/build/assets/providers-BWRnl31s.js +1 -0
  119. package/build/assets/proxy-DbEf3Nqr.js +1 -0
  120. package/build/assets/{puzzle-DdAqbUrb.js → puzzle-LJYnuxKe.js} +1 -1
  121. package/build/assets/react-BX7IV650.js +1 -0
  122. package/build/assets/recommended-automations-launcher-r0oI91HN.js +1 -0
  123. package/build/assets/{refresh-cw-DEQdPCpH.js → refresh-cw-BtdC3T8P.js} +1 -1
  124. package/build/assets/root-j2fFRlWS.js +2 -0
  125. package/build/assets/root-layout-CfGgm2lo.js +2 -0
  126. package/build/assets/root-sEWn3ha1.css +1 -0
  127. package/build/assets/schema-field-c3Ncgm4x.js +1 -0
  128. package/build/assets/sdk-section-page-DFEiuiFQ.js +1 -0
  129. package/build/assets/secret-form-WXXNFqTM.js +1 -0
  130. package/build/assets/{secrets-service-Cr8g8xuv.js → secrets-service-DU6wh3wX.js} +1 -1
  131. package/build/assets/secrets-settings-BEqbPvjy.js +1 -0
  132. package/build/assets/settings-DjaSQwFh.js +1 -0
  133. package/build/assets/settings-dropdown-input-BRR2OZwi.js +1 -0
  134. package/build/assets/settings-index-DHv4XFcM.js +1 -0
  135. package/build/assets/settings-input-Cm4VxUon.js +1 -0
  136. package/build/assets/{settings-list-classes-Ds4jPBHK.js → settings-list-classes-CaUfKZ33.js} +1 -1
  137. package/build/assets/settings-modal-djXuAnBO.js +1 -0
  138. package/build/assets/settings-nav-DFb3hBMr.js +16 -0
  139. package/build/assets/{settings-service.api-9_xdv_mh.js → settings-service.api-Q9lKW1TX.js} +1 -1
  140. package/build/assets/settings-switch-seaSJc7t.js +1 -0
  141. package/build/assets/{settings-utils-8GIIgOQL.js → settings-utils-BTaaRhLZ.js} +1 -1
  142. package/build/assets/shared-conversation-x3rxVCon.js +1 -0
  143. package/build/assets/{shield-check-DO7wa_eu.js → shield-check-C3Rl0NF8.js} +1 -1
  144. package/build/assets/{sidebar-layout-EPfWxk11.js → sidebar-layout-B6mcvvdV.js} +1 -1
  145. package/build/assets/sidebar-mobile-menu-toggle-CEqS8KnA.js +1 -0
  146. package/build/assets/{sidebar-nav-link-_t4_Ef-9.js → sidebar-nav-link-BTHX11LG.js} +1 -1
  147. package/build/assets/{sidebar-onboarding-checklist-storage-DbDX-Wvj.js → sidebar-onboarding-checklist-storage-BP1kzn6p.js} +1 -1
  148. package/build/assets/sidebar-store-DAZVH-DR.js +1 -0
  149. package/build/assets/skill-card-pill-row-TD39nfP3.js +1 -0
  150. package/build/assets/{skill-filter-BBeZ4JEP.js → skill-filter-CdBbbwjm.js} +2 -2
  151. package/build/assets/{skill-icon-badge-BDhQ-tQ0.js → skill-icon-badge-vUEp7gsC.js} +1 -1
  152. package/build/assets/skill-scope-BTRBQt0-.js +1 -0
  153. package/build/assets/skills-plugins-k1tUNAw4.js +1 -0
  154. package/build/assets/skills-settings-CENviPT7.js +1 -0
  155. package/build/assets/{styled-tooltip-Pd22BIvr.js → styled-tooltip-DVAlWYnL.js} +1 -1
  156. package/build/assets/task-list-tab-BLKF_x9f.js +1 -0
  157. package/build/assets/{terminal-onXx0_Qz.js → terminal-Ckbnqb23.js} +1 -1
  158. package/build/assets/{toggle-switch-lwQtxDcm.js → toggle-switch-DeiG9Mf6.js} +1 -1
  159. package/build/assets/{trash-2-ZhKuTLiz.js → trash-2-Bb40zQzs.js} +1 -1
  160. package/build/assets/trash-CXN2R54L.js +1 -0
  161. package/build/assets/{triangle-alert-BajLPpQg.js → triangle-alert-DEdu-b_L.js} +1 -1
  162. package/build/assets/{typography-HLLg_FAn.js → typography-NarNyelM.js} +1 -1
  163. package/build/assets/usage-tab-Drd3O006.js +1 -0
  164. package/build/assets/use-acp-credential-form-CJ5wPsQm.js +1 -0
  165. package/build/assets/{use-activate-agent-profile-BLKML6vQ.js → use-activate-agent-profile-iQZ0U3qV.js} +1 -1
  166. package/build/assets/use-agent-profiles-LCvb5OXT.js +1 -0
  167. package/build/assets/{use-automation-health-BZkQNEA8.js → use-automation-health-DdgSa8sA.js} +1 -1
  168. package/build/assets/{use-automation-permissions-B_RpvL-s.js → use-automation-permissions-D3kEeieu.js} +1 -1
  169. package/build/assets/{use-automations-Cg0PDIZr.js → use-automations-CEubcYTD.js} +1 -1
  170. package/build/assets/{use-can-manage-org-profiles-BbN6KfDr.js → use-can-manage-org-profiles-CB8ybxFK.js} +1 -1
  171. package/build/assets/{use-canvas-extensions-CFUpHat6.js → use-canvas-extensions-BMacwi2v.js} +1 -1
  172. package/build/assets/{use-cloud-current-user-id-Dk0rjr63.js → use-cloud-current-user-id-BEKRd6XZ.js} +1 -1
  173. package/build/assets/{use-config-DpafU_QP.js → use-config-3WYcJsgC.js} +1 -1
  174. package/build/assets/{use-create-conversation-1YgmAHt-.js → use-create-conversation-Be-eVpFp.js} +1 -1
  175. package/build/assets/use-create-secret-Bk9ZxTjl.js +1 -0
  176. package/build/assets/use-free-models-Ci3FkKEm.js +1 -0
  177. package/build/assets/{use-get-secrets-CQ4b0qK8.js → use-get-secrets-fqS0kxt6.js} +1 -1
  178. package/build/assets/use-is-authed-A2Yinlt0.js +1 -0
  179. package/build/assets/{use-launch-skill-in-chat-DeYa1tFM.js → use-launch-skill-in-chat-QbXDhiHr.js} +1 -1
  180. package/build/assets/use-llm-configured-B71ZEVg2.js +1 -0
  181. package/build/assets/use-llm-profiles-xtCBMbef.js +1 -0
  182. package/build/assets/{use-manifest-capabilities-AOWGcu0j.js → use-manifest-capabilities-Bso6A_-A.js} +1 -1
  183. package/build/assets/{use-onboarding-completion-CoINurkm.js → use-onboarding-completion-CEgjL02y.js} +1 -1
  184. package/build/assets/{use-pinned-home-route-D6krwXjy.js → use-pinned-home-route-pK4IlJ-p.js} +1 -1
  185. package/build/assets/{use-plugins-marketplace-mLsIDhBv.js → use-plugins-marketplace-B8-ZEB34.js} +1 -1
  186. package/build/assets/use-save-agent-profile-D7hJuW_u.js +1 -0
  187. package/build/assets/{use-save-settings-3U5K9-8x.js → use-save-settings-CikTu5xV.js} +1 -1
  188. package/build/assets/{use-settings-Dn00UISA.js → use-settings-BWIH5EuN.js} +1 -1
  189. package/build/assets/use-settings-nav-items-DSKwLDnd.js +1 -0
  190. package/build/assets/use-tracking-ChnSFChv.js +3 -0
  191. package/build/assets/{use-user-conversation-ZWlXtbZb.js → use-user-conversation-C_l65DqW.js} +1 -1
  192. package/build/assets/{useInfiniteQuery-BzrRqjLg.js → useInfiniteQuery-CtSRG7uW.js} +1 -1
  193. package/build/assets/{useMutation-CJuK90oc.js → useMutation-Cszf8mKy.js} +1 -1
  194. package/build/assets/useQueries-pUohFMSP.js +1 -0
  195. package/build/assets/useQuery-DAAacS7O.js +1 -0
  196. package/build/assets/useTranslation-CCgUjPJF.js +1 -0
  197. package/build/assets/utils-D-gOfhmN.js +1 -0
  198. package/build/assets/{vendor~conversation-panel~conversation-4eJ0tml3.js → vendor~conversation-panel~conversation-C22sJuWZ.js} +1 -1
  199. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js +2 -0
  200. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js +185 -0
  201. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js +1 -0
  202. package/build/assets/{vendor~index-home~home~conversation-panel~conversation-CSFLzmTN.js → vendor~index-home~home~conversation-panel~conversation-UTl7gUo9.js} +1 -1
  203. package/build/assets/{vendor~root-layout-n8XCEXG8.js → vendor~root-layout-CcdIqs-C.js} +1 -1
  204. package/build/assets/{vendor~root-layout~conversation-panel~conversation-3Idg1_U3.js → vendor~root-layout~conversation-panel~conversation-C3EBV3kp.js} +1 -1
  205. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-BCe0JJVy.js +1 -0
  206. package/build/assets/{vendor~root-layout~index-home~home~conversation-panel~conversation-DgQ564nC.js → vendor~root-layout~index-home~home~conversation-panel~conversation-BGGbPcYh.js} +1 -1
  207. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-BFRW8wt-.js +48 -0
  208. package/build/assets/{vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BPjI-atc.js → vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-3eJ4ExtV.js} +1 -1
  209. package/build/assets/{verification-settings-u2POabjH.js → verification-settings-PKtoIUUY.js} +1 -1
  210. package/build/assets/{wrench-CkgI4rxA.js → wrench-B8Wg_nbp.js} +1 -1
  211. package/build/assets/{x-By6qCmtY.js → x-CX8lVGwm.js} +1 -1
  212. package/build/index.html +4 -4
  213. package/build/locales/ar/openhands.json +16 -2
  214. package/build/locales/ca/openhands.json +16 -2
  215. package/build/locales/de/openhands.json +16 -2
  216. package/build/locales/en/openhands.json +16 -2
  217. package/build/locales/es/openhands.json +16 -2
  218. package/build/locales/fr/openhands.json +16 -2
  219. package/build/locales/it/openhands.json +16 -2
  220. package/build/locales/ja/openhands.json +16 -2
  221. package/build/locales/ko-KR/openhands.json +16 -2
  222. package/build/locales/no/openhands.json +16 -2
  223. package/build/locales/pt/openhands.json +16 -2
  224. package/build/locales/tr/openhands.json +16 -2
  225. package/build/locales/uk/openhands.json +16 -2
  226. package/build/locales/zh-CN/openhands.json +16 -2
  227. package/build/locales/zh-TW/openhands.json +16 -2
  228. package/config/defaults.json +3 -3
  229. package/dist/api/cloud/organization-service.api.cjs.map +1 -1
  230. package/dist/api/cloud/organization-service.api.d.ts +9 -1
  231. package/dist/api/cloud/organization-service.api.js.map +1 -1
  232. package/dist/api/config-service/config-service.api.cjs +1 -1
  233. package/dist/api/config-service/config-service.api.cjs.map +1 -1
  234. package/dist/api/config-service/config-service.api.js +6 -2
  235. package/dist/api/config-service/config-service.api.js.map +1 -1
  236. package/dist/api/config-service/config-service.types.d.ts +13 -0
  237. package/dist/components/conversation-events/chat/event-content-helpers/get-skill-ready-content.cjs +3 -3
  238. package/dist/components/conversation-events/chat/event-content-helpers/get-skill-ready-content.cjs.map +1 -1
  239. package/dist/components/conversation-events/chat/event-content-helpers/get-skill-ready-content.js +12 -16
  240. package/dist/components/conversation-events/chat/event-content-helpers/get-skill-ready-content.js.map +1 -1
  241. package/dist/components/features/automations/automation-card.cjs +1 -1
  242. package/dist/components/features/automations/automation-card.cjs.map +1 -1
  243. package/dist/components/features/automations/automation-card.js +39 -38
  244. package/dist/components/features/automations/automation-card.js.map +1 -1
  245. package/dist/components/features/automations/automation-list-row.cjs +1 -1
  246. package/dist/components/features/automations/automation-list-row.cjs.map +1 -1
  247. package/dist/components/features/automations/automation-list-row.js +73 -72
  248. package/dist/components/features/automations/automation-list-row.js.map +1 -1
  249. package/dist/components/features/automations/build-automation-menu-items.cjs +1 -1
  250. package/dist/components/features/automations/build-automation-menu-items.cjs.map +1 -1
  251. package/dist/components/features/automations/build-automation-menu-items.d.ts +3 -1
  252. package/dist/components/features/automations/build-automation-menu-items.js +12 -11
  253. package/dist/components/features/automations/build-automation-menu-items.js.map +1 -1
  254. package/dist/components/features/automations/detail/configuration-section.d.ts +7 -1
  255. package/dist/components/features/automations/detail/detail-header.d.ts +8 -5
  256. package/dist/components/features/automations/detail/disabled-reason-banner.d.ts +16 -0
  257. package/dist/components/features/backends/backend-selector.cjs +1 -1
  258. package/dist/components/features/backends/backend-selector.cjs.map +1 -1
  259. package/dist/components/features/backends/backend-selector.js +112 -112
  260. package/dist/components/features/backends/backend-selector.js.map +1 -1
  261. package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs +1 -1
  262. package/dist/components/features/chat/components/chat-input-llm-profile-picker.cjs.map +1 -1
  263. package/dist/components/features/chat/components/chat-input-llm-profile-picker.js +62 -61
  264. package/dist/components/features/chat/components/chat-input-llm-profile-picker.js.map +1 -1
  265. package/dist/components/features/chat/model-messages.cjs +1 -1
  266. package/dist/components/features/chat/model-messages.cjs.map +1 -1
  267. package/dist/components/features/chat/model-messages.js +27 -26
  268. package/dist/components/features/chat/model-messages.js.map +1 -1
  269. package/dist/components/features/conversation-panel/budget-display.cjs +1 -1
  270. package/dist/components/features/conversation-panel/budget-display.cjs.map +1 -1
  271. package/dist/components/features/conversation-panel/budget-display.d.ts +1 -2
  272. package/dist/components/features/conversation-panel/budget-display.js +12 -19
  273. package/dist/components/features/conversation-panel/budget-display.js.map +1 -1
  274. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs +1 -1
  275. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.cjs.map +1 -1
  276. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js +45 -44
  277. package/dist/components/features/conversation-panel/conversation-card/conversation-card-footer.js.map +1 -1
  278. package/dist/components/features/home/featured-automations/build-home-automation-menu-items.d.ts +1 -2
  279. package/dist/components/features/home/featured-automations/build-pinned-automation-menu-items.d.ts +0 -1
  280. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +1 -1
  281. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -1
  282. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +38 -29
  283. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -1
  284. package/dist/components/features/images/image-lightbox.cjs +2 -0
  285. package/dist/components/features/images/image-lightbox.cjs.map +1 -0
  286. package/dist/components/features/images/image-lightbox.d.ts +11 -0
  287. package/dist/components/features/images/image-lightbox.js +37 -0
  288. package/dist/components/features/images/image-lightbox.js.map +1 -0
  289. package/dist/components/features/images/image-preview.cjs +1 -1
  290. package/dist/components/features/images/image-preview.cjs.map +1 -1
  291. package/dist/components/features/images/image-preview.d.ts +2 -1
  292. package/dist/components/features/images/image-preview.js +33 -13
  293. package/dist/components/features/images/image-preview.js.map +1 -1
  294. package/dist/components/features/onboarding/steps/setup-llm-step.d.ts +3 -4
  295. package/dist/components/features/settings/agent-profiles/profile-scope-list.d.ts +20 -0
  296. package/dist/components/features/settings/cloud-settings-link.cjs +1 -1
  297. package/dist/components/features/settings/cloud-settings-link.cjs.map +1 -1
  298. package/dist/components/features/settings/cloud-settings-link.d.ts +3 -1
  299. package/dist/components/features/settings/cloud-settings-link.js +22 -21
  300. package/dist/components/features/settings/cloud-settings-link.js.map +1 -1
  301. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.cjs +1 -1
  302. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.js +2 -1
  303. package/dist/components/features/settings/llm-profiles/profile-row.cjs +1 -1
  304. package/dist/components/features/settings/llm-profiles/profile-row.js +1 -1
  305. package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
  306. package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
  307. package/dist/components/features/sidebar/sidebar-rail-body.d.ts +2 -1
  308. package/dist/components/features/sidebar/sidebar-rail-body.js +143 -142
  309. package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
  310. package/dist/components/features/sidebar/sidebar.cjs +1 -1
  311. package/dist/components/features/sidebar/sidebar.cjs.map +1 -1
  312. package/dist/components/features/sidebar/sidebar.js +28 -27
  313. package/dist/components/features/sidebar/sidebar.js.map +1 -1
  314. package/dist/components/providers/agent-server-ui-providers.cjs +1 -1
  315. package/dist/components/providers/agent-server-ui-providers.cjs.map +1 -1
  316. package/dist/components/providers/agent-server-ui-providers.js +33 -29
  317. package/dist/components/providers/agent-server-ui-providers.js.map +1 -1
  318. package/dist/components/shared/buttons/remove-button.cjs +1 -1
  319. package/dist/components/shared/buttons/remove-button.cjs.map +1 -1
  320. package/dist/components/shared/buttons/remove-button.d.ts +2 -1
  321. package/dist/components/shared/buttons/remove-button.js +2 -1
  322. package/dist/components/shared/buttons/remove-button.js.map +1 -1
  323. package/dist/components/shared/free-models-note.cjs +2 -0
  324. package/dist/components/shared/free-models-note.cjs.map +1 -0
  325. package/dist/components/shared/free-models-note.d.ts +3 -0
  326. package/dist/components/shared/free-models-note.js +20 -0
  327. package/dist/components/shared/free-models-note.js.map +1 -0
  328. package/dist/components/shared/modals/settings/model-selector.cjs +1 -1
  329. package/dist/components/shared/modals/settings/model-selector.cjs.map +1 -1
  330. package/dist/components/shared/modals/settings/model-selector.js +102 -112
  331. package/dist/components/shared/modals/settings/model-selector.js.map +1 -1
  332. package/dist/config/defaults.cjs +1 -1
  333. package/dist/config/defaults.cjs.map +1 -1
  334. package/dist/config/defaults.js +3 -3
  335. package/dist/config/defaults.js.map +1 -1
  336. package/dist/constants/acp-providers.cjs +1 -1
  337. package/dist/constants/acp-providers.cjs.map +1 -1
  338. package/dist/constants/acp-providers.d.ts +7 -0
  339. package/dist/constants/acp-providers.js +20 -16
  340. package/dist/constants/acp-providers.js.map +1 -1
  341. package/dist/constants/profile-scope.d.ts +21 -0
  342. package/dist/hooks/chat/use-slash-command.cjs +1 -1
  343. package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
  344. package/dist/hooks/chat/use-slash-command.js +63 -62
  345. package/dist/hooks/chat/use-slash-command.js.map +1 -1
  346. package/dist/hooks/query/use-automation-sdk-version.cjs +1 -1
  347. package/dist/hooks/query/use-automation-sdk-version.cjs.map +1 -1
  348. package/dist/hooks/query/use-automation-sdk-version.js +3 -1
  349. package/dist/hooks/query/use-automation-sdk-version.js.map +1 -1
  350. package/dist/hooks/query/use-free-models.cjs +2 -0
  351. package/dist/hooks/query/use-free-models.cjs.map +1 -0
  352. package/dist/hooks/query/use-free-models.d.ts +23 -0
  353. package/dist/hooks/query/use-free-models.js +67 -0
  354. package/dist/hooks/query/use-free-models.js.map +1 -0
  355. package/dist/hooks/query/use-local-git-info.cjs.map +1 -1
  356. package/dist/hooks/query/use-local-git-info.js.map +1 -1
  357. package/dist/hooks/query/use-provider-models.cjs +1 -1
  358. package/dist/hooks/query/use-provider-models.cjs.map +1 -1
  359. package/dist/hooks/query/use-provider-models.js +34 -25
  360. package/dist/hooks/query/use-provider-models.js.map +1 -1
  361. package/dist/hooks/query/use-search-providers.cjs +1 -1
  362. package/dist/hooks/query/use-search-providers.cjs.map +1 -1
  363. package/dist/hooks/query/use-search-providers.js +31 -19
  364. package/dist/hooks/query/use-search-providers.js.map +1 -1
  365. package/dist/hooks/use-drag-resize.cjs +1 -1
  366. package/dist/hooks/use-drag-resize.cjs.map +1 -1
  367. package/dist/hooks/use-drag-resize.js +8 -9
  368. package/dist/hooks/use-drag-resize.js.map +1 -1
  369. package/dist/hooks/use-home-automation-actions.cjs +1 -1
  370. package/dist/hooks/use-home-automation-actions.cjs.map +1 -1
  371. package/dist/hooks/use-home-automation-actions.d.ts +1 -2
  372. package/dist/hooks/use-home-automation-actions.js +0 -1
  373. package/dist/hooks/use-home-automation-actions.js.map +1 -1
  374. package/dist/i18n/declaration.cjs +1 -1
  375. package/dist/i18n/declaration.cjs.map +1 -1
  376. package/dist/i18n/declaration.d.ts +16 -2
  377. package/dist/i18n/declaration.js +1 -1
  378. package/dist/i18n/declaration.js.map +1 -1
  379. package/dist/i18n/translation.cjs +3 -3
  380. package/dist/i18n/translation.cjs.map +1 -1
  381. package/dist/i18n/translation.js +255 -17
  382. package/dist/i18n/translation.js.map +1 -1
  383. package/dist/locales/ar/openhands.json +16 -2
  384. package/dist/locales/ca/openhands.json +16 -2
  385. package/dist/locales/de/openhands.json +16 -2
  386. package/dist/locales/en/openhands.json +16 -2
  387. package/dist/locales/es/openhands.json +16 -2
  388. package/dist/locales/fr/openhands.json +16 -2
  389. package/dist/locales/it/openhands.json +16 -2
  390. package/dist/locales/ja/openhands.json +16 -2
  391. package/dist/locales/ko-KR/openhands.json +16 -2
  392. package/dist/locales/no/openhands.json +16 -2
  393. package/dist/locales/pt/openhands.json +16 -2
  394. package/dist/locales/tr/openhands.json +16 -2
  395. package/dist/locales/uk/openhands.json +16 -2
  396. package/dist/locales/zh-CN/openhands.json +16 -2
  397. package/dist/locales/zh-TW/openhands.json +16 -2
  398. package/dist/manifests/manifest-validation.cjs +1 -1
  399. package/dist/manifests/manifest-validation.cjs.map +1 -1
  400. package/dist/manifests/manifest-validation.js +2 -2
  401. package/dist/manifests/manifest-validation.js.map +1 -1
  402. package/dist/node_modules/@openhands/typescript-client/dist/client/agent-server-compatibility.cjs +1 -1
  403. package/dist/node_modules/@openhands/typescript-client/dist/client/agent-server-compatibility.cjs.map +1 -1
  404. package/dist/node_modules/@openhands/typescript-client/dist/client/agent-server-compatibility.js +15 -8
  405. package/dist/node_modules/@openhands/typescript-client/dist/client/agent-server-compatibility.js.map +1 -1
  406. package/dist/node_modules/@openhands/typescript-client/dist/client/bash-client.cjs +1 -1
  407. package/dist/node_modules/@openhands/typescript-client/dist/client/bash-client.cjs.map +1 -1
  408. package/dist/node_modules/@openhands/typescript-client/dist/client/bash-client.js +11 -13
  409. package/dist/node_modules/@openhands/typescript-client/dist/client/bash-client.js.map +1 -1
  410. package/dist/node_modules/@openhands/typescript-client/dist/client/conversation-client.cjs +1 -1
  411. package/dist/node_modules/@openhands/typescript-client/dist/client/conversation-client.cjs.map +1 -1
  412. package/dist/node_modules/@openhands/typescript-client/dist/client/conversation-client.js +6 -0
  413. package/dist/node_modules/@openhands/typescript-client/dist/client/conversation-client.js.map +1 -1
  414. package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.cjs +1 -1
  415. package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.cjs.map +1 -1
  416. package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.js +3 -6
  417. package/dist/node_modules/@openhands/typescript-client/dist/client/desktop-client.js.map +1 -1
  418. package/dist/node_modules/@openhands/typescript-client/dist/client/file-client.cjs +1 -1
  419. package/dist/node_modules/@openhands/typescript-client/dist/client/file-client.cjs.map +1 -1
  420. package/dist/node_modules/@openhands/typescript-client/dist/client/file-client.js +9 -12
  421. package/dist/node_modules/@openhands/typescript-client/dist/client/file-client.js.map +1 -1
  422. package/dist/node_modules/@openhands/typescript-client/dist/client/runtime-transport.cjs +2 -0
  423. package/dist/node_modules/@openhands/typescript-client/dist/client/runtime-transport.cjs.map +1 -0
  424. package/dist/node_modules/@openhands/typescript-client/dist/client/runtime-transport.js +41 -0
  425. package/dist/node_modules/@openhands/typescript-client/dist/client/runtime-transport.js.map +1 -0
  426. package/dist/node_modules/@openhands/typescript-client/dist/client/vscode-client.cjs +1 -1
  427. package/dist/node_modules/@openhands/typescript-client/dist/client/vscode-client.cjs.map +1 -1
  428. package/dist/node_modules/@openhands/typescript-client/dist/client/vscode-client.js +3 -6
  429. package/dist/node_modules/@openhands/typescript-client/dist/client/vscode-client.js.map +1 -1
  430. package/dist/node_modules/@openhands/typescript-client/dist/clients.cjs +1 -1
  431. package/dist/node_modules/@openhands/typescript-client/dist/clients.js +1 -1
  432. package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.cjs +1 -1
  433. package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.cjs.map +1 -1
  434. package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.js +199 -61
  435. package/dist/node_modules/@openhands/typescript-client/dist/models/acp-providers.js.map +1 -1
  436. package/dist/node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.cjs +1 -1
  437. package/dist/node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.cjs.map +1 -1
  438. package/dist/node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.js +9 -8
  439. package/dist/node_modules/@openhands/typescript-client/dist/workspace/remote-workspace.js.map +1 -1
  440. package/dist/package.cjs +1 -1
  441. package/dist/package.cjs.map +1 -1
  442. package/dist/package.js +2 -2
  443. package/dist/package.js.map +1 -1
  444. package/dist/routes/agent-settings.d.ts +5 -0
  445. package/dist/routes/app-settings.cjs +1 -1
  446. package/dist/routes/app-settings.cjs.map +1 -1
  447. package/dist/routes/app-settings.js +52 -47
  448. package/dist/routes/app-settings.js.map +1 -1
  449. package/dist/routes/llm-settings.cjs +1 -1
  450. package/dist/routes/llm-settings.cjs.map +1 -1
  451. package/dist/routes/llm-settings.js +137 -145
  452. package/dist/routes/llm-settings.js.map +1 -1
  453. package/dist/stores/free-models-store.cjs +2 -0
  454. package/dist/stores/free-models-store.cjs.map +1 -0
  455. package/dist/stores/free-models-store.d.ts +30 -0
  456. package/dist/stores/free-models-store.js +22 -0
  457. package/dist/stores/free-models-store.js.map +1 -0
  458. package/dist/types/automation.cjs.map +1 -1
  459. package/dist/types/automation.d.ts +23 -1
  460. package/dist/types/automation.js.map +1 -1
  461. package/dist/utils/automation-disabled-reason.cjs +2 -0
  462. package/dist/utils/automation-disabled-reason.cjs.map +1 -0
  463. package/dist/utils/automation-disabled-reason.d.ts +32 -0
  464. package/dist/utils/automation-disabled-reason.js +19 -0
  465. package/dist/utils/automation-disabled-reason.js.map +1 -0
  466. package/dist/utils/format-model-name.cjs +1 -1
  467. package/dist/utils/format-model-name.cjs.map +1 -1
  468. package/dist/utils/format-model-name.d.ts +27 -6
  469. package/dist/utils/format-model-name.js +14 -6
  470. package/dist/utils/format-model-name.js.map +1 -1
  471. package/dist/utils/parse-git-remote-url.cjs +1 -1
  472. package/dist/utils/parse-git-remote-url.cjs.map +1 -1
  473. package/dist/utils/parse-git-remote-url.d.ts +5 -1
  474. package/dist/utils/parse-git-remote-url.js +20 -13
  475. package/dist/utils/parse-git-remote-url.js.map +1 -1
  476. package/package.json +2 -2
  477. package/scripts/check-sdk-version-sync.mjs +79 -8
  478. package/scripts/dev-safe.mjs +1 -1
  479. package/scripts/static-server.mjs +24 -7
  480. package/build/assets/acp-providers-DrjNsPOH.js +0 -1
  481. package/build/assets/active-backend-context-rZiLJRUc.js +0 -2
  482. package/build/assets/agent-profiles-settings-x6RvPsq7.js +0 -1
  483. package/build/assets/agent-server-client-options-BikiNwTa.js +0 -1
  484. package/build/assets/agent-server-conversation-service.api-DYFsNHKf.js +0 -88
  485. package/build/assets/agent-settings-BJyovpJ_.js +0 -1
  486. package/build/assets/agent-settings-CpY3zObk.js +0 -2
  487. package/build/assets/alert-banner-vARz1idS.js +0 -1
  488. package/build/assets/api-key-entry-screen-CsMuBhoP.js +0 -1
  489. package/build/assets/app-settings-BaJ7nfHt.js +0 -1
  490. package/build/assets/automation-detail-CVoGDrKq.js +0 -3
  491. package/build/assets/automation-git-sync-CRMP9Bbm.js +0 -1
  492. package/build/assets/automation-setup-route-072beLz1.js +0 -3
  493. package/build/assets/automations-list-xuqTSQL4.js +0 -1
  494. package/build/assets/backend-form-modal-0aJmWdsa.js +0 -1
  495. package/build/assets/backend-synced-settings-badge-B7rKWBir.js +0 -1
  496. package/build/assets/badge-CcGx2TaV.js +0 -1
  497. package/build/assets/browser-C-_qBasq.js +0 -46
  498. package/build/assets/browser-tab-DZanIw5m.js +0 -1
  499. package/build/assets/canvas-extension-page-o_cWgE9B.js +0 -1
  500. package/build/assets/canvas-extensions-DSgNlCha.js +0 -1
  501. package/build/assets/check-fDEfgSzj.js +0 -1
  502. package/build/assets/chevron-down-CFrWHqu8.js +0 -1
  503. package/build/assets/chevron-right-C5roOrJu.js +0 -1
  504. package/build/assets/circle-check-ClTzJTdb.js +0 -1
  505. package/build/assets/circle-plus-check-toggle-Fr-h-mbL.js +0 -1
  506. package/build/assets/command-menu-BT3Ia5Ru.js +0 -1
  507. package/build/assets/commits-tab-2jhtaohl.js +0 -1
  508. package/build/assets/confirmation-modal-gIFHeZt6.js +0 -1
  509. package/build/assets/conversation-DZ578rOX.js +0 -1
  510. package/build/assets/conversation-panel-DZ578rOX.js +0 -1
  511. package/build/assets/conversation-state-store-D1_G_9I-.js +0 -1
  512. package/build/assets/conversation-store-DVVfkCsk.js +0 -6
  513. package/build/assets/copy-to-clipboard-button-B3w0X7WH.js +0 -1
  514. package/build/assets/device-verify-BfkCzyFB.js +0 -1
  515. package/build/assets/edit-automation-modal-BwhJ39JT.js +0 -1
  516. package/build/assets/empty-state-RZz0OfnY.js +0 -1
  517. package/build/assets/enum-filter-dropdown-C4pW0ORd.js +0 -1
  518. package/build/assets/environment-switch-overlay-P2ZAuzov.js +0 -1
  519. package/build/assets/error-state-B_5cgNPJ.js +0 -1
  520. package/build/assets/extensions-hub-DsaUr4ca.js +0 -1
  521. package/build/assets/extensions-navigation-CRMZd-FE.js +0 -1
  522. package/build/assets/files-tab-CCgAcVdc.js +0 -1
  523. package/build/assets/format-model-name-CasAP3nd.js +0 -1
  524. package/build/assets/get-git-path-EHrSDxTM.js +0 -1
  525. package/build/assets/git-repo-dropdown-D2WEQ97X.js +0 -1
  526. package/build/assets/git-repo-dropdown-DVeCUUXG.js +0 -1
  527. package/build/assets/highlighted-source-view-DjHO3SdW.js +0 -1
  528. package/build/assets/home-BorS_vdS.js +0 -1
  529. package/build/assets/home-aIMbHw5M.js +0 -1
  530. package/build/assets/home-automation-run-tooltip-CpHNFiFl.js +0 -1
  531. package/build/assets/home-store-DyXz0w6d.js +0 -1
  532. package/build/assets/hooks-service-C6dpRtZM.js +0 -1
  533. package/build/assets/index-home-zKFuKK2B.js +0 -1
  534. package/build/assets/info-CTIdjttz.js +0 -1
  535. package/build/assets/install-server-modal-DUiZMc8u.js +0 -1
  536. package/build/assets/kebab-menu-item-content-mm04SBD3.js +0 -1
  537. package/build/assets/launch-BSIf9KEg.js +0 -1
  538. package/build/assets/link-external-BNZzCM1I.js +0 -1
  539. package/build/assets/list-filter-CNpqTWVY.js +0 -1
  540. package/build/assets/llm-not-configured-banner-z_QRSeV0.js +0 -27
  541. package/build/assets/llm-settings-B-5AHMiX.js +0 -1
  542. package/build/assets/llm-settings-B3SjHDmA.js +0 -1
  543. package/build/assets/loader-circle-Dex47vVW.js +0 -1
  544. package/build/assets/manage-backends-modal-q1NdFisr.js +0 -1
  545. package/build/assets/manifest-8920b615.js +0 -1
  546. package/build/assets/manifest-subpage-layout-BQQy5ipR.js +0 -1
  547. package/build/assets/markdown-renderer-rivLvYh-.js +0 -8
  548. package/build/assets/mcp-CEXDhQWn.js +0 -1
  549. package/build/assets/mcp-marketplace-utils-Cn_NIMWM.js +0 -1
  550. package/build/assets/mcp-page-LGYIICMG.js +0 -9
  551. package/build/assets/messages-DUSeANAh.js +0 -41
  552. package/build/assets/modal-close-button-B9j4nasm.js +0 -1
  553. package/build/assets/onboarding-BjFebfs5.js +0 -1
  554. package/build/assets/onboarding-modal-DDTjOpyd.js +0 -1
  555. package/build/assets/parse-git-remote-url-DpDM9bK6.js +0 -1
  556. package/build/assets/planner-tab-D8f2Y3rn.js +0 -1
  557. package/build/assets/plus-B3wvU06-.js +0 -1
  558. package/build/assets/providers-2gIIkz2N.js +0 -1
  559. package/build/assets/proxy-CBgMd2zf.js +0 -1
  560. package/build/assets/recommended-automations-launcher-YLAQTp4s.js +0 -1
  561. package/build/assets/root-Bye_XmEL.js +0 -2
  562. package/build/assets/root-Cnwwzgo0.css +0 -1
  563. package/build/assets/root-layout-CSAwxBGM.js +0 -2
  564. package/build/assets/schema-field-CK0xYNbO.js +0 -1
  565. package/build/assets/sdk-section-page-Da73Rs_o.js +0 -1
  566. package/build/assets/secret-form-CB2VwYYg.js +0 -1
  567. package/build/assets/secrets-settings-Bh0udeKv.js +0 -1
  568. package/build/assets/settings-DmyIgRxO.js +0 -1
  569. package/build/assets/settings-dropdown-input-DVpyD87C.js +0 -1
  570. package/build/assets/settings-index-BSJUFmjE.js +0 -1
  571. package/build/assets/settings-input-C0dd8Utu.js +0 -1
  572. package/build/assets/settings-modal-yStgEh2o.js +0 -1
  573. package/build/assets/settings-switch-B78Khmyz.js +0 -1
  574. package/build/assets/shared-conversation-DM96X4KV.js +0 -1
  575. package/build/assets/sidebar-mobile-menu-toggle-D5GR5xT9.js +0 -1
  576. package/build/assets/sidebar-store-CSDFK0W5.js +0 -1
  577. package/build/assets/skill-card-pill-row-989y15jV.js +0 -1
  578. package/build/assets/skill-scope-Dz3kPH3P.js +0 -1
  579. package/build/assets/skills-plugins-e3CYGdUJ.js +0 -1
  580. package/build/assets/skills-settings-3e-FuHw_.js +0 -1
  581. package/build/assets/task-list-tab-3Jg8ywch.js +0 -1
  582. package/build/assets/trash-B6OIe4yX.js +0 -1
  583. package/build/assets/usage-tab-Cm-9j3UK.js +0 -1
  584. package/build/assets/use-acp-credential-form-BARcvjYE.js +0 -1
  585. package/build/assets/use-agent-profiles-1P91KSXz.js +0 -1
  586. package/build/assets/use-create-secret-D8p9ybQj.js +0 -1
  587. package/build/assets/use-is-authed-BRPjCRKM.js +0 -1
  588. package/build/assets/use-llm-configured-DGm8FiRR.js +0 -1
  589. package/build/assets/use-llm-profiles-BTTtpW4z.js +0 -1
  590. package/build/assets/use-save-agent-profile-CxyO9YG-.js +0 -1
  591. package/build/assets/use-settings-nav-items-vrjxTqcu.js +0 -16
  592. package/build/assets/use-tracking-B9prBsrq.js +0 -3
  593. package/build/assets/useQueries-CykmpT-a.js +0 -1
  594. package/build/assets/useQuery-S6j94er1.js +0 -1
  595. package/build/assets/utils-BOco8mxR.js +0 -1
  596. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js +0 -2
  597. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js +0 -185
  598. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-DnDoaYNi.js +0 -1
  599. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-DkPlXWl9.js +0 -1
  600. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js +0 -48
  601. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iyia17eu-CV850oio.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as e,r as t}from"./rolldown-runtime-Cyuzqnbw.js";import{St as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{i,t as a}from"./recommended-automations-launcher-r0oI91HN.js";import{t as o}from"./useTranslation-CCgUjPJF.js";import{ct as s,dt as c,n as l,r as u,st as d}from"./active-backend-context-BsLfwrXB.js";import{K as f,t as p}from"./utils-D-gOfhmN.js";import{p as m,v as h}from"./agent-server-client-options-EHB23gyx.js";import{c as g}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-3eJ4ExtV.js";import{t as _}from"./chat-send-button-DM3JgMc2.js";import{t as v}from"./check-Bo8s5Ylg.js";import{t as y}from"./circle-check-5pH3qCji.js";import{a as b,i as x,n as S,r as C,t as w}from"./use-acp-credential-form-CJ5wPsQm.js";import{t as T}from"./loader-circle-BxJgk73D.js";import{c as E,s as D,t as O}from"./backend-form-modal-DeaUJIik.js";import{a as k,r as A,t as j}from"./llm-settings-dkQ5Oq7W.js";import{f as M,i as N,m as P,u as F}from"./agent-server-config-C_x8Otd9.js";import{n as I,t as L}from"./use-free-models-Ci3FkKEm.js";import{o as R}from"./use-onboarding-completion-CEgjL02y.js";import{t as z}from"./use-tracking-ChnSFChv.js";import{n as ee}from"./use-settings-BWIH5EuN.js";import{t as B}from"./use-save-settings-CikTu5xV.js";import{t as te}from"./modal-backdrop-BSzNhM4r.js";import{r as ne,t as re}from"./modal-body-DBweM2EN.js";import{t as V}from"./brand-button-mQq2Ld1I.js";import{n as H}from"./navigation-context-CQZwH_tC.js";import{t as U}from"./openhands-logo-BS-Epajy.js";import{c as W,i as G,n as K,o as ie}from"./acp-providers-BQ4o4vqy.js";import{n as ae,t as oe}from"./agent-profiles-service.api-U-9YzDFU.js";import{n as se}from"./use-create-conversation-Be-eVpFp.js";import{t as ce}from"./terminal-BUpID2wS.js";import{c as le,r as ue}from"./sidebar-onboarding-checklist-storage-BP1kzn6p.js";import{n as de}from"./sdk-section-page-DFEiuiFQ.js";import{a as fe}from"./badge-Cdnei7Ly.js";import{t as pe}from"./use-save-agent-profile-D7hJuW_u.js";import{n as me}from"./use-activate-agent-profile-iQZ0U3qV.js";var q=e(n(),1),J=r(),he=`m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z`,ge=`0 0 100 100`,_e=`M4.04286 0.228393C4.52451 0.0304495 5.0488 -0.0409817 5.56586 0.0208928C6.23236 0.0973928 6.82636 0.380893 7.34786 0.870893C7.35488 0.877545 7.36344 0.882351 7.37278 0.884881C7.38212 0.887412 7.39194 0.887588 7.40136 0.885393C8.10536 0.712393 8.78236 0.773393 9.43186 1.06839L9.46336 1.08339L9.54036 1.12139C10.2189 1.47289 10.7054 2.00639 10.9994 2.72039C11.1384 3.05989 11.2084 3.41439 11.2099 3.78339C11.2197 4.05816 11.1893 4.33288 11.1199 4.59889C11.1164 4.61245 11.1165 4.62665 11.12 4.6402C11.1235 4.65374 11.1303 4.66618 11.1399 4.67639C11.5329 5.0749 11.8063 5.57572 11.9289 6.12189C12.1214 7.07239 11.9239 7.92939 11.3374 8.69189L11.2464 8.80189C10.8579 9.24669 10.3481 9.56836 9.77936 9.72739C9.76694 9.73097 9.75556 9.73747 9.74617 9.74634C9.73677 9.75521 9.72964 9.7662 9.72536 9.77839C9.59786 10.1464 9.46986 10.4604 9.23186 10.7744C8.63236 11.5654 7.75086 12.0054 6.75786 11.9999C5.96636 11.9959 5.26486 11.7064 4.65286 11.1319C4.64358 11.1234 4.63225 11.1174 4.61998 11.1146C4.6077 11.1118 4.59491 11.1123 4.58286 11.1159C4.32386 11.1994 4.06286 11.2114 3.78086 11.2084C3.33033 11.2048 2.88658 11.0984 2.48336 10.8974C2.0613 10.688 1.6939 10.3831 1.41036 10.0069C1.30886 9.87239 1.20836 9.74589 1.13486 9.59639C1.03349 9.39033 0.95066 9.17565 0.887357 8.95489C0.754446 8.45324 0.751521 7.92599 0.878857 7.42289C0.882974 7.41102 0.884341 7.39837 0.882857 7.38589C0.88038 7.37348 0.873877 7.36223 0.864357 7.35389C0.556147 7.04213 0.320543 6.66619 0.174357 6.25289C0.0775698 5.99842 0.0213841 5.73031 0.00785682 5.45839C-0.0163229 5.10033 0.0153902 4.74069 0.101857 4.39239C0.326857 3.65039 0.756357 3.06839 1.39036 2.64589C1.53136 2.55189 1.66536 2.47889 1.79136 2.42689C1.93436 2.36689 2.07786 2.31689 2.22186 2.27489C2.23216 2.27184 2.24153 2.26626 2.24913 2.25866C2.25672 2.25107 2.2623 2.24169 2.26536 2.23139C2.37455 1.83888 2.56235 1.47264 2.81736 1.15489C3.15736 0.731893 3.56586 0.422893 4.04286 0.228393ZM3.64086 4.15339C3.58503 4.05573 3.49269 3.98424 3.38415 3.95465C3.27562 3.92507 3.15977 3.93981 3.06211 3.99564C2.96444 4.05147 2.89295 4.14381 2.86337 4.25235C2.83378 4.36088 2.84853 4.47673 2.90436 4.57439L3.75136 6.05689L2.90736 7.48089C2.85561 7.57738 2.84315 7.69014 2.87257 7.7956C2.902 7.90106 2.97104 7.99108 3.06526 8.04684C3.15949 8.1026 3.27162 8.1198 3.37823 8.09484C3.48484 8.06988 3.57768 8.00469 3.63736 7.91289L4.60736 6.27689C4.64561 6.21237 4.66609 6.13887 4.66671 6.06386C4.66732 5.98886 4.64805 5.91503 4.61086 5.84989L3.64086 4.15339ZM6.36386 7.27339C6.25583 7.27982 6.15434 7.32727 6.08012 7.40603C6.00591 7.48479 5.96458 7.58892 5.96458 7.69714C5.96458 7.80536 6.00591 7.90949 6.08012 7.98826C6.15434 8.06702 6.25583 8.11446 6.36386 8.12089H8.78786C8.89675 8.1156 8.99943 8.06862 9.07462 7.98969C9.14982 7.91075 9.19176 7.80591 9.19176 7.69689C9.19176 7.58787 9.14982 7.48303 9.07462 7.4041C8.99943 7.32516 8.89675 7.27818 8.78786 7.27289H6.36386V7.27339Z`,ve=`0 0 12 12`,ye=`M12 0C12.904 6.056 17.944 11.096 24 12C17.944 12.904 12.904 17.944 12 24C11.096 17.944 6.056 12.904 0 12C6.056 11.096 11.096 6.056 12 0Z`,be=`0 0 24 24`,xe=3/2;function Y({kind:e,size:t=12,className:n,"data-testid":r}){return e===`openhands`?(0,J.jsx)(U,{width:Math.round(t*xe),height:t,className:p(`shrink-0 [&_path:not([fill=transparent])]:fill-current`,n),"data-testid":r??`agent-brand-icon-openhands`,"aria-hidden":!0}):e===`claude-code`?(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:ge,width:t,height:t,className:p(`shrink-0`,n),"data-testid":r??`agent-brand-icon-claude-code`,"aria-hidden":!0,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:he})}):e===`codex`?(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:ve,width:t,height:t,className:p(`shrink-0`,n),"data-testid":r??`agent-brand-icon-codex`,"aria-hidden":!0,children:(0,J.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:_e,fill:`currentColor`})}):e===`gemini`?(0,J.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:be,width:t,height:t,className:p(`shrink-0`,n),"data-testid":r??`agent-brand-icon-gemini`,"aria-hidden":!0,children:(0,J.jsx)(`path`,{fill:`currentColor`,d:ye})}):(0,J.jsx)(ce,{width:t,height:t,className:p(`shrink-0`,n),"data-testid":r??`agent-brand-icon-generic`,"aria-hidden":!0})}function Se({currentStep:e,totalSteps:t,className:n}){return(0,J.jsx)(`div`,{role:`progressbar`,"aria-valuemin":1,"aria-valuemax":t,"aria-valuenow":e+1,"data-testid":`onboarding-progress-bar`,className:p(`flex w-full items-center gap-2`,n),children:Array.from({length:t},(t,n)=>{let r=n<e,i=n===e;return(0,J.jsx)(`div`,{"data-testid":`onboarding-progress-step-${n}`,"data-state":r?`completed`:i?`current`:`upcoming`,className:p(`h-1.5 flex-1 rounded-full transition-colors duration-300`,r||i?`bg-white`:`bg-white/15`)},n)})})}function Ce(e){return e===`openhands`?`openhands`:K.find(({key:t})=>t===e)?.icon??`cli-generic`}function we({id:e,muted:t}){let n=Ce(e);return n===`openhands`?(0,J.jsx)(Y,{kind:`openhands`,size:16,className:p(`text-white`,t&&`opacity-55`),"data-testid":`onboarding-agent-icon-openhands`}):(0,J.jsx)(Y,{kind:n,size:18,className:t?`text-[var(--oh-muted)]`:`text-white`,"data-testid":`onboarding-agent-icon-${n}`})}function Te(){return[{id:`openhands`,label:`OpenHands`,descriptionKey:f.ONBOARDING$AGENT_OPENHANDS_DESCRIPTION},...K.map(e=>({id:e.key,label:e.display_name,descriptionKey:e.description_key}))]}function Ee({selectedAgentId:e,onSelect:t,onBack:n,onNext:r}){let{t:i}=o(`openhands`),{mutate:a,isPending:l}=B();return(0,J.jsxs)(`div`,{"data-testid":`onboarding-step-choose-agent`,className:`flex flex-col gap-6`,children:[(0,J.jsxs)(`header`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-medium text-white`,children:i(f.ONBOARDING$AGENT_TITLE)}),(0,J.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:i(f.ONBOARDING$AGENT_SUBTITLE)})]}),(0,J.jsx)(`div`,{role:`radiogroup`,"aria-label":i(f.ONBOARDING$AGENT_TITLE),className:`flex flex-col gap-3`,children:Te().map(n=>{let r=n.id===e;return(0,J.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":r,"data-testid":`onboarding-agent-option-${n.id}`,"data-selected":r,onClick:()=>t(n.id),className:p(`flex items-start justify-between gap-4 rounded-xl border px-4 py-3 text-left transition-colors cursor-pointer`,r?`border-white/45 bg-white/[0.09] shadow-none hover:border-white/45 hover:bg-white/[0.09]`:`border-white/30 bg-white/5 hover:border-white/40 hover:bg-white/[0.08]`),children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,J.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,J.jsx)(we,{id:n.id,muted:!1}),(0,J.jsx)(`span`,{className:`truncate text-base font-normal text-white`,children:n.label})]}),(0,J.jsx)(`span`,{className:`text-xs text-[var(--oh-muted)]`,children:i(n.descriptionKey)})]}),(0,J.jsx)(`div`,{className:`flex shrink-0 flex-col items-end gap-1`,children:r?(0,J.jsx)(v,{width:18,height:18,className:`mt-1 shrink-0 text-white`,"aria-hidden":!0}):null})]},n.id)})}),(0,J.jsxs)(`div`,{className:p(`sticky bottom-0 flex items-center gap-2 bg-base-secondary pt-4 pb-7`,n?`justify-between`:`justify-end`),children:[n?(0,J.jsx)(V,{testId:`onboarding-agent-back`,type:`button`,variant:`secondary`,onClick:n,isDisabled:l,children:i(f.ONBOARDING$BACK)}):null,(0,J.jsx)(V,{testId:`onboarding-agent-next`,type:`button`,variant:`primary`,isDisabled:l,onClick:()=>{let t=G(e);if(!t){r();return}a({agent_settings_diff:t},{onError:e=>{d(c(e)||i(f.ERROR$GENERIC))},onSuccess:()=>{s(i(f.SETTINGS$SAVED)),r()}})},children:i(l?f.SETTINGS$SAVING:f.ONBOARDING$NEXT)})]})]})}function De({backend:e,isConnected:t,lastError:n}){let{t:r}=o(`openhands`);if(t===!0)return(0,J.jsxs)(`div`,{role:`status`,"data-testid":`onboarding-backend-connected`,className:p(`flex items-start gap-3 rounded-xl border border-green-500/40 bg-green-500/10 px-4 py-3`),children:[(0,J.jsx)(y,{className:`mt-0.5 size-5 shrink-0 text-green-400`}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`span`,{className:`text-sm font-medium text-green-200`,children:r(f.ONBOARDING$BACKEND_CONNECTED_TITLE)}),(0,J.jsx)(`span`,{className:`text-xs text-green-200/80`,children:r(f.ONBOARDING$BACKEND_CONNECTED_BODY)})]})]});if(t===!1){let i=D(r,e,{isConnected:t,lastError:n});return(0,J.jsxs)(`div`,{role:`alert`,"data-testid":`onboarding-backend-disconnected`,className:`flex items-start gap-3 rounded-xl border border-red-500/40 bg-red-500/10 px-4 py-3`,children:[(0,J.jsx)(g,{className:`mt-0.5 size-5 shrink-0 text-red-400`}),(0,J.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,J.jsx)(`span`,{className:`text-sm font-medium text-red-200`,children:i}),(0,J.jsx)(`span`,{className:`text-xs text-red-200/80`,children:r(f.ONBOARDING$BACKEND_DISCONNECTED_BODY)})]})]})}return(0,J.jsxs)(`div`,{role:`status`,"data-testid":`onboarding-backend-checking`,className:`flex items-start gap-3 rounded-xl border border-white/10 bg-white/5 px-4 py-3`,children:[(0,J.jsx)(T,{className:`mt-0.5 size-5 shrink-0 animate-spin text-[var(--oh-text-tertiary)]`}),(0,J.jsx)(`span`,{className:`text-sm text-[var(--oh-text-tertiary)]`,children:r(f.ONBOARDING$BACKEND_CHECKING)})]})}function Oe({onBack:e,onNext:t,onClose:n}){let{t:r}=o(`openhands`),{active:i,addBackend:a,setActive:s,updateBackend:c}=u(),{trackBackendAdded:l}=z(),{backend:d}=i,g=m(d),_=F(),v=_!==null&&!g&&!(d.kind===`cloud`&&P(d.host,_)),y=g||v,b=q.useMemo(()=>N(),[]),x=y?{id:`onboarding-local-backend-draft`,name:h,host:b.baseUrl,apiKey:b.sessionApiKey,kind:`local`}:d,S=R(g?[]:[d]),C=y?null:S[d.id]?.isConnected??null,w=y?null:S[d.id]?.lastError??null,[T,D]=q.useState(!1);q.useEffect(()=>{C===!0&&D(!1)},[C]);let k=C===!0&&!T,A=q.useCallback((e,r)=>{if(g)a(e);else{let t=e.host!==d.host;c(d.id,e),t&&i.orgId!==null&&s(d.id,null)}l({backendKind:e.kind,connectionMethod:r,hasApiKey:!!e.apiKey,source:`onboarding`}),_!==null&&e.kind===`cloud`&&n?n():t()},[i.orgId,a,d.host,d.id,_,g,n,t,s,l,c]),j=p(`sticky bottom-0 mt-2 flex items-center gap-2 bg-base-secondary pt-4 pb-7`,e?`justify-between`:`justify-end`);return(0,J.jsxs)(`div`,{"data-testid":`onboarding-step-check-backend`,className:`flex flex-col gap-6`,children:[(0,J.jsxs)(`header`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-medium text-white`,children:r(y?_?f.ONBOARDING$LOGIN_TO_CLOUD_TITLE:f.BACKEND$ADD_TITLE:f.ONBOARDING$BACKEND_TITLE)}),y?null:(0,J.jsx)(`p`,{"data-testid":`onboarding-backend-subtitle`,className:`text-sm text-[var(--oh-muted)]`,children:r(f.ONBOARDING$BACKEND_SUBTITLE)})]}),y?null:(0,J.jsx)(De,{backend:x,isConnected:C,lastError:w}),C===!0?(0,J.jsxs)(`button`,{type:`button`,onClick:()=>D(e=>!e),"aria-expanded":T,"data-testid":`onboarding-backend-show-configuration`,className:`flex w-full cursor-pointer items-center justify-center gap-1 text-center text-xs text-[var(--oh-muted)] transition-colors hover:text-content-2`,children:[(0,J.jsx)(`span`,{children:r(T?f.ONBOARDING$BACKEND_HIDE_CONFIGURATION:f.ONBOARDING$BACKEND_SHOW_CONFIGURATION)}),(0,J.jsx)(E,{className:p(`h-4 w-4 shrink-0 text-muted transition-transform`,T&&`rotate-180`),"aria-hidden":!0})]}):null,(0,J.jsx)(`div`,{"data-testid":`onboarding-backend-configuration-fields`,children:k?null:(0,J.jsx)(O,{onConnected:A,testIdRoot:`onboarding-backend`,initialManualBackend:x,requireManualApiKey:M(),manualSubmitLabel:r(f.ONBOARDING$NEXT),manualSubmittingLabel:r(f.SETTINGS$SAVING),manualSubmitTestId:`onboarding-backend-next`,analyticsSource:`onboarding`})}),k?(0,J.jsxs)(`div`,{className:j,children:[e?(0,J.jsx)(V,{testId:`onboarding-backend-back`,type:`button`,variant:`secondary`,onClick:e,children:r(f.ONBOARDING$BACK)}):null,(0,J.jsx)(V,{testId:`onboarding-backend-next`,type:`button`,variant:`primary`,onClick:t,children:r(f.ONBOARDING$NEXT)})]}):null]})}var X=ae;function Z(){let e=pe(),t=me();return(0,q.useCallback)(async n=>{try{await e.mutateAsync({name:X,profile:n});let r=(await oe.getProfile(X)).profile.id;r&&await t.mutateAsync(r)}catch(e){console.error(`Failed to configure onboarding agent profile:`,e)}},[e,t])}function ke({onBack:e,onNext:t}){let{t:n}=o(`openhands`),{backend:r}=l(),i=r.kind===`local`,a=A(),s=k(),c=Z(),u=L(),d=I(),p=u??`openai/gpt-5.6-sol`,[m,h]=q.useState(null),[g,_]=q.useState(!1),v=q.useCallback(async()=>{if(!i||!m)return null;let e=m.values,t=typeof e[`llm.model`]==`string`?e[`llm.model`]:``;if(!t)return null;let n=typeof e[`llm.api_key`]==`string`?e[`llm.api_key`]:``,r=typeof e[`llm.base_url`]==`string`?e[`llm.base_url`]:``,o=fe(t),c={model:t};n&&(c.api_key=n),r&&(c.base_url=r);try{return await a.mutateAsync({name:o,request:{llm:c,include_secrets:!0}}),await s.mutateAsync(o),o}catch(e){return console.error(`Failed to persist onboarding LLM as profile:`,e),null}},[i,m,a,s]),y=q.useCallback(async()=>{_(!0);try{let e=await v();e&&await c({agent_kind:`openhands`,llm_profile_ref:e})}finally{_(!1),t()}},[v,c,t]);return(0,J.jsxs)(`div`,{"data-testid":`onboarding-step-setup-llm`,className:`flex flex-col gap-6 max-h-[calc(90vh-7rem)]`,children:[(0,J.jsxs)(`header`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-medium text-white`,children:n(f.ONBOARDING$LLM_TITLE)}),(0,J.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:n(f.ONBOARDING$LLM_SUBTITLE)})]}),(0,J.jsx)(`div`,{"data-testid":`onboarding-llm-settings`,className:`flex min-h-0 flex-1 flex-col overflow-y-auto custom-scrollbar-always`,children:d?(0,J.jsx)(j,{embedded:!0,hideSaveButton:!0,suppressSuccessToast:!0,initialValueOverrides:{"llm.model":p},onSaveSuccess:y,onSaveControlChange:h}):(0,J.jsx)(de,{})}),(0,J.jsxs)(`div`,{className:`sticky bottom-0 flex items-center justify-between gap-2 bg-base-secondary pt-4 pb-7`,children:[(0,J.jsx)(V,{testId:`onboarding-llm-back`,type:`button`,variant:`secondary`,onClick:e,children:n(f.ONBOARDING$BACK)}),(0,J.jsx)(V,{testId:`onboarding-llm-next`,type:`button`,variant:`primary`,isDisabled:!d||(m?.isSaving??!1)||g,onClick:()=>{if(m?.isDirty){m.save();return}t()},children:n(f.ONBOARDING$NEXT)})]})]})}function Ae({providerKey:e,isActive:t,onBack:n,onNext:r}){let{t:i}=o(`openhands`),a=l(),{status:s,isChecking:c}=S(e,{enabled:t}),{fields:u,values:d,setValue:p,secretExists:m,hasValueFor:h,conflicts:g,credentialsConfigured:_,consumesFileCredentials:v,save:y,isSaving:T}=w(e),E=Z(),D=W(e)??e,O=s===`authenticated`,k=je(a.backend.kind,s),A=O||u.some(e=>e.secret&&(!e.multiline||v)&&h(e.name)),j=k&&!A,M=T||j||c&&!A;return(0,J.jsxs)(`div`,{"data-testid":`onboarding-step-setup-acp-secrets`,className:`flex flex-col gap-6`,children:[(0,J.jsxs)(`header`,{className:`flex flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-medium text-white`,children:i(f.ONBOARDING$ACP_SECRETS_TITLE)}),(0,J.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:i(f.ONBOARDING$ACP_SECRETS_SUBTITLE,{provider:D})}),k&&!O?(0,J.jsx)(`p`,{"data-testid":`onboarding-acp-secrets-required-note`,className:`text-sm text-[var(--oh-muted)]`,children:i(f.ONBOARDING$ACP_SECRETS_REQUIRED_NOTE,{provider:D})}):s!==`authenticated`&&(0,J.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:i(f.ONBOARDING$ACP_SECRETS_SUBSCRIPTION_NOTE)})]}),(0,J.jsx)(x,{status:s,isChecking:c,credentialsConfigured:_,providerName:D,testIdPrefix:`onboarding-acp-auth`}),(0,J.jsx)(`div`,{className:`flex flex-col gap-5`,children:u.map(e=>(0,J.jsx)(C,{field:e,value:d[e.name]??``,onChange:t=>p(e.name,t),alreadySet:m(e.name),testId:`onboarding-acp-secret-${e.name}`,showOptionalTag:!0},e.name))}),(0,J.jsx)(b,{conflicts:g}),j?(0,J.jsx)(`p`,{"data-testid":`onboarding-acp-secrets-blocked`,className:`text-sm text-amber-300`,children:i(f.ONBOARDING$ACP_SECRETS_REQUIRED_BLOCKED)}):null,(0,J.jsxs)(`div`,{className:`sticky bottom-0 flex items-center justify-between gap-2 bg-base-secondary pt-4 pb-7`,children:[(0,J.jsx)(V,{testId:`onboarding-acp-secrets-back`,type:`button`,variant:`secondary`,onClick:n,isDisabled:T,children:i(f.ONBOARDING$BACK)}),(0,J.jsx)(V,{testId:`onboarding-acp-secrets-next`,type:`button`,variant:`primary`,isDisabled:M,onClick:async()=>{await y()&&(e!==`openhands`&&await E({agent_kind:`acp`,acp_server:e,acp_model:ie(e)??void 0}),r())},children:i(T?f.SETTINGS$SAVING:f.ONBOARDING$NEXT)})]})]})}function je(e,t){return t===`authenticated`?!1:e===`cloud`?!0:t===`unauthenticated`}function Me({onBack:e,onClose:t,onLaunched:n}){let{t:r}=o(`openhands`),{navigate:s}=H(),{backend:c}=l(),u=c.kind!==`cloud`,d=r(f.ONBOARDING$HELLO_DEFAULT_MESSAGE),[p,m]=q.useState(d),{mutate:h,isPending:g,isSuccess:v}=se(),y=i(),b=g||v||y,x=q.useRef(!1),S=p.trim().length>0&&!b&&!x.current,C=()=>{!S||x.current||(x.current=!0,h({query:p.trim(),entryPoint:`onboarding_say_hello`},{onSuccess:e=>{s(`/conversations/${e.conversation_id}`),n()},onError:()=>{x.current=!1}}))};return(0,J.jsxs)(`div`,{"data-testid":`onboarding-step-say-hello`,className:`flex max-h-[calc(90vh-7rem)] flex-col`,children:[(0,J.jsxs)(`header`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,J.jsx)(`h2`,{className:`text-2xl font-medium text-white`,children:r(f.ONBOARDING$HELLO_TITLE)}),(0,J.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:r(f.ONBOARDING$HELLO_SUBTITLE)})]}),(0,J.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),C()},"data-testid":`onboarding-hello-input-form`,className:`mt-6 box-border flex w-full shrink-0 flex-col items-start justify-center rounded-[15px] border border-[var(--oh-border)] bg-surface-raised p-4`,children:[(0,J.jsx)(`div`,{className:`relative w-full`,children:(0,J.jsx)(`div`,{className:`box-border flex w-full shrink-0 flex-row items-end justify-between gap-2 p-0 pb-[18px]`,children:(0,J.jsx)(`input`,{"data-testid":`onboarding-hello-input`,"aria-label":r(f.ONBOARDING$HELLO_TITLE),type:`text`,value:p,onChange:e=>m(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),C())},placeholder:d,disabled:b,className:`min-h-[20px] w-full flex-1 bg-transparent text-[16px] font-normal leading-[20px] text-white outline-none placeholder:text-[var(--oh-text-tertiary)] disabled:cursor-not-allowed disabled:opacity-50`})})}),(0,J.jsx)(`div`,{className:`flex w-full min-w-0 items-center justify-end gap-2`,children:(0,J.jsx)(_,{buttonClassName:``,handleSubmit:C,disabled:!S})})]}),u?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{"data-testid":`onboarding-hello-or-separator`,className:`mt-6 flex w-full items-center gap-3`,children:[(0,J.jsx)(`div`,{className:`h-px flex-1 bg-[var(--oh-border)]`}),(0,J.jsx)(`span`,{className:`text-xs uppercase text-[var(--oh-muted)]`,children:r(f.LANDING$OR)}),(0,J.jsx)(`div`,{className:`h-px flex-1 bg-[var(--oh-border)]`})]}),(0,J.jsx)(`div`,{"data-testid":`onboarding-recommended-automations`,className:`flex min-h-0 flex-1 flex-col`,children:(0,J.jsx)(a,{onLaunched:n,scrollableGrid:!0})})]}):null,(0,J.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 bg-base-secondary pt-7 pb-7`,children:[(0,J.jsx)(V,{testId:`onboarding-hello-back`,type:`button`,variant:`secondary`,onClick:e,isDisabled:b,children:r(f.ONBOARDING$BACK)}),(0,J.jsx)(V,{testId:`onboarding-hello-close`,type:`button`,variant:`secondary`,onClick:t,isDisabled:b,children:r(f.BUTTON$CLOSE)})]})]})}var Ne=t({OnboardingModal:()=>Ie}),Q=[`backend`,`agent`,`setup`,`hello`],Pe=[`agent`,`setup`,`hello`],Fe=`openhands-onboarding-started`;function $({index:e,currentStep:t,children:n}){let r=e===t,i=(e-t)*100;return(0,J.jsx)(`div`,{"data-testid":`onboarding-slide-${e}`,"data-active":r,"aria-hidden":!r,style:{transform:`translateX(${i}%)`},className:p(`w-full transition-transform duration-300 ease-out`,!r&&`pointer-events-none absolute inset-0`),children:n})}function Ie({onClose:e,initialStep:t=0,isPreview:n=!1}){let{t:r}=o(`openhands`),{data:i}=ee(),a=i?.user_consents_to_analytics===!0,{trackOnboardingStarted:s,trackOnboardingStepViewed:c,trackOnboardingCompleted:l,trackOnboardingSkipped:d}=z(),{active:h}=u(),{backend:g}=h,_=m(g),v=R(_?[]:[g]),y=F(),b=y!==null&&g.kind===`cloud`&&P(g.host,y),x=!_&&v[g.id]?.isConnected===!0&&(y===null||b),S=x?Pe:Q,[C,w]=q.useState(()=>Q[Math.min(Math.max(t,0),Q.length-1)]),[T,E]=q.useState(`openhands`),[D,O]=q.useState(()=>ue());q.useEffect(()=>{S.includes(C)||w(S[0])},[C,S]);let k=S.length,A=S.includes(C)?C:S[0],j=S.indexOf(A),M=e=>{let t=e.target.checked;O(t),le(t)},N=_||v[g.id]?.isConnected!==void 0,I=T===`openhands`,L=j===0&&F()!==null,B=q.useCallback(()=>{w(e=>{let t=S,n=t.indexOf(e);return t[Math.min((n===-1?0:n)+1,t.length-1)]})},[S]),V=q.useCallback(()=>{w(e=>{let t=S,n=t.indexOf(e);return t[Math.max((n===-1?0:n)-1,0)]})},[S]),H=q.useRef(!1);q.useEffect(()=>{n||!a||H.current||window.sessionStorage.getItem(Fe)||(H.current=!0,window.sessionStorage.setItem(Fe,`1`),s())},[n,a]);let U=q.useRef(null);q.useEffect(()=>{n||!a||!N||U.current!==A&&(U.current=A,c({step:A,stepIndex:j,totalSteps:k,agent:T}))},[n,a,N,A,j,k,T]);let W=()=>{l({agent:T}),e()},G=()=>{d({step:A,stepIndex:j,totalSteps:k,agent:T}),e()};return(0,J.jsx)(te,{"aria-label":r(f.ONBOARDING$TITLE),children:(0,J.jsxs)(`div`,{className:`relative flex flex-col items-center gap-4`,children:[(0,J.jsxs)(`section`,{"data-testid":`onboarding-modal`,"data-current-step":j,"data-preview":n?`true`:void 0,className:p(`flex flex-col gap-6 overflow-hidden rounded-2xl border border-white/10 bg-base-secondary shadow-2xl`,ne(`lg`),re,`max-h-[90vh]`),children:[(0,J.jsx)(`header`,{className:`flex flex-col gap-3 px-7 pt-7 shrink-0`,children:(0,J.jsx)(Se,{currentStep:j,totalSteps:k})}),(0,J.jsx)(`div`,{"data-testid":`onboarding-scroll-area`,className:`min-h-0 overflow-y-auto custom-scrollbar-always px-7 pb-7`,children:(0,J.jsxs)(`div`,{"data-testid":`onboarding-slide-rail`,"data-current-step":j,className:`relative overflow-clip`,children:[x?null:(0,J.jsx)($,{index:S.indexOf(`backend`),currentStep:j,children:(0,J.jsx)(Oe,{onNext:B,onClose:e})}),(0,J.jsx)($,{index:S.indexOf(`agent`),currentStep:j,children:(0,J.jsx)(Ee,{selectedAgentId:T,onSelect:E,onBack:x?void 0:V,onNext:B})}),(0,J.jsx)($,{index:S.indexOf(`setup`),currentStep:j,children:I?(0,J.jsx)(ke,{onBack:V,onNext:B}):(0,J.jsx)(Ae,{providerKey:T,isActive:A===`setup`,onBack:V,onNext:B})}),(0,J.jsx)($,{index:S.indexOf(`hello`),currentStep:j,children:(0,J.jsx)(Me,{onBack:V,onClose:G,onLaunched:W})})]})})]}),j<k-1&&!L?(0,J.jsx)(`button`,{type:`button`,"data-testid":`onboarding-skip`,onClick:G,className:`rounded-md px-3 py-2 text-sm text-[var(--oh-muted)] transition-colors hover:bg-white/5 hover:text-white cursor-pointer`,children:r(f.ONBOARDING$SKIP)}):null,A===`hello`?(0,J.jsxs)(`label`,{className:`flex cursor-pointer items-center justify-center gap-2 text-sm text-[var(--oh-muted)]`,children:[(0,J.jsx)(`input`,{"data-testid":`onboarding-skip-getting-started-checklist`,type:`checkbox`,checked:D,onChange:M,className:`size-4 cursor-pointer`}),r(f.ONBOARDING$SKIP_GETTING_STARTED_CHECKLIST)]}):null]})})}export{Ne as n,Y as r,Ie as t};
@@ -1 +1 @@
1
- import{c as e}from"./agent-server-client-options-BikiNwTa.js";import{w as t}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js";import"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-CnsDDzeE.js";import{t as n}from"./proxy-CBgMd2zf.js";function r(e){return{items:e?.items??[],currentOrgId:e?.current_org_id??null}}function i(t){if(t)return t;let n=e().backend;if(n.kind!==`cloud`)throw Error(`Cloud organization calls require a cloud backend. Active backend is local.`);return n}async function a(e){return r(await n({backend:i(e),method:`GET`,path:`/api/organizations`}))}async function o(e){let r=i(e);try{return{orgId:(await n({backend:r,method:`GET`,path:`/api/keys/current`}))?.org_id??null,isLegacyKey:!1}}catch(e){if(e instanceof t&&e.status===400)return{orgId:null,isLegacyKey:!0};throw e}}async function s(e,t){let r=await n({backend:i(t),method:`GET`,path:`/api/organizations/${encodeURIComponent(e)}/me`});return{orgId:r?.org_id??e,userId:r?.user_id??``,role:r?.role??null,permissions:Array.isArray(r?.permissions)?r.permissions:null}}export{a as n,o as r,s as t};
1
+ import{c as e}from"./agent-server-client-options-EHB23gyx.js";import{T as t}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js";import{t as n}from"./proxy-DbEf3Nqr.js";import"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-BFRW8wt-.js";function r(e){return{items:e?.items??[],currentOrgId:e?.current_org_id??null}}function i(t){if(t)return t;let n=e().backend;if(n.kind!==`cloud`)throw Error(`Cloud organization calls require a cloud backend. Active backend is local.`);return n}async function a(e){return r(await n({backend:i(e),method:`GET`,path:`/api/organizations`}))}async function o(e){let r=i(e);try{return{orgId:(await n({backend:r,method:`GET`,path:`/api/keys/current`}))?.org_id??null,isLegacyKey:!1}}catch(e){if(e instanceof t&&e.status===400)return{orgId:null,isLegacyKey:!0};throw e}}async function s(e,t){let r=await n({backend:i(t),method:`GET`,path:`/api/organizations/${encodeURIComponent(e)}/me`});return{orgId:r?.org_id??e,userId:r?.user_id??``,role:r?.role??null,permissions:Array.isArray(r?.permissions)?r.permissions:null}}async function c(e,t,r){return n({backend:i(r),method:`GET`,path:`/api/organizations/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`})}export{o as i,c as n,a as r,s as t};
@@ -0,0 +1 @@
1
+ var e={"github.com":`github`,"gitlab.com":`gitlab`,"bitbucket.org":`bitbucket`,"dev.azure.com":`azure_devops`},t={"ssh.dev.azure.com":`dev.azure.com`,"vs-ssh.visualstudio.com":`dev.azure.com`};function n(e){let n=e.toLowerCase();return Object.hasOwn(t,n)?t[n]:e}function r(e){return e.replace(/\.git$/,``)}function i(t){return t?e[t.toLowerCase()]??null:null}function a(e){let t=e.split(`/`).filter(Boolean),n=t.indexOf(`_git`);return n===-1?(t[0]===`v3`&&t.shift(),t.join(`/`)):[...t.slice(0,n),...t.slice(n+1)].join(`/`)}function o(e,t,o){let s=t&&n(t),c=r(o.replace(/^\/+|\/+$/g,``)),l=i(s);return{url:e,host:s,repository:(l===`azure_devops`?a(c):c)||null,provider:l}}function s(e){let t=e?.trim();if(!t)return null;try{let e=new URL(t);if(e.hostname)return o(t,e.hostname,e.pathname)}catch{}let n=t.match(/^[^@\s]+@([^:\s]+):(.+)$/);if(n){let e=n[1];return o(t,e,n[2])}return null}export{s as t};
@@ -1 +1 @@
1
- import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);export{t};
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";var t=e(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]);export{t};
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{t as r}from"./useTranslation-CCgUjPJF.js";import{K as i}from"./utils-D-gOfhmN.js";import{E as a,d as o}from"./messages-DmFJlW6c.js";import{t as s}from"./list-todo-Caa8E1X_.js";import{t as c}from"./brand-button-mQq2Ld1I.js";import{t as l}from"./conversation-store-DC-JlJuq.js";import{N as u}from"./llm-not-configured-banner-DMdL1vaX.js";import{_ as d,t as f,tt as p}from"./markdown-renderer-BH5pqDuJ.js";import{t as m}from"./conversation-tab-empty-state-DIhwCC2J.js";var h=e(t(),1),g=n();function _(){let{t:e}=r(`openhands`),{scrollRef:t,onChatBodyScroll:n,autoScroll:_,scrollDomToBottom:v}=a(h.useRef(null)),{planContent:y,conversationMode:b,localPlanningConversationId:x,setPlanContent:S}=l(),{data:C}=p(),{mutate:w}=d();h.useEffect(()=>{let e=x??C?.id;!e||y!==null||w({conversationId:e},{onSuccess:e=>{S(e)},onError:()=>{}})},[C?.id,x,y,w,S]),h.useEffect(()=>{_&&v()},[y,_,v]);let T=b===`plan`,{handlePlanClick:E,hasPlanner:D,isCreatingConversation:O}=u();return y==null?(0,g.jsx)(m,{icon:(0,g.jsx)(s,{"aria-hidden":!0,strokeWidth:2,className:`size-full`}),action:(0,g.jsx)(c,{type:`button`,variant:`secondary`,onClick:E,isDisabled:T||O||D,className:`min-w-40 justify-center px-6`,children:e(i.COMMON$CREATE_A_PLAN)}),children:e(i.PLANNER$EMPTY_MESSAGE)}):(0,g.jsx)(`div`,{ref:t,onScroll:e=>n(e.currentTarget),className:`flex flex-col w-full h-full p-4 overflow-auto`,children:(0,g.jsx)(f,{includeStandard:!0,components:o,children:y})})}export{_ as default};
@@ -1 +1 @@
1
- import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";var t=e(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]);export{t};
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]);export{t};
@@ -1 +1 @@
1
- import{c as e,n as t}from"./agent-server-client-options-BikiNwTa.js";import{u as n}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js";function r(){return e().backend.kind===`cloud`}function i(){return new n(t())}var a=class{static async listInstalledPlugins(){if(r())return[];try{return(await i().listInstalledPlugins()).plugins??[]}catch{return[]}}static async installPlugin(e){if(r())throw Error(`Installing plugins is only available on a local backend.`);return i().installPlugin(e)}static async setPluginEnabled(e,t){if(r())throw Error(`Enabling and disabling plugins is only available on a local backend.`);return i().setPluginEnabled(e,t)}static async uninstallPlugin(e){if(r())throw Error(`Uninstalling plugins is only available on a local backend.`);return i().uninstallPlugin(e)}static async refreshPlugin(e){if(r())throw Error(`Refreshing plugins is only available on a local backend.`);return i().refreshPlugin(e)}};export{a as t};
1
+ import{c as e,n as t}from"./agent-server-client-options-EHB23gyx.js";import{u as n}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js";function r(){return e().backend.kind===`cloud`}function i(){return new n(t())}var a=class{static async listInstalledPlugins(){if(r())return[];try{return(await i().listInstalledPlugins()).plugins??[]}catch{return[]}}static async installPlugin(e){if(r())throw Error(`Installing plugins is only available on a local backend.`);return i().installPlugin(e)}static async setPluginEnabled(e,t){if(r())throw Error(`Enabling and disabling plugins is only available on a local backend.`);return i().setPluginEnabled(e,t)}static async uninstallPlugin(e){if(r())throw Error(`Uninstalling plugins is only available on a local backend.`);return i().uninstallPlugin(e)}static async refreshPlugin(e){if(r())throw Error(`Refreshing plugins is only available on a local backend.`);return i().refreshPlugin(e)}};export{a as t};
@@ -0,0 +1 @@
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]);export{t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-Cyuzqnbw.js";import{c as t,n}from"./agent-server-client-options-BikiNwTa.js";import{p as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-Z0lly3FE.js";import{t as i}from"./proxy-CBgMd2zf.js";var a=`/api/v1/settings/profiles`;function o(){let{backend:e,orgId:n}=t();if(e.kind!==`cloud`)throw Error(`Cloud profiles call requires a cloud backend.`);return{backend:e,base:n?`/api/organizations/${encodeURIComponent(n)}/profiles`:a}}async function s(){let{backend:e,base:t}=o();return i({backend:e,method:`GET`,path:t})}async function c(e){let{backend:t,base:n}=o(),r=await i({backend:t,method:`GET`,path:`${n}/${encodeURIComponent(e)}`});return{name:r.name,config:r.config??r.llm??{},api_key_set:r.api_key_set??!1}}async function l(e,t){let{backend:n,base:r}=o();return i({backend:n,method:`POST`,path:`${r}/${encodeURIComponent(e)}`,body:t})}async function u(e){let{backend:t,base:n}=o();return i({backend:t,method:`DELETE`,path:`${n}/${encodeURIComponent(e)}`})}async function d(e,t){let{backend:n,base:r}=o();return i({backend:n,method:`POST`,path:`${r}/${encodeURIComponent(e)}/rename`,body:{new_name:t}})}async function f(e){let{backend:t,base:n}=o(),r=await i({backend:t,method:`POST`,path:`${n}/${encodeURIComponent(e)}/activate`,body:{}});return{name:r.name,message:r.message,llm_applied:r.model!=null||r.llm!=null}}var p=e({default:()=>g});function m(){return t().backend.kind===`cloud`}function h(e){if(!e||typeof e!=`object`)return!1;let t=`name`in e?e.name:void 0;if(t===`AbortError`||t===`TimeoutError`)return!0;let n=`cause`in e?e.cause:void 0;return!!n&&typeof n==`object`&&`name`in n&&(n.name===`AbortError`||n.name===`TimeoutError`)}var g=class{static async listProfiles(){return m()?s():new r(n()).listProfiles()}static async getProfile(e,t){if(m())return c(e);let i=t?{exposeSecrets:t}:{};return new r(n()).getProfile(e,i)}static async saveProfile(e,t){return m()?l(e,t):new r(n()).saveProfile(e,t)}static async deleteProfile(e){return m()?u(e):new r(n()).deleteProfile(e)}static async renameProfile(e,t){return m()?d(e,t):new r(n()).renameProfile(e,t)}static async activateProfile(e){return m()?f(e):new r(n()).activateProfile(e)}static async validateProfile(e,t){if(m())return null;let i=new r({...n(),timeout:3e4});try{return await i.validateProfile(e,t)}catch(e){let t=e&&typeof e==`object`&&`status`in e?e.status:void 0;if(t===404||t===429||typeof t==`number`&&t>=500||h(e))return null;throw e}finally{i.close()}}};export{p as n,g as t};
1
+ import{r as e}from"./rolldown-runtime-Cyuzqnbw.js";import{c as t,n}from"./agent-server-client-options-EHB23gyx.js";import{p as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js";import{t as i}from"./proxy-DbEf3Nqr.js";var a=`/api/v1/settings/profiles`;function o(){let{backend:e,orgId:n}=t();if(e.kind!==`cloud`)throw Error(`Cloud profiles call requires a cloud backend.`);return{backend:e,base:n?`/api/organizations/${encodeURIComponent(n)}/profiles`:a}}async function s(){let{backend:e,base:t}=o();return i({backend:e,method:`GET`,path:t})}async function c(e){let{backend:t,base:n}=o(),r=await i({backend:t,method:`GET`,path:`${n}/${encodeURIComponent(e)}`});return{name:r.name,config:r.config??r.llm??{},api_key_set:r.api_key_set??!1}}async function l(e,t){let{backend:n,base:r}=o();return i({backend:n,method:`POST`,path:`${r}/${encodeURIComponent(e)}`,body:t})}async function u(e){let{backend:t,base:n}=o();return i({backend:t,method:`DELETE`,path:`${n}/${encodeURIComponent(e)}`})}async function d(e,t){let{backend:n,base:r}=o();return i({backend:n,method:`POST`,path:`${r}/${encodeURIComponent(e)}/rename`,body:{new_name:t}})}async function f(e){let{backend:t,base:n}=o(),r=await i({backend:t,method:`POST`,path:`${n}/${encodeURIComponent(e)}/activate`,body:{}});return{name:r.name,message:r.message,llm_applied:r.model!=null||r.llm!=null}}var p=e({default:()=>g});function m(){return t().backend.kind===`cloud`}function h(e){if(!e||typeof e!=`object`)return!1;let t=`name`in e?e.name:void 0;if(t===`AbortError`||t===`TimeoutError`)return!0;let n=`cause`in e?e.cause:void 0;return!!n&&typeof n==`object`&&`name`in n&&(n.name===`AbortError`||n.name===`TimeoutError`)}var g=class{static async listProfiles(){return m()?s():new r(n()).listProfiles()}static async getProfile(e,t){if(m())return c(e);let i=t?{exposeSecrets:t}:{};return new r(n()).getProfile(e,i)}static async saveProfile(e,t){return m()?l(e,t):new r(n()).saveProfile(e,t)}static async deleteProfile(e){return m()?u(e):new r(n()).deleteProfile(e)}static async renameProfile(e,t){return m()?d(e,t):new r(n()).renameProfile(e,t)}static async activateProfile(e){return m()?f(e):new r(n()).activateProfile(e)}static async validateProfile(e,t){if(m())return null;let i=new r({...n(),timeout:3e4});try{return await i.validateProfile(e,t)}catch(e){let t=e&&typeof e==`object`&&`status`in e?e.status:void 0;if(t===404||t===429||typeof t==`number`&&t>=500||h(e))return null;throw e}finally{i.close()}}};export{p as n,g as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{t as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js";import{d as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js";import{S as a,_ as o,_t as s,at as c,b as l,c as u,d,ht as f,m as p,mt as m,nt as h,o as g,pt as _,rt as v,s as y,t as b,x,y as S}from"./active-backend-context-BsLfwrXB.js";import{t as C}from"./utils-D-gOfhmN.js";import{i as w}from"./use-free-models-Ci3FkKEm.js";import{n as T,t as E}from"./agent-server-ui-style-scope-DdG0ZAHu.js";var D=e(t());function O({i18n:e,defaultNS:t,children:n}){let i=(0,D.useMemo)(()=>({i18n:e,defaultNS:t}),[e,t]);return(0,D.createElement)(r.Provider,{value:i},n)}function k(){let e=(0,D.useSyncExternalStore)(S,d,()=>`pending`),t=(0,D.useRef)(!1);(0,D.useEffect)(()=>{t.current||(t.current=!0,x())},[]),(0,D.useEffect)(()=>{e===`granted`&&a()},[e]);let n=(0,D.useCallback)(()=>o(`granted`),[]),r=(0,D.useCallback)(()=>o(`denied`),[]),i=(0,D.useCallback)((e,t)=>{l(e,t)},[]),s=(0,D.useCallback)(()=>g(),[]);return{consent:e,isEnabled:e===`granted`,showConsentPrompt:e===`pending`,grantConsent:n,denyConsent:r,track:i,clearData:s}}var A=n(),j=`posthog_bootstrap`;function M(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.distinctID==`string`&&typeof t.sessionID==`string`}function N(){if(typeof window>`u`||typeof sessionStorage>`u`)return;let e=new URLSearchParams(window.location.hash.slice(1)),t=e.get(`distinct_id`),n=e.get(`session_id`);if(t&&n){let e={distinctID:t,sessionID:n};try{sessionStorage.setItem(j,JSON.stringify(e))}catch{}try{window.history.replaceState(null,``,window.location.pathname+window.location.search)}catch{}return e}try{let e=sessionStorage.getItem(j);if(!e)return;sessionStorage.removeItem(j);let t=JSON.parse(e);return M(t)?t:void 0}catch{try{sessionStorage.removeItem(j)}catch{}return}}function P(){return k(),null}function F({children:e,config:t={}}){let n=D.useRef(!1),r=t!==!1,i=t===!1?void 0:t.apiKey,a=t===!1?void 0:t.apiHost,o=t===!1?void 0:t.uiHost;return D.useLayoutEffect(()=>{u(r?{apiKey:i,apiHost:a,uiHost:o}:!1),n.current||=(y(N()),!0)},[r,a,i,o]),D.useEffect(()=>{r&&p().catch(()=>{})},[r,a,i,o]),(0,A.jsxs)(A.Fragment,{children:[r?(0,A.jsx)(P,{}):null,e]})}function I({children:e,theme:t=T,className:n,style:r,styleOverrides:i,contentClassName:a,...o}){let s=D.useMemo(()=>({...E,...i,...r}),[r,i]);return(0,A.jsx)(`div`,{"data-agent-server-ui":``,...o,className:n,style:s,children:(0,A.jsx)(`div`,{className:C(t,a,`text-foreground`),"data-theme":t,children:e})})}var L={provider:`posthog`};function R(){return w(),null}function z({children:e,queryClient:t,analytics:n,i18n:r,className:a,contentClassName:o,style:l,styleOverrides:u,theme:d,withStyleRoot:p=!0}){let g=D.useMemo(()=>t??h(),[t]),y=D.useMemo(()=>r??m(),[r]),x=D.useRef(null);x.current||={queryClient:v(),i18n:f()},c(g),s(y),D.useEffect(()=>()=>{x.current&&(c(x.current.queryClient),s(x.current.i18n))},[]);let S=(0,A.jsxs)(F,{config:n&&n.provider===`posthog`?{apiKey:n.apiKey,apiHost:n.apiHost,uiHost:n.uiHost}:!1,children:[(0,A.jsx)(R,{}),e]});return(0,A.jsx)(O,{i18n:y,defaultNS:_,children:(0,A.jsx)(i,{client:g,children:(0,A.jsx)(b,{children:p?(0,A.jsx)(I,{className:a,contentClassName:o,style:l,styleOverrides:u,theme:d,children:S}):S})})})}export{L as n,I as r,z as t};
@@ -0,0 +1 @@
1
+ import{c as e,t}from"./agent-server-client-options-EHB23gyx.js";import{a as n,r}from"./agent-server-config-C_x8Otd9.js";import{t as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js";function a(t){if(t)return t;let n=e().backend;if(n.kind!==`cloud`)throw Error(`Cloud calls require a cloud backend.`);return n}function o(t){let n=e();return n.backend.id===t.id?n.orgId:null}function s(e){let t=a(e),s=r(),c=s?n():{};return new i({host:t.host,apiKey:t.apiKey,orgId:o(t),timeout:3e4,...s?{proxy:{host:s,headers:c}}:{}})}function c(e){let n=s(e);if(!n.proxy)throw new t;return n}async function l(e){return(e.hostOverride?c(e.backend):s(e.backend)).request({method:e.method,path:e.path,body:e.body,headers:e.headers,timeoutSeconds:e.timeoutSeconds,hostOverride:e.hostOverride,authMode:e.authMode===void 0||e.authMode===`bearer`?`bearer`:e.authMode,sessionApiKey:e.sessionApiKey,responseType:e.responseType})}export{l as t};
@@ -1 +1 @@
1
- import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";var t=e(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]);export{t};
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t}from"./vendor-styling-Ck5D_A2Q.js";var n=e(t(),1),r=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},i=(e=>e?r(e):r),a=e=>e;function o(e,t=a){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r}var s=e=>{let t=i(e),n=e=>o(t,e);return Object.assign(n,t),n},c=(e=>e?s(e):s);export{c as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{b as r,f as i,k as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js";import{t as o}from"./useTranslation-CCgUjPJF.js";import{dt as s,gt as c,n as l,st as u}from"./active-backend-context-BsLfwrXB.js";import{H as d,K as f,t as p}from"./utils-D-gOfhmN.js";import{t as m}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-3eJ4ExtV.js";import{B as h,H as g,I as _,O as v,P as ee,V as y,j as b,t as te,w as ne,z as x}from"./use-tracking-ChnSFChv.js";import{l as re}from"./settings-service.api-Q9lKW1TX.js";import{n as ie}from"./use-settings-BWIH5EuN.js";import{t as S}from"./modal-backdrop-BSzNhM4r.js";import{n as C}from"./modal-classes-jvG85nkU.js";import{t as w}from"./brand-button-mQq2Ld1I.js";import{n as T}from"./navigation-context-CQZwH_tC.js";import{o as ae,s as oe,t as se}from"./conversation-store-DC-JlJuq.js";import{t as E}from"./modal-close-button-BrM5fNnn.js";import{n as ce}from"./use-create-conversation-Be-eVpFp.js";import{p as D,t as le}from"./install-server-modal-DvxxYKia.js";import{t as O}from"./scroll-fade-state-Dt_fx2kf.js";import{t as ue}from"./use-automations-CEubcYTD.js";import{a as k,i as A,n as j,r as M,t as N}from"./extension-module-card-classes-DpeaYhYo.js";import{t as P}from"./secrets-service-DU6wh3wX.js";import{t as F}from"./use-create-secret-Bk9ZxTjl.js";import{t as de}from"./mcp-installed-servers-Br4ZLsjr.js";import{t as I}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js";import{n as L,o as R,u as z}from"./mcp-marketplace-utils-BwEnDYqm.js";import{n as B}from"./skill-card-pill-row-TD39nfP3.js";import{t as V}from"./circle-plus-check-toggle-BbYBiUwv.js";var H=e(t(),1);function U(e,t){let n=i(t);return fe({filters:{...e,status:`pending`}},n).length}function W(e,t){return e.findAll(t.filters).map(e=>t.select?t.select(e):e.state)}function fe(e={},t){let n=i(t).getMutationCache(),o=H.useRef(e),s=H.useRef(null);return s.current===null&&(s.current=W(n,e)),H.useEffect(()=>{o.current=e}),H.useSyncExternalStore(H.useCallback(e=>n.subscribe(()=>{let t=a(s.current,W(n,o.current));s.current!==t&&(s.current=t,r.schedule(e))}),[n]),()=>s.current,()=>s.current)}var G=()=>{let e=T(),t=U({mutationKey:[`create-conversation`]}),{isNavigating:n}=e;return t>0||n},K=`OPENHANDS_URL`;function pe(){let e=l(),t=i(),{mutateAsync:n}=F();return(0,H.useCallback)(async()=>{let r;try{r=await t.fetchQuery({queryKey:[`secrets`,e.backend.id,e.orgId],queryFn:P.getSecretsOrThrow,staleTime:0,retry:!1,meta:{disableToast:!0}})}catch(e){return u(s(e)||c.t(f.ERROR$GENERIC)),!1}if(r.some(e=>e.name===K))return!0;try{await n({name:K,value:window.location.origin})}catch{return!1}return await t.invalidateQueries({queryKey:[`secrets`]}),!0},[e.backend.id,e.orgId,n,t])}var me=`${d.PRODUCTION}/settings/integrations`;function he(e){let t=b(),n=g(e);return n.length>0&&n.every(e=>t.includes(e))}function ge(e){switch(e){case`local`:return{target:e,testId:`responder-deployment-option-local`,titleKey:f.RESPONDER_DEPLOYMENT$LOCAL_TITLE,descriptionKey:f.RESPONDER_DEPLOYMENT$LOCAL_DESCRIPTION,primaryActionKey:f.RESPONDER_DEPLOYMENT$LOCAL_ACTION,primaryActionTestId:`responder-deployment-continue-local`,action:{kind:`launch-local`}};case`openhands-cloud`:return{target:e,testId:`responder-deployment-option-openhands-cloud`,titleKey:f.RESPONDER_DEPLOYMENT$OPENHANDS_CLOUD_TITLE,descriptionKey:f.RESPONDER_DEPLOYMENT$OPENHANDS_CLOUD_DESCRIPTION,primaryActionKey:f.RESPONDER_DEPLOYMENT$OPENHANDS_CLOUD_ACTION,primaryActionTestId:`responder-deployment-open-openhands-cloud`,action:{kind:`open-url`,url:me}};case`user-cloud`:throw Error(`User Cloud responder deployment is not yet supported`);default:return e}}var _e=[`local`,`openhands-cloud`];function q(e){return e.map((e,t)=>({automation:e,index:t})).sort((e,t)=>(t.automation.popularityRank??0)-(e.automation.popularityRank??0)||e.index-t.index).map(({automation:e})=>e)}function J(e){return e.trim().toLowerCase().replace(/&/g,`and`).replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function ve(e){return[e.id,e.name,e.name?`${e.name} Agent`:void 0,e.skill].filter(e=>!!e).map(J)}function ye(e,t){let n=new Set(t.map(e=>J(e.name)));return ve(e).some(e=>n.has(e))}function Y(e){return v().includes(e.id)}function be(e){return _.findById(e.id)==null}function xe(e){let t=q(m).filter(t=>!ye(t,e));return{proven:t.filter(Y),conversation:t.filter(e=>!Y(e)&&be(e))}}function Se(e){return[...e.proven,...e.conversation]}var Ce=2;function we(e){let[t,n]=(0,H.useState)(!1),r=(0,H.useRef)(0),i=(0,H.useRef)(0),a=(0,H.useRef)(!1),o=(0,H.useCallback)(t=>{let o=e.current;t.button!==0||!o||(a.current=!1,r.current=t.clientX,i.current=o.scrollLeft,n(!0))},[e]),s=(0,H.useCallback)(e=>{a.current&&(a.current=!1,e.preventDefault(),e.stopPropagation())},[]),c=(0,H.useCallback)(e=>{e.preventDefault()},[]);return(0,H.useEffect)(()=>{if(!t)return;let o=t=>{let o=e.current;if(o){if(!(t.buttons&1)){n(!1);return}if(!a.current){if(Math.abs(t.clientX-r.current)<Ce)return;a.current=!0}t.preventDefault(),o.scrollLeft=i.current-(t.clientX-r.current)}},s=()=>n(!1);return document.addEventListener(`mousemove`,o),document.addEventListener(`mouseup`,s),()=>{document.removeEventListener(`mousemove`,o),document.removeEventListener(`mouseup`,s)}},[t,e]),{handleMouseDown:o,handleClickCapture:s,handleDragStart:c}}var X=`pb-12`,Z=n(),Te=`flex h-10 items-start`;function Ee(e){return y(e).flatMap(e=>{let t=R(e,I);return t?[t]:[]})}function De({automation:e,entries:t,testId:n}){let r=t.slice(0,4),i=r.length>1,a=x(e);return(0,Z.jsx)(`span`,{"aria-hidden":`true`,"data-testid":n,"data-layout":i&&!a?`overlap`:void 0,className:p(Te,i&&!a&&`-space-x-2`),children:a?(0,Z.jsx)(D,{entry:null,size:`base`,fallback:(0,H.createElement)(a,{className:`h-5 w-5`,strokeWidth:2.25})}):r.length===0?(0,Z.jsx)(D,{entry:null,size:`base`}):r.map(e=>(0,Z.jsx)(D,{entry:e,size:`base`,className:i?`ring-2 ring-[var(--oh-color-base-secondary)]`:void 0},e.id))})}function Oe({installedAutomations:e,onSelect:t,className:n}){let{t:r}=o(`openhands`),i=Se(xe(e)),a=(0,H.useRef)(null),{handleMouseDown:s,handleClickCapture:c,handleDragStart:l}=we(a),[u,d]=(0,H.useState)({left:!1,right:!1}),m=(0,H.useCallback)(()=>{let e=a.current;if(!e)return;let t=O(e);d(e=>e.left===t.left&&e.right===t.right?e:t)},[]);return(0,H.useLayoutEffect)(()=>{m();let e=a.current;if(!e)return;let t=new ResizeObserver(m);return t.observe(e),Array.from(e.children).forEach(e=>{t.observe(e)}),()=>t.disconnect()},[m,i.map(e=>e.id).join(`,`)]),i.length===0?null:(0,Z.jsxs)(`section`,{"data-testid":`recommended-automations-rail`,"aria-label":r(f.RECOMMENDED_AUTOMATIONS$SECTION_LABEL),className:p(`w-full`,X,n),children:[(0,Z.jsx)(`h2`,{className:`mb-2 text-sm font-medium text-[var(--oh-foreground)]`,children:r(f.RECOMMENDED_AUTOMATIONS$SECTION_LABEL)}),(0,Z.jsxs)(`div`,{className:`relative`,children:[(0,Z.jsx)(`div`,{ref:a,role:`list`,"data-testid":`recommended-automations-rail-scroll`,onScroll:m,onMouseDown:s,onClickCapture:c,onDragStart:l,className:`flex flex-nowrap gap-3 overflow-x-auto scrollbar-hide select-none`,children:i.map(e=>(0,Z.jsx)(`div`,{role:`listitem`,children:(0,Z.jsxs)(`button`,{type:`button`,"data-testid":`recommended-automation-rail-card-${e.id}`,onClick:()=>t(e),className:p(`flex w-[220px] shrink-0 flex-col gap-3 p-3 text-left`,k,M),children:[(0,Z.jsx)(De,{automation:e,entries:Ee(e),testId:`recommended-automation-rail-icon-${e.id}`}),(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsx)(`h3`,{className:`truncate text-sm font-semibold text-white`,children:e.name}),(0,Z.jsx)(`p`,{className:`mt-0.5 line-clamp-2 text-xs leading-relaxed text-tertiary-light`,children:e.description})]})]})},e.id))}),(0,Z.jsx)(`div`,{"aria-hidden":!0,"data-testid":`recommended-automations-rail-fade-left`,"data-visible":u.left?`true`:`false`,className:p(`pointer-events-none absolute inset-y-0 left-0 z-10 w-10`,`bg-gradient-to-r from-[var(--oh-scroll-fade-from,var(--oh-color-base))] to-transparent`,`transition-opacity duration-300 ease-out motion-reduce:transition-none`,u.left?`opacity-100`:`opacity-0`)}),(0,Z.jsx)(`div`,{"aria-hidden":!0,"data-testid":`recommended-automations-rail-fade-right`,"data-visible":u.right?`true`:`false`,className:p(`pointer-events-none absolute inset-y-0 right-0 z-10 w-10`,`bg-gradient-to-l from-[var(--oh-scroll-fade-from,var(--oh-color-base))] to-transparent`,`transition-opacity duration-300 ease-out motion-reduce:transition-none`,u.right?`opacity-100`:`opacity-0`)})]})]})}var ke=`inline-flex h-10 w-10 shrink-0 overflow-hidden rounded-lg border border-white/10 bg-surface-raised shadow-[inset_0_1px_0_rgba(255,255,255,0.18)]`;function Ae(e){return e.slice(0,4)}function je({entries:e,className:t,testId:n}){let r=Ae(e);if(r.length===0)return(0,Z.jsx)(D,{entry:null,size:`md`,className:t,testId:n});if(r.length===1)return(0,Z.jsx)(D,{entry:r[0],size:`md`,className:t,testId:n});if(r.length===2)return(0,Z.jsx)(`span`,{"aria-hidden":`true`,"data-testid":n,"data-layout":`overlap`,className:p(ke,`items-center justify-center`,t),children:(0,Z.jsx)(`span`,{className:`flex items-center justify-center -space-x-2`,children:r.map(e=>(0,Z.jsx)(D,{entry:e,size:`sm`,className:`ring-2 ring-surface-raised`},e.id))})});let i=[r[0]??null,r[1]??null,r[2]??null,r[3]??null];return(0,Z.jsx)(`span`,{"aria-hidden":`true`,"data-testid":n,"data-layout":`quadrants`,className:p(ke,`grid grid-cols-2 grid-rows-2 gap-0.5 p-1`,t),children:i.map((e,t)=>e?(0,Z.jsx)(`span`,{className:`flex items-center justify-center`,children:(0,Z.jsx)(D,{entry:e,size:`xs`})},e.id):(0,Z.jsx)(`span`,{"aria-hidden":`true`},`empty-${t}`))})}function Q({count:e}){return(0,Z.jsx)(`span`,{className:`ml-2 inline-flex items-center justify-center rounded-full bg-surface-raised px-2 py-0.5 text-xs text-foreground`,children:e})}var Me=q(m);function Ne(e){return v().includes(e.id)}function Pe(e){return y(e).map(e=>{let t=R(e,I);return{id:e,entry:t,mcpInstallable:!!t&&z(t)}})}function Fe(e,t,n){let r=n.trim().toLowerCase();return r?[e.name,e.category,e.description,h(e),...t.flatMap(({entry:e,id:t})=>e?[e.name,t,...e.keywords??[]]:[t])].join(` `).toLowerCase().includes(r):!0}function Ie(e,t,n,r){let i=e.map(({id:e,entry:n,mcpInstallable:i})=>{let a=!!n&&L(n,t),o=n?.name??e;return{id:`integration-${e}`,node:(0,Z.jsxs)(`span`,{className:p(A,`gap-1`),children:[(0,Z.jsx)(D,{entry:n,size:`xs`}),o,a?(0,Z.jsx)(`span`,{className:`text-white`,children:r(f.RECOMMENDED_AUTOMATIONS$CONNECTED)}):n?i?null:(0,Z.jsx)(`span`,{className:`text-tertiary-alt`,"data-testid":`automation-integration-external-${e}`,children:r(f.RECOMMENDED_AUTOMATIONS$EXTERNAL_SETUP)}):(0,Z.jsx)(`span`,{className:`text-tertiary-alt`,"data-testid":`recommended-automation-integration-${e}`,children:r(f.RECOMMENDED_AUTOMATIONS$UNKNOWN_SETUP)})]})}});return n>0&&i.push({id:`missing-connect`,node:(0,Z.jsx)(`span`,{className:A,children:r(f.RECOMMENDED_AUTOMATIONS$MISSING_CONNECT,{count:n})})}),i}function Le({automation:e,integrations:t,size:n,testId:r}){let i=x(e);return i?(0,Z.jsx)(D,{entry:null,size:n,testId:r,fallback:(0,H.createElement)(i,{className:`h-5 w-5`,strokeWidth:2.25})}):(0,Z.jsx)(je,{entries:t.flatMap(({entry:e})=>e?[e]:[]),testId:r})}function $({automations:e,installedServers:t,onSelect:n,translate:r}){return(0,Z.jsx)(`div`,{className:p(`mt-3`,N),children:e.map(e=>{let i=Pe(e),a=i.filter(({entry:e,mcpInstallable:n})=>!!e&&n&&!L(e,t)).length;return(0,Z.jsx)(`button`,{type:`button`,"data-testid":`recommended-automation-card-${e.id}`,onClick:()=>n(e),className:p(`flex min-w-0 overflow-hidden p-4 text-left`,k,M),children:(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-3`,children:[(0,Z.jsx)(Le,{automation:e,integrations:i,size:`md`,testId:`recommended-automation-icon-${e.id}`}),(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-3`,children:[(0,Z.jsxs)(`header`,{className:`flex items-start justify-between gap-3`,children:[(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsx)(`h3`,{className:`truncate text-sm font-semibold text-white`,children:e.name}),(0,Z.jsx)(`p`,{className:`mt-0.5 truncate text-xs text-tertiary-alt`,children:e.category})]}),(0,Z.jsx)(V,{testId:`recommended-automation-plus-${e.id}`})]}),(0,Z.jsx)(`p`,{className:`line-clamp-2 text-xs leading-relaxed text-tertiary-light`,children:e.description}),(0,Z.jsx)(B,{pills:Ie(i,t,a,r),testId:`recommended-automation-pills-${e.id}`})]})]})},e.id)})})}function Re({backendKind:e,installedServers:t,query:n=``,onSelect:r,scrollableGrid:i=!1}){let{t:a}=o(`openhands`),s=Me.filter(e=>Fe(e,Pe(e),n));if(s.length===0)return null;let c=s.filter(Ne),l=s.filter(e=>!Ne(e));return(0,Z.jsx)(`section`,{"data-testid":`recommended-automations-section`,className:p(i&&`flex min-h-0 flex-1 flex-col`),children:(0,Z.jsxs)(`div`,{"data-testid":i?`recommended-automations-scroll-area`:void 0,className:p(`mt-3`,j,i&&`min-h-0 flex-1 overflow-y-auto custom-scrollbar-always`),children:[c.length>0&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`flex items-center`,children:[(0,Z.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:a(f.RECOMMENDED_AUTOMATIONS$SECTION_TITLE)}),(0,Z.jsx)(Q,{count:c.length})]}),(0,Z.jsx)(`p`,{className:`mt-1 text-sm text-muted`,children:a(f.RECOMMENDED_AUTOMATIONS$SECTION_DESCRIPTION)}),(0,Z.jsx)($,{automations:c,installedServers:t,onSelect:r,translate:a})]}),l.length>0&&(0,Z.jsxs)(`section`,{"data-testid":`recommended-automations-beta-section`,className:p(c.length>0&&`mt-8`),children:[(0,Z.jsxs)(`div`,{"data-testid":`recommended-automations-beta-heading`,className:`flex items-center`,children:[(0,Z.jsx)(`h2`,{className:`text-base font-semibold text-foreground`,children:a(f.RECOMMENDED_AUTOMATIONS$BETA_LABEL)}),(0,Z.jsx)(Q,{count:l.length})]}),(0,Z.jsx)($,{automations:l,installedServers:t,onSelect:r,translate:a})]})]})})}function ze({isOpen:e,isPending:t,onClose:n,onContinueLocal:r,onOpenUrl:i}){let{t:a}=o(`openhands`);return e?(0,Z.jsx)(S,{onClose:n,closeOnEscape:!t,closeOnBackdropClick:!t,"aria-label":a(f.RESPONDER_DEPLOYMENT$TITLE),children:(0,Z.jsxs)(`div`,{"data-testid":`responder-deployment-modal`,className:`relative flex w-full max-w-3xl flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary`,children:[(0,Z.jsx)(E,{onClose:n,testId:`responder-deployment-modal-close`,disabled:t}),(0,Z.jsxs)(`header`,{className:`flex-shrink-0 px-6 pb-4 pt-6`,children:[(0,Z.jsx)(`h2`,{className:p(`pr-6`,C),children:a(f.RESPONDER_DEPLOYMENT$TITLE)}),(0,Z.jsx)(`p`,{className:`mt-2 text-sm text-muted`,children:a(f.RESPONDER_DEPLOYMENT$DESCRIPTION)})]}),(0,Z.jsx)(`div`,{className:`flex flex-col gap-3 px-6 pb-6 sm:flex-row`,children:_e.map(e=>{let n=ge(e),{action:o}=n;return(0,Z.jsxs)(`div`,{"data-testid":n.testId,className:`flex flex-1 flex-col gap-3 rounded-xl border border-[var(--oh-border)] bg-surface-raised p-4`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Z.jsx)(`h3`,{className:`text-sm font-semibold text-white`,children:a(n.titleKey)}),(0,Z.jsx)(`p`,{className:`text-xs leading-relaxed text-tertiary-light`,children:a(n.descriptionKey)})]}),(0,Z.jsx)(w,{type:`button`,variant:`primary`,className:`mt-auto`,testId:n.primaryActionTestId,isDisabled:t,"aria-busy":t&&o.kind===`launch-local`?!0:void 0,onClick:()=>{o.kind===`launch-local`?r():i(o.url)},children:a(n.primaryActionKey)})]},n.target)})})]})}):null}function Be(e){return g(e).map(e=>R(e,I)).filter(e=>!!e).filter(z)}function Ve({query:e,onLaunched:t,scrollableGrid:n=!1,variant:r=`catalog`,className:i}){let a=l(),{navigate:o}=T(),{data:s}=ie(),{trackPrebuiltAutomationEnabled:c}=te(),u=ce(),d=pe(),f=G(),p=se(e=>e.setMessageToSend),[m,g]=(0,H.useState)(null),[v,y]=(0,H.useState)(null),[b,x]=(0,H.useState)([]),S=(0,H.useRef)(!1),C=(0,H.useRef)(!1),w=(0,H.useRef)(!1),[E,D]=(0,H.useState)(!1),O=r===`rail`,{data:k,isLoading:A}=ue({enabled:O&&a.backend.kind===`local`}),j=(0,H.useMemo)(()=>de(s?.mcp_config??re(s?.agent_settings?.mcp_config)).filter(e=>e.enabled!==!1),[s?.agent_settings?.mcp_config,s?.mcp_config]),M=(0,H.useCallback)(e=>{if(C.current||u.isPending||f)return;if(C.current=!0,_.findById(e.id)){o?.(ne(e.id)),t?.();return}let n=h(e);u.mutate({},{onSuccess:r=>{c({automationName:e.name,automationCategory:e.category}),r.conversation_id.startsWith(`task-`)&&r.task_id?oe(r.task_id,n):ae(r.conversation_id,{draftMessage:n}),o?.(`/conversations/${r.conversation_id}`),t?.(),window.setTimeout(()=>p(n),0)},onError:()=>{C.current=!1}})},[a.backend.kind,u,f,o,t,p,c]),N=(0,H.useCallback)(e=>Be(e).filter(e=>!L(e,j)),[j]),P=e=>{let t=N(e);if(t.length===0){M(e);return}g(e),x(t)},F=e=>{if(!(C.current||u.isPending||f||b.length>0||v!==null)){if(he(e)){y(e);return}P(e)}},I=async()=>{let e=v;if(!(!e||w.current)){w.current=!0,D(!0);try{if(!await d())return;y(null),P(e)}finally{w.current=!1,D(!1)}}},R=e=>{y(null),window.open(e,`_blank`,`noopener,noreferrer`)},z=()=>{y(null)},B=()=>{if(S.current){S.current=!1;return}g(null),x([])},V=()=>{S.current=!0,x(e=>{let t=e.slice(1);if(t.length===0){let e=m;window.setTimeout(()=>{g(null),e&&M(e)},0)}return t})},U=b[0]??null;return!ee()||a.backend.kind===`cloud`||O&&A?null:(0,Z.jsxs)(Z.Fragment,{children:[O?(0,Z.jsx)(Oe,{className:i,installedAutomations:k?.automations??[],onSelect:F}):(0,Z.jsx)(Re,{backendKind:a.backend.kind,installedServers:j,query:e,onSelect:F,scrollableGrid:n}),U&&(0,Z.jsx)(le,{entry:U,existingServers:j,onClose:B,onSuccess:V},U.id),(0,Z.jsx)(ze,{isOpen:v!==null,isPending:E,onClose:z,onContinueLocal:I,onOpenUrl:R})]})}export{U as a,G as i,Q as n,X as r,Ve as t};
@@ -1 +1 @@
1
- import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BfkNGovw.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
1
+ import{i as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";var t=e(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]);export{t};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/manage-backends-modal-DqCJohsX.js","assets/rolldown-runtime-Cyuzqnbw.js","assets/vendor-styling-Ck5D_A2Q.js","assets/active-backend-context-BsLfwrXB.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~b0x1wrp2-D6owle9R.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js","assets/agent-server-client-options-EHB23gyx.js","assets/agent-server-config-C_x8Otd9.js","assets/utils-D-gOfhmN.js","assets/useQuery-DAAacS7O.js","assets/backend-form-modal-DeaUJIik.js","assets/chevron-down-Cr6Fn_wS.js","assets/cloud-funnel-analytics-D02kgq1s.js","assets/info-BcajzHn1.js","assets/useTranslation-CCgUjPJF.js","assets/use-tracking-ChnSFChv.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-3eJ4ExtV.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C7HiY4Ae.js","assets/bot-ByolqPEr.js","assets/proxy-DbEf3Nqr.js","assets/use-onboarding-completion-CEgjL02y.js","assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~inibp4qe-BFRW8wt-.js","assets/useQueries-pUohFMSP.js","assets/organization-service.api-DmFUEmu5.js","assets/brand-button-mQq2Ld1I.js","assets/form-control-classes-lQfLxzH4.js","assets/settings-input-Cm4VxUon.js","assets/modal-backdrop-BSzNhM4r.js","assets/modal-body-DBweM2EN.js","assets/modal-close-button-BrM5fNnn.js","assets/navigation-context-CQZwH_tC.js","assets/modal-classes-jvG85nkU.js","assets/pencil-q-ihqDYv.js","assets/plus-C2e21TFC.js","assets/refresh-cw-BtdC3T8P.js","assets/trash-2-Bb40zQzs.js","assets/confirmation-modal-BmVt_c0I.js","assets/use-cloud-current-user-id-BEKRd6XZ.js","assets/api-key-entry-screen-fAIld-n7.js","assets/onboarding-modal-CnliiaSN.js","assets/recommended-automations-launcher-r0oI91HN.js","assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-CxhwKuAd.js","assets/conversation-store-DC-JlJuq.js","assets/react-BX7IV650.js","assets/secrets-service-DU6wh3wX.js","assets/settings-service.api-Q9lKW1TX.js","assets/settings-CKqk8ZnH.js","assets/install-server-modal-DvxxYKia.js","assets/useMutation-Cszf8mKy.js","assets/styled-tooltip-DVAlWYnL.js","assets/use-settings-BWIH5EuN.js","assets/mcp-marketplace-utils-BwEnDYqm.js","assets/skill-card-pill-row-TD39nfP3.js","assets/extension-module-card-classes-DpeaYhYo.js","assets/circle-plus-check-toggle-BbYBiUwv.js","assets/checkmark-XZyokq_Y.js","assets/x-mark-BopmFoBq.js","assets/use-create-conversation-Be-eVpFp.js","assets/agent-server-conversation-service.api-BaVQ6NpE.js","assets/profiles-service.api-DdF_4Zhe.js","assets/llm-subscription-service-BiQaZbvv.js","assets/llm-subscription-DTqtBCWz.js","assets/acp-providers-BQ4o4vqy.js","assets/skill-enablement-DXeaImBz.js","assets/agent-profiles-service.api-U-9YzDFU.js","assets/plugins-management-service-CcEpfNKz.js","assets/use-agent-profiles-LCvb5OXT.js","assets/use-llm-profiles-xtCBMbef.js","assets/use-create-secret-Bk9ZxTjl.js","assets/use-automations-CEubcYTD.js","assets/automation-C_eCrGyP.js","assets/mcp-installed-servers-Br4ZLsjr.js","assets/scroll-fade-state-Dt_fx2kf.js","assets/chat-send-button-DM3JgMc2.js","assets/check-Bo8s5Ylg.js","assets/circle-check-5pH3qCji.js","assets/use-acp-credential-form-CJ5wPsQm.js","assets/loader-circle-BxJgk73D.js","assets/use-get-secrets-fqS0kxt6.js","assets/llm-settings-dkQ5Oq7W.js","assets/back-nav-button-DWNiN277.js","assets/navigation-link-Bxo3-4vo.js","assets/map-provider-iRs80q_6.js","assets/external-link-Bd7Tga-1.js","assets/triangle-alert-DEdu-b_L.js","assets/use-free-models-Ci3FkKEm.js","assets/use-can-manage-org-profiles-CB8ybxFK.js","assets/dropdown-classes-goDldkiu.js","assets/badge-Cdnei7Ly.js","assets/base-modal-Ds7grR67.js","assets/sdk-section-page-DFEiuiFQ.js","assets/switch-skeleton-DwOoCqaL.js","assets/schema-field-c3Ncgm4x.js","assets/dist-Bl64nBZL.js","assets/settings-dropdown-input-BRR2OZwi.js","assets/settings-switch-seaSJc7t.js","assets/toggle-switch-DeiG9Mf6.js","assets/use-is-authed-A2Yinlt0.js","assets/typography-NarNyelM.js","assets/use-save-settings-CikTu5xV.js","assets/copy-to-clipboard-button-DVNXLylP.js","assets/copy-Drmhc2jD.js","assets/loading-spinner-DK1sAwVg.js","assets/settings-section-header-context-BOJ_Fbak.js","assets/u-check-circle-BKn1spCL.js","assets/u-edit-DAkcF52u.js","assets/api-error-message-BXo0lCI5.js","assets/format-model-name-Dfh9Udrx.js","assets/settings-list-classes-CaUfKZ33.js","assets/openhands-logo-BS-Epajy.js","assets/sidebar-onboarding-checklist-storage-BP1kzn6p.js","assets/use-activate-agent-profile-iQZ0U3qV.js","assets/use-save-agent-profile-D7hJuW_u.js","assets/terminal-BUpID2wS.js"])))=>i.map(i=>d[i]);
2
+ import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,xt as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{F as i,R as a,U as o,_ as s,g as c,l,p as u,u as d,z as f}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~i58xkef6-cHFhpUBq.js";import{f as p}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew9ih1s8-40UR63Gt.js";import{l as m,t as h}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~czjee3a3-BXXGJNDU.js";import{t as ee}from"./useQuery-DAAacS7O.js";import{t as g}from"./useTranslation-CCgUjPJF.js";import{r as _}from"./providers-BWRnl31s.js";import{B as v,E as y,W as b,Y as x,Z as te,_ as S,n as C,ot as w,pt as T,r as ne,yt as E}from"./active-backend-context-BsLfwrXB.js";import{K as D}from"./utils-D-gOfhmN.js";import{u as O}from"./agent-server-client-options-EHB23gyx.js";import{l as k,m as re,p as ie,u as A}from"./agent-server-config-C_x8Otd9.js";import{n as ae,o as j,r as M,t as N}from"./use-onboarding-completion-CEgjL02y.js";import{t as P}from"./loading-spinner-DK1sAwVg.js";import{t as F}from"./use-config-3WYcJsgC.js";import{n as I}from"./use-settings-BWIH5EuN.js";import{t as L}from"./use-save-settings-CikTu5xV.js";import{t as R}from"./modal-backdrop-BSzNhM4r.js";import{n as z}from"./modal-body-DBweM2EN.js";import{n as B,r as V}from"./base-modal-Ds7grR67.js";import{t as H}from"./brand-button-mQq2Ld1I.js";import{t as U}from"./navigation-context-CQZwH_tC.js";import{i as W,n as G}from"./color-themes-DTj5Ylbr.js";var K=e(t(),1),q=`/api/authenticate`,J=`/api/analytics/events`,oe=`/login`,se=`returnTo`,ce=new Set([`localhost`,`127.0.0.1`,`::1`]);function le(){return typeof window>`u`?`/`:`${window.location.pathname}${window.location.search}${window.location.hash}`}function ue(){return typeof window>`u`?!1:ce.has(window.location.hostname)}function de(){return k()===`cookie`&&!ue()}var Y=!1;async function fe(){if(!Y){Y=!0;try{await m.post(J,{event_type:`canvas_authenticated`,client_version:y},{withCredentials:!0})}catch{}}}async function pe(){try{return await m.post(q,null,{withCredentials:!0}),fe(),!0}catch(e){if(m.isAxiosError(e)&&e.response?.status===401)return!1;throw e}}function me(e=le()){return`${oe}?${new URLSearchParams({[se]:e}).toString()}`}function he(){typeof window>`u`||window.location.assign(me())}var X=r();function ge({backend:e,onChoice:t}){let{t:n,ready:r}=g(T),i=j([e])[e.id]?.isConnected===!0,{data:a,isSuccess:o}=I(),{mutateAsync:s,isPending:c}=L(),[l,u]=K.useState(!1),[d,f]=K.useState(!1);K.useEffect(()=>{f(!1)},[e.id]);let p=i&&o&&a?.user_consents_to_analytics===null&&!d;return K.useEffect(()=>{if(r&&p){let e=setTimeout(()=>u(!0),50);return()=>clearTimeout(e)}u(!1)},[r,p]),!p||!l?null:(0,X.jsx)(R,{elevated:!0,"aria-label":n(D.TELEMETRY$CONSENT_TITLE),children:(0,X.jsx)(`form`,{"data-testid":`telemetry-consent-form`,onSubmit:async e=>{e.preventDefault();let n=new FormData(e.currentTarget).get(`analytics`)===`on`;try{await s({user_consents_to_analytics:n})}catch{return}f(!0),await S(n?`granted`:`denied`),t?.(n)},className:`flex flex-col gap-2`,children:(0,X.jsxs)(z,{className:`border border-[var(--oh-border)]`,children:[(0,X.jsx)(V,{title:n(D.TELEMETRY$CONSENT_TITLE)}),(0,X.jsx)(B,{children:n(D.TELEMETRY$CONSENT_DESCRIPTION)}),(0,X.jsx)(`p`,{className:`text-xs text-neutral-400`,children:n(D.TELEMETRY$BACKEND_SCOPE,{name:e.name,host:e.host})}),(0,X.jsxs)(`label`,{className:`flex gap-2 items-center self-start text-sm cursor-pointer`,children:[(0,X.jsx)(`input`,{name:`analytics`,type:`checkbox`,defaultChecked:!0,className:`w-4 h-4 cursor-pointer`}),n(D.TELEMETRY$SEND_ANONYMOUS_DATA)]}),(0,X.jsx)(H,{testId:`confirm-telemetry-preferences`,type:`submit`,variant:`primary`,className:`w-full`,isDisabled:c,children:n(D.TELEMETRY$CONFIRM_PREFERENCES)})]})})})}function Z({onChoice:e}){let{backend:t}=C();return A()!==null||t.kind!==`local`?null:(0,X.jsx)(ge,{backend:t,onChoice:e})}function _e(){return K.useEffect(()=>{G(W())},[]),null}var ve=K.lazy(()=>n(()=>import(`./manage-backends-modal-DqCJohsX.js`).then(e=>e.n).then(e=>({default:e.ManageBackendsModal})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39]))),ye=K.lazy(()=>n(()=>import(`./api-key-entry-screen-fAIld-n7.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,8,9,10,12,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]))),be=K.lazy(()=>n(()=>import(`./onboarding-modal-CnliiaSN.js`).then(e=>e.n).then(e=>({default:e.OnboardingModal})),__vite__mapDeps([41,1,2,3,4,5,6,7,8,9,10,18,42,43,16,44,45,17,19,11,20,21,46,47,48,49,50,26,27,28,51,29,31,52,53,33,54,55,56,57,58,32,59,60,23,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,12,13,14,15,22,24,25,30,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115]))),xe=K.lazy(()=>n(()=>import(`./backend-form-modal-DeaUJIik.js`).then(e=>e.i).then(e=>({default:e.BackendFormModal})),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33])));function Q({children:e}){return(0,X.jsxs)(`html`,{lang:`en`,children:[(0,X.jsxs)(`head`,{children:[(0,X.jsx)(`meta`,{charSet:`utf-8`}),(0,X.jsx)(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`}),(0,X.jsx)(d,{}),(0,X.jsx)(l,{})]}),(0,X.jsxs)(`body`,{"data-agent-server-ui":``,className:`m-0`,children:[(0,X.jsxs)(_,{contentClassName:`min-h-screen`,children:[(0,X.jsx)(_e,{}),e,(0,X.jsx)(h,{toastOptions:w}),(0,X.jsx)(`div`,{id:`modal-portal-exit`})]}),(0,X.jsx)(s,{}),(0,X.jsx)(c,{})]})]})}function $(){return(0,X.jsx)(`main`,{className:`min-h-screen bg-base px-6 py-10 text-white`,children:(0,X.jsx)(`div`,{className:`mx-auto flex min-h-screen max-w-6xl items-center justify-center`,children:(0,X.jsx)(`div`,{className:`rounded-3xl border border-white/10 bg-base/80 px-8 py-10 shadow-2xl`,children:(0,X.jsx)(P,{size:`large`})})})})}function Se(){let e=p(),t=K.useCallback(()=>{O()&&(b(),e.invalidateQueries({queryKey:v.WEB_CLIENT_CONFIG}))},[e]);return(0,X.jsx)(`main`,{"data-testid":`agent-server-onboarding-screen`,className:`min-h-screen bg-base`,children:(0,X.jsx)(K.Suspense,{fallback:null,children:(0,X.jsx)(ve,{onClose:t,recoveryMode:!0})})})}function Ce({onClose:e}){let t=i(),n=a(),r=f(),o=t.pathname.match(/^\/conversations\/([^/]+)/)?.[1]??null,s=K.useMemo(()=>({currentPath:t.pathname,conversationId:o,isNavigating:!!r.location,navigate:(e,t)=>n(e,t)}),[o,t.pathname,n,r.location]);return A()===null?(0,X.jsx)(`main`,{"data-testid":`first-run-onboarding-screen`,className:`min-h-screen bg-base`,children:(0,X.jsx)(U,{value:s,children:(0,X.jsx)(K.Suspense,{fallback:(0,X.jsx)($,{}),children:(0,X.jsx)(be,{onClose:e})})})}):(0,X.jsx)(`main`,{"data-testid":`first-run-onboarding-screen`,className:`min-h-screen bg-base`,children:(0,X.jsx)(K.Suspense,{fallback:(0,X.jsx)($,{}),children:(0,X.jsx)(xe,{mode:`add`,onClose:e,source:`manage_backends_modal`,hideCloseButton:!0})})})}var we=()=>[{rel:`icon`,type:`image/svg+xml`,href:E(`/favicon.svg`)}],Te=()=>[{title:`OpenHands`},{name:`description`,content:`Let's Start Building!`}],Ee=o(function(){let e=ie(),t=!!O()?.apiKey,n=e&&!t,{active:r}=ne(),i=p(),a=A(),o=k(),s=a!==null,c=s&&r.backend.kind===`cloud`&&re(r.backend.host,a),{isCompleted:l,markCompleted:d}=N(),f=de(),m=s?!f&&(!c||o!==`cookie`&&!l):!l,h=ee({queryKey:v.MAIN_APP_COOKIE_AUTH,queryFn:pe,enabled:f&&!m,retry:!1,staleTime:1e3*60*5,meta:{disableToast:!0}}),g=f&&!m&&h.isPending&&!h.isError,_=f&&h.data===!1,y=!f||h.data===!0||h.isError;K.useEffect(()=>{_&&he()},[_]);let b=F({enabled:!n&&!m&&y}),S=j(r.backend.kind===`cloud`&&y?[r.backend]:[])[r.backend.id],C=r.backend.kind===`cloud`&&S?.isConnected===!1&&M(S.lastError),w=f&&C;K.useEffect(()=>{w&&i.invalidateQueries({queryKey:v.MAIN_APP_COOKIE_AUTH})},[w,i]);let T=r.backend.kind===`cloud`&&S?.disabled===!0&&ae(S.lastError);return m?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Ce,{onClose:d}),(0,X.jsx)(Z,{})]}):g||_||w&&h.isFetching?(0,X.jsx)($,{}):n||x(b.error)?(0,X.jsx)(K.Suspense,{fallback:(0,X.jsx)($,{}),children:(0,X.jsx)(ye,{})}):b.isPending||b.isLoading?(0,X.jsx)($,{}):C||T||te(b.error)?(0,X.jsx)(Se,{}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(u,{}),(0,X.jsx)(Z,{})]})});export{Q as Layout,Ee as default,we as links,Te as meta};