@openhands/agent-canvas 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1590) hide show
  1. package/README.md +1 -1
  2. package/README.windows.md +2 -2
  3. package/build/assets/acp-providers-BKvmTf82.js +1 -0
  4. package/build/assets/active-backend-context-DKFSMbn3.js +2 -0
  5. package/build/assets/agent-context-settings-D3PjSTU1.js +1 -0
  6. package/build/assets/agent-profiles-settings-D4cY5U2T.js +1 -0
  7. package/build/assets/agent-server-conversation-service.api-DozDKIW_.js +86 -0
  8. package/build/assets/agent-settings-351vXWc9.js +2 -0
  9. package/build/assets/agent-settings-Ce7BDZ6I.js +1 -0
  10. package/build/assets/alert-banner-Kyy1YWZU.js +1 -0
  11. package/build/assets/api-error-message-BJyfWp6p.js +1 -0
  12. package/build/assets/api-key-entry-screen-INIxqAMs.js +1 -0
  13. package/build/assets/app-settings-CbHqzQus.js +1 -0
  14. package/build/assets/automation-detail-DXDhUwPq.js +3 -0
  15. package/build/assets/automation-export-BRopEHMu.js +2 -0
  16. package/build/assets/automation-git-sync-CzyS4cn1.js +1 -0
  17. package/build/assets/automation-setup-route-FRr05f_g.js +1 -0
  18. package/build/assets/automation-templates-C_0FZgLG.js +1 -0
  19. package/build/assets/automations-list-CERuQWE6.js +1 -0
  20. package/build/assets/back-nav-button-Dm9tIjVf.js +1 -0
  21. package/build/assets/backend-form-modal-DK78-jn1.js +1 -0
  22. package/build/assets/backend-synced-settings-badge-3fOwg6Bd.js +1 -0
  23. package/build/assets/badge-D4SqUCsR.js +1 -0
  24. package/build/assets/base-modal-C7_BDl_U.js +1 -0
  25. package/build/assets/bot-C-0Wu7vQ.js +1 -0
  26. package/build/assets/brand-button-Dxv6PDeN.js +1 -0
  27. package/build/assets/browser-11etCQ04.js +7 -0
  28. package/build/assets/browser-tab-BAl4ckJE.js +1 -0
  29. package/build/assets/chat-send-button-DWwR2cgI.js +1 -0
  30. package/build/assets/check-Cf2YoT90.js +1 -0
  31. package/build/assets/chevron-down-C3OQ-ehx.js +1 -0
  32. package/build/assets/chevron-right-CN1uUiJ1.js +1 -0
  33. package/build/assets/circle-check-g5yeGMd-.js +1 -0
  34. package/build/assets/circle-plus-check-toggle-CBh_qomE.js +1 -0
  35. package/build/assets/cloud-funnel-analytics-287iIERo.js +1 -0
  36. package/build/assets/cog-C4rrw-ZK.js +1 -0
  37. package/build/assets/command-menu-BZQ8S3Ke.js +1 -0
  38. package/build/assets/commits-tab-DZtJgaDM.js +1 -0
  39. package/build/assets/condenser-settings-BcNmYR4s.js +1 -0
  40. package/build/assets/confirmation-modal-Bk4JRcCM.js +1 -0
  41. package/build/assets/context-menu-list-item-lVYETtY5.js +1 -0
  42. package/build/assets/conversation-CchMzpGl.js +1 -0
  43. package/build/assets/conversation-Dpzftz57.js +93 -0
  44. package/build/assets/conversation-panel-CchMzpGl.js +1 -0
  45. package/build/assets/conversation-state-store-a9d2fxRc.js +1 -0
  46. package/build/assets/conversation-store-Ca3ghXap.js +6 -0
  47. package/build/assets/conversation-tab-empty-state-HJtkmHZj.js +1 -0
  48. package/build/assets/copy-to-clipboard-button-Cjkswvnj.js +1 -0
  49. package/build/assets/device-verify-EZhHhBT7.js +1 -0
  50. package/build/assets/dropdown-classes-DJe-E6MC.js +1 -0
  51. package/build/assets/edit-automation-modal-D-urtv8n.js +1 -0
  52. package/build/assets/empty-state-CvaVahVr.js +1 -0
  53. package/build/assets/entry.client-C7Bi2tkU.js +2 -0
  54. package/build/assets/enum-filter-dropdown-DliX_Lo0.js +1 -0
  55. package/build/assets/environment-switch-overlay-CEKrFiMw.js +1 -0
  56. package/build/assets/error-state-BALXiBNy.js +1 -0
  57. package/build/assets/extension-module-card-classes-DpeaYhYo.js +1 -0
  58. package/build/assets/extensions-hub-CFduxBnk.js +1 -0
  59. package/build/assets/extensions-navigation-BeC224yX.js +1 -0
  60. package/build/assets/external-link-DFpYunfj.js +1 -0
  61. package/build/assets/files-tab-CL3J9b3p.js +1 -0
  62. package/build/assets/form-control-classes-CGw40z5h.js +1 -0
  63. package/build/assets/get-git-path-DlAJa_i6.js +1 -0
  64. package/build/assets/git-repo-dropdown-DGMEhz7d.js +1 -0
  65. package/build/assets/git-repo-dropdown-ai8qaNkD.js +1 -0
  66. package/build/assets/highlighted-source-view-C3sxykQi.js +1 -0
  67. package/build/assets/home-BCGlNJCA.js +1 -0
  68. package/build/assets/home-DB1pRqTC.js +1 -0
  69. package/build/assets/home-automation-run-tooltip-CooFQRIG.js +1 -0
  70. package/build/assets/home-store-Dl1dPE58.js +1 -0
  71. package/build/assets/index-home-DB1pRqTC.js +1 -0
  72. package/build/assets/info-uYSVzX86.js +1 -0
  73. package/build/assets/install-server-modal-BbJdhzet.js +1 -0
  74. package/build/assets/kebab-menu-item-content-BYokkRHi.js +1 -0
  75. package/build/assets/key-Cn5za3rg.js +1 -0
  76. package/build/assets/launch-C1ieiOGe.js +1 -0
  77. package/build/assets/list-filter-OFkpRrmi.js +1 -0
  78. package/build/assets/list-todo-Cuu-STFc.js +1 -0
  79. package/build/assets/llm-not-configured-banner-BqqYnJ1t.js +27 -0
  80. package/build/assets/llm-settings-CnDbbmVW.js +1 -0
  81. package/build/assets/llm-settings-S8Yjg__1.js +1 -0
  82. package/build/assets/llm-subscription-service-BpPfzW4x.js +1 -0
  83. package/build/assets/loader-circle-nvrwthvj.js +1 -0
  84. package/build/assets/loading-spinner-0L3ZTToZ.js +1 -0
  85. package/build/assets/manage-backends-modal-BCUPswyl.js +1 -0
  86. package/build/assets/manifest-58597dde.js +1 -0
  87. package/build/assets/manifest-subpage-layout-BGhiUQbA.js +1 -0
  88. package/build/assets/map-provider-B9LTm23I.js +1 -0
  89. package/build/assets/markdown-renderer-Cb2sBWtV.js +8 -0
  90. package/build/assets/mcp-CKbR4Vft.js +1 -0
  91. package/build/assets/mcp-marketplace-utils-C13fFccR.js +1 -0
  92. package/build/assets/mcp-page-Bm4K2NQq.js +9 -0
  93. package/build/assets/messages-BTN5thLe.js +40 -0
  94. package/build/assets/modal-body-CMOc2tLl.js +1 -0
  95. package/build/assets/modal-classes-BAb4Y_BG.js +1 -0
  96. package/build/assets/modal-close-button-CkJ0Ktjj.js +1 -0
  97. package/build/assets/mouse-pointer-click-CsgRs_-r.js +1 -0
  98. package/build/assets/onboarding-Cx_kaiD1.js +1 -0
  99. package/build/assets/onboarding-modal-vMwn7ihv.js +1 -0
  100. package/build/assets/organization-service.api-C8XpQ0pM.js +1 -0
  101. package/build/assets/parse-git-remote-url-DpDM9bK6.js +1 -0
  102. package/build/assets/pencil-Clh1Wjvh.js +1 -0
  103. package/build/assets/planner-tab-DQvDU3ap.js +1 -0
  104. package/build/assets/plug-BuQhHSSG.js +1 -0
  105. package/build/assets/plugins-management-service-BjYeF0b0.js +1 -0
  106. package/build/assets/plus-CEKne-Yp.js +1 -0
  107. package/build/assets/profiles-service.api-QB-T_u-g.js +1 -0
  108. package/build/assets/providers-FfSZ5TXP.js +1 -0
  109. package/build/assets/proxy-tcFL2yTQ.js +1 -0
  110. package/build/assets/puzzle-A9pGxxai.js +1 -0
  111. package/build/assets/recommended-automations-launcher-Bw8uC4V6.js +1 -0
  112. package/build/assets/refresh-cw-Bh69DyYO.js +1 -0
  113. package/build/assets/root-BLeQfBEq.css +1 -0
  114. package/build/assets/root-ZKKYPR1Z.js +2 -0
  115. package/build/assets/root-layout-luJoE9IG.js +2 -0
  116. package/build/assets/schema-field-Csw5fhtN.js +1 -0
  117. package/build/assets/scroll-fade-state-Dw-i4SGq.js +1 -0
  118. package/build/assets/sdk-section-page-HTffvm7Q.js +1 -0
  119. package/build/assets/secret-form-HTUbYw5o.js +1 -0
  120. package/build/assets/secrets-service-BTor9uAU.js +1 -0
  121. package/build/assets/secrets-settings-BizaTEr1.js +1 -0
  122. package/build/assets/server-process-C9RKzd1x.js +1 -0
  123. package/build/assets/settings-BlmrkwRi.js +1 -0
  124. package/build/assets/settings-dropdown-input-tM0A0ipy.js +1 -0
  125. package/build/assets/settings-index-CKq0b0Vg.js +1 -0
  126. package/build/assets/settings-input-C03KUoSC.js +1 -0
  127. package/build/assets/settings-list-classes-BJ0g8rWj.js +1 -0
  128. package/build/assets/settings-modal-AzEF1QPP.js +1 -0
  129. package/build/assets/settings-service.api-B2agVfjL.js +1 -0
  130. package/build/assets/settings-switch-CQE0EGC-.js +1 -0
  131. package/build/assets/settings-utils-ClYOkbbI.js +1 -0
  132. package/build/assets/shared-conversation-B55pCyBG.js +1 -0
  133. package/build/assets/shield-check-CFDViW82.js +1 -0
  134. package/build/assets/sidebar-layout-D3hE08wK.js +1 -0
  135. package/build/assets/sidebar-mobile-menu-toggle-BOtyJHwE.js +1 -0
  136. package/build/assets/sidebar-nav-link-CPzhyHQg.js +1 -0
  137. package/build/assets/sidebar-onboarding-checklist-storage-3qYflszY.js +1 -0
  138. package/build/assets/sidebar-store-DtpU7zaI.js +1 -0
  139. package/build/assets/skill-card-pill-row-CFxjoqxn.js +1 -0
  140. package/build/assets/skill-filter-CWZ5kjcg.js +2 -0
  141. package/build/assets/skill-icon-badge-CPQJ6A-I.js +1 -0
  142. package/build/assets/skill-scope-CV1dkAbW.js +1 -0
  143. package/build/assets/skills-plugins-DGHULTq6.js +1 -0
  144. package/build/assets/skills-settings-CM1lFv3e.js +1 -0
  145. package/build/assets/styled-tooltip-Dl06rkpY.js +1 -0
  146. package/build/assets/task-list-tab-04GNQuii.js +1 -0
  147. package/build/assets/terminal-Cj0iHIW7.js +3 -0
  148. package/build/assets/toggle-switch-Fd_QGz0r.js +1 -0
  149. package/build/assets/trash-2-Dl8_RGz0.js +1 -0
  150. package/build/assets/trash-_RMt7Ayc.js +1 -0
  151. package/build/assets/triangle-alert-SM-q4NU_.js +1 -0
  152. package/build/assets/typography-SgFy466J.js +1 -0
  153. package/build/assets/usage-tab-BcfWV6db.js +1 -0
  154. package/build/assets/use-acp-credential-form-BsSW5NHG.js +1 -0
  155. package/build/assets/use-activate-agent-profile-B2NS8nA5.js +1 -0
  156. package/build/assets/use-agent-profiles-DWBPC0Si.js +1 -0
  157. package/build/assets/use-automation-health-BxXdzZMP.js +1 -0
  158. package/build/assets/use-automations-zYb0dUny.js +1 -0
  159. package/build/assets/use-can-manage-org-profiles-BWMahtUh.js +1 -0
  160. package/build/assets/use-cloud-current-user-id-CPHMDG-C.js +1 -0
  161. package/build/assets/use-config-Bft35DOK.js +1 -0
  162. package/build/assets/use-create-conversation-DwN5vv2f.js +1 -0
  163. package/build/assets/use-create-secret-BSxJMxHp.js +1 -0
  164. package/build/assets/use-get-secrets-BT4ihRwj.js +1 -0
  165. package/build/assets/use-has-permission-B3C8rQmR.js +1 -0
  166. package/build/assets/use-is-authed-CFGkY3-Z.js +1 -0
  167. package/build/assets/use-launch-skill-in-chat-BYjYihBP.js +1 -0
  168. package/build/assets/use-llm-configured-BI6obxsc.js +1 -0
  169. package/build/assets/use-llm-profiles-djGAhTWL.js +1 -0
  170. package/build/assets/use-manifest-capabilities-3z0-1G59.js +1 -0
  171. package/build/assets/use-onboarding-completion-BXpyUSsJ.js +1 -0
  172. package/build/assets/use-plugins-marketplace-DI4_pK56.js +1 -0
  173. package/build/assets/use-save-agent-profile-DdBSTdpN.js +1 -0
  174. package/build/assets/use-save-settings-CUZW6yXP.js +1 -0
  175. package/build/assets/use-settings-C5VhGpqd.js +1 -0
  176. package/build/assets/use-settings-nav-items-DHaUu1Dg.js +16 -0
  177. package/build/assets/use-tracking-D5t9otIF.js +3 -0
  178. package/build/assets/use-user-conversation-DT0_QCnL.js +1 -0
  179. package/build/assets/useInfiniteQuery-CgeUQPfs.js +1 -0
  180. package/build/assets/useMutation-DFnzkf6f.js +1 -0
  181. package/build/assets/useQueries-BhbrGEf1.js +1 -0
  182. package/build/assets/useQuery-BXWbZBZl.js +1 -0
  183. package/build/assets/utils-DaCIEEQP.js +1 -0
  184. package/build/assets/vendor~browser-hbU4u2Ag.js +47 -0
  185. package/build/assets/vendor~commits-tab-BaO2Ce3e.js +11 -0
  186. package/build/assets/vendor~conversation-panel~conversation-CTvDDiXg.js +1 -0
  187. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-ZixYGy6E.js +186 -0
  188. package/build/assets/vendor~index-home~home~conversation-panel~conversation-BTyukeM-.js +13 -0
  189. package/build/assets/vendor~root-layout-BlUaZ18v.js +1 -0
  190. package/build/assets/vendor~root-layout~conversation-panel~conversation-BYAWJwQX.js +1 -0
  191. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-CHaLEBVR.js +1 -0
  192. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~mcp~automations-list~aut~ibfbmr9f-B2OLKL7N.js +1 -0
  193. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-DXqM7vqB.js +1 -0
  194. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-Dtu7BpYk.js +48 -0
  195. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz-MAyNb.js +1 -0
  196. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-DonTKfQD.js +4949 -0
  197. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-BgxDvUcf.js +8420 -0
  198. package/build/assets/verification-settings-Bj6bo097.js +1 -0
  199. package/build/assets/wrench-hi7Q13dF.js +1 -0
  200. package/build/assets/x-DkgltWa0.js +1 -0
  201. package/build/index.html +4 -4
  202. package/build/locales/ar/openhands.json +124 -43
  203. package/build/locales/ca/openhands.json +124 -43
  204. package/build/locales/de/openhands.json +124 -43
  205. package/build/locales/en/openhands.json +124 -43
  206. package/build/locales/es/openhands.json +124 -43
  207. package/build/locales/fr/openhands.json +124 -43
  208. package/build/locales/it/openhands.json +124 -43
  209. package/build/locales/ja/openhands.json +124 -43
  210. package/build/locales/ko-KR/openhands.json +124 -43
  211. package/build/locales/no/openhands.json +124 -43
  212. package/build/locales/pt/openhands.json +124 -43
  213. package/build/locales/tr/openhands.json +124 -43
  214. package/build/locales/uk/openhands.json +124 -43
  215. package/build/locales/zh-CN/openhands.json +124 -43
  216. package/build/locales/zh-TW/openhands.json +124 -43
  217. package/config/defaults.json +2 -2
  218. package/dist/api/agent-server-adapter.cjs +3 -3
  219. package/dist/api/agent-server-adapter.cjs.map +1 -1
  220. package/dist/api/agent-server-adapter.d.ts +10 -1
  221. package/dist/api/agent-server-adapter.js +115 -110
  222. package/dist/api/agent-server-adapter.js.map +1 -1
  223. package/dist/api/automation-service/automation-service.api.cjs +1 -1
  224. package/dist/api/automation-service/automation-service.api.cjs.map +1 -1
  225. package/dist/api/automation-service/automation-service.api.d.ts +13 -2
  226. package/dist/api/automation-service/automation-service.api.js +99 -84
  227. package/dist/api/automation-service/automation-service.api.js.map +1 -1
  228. package/dist/api/backend-registry/url-selection.cjs +1 -1
  229. package/dist/api/backend-registry/url-selection.cjs.map +1 -1
  230. package/dist/api/backend-registry/url-selection.d.ts +2 -1
  231. package/dist/api/backend-registry/url-selection.js +2 -2
  232. package/dist/api/backend-registry/url-selection.js.map +1 -1
  233. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs +1 -1
  234. package/dist/api/conversation-service/agent-server-conversation-service.api.cjs.map +1 -1
  235. package/dist/api/conversation-service/agent-server-conversation-service.api.js +29 -24
  236. package/dist/api/conversation-service/agent-server-conversation-service.api.js.map +1 -1
  237. package/dist/api/git-provider-items-service.cjs +2 -0
  238. package/dist/api/git-provider-items-service.cjs.map +1 -0
  239. package/dist/api/git-provider-items-service.d.ts +25 -0
  240. package/dist/api/git-provider-items-service.js +127 -0
  241. package/dist/api/git-provider-items-service.js.map +1 -0
  242. package/dist/api/mcp-health/probe-mcp-server-health.cjs +1 -1
  243. package/dist/api/mcp-health/probe-mcp-server-health.js +31 -31
  244. package/dist/api/open-hands.types.d.ts +0 -19
  245. package/dist/api/profiles-service/profiles-service.api.cjs.map +1 -1
  246. package/dist/api/profiles-service/profiles-service.api.d.ts +16 -2
  247. package/dist/api/profiles-service/profiles-service.api.js.map +1 -1
  248. package/dist/api/provider-connections-service/provider-connections-service.api.cjs +2 -0
  249. package/dist/api/provider-connections-service/provider-connections-service.api.cjs.map +1 -0
  250. package/dist/api/provider-connections-service/provider-connections-service.api.d.ts +34 -0
  251. package/dist/api/provider-connections-service/provider-connections-service.api.js +50 -0
  252. package/dist/api/provider-connections-service/provider-connections-service.api.js.map +1 -0
  253. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs +1 -1
  254. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.cjs.map +1 -1
  255. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js +1 -1
  256. package/dist/components/conversation-events/chat/event-content-helpers/create-skill-ready-event.js.map +1 -1
  257. package/dist/components/conversation-events/chat/event-message.cjs +1 -1
  258. package/dist/components/conversation-events/chat/event-message.cjs.map +1 -1
  259. package/dist/components/conversation-events/chat/event-message.js +1 -1
  260. package/dist/components/conversation-events/chat/event-message.js.map +1 -1
  261. package/dist/components/conversation-events/chat/messages.cjs.map +1 -1
  262. package/dist/components/conversation-events/chat/messages.js.map +1 -1
  263. package/dist/components/features/automations/add-automation-menu.d.ts +7 -0
  264. package/dist/components/features/automations/add-automation-modal.cjs +2 -0
  265. package/dist/components/features/automations/add-automation-modal.cjs.map +1 -0
  266. package/dist/components/features/automations/add-automation-modal.js +42 -0
  267. package/dist/components/features/automations/add-automation-modal.js.map +1 -0
  268. package/dist/components/features/automations/automation-action-button-classes.cjs +2 -0
  269. package/dist/components/features/automations/automation-action-button-classes.cjs.map +1 -0
  270. package/dist/components/features/automations/automation-action-button-classes.d.ts +0 -2
  271. package/dist/components/features/automations/automation-action-button-classes.js +8 -0
  272. package/dist/components/features/automations/automation-action-button-classes.js.map +1 -0
  273. package/dist/components/features/automations/automation-card-skeleton.cjs +2 -0
  274. package/dist/components/features/automations/automation-card-skeleton.cjs.map +1 -0
  275. package/dist/components/features/automations/automation-card-skeleton.js +33 -0
  276. package/dist/components/features/automations/automation-card-skeleton.js.map +1 -0
  277. package/dist/components/features/automations/automation-card.cjs +2 -0
  278. package/dist/components/features/automations/automation-card.cjs.map +1 -0
  279. package/dist/components/features/automations/automation-card.d.ts +1 -1
  280. package/dist/components/features/automations/automation-card.js +160 -0
  281. package/dist/components/features/automations/automation-card.js.map +1 -0
  282. package/dist/components/features/automations/automation-group.cjs +2 -0
  283. package/dist/components/features/automations/automation-group.cjs.map +1 -0
  284. package/dist/components/features/automations/automation-group.js +54 -0
  285. package/dist/components/features/automations/automation-group.js.map +1 -0
  286. package/dist/components/features/automations/automation-list-row.cjs +2 -0
  287. package/dist/components/features/automations/automation-list-row.cjs.map +1 -0
  288. package/dist/components/features/automations/automation-list-row.js +152 -0
  289. package/dist/components/features/automations/automation-list-row.js.map +1 -0
  290. package/dist/components/features/automations/automation-run-insights.cjs +2 -0
  291. package/dist/components/features/automations/automation-run-insights.cjs.map +1 -0
  292. package/dist/components/features/automations/automation-run-insights.js +46 -0
  293. package/dist/components/features/automations/automation-run-insights.js.map +1 -0
  294. package/dist/components/features/automations/automation-view-mode.cjs +2 -0
  295. package/dist/components/features/automations/automation-view-mode.cjs.map +1 -0
  296. package/dist/components/features/automations/automation-view-mode.d.ts +5 -1
  297. package/dist/components/features/automations/automation-view-mode.js +6 -0
  298. package/dist/components/features/automations/automation-view-mode.js.map +1 -0
  299. package/dist/components/features/automations/backend-not-configured.cjs +2 -0
  300. package/dist/components/features/automations/backend-not-configured.cjs.map +1 -0
  301. package/dist/components/features/automations/backend-not-configured.js +34 -0
  302. package/dist/components/features/automations/backend-not-configured.js.map +1 -0
  303. package/dist/components/features/automations/build-automation-menu-items.cjs +2 -0
  304. package/dist/components/features/automations/build-automation-menu-items.cjs.map +1 -0
  305. package/dist/components/features/automations/build-automation-menu-items.js +53 -0
  306. package/dist/components/features/automations/build-automation-menu-items.js.map +1 -0
  307. package/dist/components/features/automations/build-automation-pills.cjs +2 -0
  308. package/dist/components/features/automations/build-automation-pills.cjs.map +1 -0
  309. package/dist/components/features/automations/build-automation-pills.js +71 -0
  310. package/dist/components/features/automations/build-automation-pills.js.map +1 -0
  311. package/dist/components/features/automations/create-instructions.cjs +2 -0
  312. package/dist/components/features/automations/create-instructions.cjs.map +1 -0
  313. package/dist/components/features/automations/create-instructions.js +102 -0
  314. package/dist/components/features/automations/create-instructions.js.map +1 -0
  315. package/dist/components/features/automations/dashboard/automations-dashboard-controls.d.ts +4 -3
  316. package/dist/components/features/automations/detail/run-status-badge.cjs +2 -0
  317. package/dist/components/features/automations/detail/run-status-badge.cjs.map +1 -0
  318. package/dist/components/features/automations/detail/run-status-badge.js +102 -0
  319. package/dist/components/features/automations/detail/run-status-badge.js.map +1 -0
  320. package/dist/components/features/automations/empty-state.cjs +2 -0
  321. package/dist/components/features/automations/empty-state.cjs.map +1 -0
  322. package/dist/components/features/automations/empty-state.js +35 -0
  323. package/dist/components/features/automations/empty-state.js.map +1 -0
  324. package/dist/components/features/automations/error-state.cjs +2 -0
  325. package/dist/components/features/automations/error-state.cjs.map +1 -0
  326. package/dist/components/features/automations/error-state.js +28 -0
  327. package/dist/components/features/automations/error-state.js.map +1 -0
  328. package/dist/components/features/automations/import-automation-modal.d.ts +2 -1
  329. package/dist/components/features/automations/kebab-menu-item-content.cjs +2 -0
  330. package/dist/components/features/automations/kebab-menu-item-content.cjs.map +1 -0
  331. package/dist/components/features/automations/kebab-menu-item-content.js +21 -0
  332. package/dist/components/features/automations/kebab-menu-item-content.js.map +1 -0
  333. package/dist/components/features/automations/kebab-menu.cjs +2 -0
  334. package/dist/components/features/automations/kebab-menu.cjs.map +1 -0
  335. package/dist/components/features/automations/kebab-menu.d.ts +2 -1
  336. package/dist/components/features/automations/kebab-menu.js +76 -0
  337. package/dist/components/features/automations/kebab-menu.js.map +1 -0
  338. package/dist/components/features/automations/recommended-automations-launcher.cjs +2 -0
  339. package/dist/components/features/automations/recommended-automations-launcher.cjs.map +1 -0
  340. package/dist/components/features/automations/recommended-automations-launcher.d.ts +7 -1
  341. package/dist/components/features/automations/recommended-automations-launcher.js +134 -0
  342. package/dist/components/features/automations/recommended-automations-launcher.js.map +1 -0
  343. package/dist/components/features/automations/recommended-automations-rail.cjs +2 -0
  344. package/dist/components/features/automations/recommended-automations-rail.cjs.map +1 -0
  345. package/dist/components/features/automations/recommended-automations-rail.d.ts +9 -0
  346. package/dist/components/features/automations/recommended-automations-rail.js +127 -0
  347. package/dist/components/features/automations/recommended-automations-rail.js.map +1 -0
  348. package/dist/components/features/automations/recommended-automations-section.cjs +2 -0
  349. package/dist/components/features/automations/recommended-automations-section.cjs.map +1 -0
  350. package/dist/components/features/automations/recommended-automations-section.d.ts +2 -2
  351. package/dist/components/features/automations/recommended-automations-section.js +198 -0
  352. package/dist/components/features/automations/recommended-automations-section.js.map +1 -0
  353. package/dist/components/features/automations/responder-deployment-modal.cjs +2 -0
  354. package/dist/components/features/automations/responder-deployment-modal.cjs.map +1 -0
  355. package/dist/components/features/automations/responder-deployment-modal.js +75 -0
  356. package/dist/components/features/automations/responder-deployment-modal.js.map +1 -0
  357. package/dist/components/features/automations/status-badge.cjs +2 -0
  358. package/dist/components/features/automations/status-badge.cjs.map +1 -0
  359. package/dist/components/features/automations/status-badge.js +12 -0
  360. package/dist/components/features/automations/status-badge.js.map +1 -0
  361. package/dist/components/features/automations/to-latest-run-state.cjs +2 -0
  362. package/dist/components/features/automations/to-latest-run-state.cjs.map +1 -0
  363. package/dist/components/features/automations/to-latest-run-state.d.ts +6 -0
  364. package/dist/components/features/automations/to-latest-run-state.js +21 -0
  365. package/dist/components/features/automations/to-latest-run-state.js.map +1 -0
  366. package/dist/components/features/backends/backend-form-modal.cjs +1 -1
  367. package/dist/components/features/backends/backend-form-modal.js +10 -10
  368. package/dist/components/features/backends/manage-backends-modal.cjs +1 -1
  369. package/dist/components/features/backends/manage-backends-modal.js +5 -5
  370. package/dist/components/features/chat/chat-interface.cjs +2 -2
  371. package/dist/components/features/chat/chat-interface.cjs.map +1 -1
  372. package/dist/components/features/chat/chat-interface.js +179 -177
  373. package/dist/components/features/chat/chat-interface.js.map +1 -1
  374. package/dist/components/features/command-menu/command-menu-items.d.ts +10 -4
  375. package/dist/components/features/conversation/conversation-git-actions-menu.cjs +2 -0
  376. package/dist/components/features/conversation/conversation-git-actions-menu.cjs.map +1 -0
  377. package/dist/components/features/conversation/conversation-git-actions-menu.d.ts +15 -0
  378. package/dist/components/features/conversation/conversation-git-actions-menu.js +123 -0
  379. package/dist/components/features/conversation/conversation-git-actions-menu.js.map +1 -0
  380. package/dist/components/features/conversation/conversation-git-actions-toggle.cjs +2 -0
  381. package/dist/components/features/conversation/conversation-git-actions-toggle.cjs.map +1 -0
  382. package/dist/components/features/conversation/conversation-git-actions-toggle.d.ts +10 -0
  383. package/dist/components/features/conversation/conversation-git-actions-toggle.js +60 -0
  384. package/dist/components/features/conversation/conversation-git-actions-toggle.js.map +1 -0
  385. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs +1 -1
  386. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.cjs.map +1 -1
  387. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js +46 -10
  388. package/dist/components/features/conversation/conversation-main/chat-interface-wrapper.js.map +1 -1
  389. package/dist/components/features/conversation/conversation-main/conversation-main.cjs +1 -1
  390. package/dist/components/features/conversation/conversation-main/conversation-main.cjs.map +1 -1
  391. package/dist/components/features/conversation/conversation-main/conversation-main.js +49 -43
  392. package/dist/components/features/conversation/conversation-main/conversation-main.js.map +1 -1
  393. package/dist/components/features/conversation/conversation-name-with-status.cjs +1 -1
  394. package/dist/components/features/conversation/conversation-name-with-status.cjs.map +1 -1
  395. package/dist/components/features/conversation/conversation-name-with-status.js +49 -40
  396. package/dist/components/features/conversation/conversation-name-with-status.js.map +1 -1
  397. package/dist/components/features/conversation/conversation-name.cjs +1 -1
  398. package/dist/components/features/conversation/conversation-name.js +4 -4
  399. package/dist/components/features/conversation/conversation-overview-automations-panel.cjs +2 -0
  400. package/dist/components/features/conversation/conversation-overview-automations-panel.cjs.map +1 -0
  401. package/dist/components/features/conversation/conversation-overview-automations-panel.d.ts +6 -0
  402. package/dist/components/features/conversation/conversation-overview-automations-panel.js +48 -0
  403. package/dist/components/features/conversation/conversation-overview-automations-panel.js.map +1 -0
  404. package/dist/components/features/conversation/conversation-overview-context-menu.cjs +2 -0
  405. package/dist/components/features/conversation/conversation-overview-context-menu.cjs.map +1 -0
  406. package/dist/components/features/conversation/conversation-overview-context-menu.d.ts +10 -0
  407. package/dist/components/features/conversation/conversation-overview-context-menu.js +221 -0
  408. package/dist/components/features/conversation/conversation-overview-context-menu.js.map +1 -0
  409. package/dist/components/features/conversation/conversation-overview-diffs-row.cjs +2 -0
  410. package/dist/components/features/conversation/conversation-overview-diffs-row.cjs.map +1 -0
  411. package/dist/components/features/conversation/conversation-overview-diffs-row.d.ts +2 -0
  412. package/dist/components/features/conversation/conversation-overview-diffs-row.js +88 -0
  413. package/dist/components/features/conversation/conversation-overview-diffs-row.js.map +1 -0
  414. package/dist/components/features/conversation/conversation-overview-drawer-content.cjs +2 -0
  415. package/dist/components/features/conversation/conversation-overview-drawer-content.cjs.map +1 -0
  416. package/dist/components/features/conversation/conversation-overview-drawer-content.d.ts +6 -0
  417. package/dist/components/features/conversation/conversation-overview-drawer-content.js +138 -0
  418. package/dist/components/features/conversation/conversation-overview-drawer-content.js.map +1 -0
  419. package/dist/components/features/conversation/conversation-overview-drawer-context.cjs +2 -0
  420. package/dist/components/features/conversation/conversation-overview-drawer-context.cjs.map +1 -0
  421. package/dist/components/features/conversation/conversation-overview-drawer-context.d.ts +17 -0
  422. package/dist/components/features/conversation/conversation-overview-drawer-context.js +43 -0
  423. package/dist/components/features/conversation/conversation-overview-drawer-context.js.map +1 -0
  424. package/dist/components/features/conversation/conversation-overview-drawer.cjs +2 -0
  425. package/dist/components/features/conversation/conversation-overview-drawer.cjs.map +1 -0
  426. package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs +2 -0
  427. package/dist/components/features/conversation/conversation-overview-drawer.constants.cjs.map +1 -0
  428. package/dist/components/features/conversation/conversation-overview-drawer.constants.d.ts +6 -0
  429. package/dist/components/features/conversation/conversation-overview-drawer.constants.js +6 -0
  430. package/dist/components/features/conversation/conversation-overview-drawer.constants.js.map +1 -0
  431. package/dist/components/features/conversation/conversation-overview-drawer.d.ts +7 -0
  432. package/dist/components/features/conversation/conversation-overview-drawer.js +45 -0
  433. package/dist/components/features/conversation/conversation-overview-drawer.js.map +1 -0
  434. package/dist/components/features/conversation/conversation-overview-drawer.types.cjs +2 -0
  435. package/dist/components/features/conversation/conversation-overview-drawer.types.cjs.map +1 -0
  436. package/dist/components/features/conversation/conversation-overview-drawer.types.d.ts +12 -0
  437. package/dist/components/features/conversation/conversation-overview-drawer.types.js +13 -0
  438. package/dist/components/features/conversation/conversation-overview-drawer.types.js.map +1 -0
  439. package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs +2 -0
  440. package/dist/components/features/conversation/conversation-overview-git-items-panel.cjs.map +1 -0
  441. package/dist/components/features/conversation/conversation-overview-git-items-panel.d.ts +7 -0
  442. package/dist/components/features/conversation/conversation-overview-git-items-panel.js +81 -0
  443. package/dist/components/features/conversation/conversation-overview-git-items-panel.js.map +1 -0
  444. package/dist/components/features/conversation/conversation-overview-git-section.cjs +2 -0
  445. package/dist/components/features/conversation/conversation-overview-git-section.cjs.map +1 -0
  446. package/dist/components/features/conversation/conversation-overview-git-section.d.ts +6 -0
  447. package/dist/components/features/conversation/conversation-overview-git-section.js +143 -0
  448. package/dist/components/features/conversation/conversation-overview-git-section.js.map +1 -0
  449. package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs +2 -0
  450. package/dist/components/features/conversation/conversation-overview-mcp-panel.cjs.map +1 -0
  451. package/dist/components/features/conversation/conversation-overview-mcp-panel.d.ts +6 -0
  452. package/dist/components/features/conversation/conversation-overview-mcp-panel.js +108 -0
  453. package/dist/components/features/conversation/conversation-overview-mcp-panel.js.map +1 -0
  454. package/dist/components/features/conversation/conversation-overview-panel.cjs +2 -0
  455. package/dist/components/features/conversation/conversation-overview-panel.cjs.map +1 -0
  456. package/dist/components/features/conversation/conversation-overview-panel.constants.cjs +2 -0
  457. package/dist/components/features/conversation/conversation-overview-panel.constants.cjs.map +1 -0
  458. package/dist/components/features/conversation/conversation-overview-panel.constants.d.ts +24 -0
  459. package/dist/components/features/conversation/conversation-overview-panel.constants.js +12 -0
  460. package/dist/components/features/conversation/conversation-overview-panel.constants.js.map +1 -0
  461. package/dist/components/features/conversation/conversation-overview-panel.d.ts +2 -0
  462. package/dist/components/features/conversation/conversation-overview-panel.js +102 -0
  463. package/dist/components/features/conversation/conversation-overview-panel.js.map +1 -0
  464. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs +2 -0
  465. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.cjs.map +1 -0
  466. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.d.ts +8 -0
  467. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js +29 -0
  468. package/dist/components/features/conversation/conversation-overview-project-scope-toggle.js.map +1 -0
  469. package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs +2 -0
  470. package/dist/components/features/conversation/conversation-overview-secrets-panel.cjs.map +1 -0
  471. package/dist/components/features/conversation/conversation-overview-secrets-panel.d.ts +6 -0
  472. package/dist/components/features/conversation/conversation-overview-secrets-panel.js +89 -0
  473. package/dist/components/features/conversation/conversation-overview-secrets-panel.js.map +1 -0
  474. package/dist/components/features/conversation/conversation-overview-sections.cjs +2 -0
  475. package/dist/components/features/conversation/conversation-overview-sections.cjs.map +1 -0
  476. package/dist/components/features/conversation/conversation-overview-sections.d.ts +43 -0
  477. package/dist/components/features/conversation/conversation-overview-sections.js +27 -0
  478. package/dist/components/features/conversation/conversation-overview-sections.js.map +1 -0
  479. package/dist/components/features/conversation/conversation-overview-skills-panel.cjs +2 -0
  480. package/dist/components/features/conversation/conversation-overview-skills-panel.cjs.map +1 -0
  481. package/dist/components/features/conversation/conversation-overview-skills-panel.d.ts +6 -0
  482. package/dist/components/features/conversation/conversation-overview-skills-panel.js +138 -0
  483. package/dist/components/features/conversation/conversation-overview-skills-panel.js.map +1 -0
  484. package/dist/components/features/conversation/conversation-overview-toggle.cjs +2 -0
  485. package/dist/components/features/conversation/conversation-overview-toggle.cjs.map +1 -0
  486. package/dist/components/features/conversation/conversation-overview-toggle.d.ts +11 -0
  487. package/dist/components/features/conversation/conversation-overview-toggle.js +99 -0
  488. package/dist/components/features/conversation/conversation-overview-toggle.js.map +1 -0
  489. package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs +2 -0
  490. package/dist/components/features/conversation/conversation-secondary-drawer.classes.cjs.map +1 -0
  491. package/dist/components/features/conversation/conversation-secondary-drawer.classes.d.ts +4 -0
  492. package/dist/components/features/conversation/conversation-secondary-drawer.classes.js +7 -0
  493. package/dist/components/features/conversation/conversation-secondary-drawer.classes.js.map +1 -0
  494. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs +1 -1
  495. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.cjs.map +1 -1
  496. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js +10 -9
  497. package/dist/components/features/conversation/conversation-tabs/conversation-tab-content/conversation-tab-content.js.map +1 -1
  498. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs +1 -1
  499. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.cjs.map +1 -1
  500. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js +68 -62
  501. package/dist/components/features/conversation/conversation-tabs/conversation-tabs-context-menu.js.map +1 -1
  502. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs +1 -1
  503. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.cjs.map +1 -1
  504. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js +98 -88
  505. package/dist/components/features/conversation/conversation-tabs/conversation-tabs.js.map +1 -1
  506. package/dist/components/features/conversation/right-panel-toggle.cjs +1 -1
  507. package/dist/components/features/conversation/right-panel-toggle.cjs.map +1 -1
  508. package/dist/components/features/conversation/right-panel-toggle.d.ts +3 -2
  509. package/dist/components/features/conversation/right-panel-toggle.js +34 -33
  510. package/dist/components/features/conversation/right-panel-toggle.js.map +1 -1
  511. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs +1 -1
  512. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.cjs.map +1 -1
  513. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.d.ts +2 -1
  514. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js +14 -7
  515. package/dist/components/features/conversation-panel/conversation-panel-list-helpers.js.map +1 -1
  516. package/dist/components/features/conversation-panel/conversation-panel.cjs +1 -1
  517. package/dist/components/features/conversation-panel/conversation-panel.cjs.map +1 -1
  518. package/dist/components/features/conversation-panel/conversation-panel.js +252 -225
  519. package/dist/components/features/conversation-panel/conversation-panel.js.map +1 -1
  520. package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs +1 -1
  521. package/dist/components/features/conversation-panel/local-new-conversation-menu.cjs.map +1 -1
  522. package/dist/components/features/conversation-panel/local-new-conversation-menu.js +4 -4
  523. package/dist/components/features/conversation-panel/local-new-conversation-menu.js.map +1 -1
  524. package/dist/components/features/diff-viewer/accordion-panel.cjs +2 -0
  525. package/dist/components/features/diff-viewer/accordion-panel.cjs.map +1 -0
  526. package/dist/components/features/diff-viewer/accordion-panel.d.ts +13 -0
  527. package/dist/components/features/diff-viewer/accordion-panel.js +41 -0
  528. package/dist/components/features/diff-viewer/accordion-panel.js.map +1 -0
  529. package/dist/components/features/diff-viewer/commit-list.cjs +1 -1
  530. package/dist/components/features/diff-viewer/commit-list.cjs.map +1 -1
  531. package/dist/components/features/diff-viewer/commit-list.d.ts +5 -1
  532. package/dist/components/features/diff-viewer/commit-list.js +30 -16
  533. package/dist/components/features/diff-viewer/commit-list.js.map +1 -1
  534. package/dist/components/features/diff-viewer/commit-row.cjs +1 -1
  535. package/dist/components/features/diff-viewer/commit-row.cjs.map +1 -1
  536. package/dist/components/features/diff-viewer/commit-row.d.ts +1 -2
  537. package/dist/components/features/diff-viewer/commit-row.js +38 -34
  538. package/dist/components/features/diff-viewer/commit-row.js.map +1 -1
  539. package/dist/components/features/diff-viewer/diff-change-list.cjs +2 -0
  540. package/dist/components/features/diff-viewer/diff-change-list.cjs.map +1 -0
  541. package/dist/components/features/diff-viewer/diff-change-list.d.ts +18 -0
  542. package/dist/components/features/diff-viewer/diff-change-list.js +22 -0
  543. package/dist/components/features/diff-viewer/diff-change-list.js.map +1 -0
  544. package/dist/components/features/diff-viewer/editor-container.cjs +1 -1
  545. package/dist/components/features/diff-viewer/editor-container.cjs.map +1 -1
  546. package/dist/components/features/diff-viewer/editor-container.d.ts +2 -1
  547. package/dist/components/features/diff-viewer/editor-container.js +8 -7
  548. package/dist/components/features/diff-viewer/editor-container.js.map +1 -1
  549. package/dist/components/features/diff-viewer/file-diff-viewer.cjs +1 -1
  550. package/dist/components/features/diff-viewer/file-diff-viewer.cjs.map +1 -1
  551. package/dist/components/features/diff-viewer/file-diff-viewer.d.ts +10 -1
  552. package/dist/components/features/diff-viewer/file-diff-viewer.js +138 -112
  553. package/dist/components/features/diff-viewer/file-diff-viewer.js.map +1 -1
  554. package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs +2 -0
  555. package/dist/components/features/diff-viewer/uncommitted-changes-row.cjs.map +1 -0
  556. package/dist/components/features/diff-viewer/uncommitted-changes-row.d.ts +12 -0
  557. package/dist/components/features/diff-viewer/uncommitted-changes-row.js +51 -0
  558. package/dist/components/features/diff-viewer/uncommitted-changes-row.js.map +1 -0
  559. package/dist/components/features/files-tab/file-content-viewer.cjs +1 -1
  560. package/dist/components/features/files-tab/file-content-viewer.cjs.map +1 -1
  561. package/dist/components/features/files-tab/file-content-viewer.js +0 -1
  562. package/dist/components/features/files-tab/file-content-viewer.js.map +1 -1
  563. package/dist/components/features/files-tab/file-quick-row.cjs +1 -1
  564. package/dist/components/features/files-tab/file-quick-row.cjs.map +1 -1
  565. package/dist/components/features/files-tab/file-quick-row.d.ts +9 -7
  566. package/dist/components/features/files-tab/file-quick-row.js +63 -34
  567. package/dist/components/features/files-tab/file-quick-row.js.map +1 -1
  568. package/dist/components/features/files-tab/files-tab-tree.constants.cjs +2 -0
  569. package/dist/components/features/files-tab/files-tab-tree.constants.cjs.map +1 -0
  570. package/dist/components/features/files-tab/files-tab-tree.constants.d.ts +7 -0
  571. package/dist/components/features/files-tab/files-tab-tree.constants.js +6 -0
  572. package/dist/components/features/files-tab/files-tab-tree.constants.js.map +1 -0
  573. package/dist/components/features/files-tab/segmented-toggle.cjs +1 -1
  574. package/dist/components/features/files-tab/segmented-toggle.cjs.map +1 -1
  575. package/dist/components/features/files-tab/segmented-toggle.d.ts +5 -3
  576. package/dist/components/features/files-tab/segmented-toggle.js +10 -13
  577. package/dist/components/features/files-tab/segmented-toggle.js.map +1 -1
  578. package/dist/components/features/files-tab/tree-node.cjs +1 -1
  579. package/dist/components/features/files-tab/tree-node.cjs.map +1 -1
  580. package/dist/components/features/files-tab/tree-node.js +34 -32
  581. package/dist/components/features/files-tab/tree-node.js.map +1 -1
  582. package/dist/components/features/files-tab/workspace-path.cjs +2 -0
  583. package/dist/components/features/files-tab/workspace-path.cjs.map +1 -0
  584. package/dist/components/features/files-tab/workspace-path.d.ts +6 -0
  585. package/dist/components/features/files-tab/workspace-path.js +41 -0
  586. package/dist/components/features/files-tab/workspace-path.js.map +1 -0
  587. package/dist/components/features/home/featured-automations/automation-health-indicator.cjs +2 -0
  588. package/dist/components/features/home/featured-automations/automation-health-indicator.cjs.map +1 -0
  589. package/dist/components/features/home/featured-automations/automation-health-indicator.js +22 -0
  590. package/dist/components/features/home/featured-automations/automation-health-indicator.js.map +1 -0
  591. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs +2 -0
  592. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.cjs.map +1 -0
  593. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js +45 -0
  594. package/dist/components/features/home/featured-automations/automation-run-activity-metrics.js.map +1 -0
  595. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs +2 -0
  596. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.cjs.map +1 -0
  597. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js +108 -0
  598. package/dist/components/features/home/featured-automations/automation-run-activity-sparkline.js.map +1 -0
  599. package/dist/components/features/home/featured-automations/automation-run-health.cjs +2 -0
  600. package/dist/components/features/home/featured-automations/automation-run-health.cjs.map +1 -0
  601. package/dist/components/features/home/featured-automations/automation-run-health.js +75 -0
  602. package/dist/components/features/home/featured-automations/automation-run-health.js.map +1 -0
  603. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs +2 -0
  604. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.cjs.map +1 -0
  605. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js +74 -0
  606. package/dist/components/features/home/featured-automations/home-automation-run-tooltip.js.map +1 -0
  607. package/dist/components/features/home/featured-automations/pinned-automation-card.d.ts +3 -3
  608. package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs +1 -1
  609. package/dist/components/features/home/git-repo-dropdown/use-url-search.cjs.map +1 -1
  610. package/dist/components/features/home/git-repo-dropdown/use-url-search.js +1 -1
  611. package/dist/components/features/home/git-repo-dropdown/use-url-search.js.map +1 -1
  612. package/dist/components/features/home/workspace-dropdown/folder-browser-modal.cjs +1 -1
  613. package/dist/components/features/home/workspace-dropdown/folder-browser-modal.js +6 -6
  614. package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.cjs +1 -1
  615. package/dist/components/features/home/workspace-dropdown/manage-workspaces-modal.js +6 -6
  616. package/dist/components/features/manifest/manifest-form-field.d.ts +4 -3
  617. package/dist/components/features/manifest/manifest-icons.cjs +2 -0
  618. package/dist/components/features/manifest/manifest-icons.cjs.map +1 -0
  619. package/dist/components/features/manifest/manifest-icons.d.ts +1 -0
  620. package/dist/components/features/manifest/manifest-icons.js +21 -0
  621. package/dist/components/features/manifest/manifest-icons.js.map +1 -0
  622. package/dist/components/features/manifest/manifest-repository-list.d.ts +25 -0
  623. package/dist/components/features/markdown/markdown-table-scroll.cjs +1 -1
  624. package/dist/components/features/markdown/markdown-table-scroll.cjs.map +1 -1
  625. package/dist/components/features/markdown/markdown-table-scroll.d.ts +2 -6
  626. package/dist/components/features/markdown/markdown-table-scroll.js +15 -21
  627. package/dist/components/features/markdown/markdown-table-scroll.js.map +1 -1
  628. package/dist/components/features/mcp-logo-badge.cjs +1 -1
  629. package/dist/components/features/mcp-logo-badge.cjs.map +1 -1
  630. package/dist/components/features/mcp-logo-badge.d.ts +1 -1
  631. package/dist/components/features/mcp-logo-badge.js +1 -0
  632. package/dist/components/features/mcp-logo-badge.js.map +1 -1
  633. package/dist/components/features/mcp-page/custom-server-editor.cjs +1 -1
  634. package/dist/components/features/mcp-page/custom-server-editor.js +16 -16
  635. package/dist/components/features/mcp-page/index.cjs +1 -1
  636. package/dist/components/features/mcp-page/index.js +2 -2
  637. package/dist/components/features/mcp-page/install-server-modal.cjs +1 -1
  638. package/dist/components/features/mcp-page/install-server-modal.cjs.map +1 -1
  639. package/dist/components/features/mcp-page/install-server-modal.js +25 -25
  640. package/dist/components/features/mcp-page/install-server-modal.js.map +1 -1
  641. package/dist/components/features/mcp-page/installed-server-card.cjs +1 -1
  642. package/dist/components/features/mcp-page/installed-server-card.js +5 -5
  643. package/dist/components/features/mcp-page/marketplace-card.cjs +1 -1
  644. package/dist/components/features/mcp-page/marketplace-card.js +4 -4
  645. package/dist/components/features/mcp-page/marketplace-section.cjs +1 -1
  646. package/dist/components/features/mcp-page/marketplace-section.js +3 -3
  647. package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs +2 -0
  648. package/dist/components/features/mcp-page/mcp-logo-stack-badge.cjs.map +1 -0
  649. package/dist/components/features/mcp-page/mcp-logo-stack-badge.js +60 -0
  650. package/dist/components/features/mcp-page/mcp-logo-stack-badge.js.map +1 -0
  651. package/dist/components/features/mcp-page/mcp-server-health.cjs +1 -1
  652. package/dist/components/features/mcp-page/mcp-server-health.js +18 -18
  653. package/dist/components/features/onboarding/use-onboarding-completion.cjs +2 -0
  654. package/dist/components/features/onboarding/use-onboarding-completion.cjs.map +1 -0
  655. package/dist/components/features/onboarding/use-onboarding-completion.js +32 -0
  656. package/dist/components/features/onboarding/use-onboarding-completion.js.map +1 -0
  657. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs +2 -0
  658. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.cjs.map +1 -0
  659. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.d.ts +1 -0
  660. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js +22 -0
  661. package/dist/components/features/settings/app-settings/getting-started-checklist-switch.js.map +1 -0
  662. package/dist/components/features/settings/brand-button.cjs +1 -1
  663. package/dist/components/features/settings/brand-button.cjs.map +1 -1
  664. package/dist/components/features/settings/brand-button.d.ts +2 -0
  665. package/dist/components/features/settings/brand-button.js +4 -2
  666. package/dist/components/features/settings/brand-button.js.map +1 -1
  667. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.cjs +1 -0
  668. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.d.ts +7 -0
  669. package/dist/components/features/settings/llm-profiles/delete-provider-connection-modal.js +7 -0
  670. package/dist/components/features/settings/llm-profiles/llm-profiles-manager.cjs +1 -1
  671. package/dist/components/features/settings/llm-profiles/llm-profiles-manager.js +3 -0
  672. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.cjs +1 -1
  673. package/dist/components/features/settings/llm-profiles/llm-settings-local-view.js +1 -0
  674. package/dist/components/features/settings/llm-profiles/profiles-body.d.ts +20 -1
  675. package/dist/components/features/settings/llm-profiles/provider-connection-modal.cjs +1 -0
  676. package/dist/components/features/settings/llm-profiles/provider-connection-modal.d.ts +19 -0
  677. package/dist/components/features/settings/llm-profiles/provider-connection-modal.js +10 -0
  678. package/dist/components/features/settings/llm-profiles/provider-connection-row.cjs +1 -0
  679. package/dist/components/features/settings/llm-profiles/provider-connection-row.d.ts +10 -0
  680. package/dist/components/features/settings/llm-profiles/provider-connection-row.js +6 -0
  681. package/dist/components/features/settings/llm-profiles/provider-connections-manager.cjs +1 -0
  682. package/dist/components/features/settings/llm-profiles/provider-connections-manager.d.ts +15 -0
  683. package/dist/components/features/settings/llm-profiles/provider-connections-manager.js +8 -0
  684. package/dist/components/features/settings/sdk-settings/schema-field.cjs +1 -1
  685. package/dist/components/features/settings/sdk-settings/schema-field.js +6 -6
  686. package/dist/components/features/settings/sdk-settings/sdk-section-page.cjs +1 -1
  687. package/dist/components/features/settings/sdk-settings/sdk-section-page.js +7 -7
  688. package/dist/components/features/settings/sdk-settings/sdk-section-page.js.map +1 -1
  689. package/dist/components/features/settings/secrets-settings/secret-form.cjs +1 -1
  690. package/dist/components/features/settings/secrets-settings/secret-form.js +7 -7
  691. package/dist/components/features/settings/settings-input.cjs +1 -1
  692. package/dist/components/features/settings/settings-input.cjs.map +1 -1
  693. package/dist/components/features/settings/settings-input.d.ts +6 -0
  694. package/dist/components/features/settings/settings-input.js +14 -13
  695. package/dist/components/features/settings/settings-input.js.map +1 -1
  696. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs +2 -0
  697. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.cjs.map +1 -0
  698. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.d.ts +7 -0
  699. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js +102 -0
  700. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-icon.js.map +1 -0
  701. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs +2 -0
  702. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.cjs.map +1 -0
  703. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.d.ts +8 -0
  704. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js +66 -0
  705. package/dist/components/features/sidebar/sidebar-onboarding-checklist-item-preview.js.map +1 -0
  706. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs +2 -0
  707. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.cjs.map +1 -0
  708. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.d.ts +3 -0
  709. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js +15 -0
  710. package/dist/components/features/sidebar/sidebar-onboarding-checklist-llm-complete.js.map +1 -0
  711. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs +2 -0
  712. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.cjs.map +1 -0
  713. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.d.ts +10 -0
  714. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js +39 -0
  715. package/dist/components/features/sidebar/sidebar-onboarding-checklist-storage.js.map +1 -0
  716. package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs +2 -0
  717. package/dist/components/features/sidebar/sidebar-onboarding-checklist.cjs.map +1 -0
  718. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs +2 -0
  719. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.cjs.map +1 -0
  720. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.d.ts +26 -0
  721. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js +78 -0
  722. package/dist/components/features/sidebar/sidebar-onboarding-checklist.constants.js.map +1 -0
  723. package/dist/components/features/sidebar/sidebar-onboarding-checklist.d.ts +5 -0
  724. package/dist/components/features/sidebar/sidebar-onboarding-checklist.js +127 -0
  725. package/dist/components/features/sidebar/sidebar-onboarding-checklist.js.map +1 -0
  726. package/dist/components/features/sidebar/sidebar-rail-body.cjs +1 -1
  727. package/dist/components/features/sidebar/sidebar-rail-body.cjs.map +1 -1
  728. package/dist/components/features/sidebar/sidebar-rail-body.js +115 -111
  729. package/dist/components/features/sidebar/sidebar-rail-body.js.map +1 -1
  730. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs +2 -0
  731. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.cjs.map +1 -0
  732. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.d.ts +1 -0
  733. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js +10 -0
  734. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist-dismissed.js.map +1 -0
  735. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs +2 -0
  736. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.cjs.map +1 -0
  737. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.d.ts +15 -0
  738. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js +75 -0
  739. package/dist/components/features/sidebar/use-sidebar-onboarding-checklist.js.map +1 -0
  740. package/dist/components/features/skills/add-skill-modal.cjs +2 -0
  741. package/dist/components/features/skills/add-skill-modal.cjs.map +1 -0
  742. package/dist/components/features/skills/add-skill-modal.js +164 -0
  743. package/dist/components/features/skills/add-skill-modal.js.map +1 -0
  744. package/dist/components/features/skills/build-skill-pills.cjs +2 -0
  745. package/dist/components/features/skills/build-skill-pills.cjs.map +1 -0
  746. package/dist/components/features/skills/build-skill-pills.js +88 -0
  747. package/dist/components/features/skills/build-skill-pills.js.map +1 -0
  748. package/dist/components/features/skills/get-skill-card-description.cjs +2 -0
  749. package/dist/components/features/skills/get-skill-card-description.cjs.map +1 -0
  750. package/dist/components/features/skills/get-skill-card-description.js +34 -0
  751. package/dist/components/features/skills/get-skill-card-description.js.map +1 -0
  752. package/dist/components/features/skills/get-skill-chat-launch-message.cjs +2 -0
  753. package/dist/components/features/skills/get-skill-chat-launch-message.cjs.map +1 -0
  754. package/dist/components/features/skills/get-skill-chat-launch-message.js +9 -0
  755. package/dist/components/features/skills/get-skill-chat-launch-message.js.map +1 -0
  756. package/dist/components/features/skills/is-copyable-skill-source.cjs +2 -0
  757. package/dist/components/features/skills/is-copyable-skill-source.cjs.map +1 -0
  758. package/dist/components/features/skills/is-copyable-skill-source.js +9 -0
  759. package/dist/components/features/skills/is-copyable-skill-source.js.map +1 -0
  760. package/dist/components/features/skills/skill-card-pill-row.cjs +2 -0
  761. package/dist/components/features/skills/skill-card-pill-row.cjs.map +1 -0
  762. package/dist/components/features/skills/skill-card-pill-row.d.ts +1 -1
  763. package/dist/components/features/skills/skill-card-pill-row.js +137 -0
  764. package/dist/components/features/skills/skill-card-pill-row.js.map +1 -0
  765. package/dist/components/features/skills/skill-card.cjs +2 -0
  766. package/dist/components/features/skills/skill-card.cjs.map +1 -0
  767. package/dist/components/features/skills/skill-card.js +93 -0
  768. package/dist/components/features/skills/skill-card.js.map +1 -0
  769. package/dist/components/features/skills/skill-detail-modal.cjs +3 -0
  770. package/dist/components/features/skills/skill-detail-modal.cjs.map +1 -0
  771. package/dist/components/features/skills/skill-detail-modal.js +150 -0
  772. package/dist/components/features/skills/skill-detail-modal.js.map +1 -0
  773. package/dist/components/features/skills/skill-facet-rail.cjs +2 -0
  774. package/dist/components/features/skills/skill-facet-rail.cjs.map +1 -0
  775. package/dist/components/features/skills/skill-facet-rail.js +42 -0
  776. package/dist/components/features/skills/skill-facet-rail.js.map +1 -0
  777. package/dist/components/features/skills/skill-facet-row.cjs +2 -0
  778. package/dist/components/features/skills/skill-facet-row.cjs.map +1 -0
  779. package/dist/components/features/skills/skill-facet-row.js +44 -0
  780. package/dist/components/features/skills/skill-facet-row.js.map +1 -0
  781. package/dist/components/features/skills/skill-filter.cjs +2 -0
  782. package/dist/components/features/skills/skill-filter.cjs.map +1 -0
  783. package/dist/components/features/skills/skill-filter.js +166 -0
  784. package/dist/components/features/skills/skill-filter.js.map +1 -0
  785. package/dist/components/features/skills/skill-filters-modal.cjs +2 -0
  786. package/dist/components/features/skills/skill-filters-modal.cjs.map +1 -0
  787. package/dist/components/features/skills/skill-filters-modal.js +53 -0
  788. package/dist/components/features/skills/skill-filters-modal.js.map +1 -0
  789. package/dist/components/features/skills/skill-icon-badge.cjs +2 -0
  790. package/dist/components/features/skills/skill-icon-badge.cjs.map +1 -0
  791. package/dist/components/features/skills/skill-icon-badge.js +17 -0
  792. package/dist/components/features/skills/skill-icon-badge.js.map +1 -0
  793. package/dist/components/features/skills/skill-type-badge.cjs +2 -0
  794. package/dist/components/features/skills/skill-type-badge.cjs.map +1 -0
  795. package/dist/components/features/skills/skill-type-badge.js +21 -0
  796. package/dist/components/features/skills/skill-type-badge.js.map +1 -0
  797. package/dist/components/features/skills/skills-toolbar.cjs +2 -0
  798. package/dist/components/features/skills/skills-toolbar.cjs.map +1 -0
  799. package/dist/components/features/skills/skills-toolbar.js +63 -0
  800. package/dist/components/features/skills/skills-toolbar.js.map +1 -0
  801. package/dist/components/shared/buttons/circle-plus-check-toggle.cjs +1 -1
  802. package/dist/components/shared/buttons/circle-plus-check-toggle.cjs.map +1 -1
  803. package/dist/components/shared/buttons/circle-plus-check-toggle.js +19 -6
  804. package/dist/components/shared/buttons/circle-plus-check-toggle.js.map +1 -1
  805. package/dist/components/shared/filters/enum-filter-dropdown.cjs +1 -1
  806. package/dist/components/shared/filters/enum-filter-dropdown.cjs.map +1 -1
  807. package/dist/components/shared/filters/enum-filter-dropdown.d.ts +4 -1
  808. package/dist/components/shared/filters/enum-filter-dropdown.js +14 -14
  809. package/dist/components/shared/filters/enum-filter-dropdown.js.map +1 -1
  810. package/dist/components/shared/modals/settings/settings-form.cjs +1 -1
  811. package/dist/components/shared/modals/settings/settings-form.js +4 -4
  812. package/dist/components/ui/resize-handle.cjs +1 -1
  813. package/dist/components/ui/resize-handle.cjs.map +1 -1
  814. package/dist/components/ui/resize-handle.d.ts +2 -1
  815. package/dist/components/ui/resize-handle.js +6 -5
  816. package/dist/components/ui/resize-handle.js.map +1 -1
  817. package/dist/config/defaults.cjs +1 -1
  818. package/dist/config/defaults.cjs.map +1 -1
  819. package/dist/config/defaults.js +2 -2
  820. package/dist/config/defaults.js.map +1 -1
  821. package/dist/constants/skills-docs.cjs +2 -0
  822. package/dist/constants/skills-docs.cjs.map +1 -0
  823. package/dist/constants/skills-docs.js +6 -0
  824. package/dist/constants/skills-docs.js.map +1 -0
  825. package/dist/contexts/conversation-websocket-context.cjs +3 -3
  826. package/dist/contexts/conversation-websocket-context.cjs.map +1 -1
  827. package/dist/contexts/conversation-websocket-context.js +174 -149
  828. package/dist/contexts/conversation-websocket-context.js.map +1 -1
  829. package/dist/fixtures/home-automations-demo.cjs +2 -0
  830. package/dist/fixtures/home-automations-demo.cjs.map +1 -0
  831. package/dist/fixtures/home-automations-demo.d.ts +1 -3
  832. package/dist/fixtures/home-automations-demo.js +384 -0
  833. package/dist/fixtures/home-automations-demo.js.map +1 -0
  834. package/dist/hooks/chat/use-slash-command.cjs +1 -1
  835. package/dist/hooks/chat/use-slash-command.cjs.map +1 -1
  836. package/dist/hooks/chat/use-slash-command.d.ts +1 -2
  837. package/dist/hooks/chat/use-slash-command.js +1 -0
  838. package/dist/hooks/chat/use-slash-command.js.map +1 -1
  839. package/dist/hooks/mutation/use-create-conversation.cjs +1 -1
  840. package/dist/hooks/mutation/use-create-conversation.cjs.map +1 -1
  841. package/dist/hooks/mutation/use-create-conversation.js +27 -30
  842. package/dist/hooks/mutation/use-create-conversation.js.map +1 -1
  843. package/dist/hooks/mutation/use-create-provider-connection.cjs +1 -0
  844. package/dist/hooks/mutation/use-create-provider-connection.d.ts +2 -0
  845. package/dist/hooks/mutation/use-create-provider-connection.js +1 -0
  846. package/dist/hooks/mutation/use-delete-mcp-server.cjs +1 -1
  847. package/dist/hooks/mutation/use-delete-mcp-server.js +3 -3
  848. package/dist/hooks/mutation/use-delete-provider-connection.cjs +1 -0
  849. package/dist/hooks/mutation/use-delete-provider-connection.d.ts +1 -0
  850. package/dist/hooks/mutation/use-delete-provider-connection.js +1 -0
  851. package/dist/hooks/mutation/use-switch-acp-model.cjs +1 -1
  852. package/dist/hooks/mutation/use-switch-acp-model.cjs.map +1 -1
  853. package/dist/hooks/mutation/use-switch-acp-model.d.ts +5 -3
  854. package/dist/hooks/mutation/use-switch-acp-model.js +9 -13
  855. package/dist/hooks/mutation/use-switch-acp-model.js.map +1 -1
  856. package/dist/hooks/mutation/use-update-mcp-server.cjs +1 -1
  857. package/dist/hooks/mutation/use-update-mcp-server.js +6 -6
  858. package/dist/hooks/mutation/use-update-provider-connection.cjs +1 -0
  859. package/dist/hooks/mutation/use-update-provider-connection.d.ts +7 -0
  860. package/dist/hooks/mutation/use-update-provider-connection.js +1 -0
  861. package/dist/hooks/query/query-keys.cjs +1 -1
  862. package/dist/hooks/query/query-keys.cjs.map +1 -1
  863. package/dist/hooks/query/query-keys.d.ts +3 -0
  864. package/dist/hooks/query/query-keys.js +4 -4
  865. package/dist/hooks/query/query-keys.js.map +1 -1
  866. package/dist/hooks/query/use-automation-detail.cjs +1 -0
  867. package/dist/hooks/query/use-automation-detail.js +2 -0
  868. package/dist/hooks/query/use-automation-health.cjs +2 -0
  869. package/dist/hooks/query/use-automation-health.cjs.map +1 -0
  870. package/dist/hooks/query/use-automation-health.js +22 -0
  871. package/dist/hooks/query/use-automation-health.js.map +1 -0
  872. package/dist/hooks/query/use-automations.cjs +2 -0
  873. package/dist/hooks/query/use-automations.cjs.map +1 -0
  874. package/dist/hooks/query/use-automations.js +28 -0
  875. package/dist/hooks/query/use-automations.js.map +1 -0
  876. package/dist/hooks/query/use-backends-health.cjs +1 -1
  877. package/dist/hooks/query/use-backends-health.cjs.map +1 -1
  878. package/dist/hooks/query/use-backends-health.js +1 -1
  879. package/dist/hooks/query/use-backends-health.js.map +1 -1
  880. package/dist/hooks/query/use-commit-changes.cjs +1 -1
  881. package/dist/hooks/query/use-commit-changes.js +4 -4
  882. package/dist/hooks/query/use-conversation-history.cjs +1 -1
  883. package/dist/hooks/query/use-conversation-history.cjs.map +1 -1
  884. package/dist/hooks/query/use-conversation-history.js +3 -1
  885. package/dist/hooks/query/use-conversation-history.js.map +1 -1
  886. package/dist/hooks/query/use-conversation-metrics.cjs +1 -1
  887. package/dist/hooks/query/use-conversation-metrics.js +3 -3
  888. package/dist/hooks/query/use-latest-automation-runs.cjs +1 -0
  889. package/dist/hooks/query/use-latest-automation-runs.d.ts +2 -0
  890. package/dist/hooks/query/use-latest-automation-runs.js +3 -0
  891. package/dist/hooks/query/use-llm-profiles.d.ts +1 -1
  892. package/dist/hooks/query/use-paginated-conversations.cjs +1 -1
  893. package/dist/hooks/query/use-paginated-conversations.cjs.map +1 -1
  894. package/dist/hooks/query/use-paginated-conversations.js +1 -1
  895. package/dist/hooks/query/use-paginated-conversations.js.map +1 -1
  896. package/dist/hooks/query/use-provider-connections.cjs +2 -0
  897. package/dist/hooks/query/use-provider-connections.cjs.map +1 -0
  898. package/dist/hooks/query/use-provider-connections.d.ts +8 -0
  899. package/dist/hooks/query/use-provider-connections.js +19 -0
  900. package/dist/hooks/query/use-provider-connections.js.map +1 -0
  901. package/dist/hooks/query/use-repository-git-items.cjs +2 -0
  902. package/dist/hooks/query/use-repository-git-items.cjs.map +1 -0
  903. package/dist/hooks/query/use-repository-git-items.d.ts +3 -0
  904. package/dist/hooks/query/use-repository-git-items.js +33 -0
  905. package/dist/hooks/query/use-repository-git-items.js.map +1 -0
  906. package/dist/hooks/query/use-unified-get-git-changes.cjs +1 -1
  907. package/dist/hooks/query/use-unified-get-git-changes.js +4 -4
  908. package/dist/hooks/query/use-unified-git-commits.cjs +1 -1
  909. package/dist/hooks/query/use-unified-git-commits.js +4 -4
  910. package/dist/hooks/query/use-unified-git-diff.cjs +1 -1
  911. package/dist/hooks/query/use-unified-git-diff.js +4 -4
  912. package/dist/hooks/query/use-workspace-files.cjs +1 -1
  913. package/dist/hooks/query/use-workspace-files.js +6 -6
  914. package/dist/hooks/use-bash-command-runner.cjs +1 -1
  915. package/dist/hooks/use-bash-command-runner.cjs.map +1 -1
  916. package/dist/hooks/use-bash-command-runner.js +45 -42
  917. package/dist/hooks/use-bash-command-runner.js.map +1 -1
  918. package/dist/hooks/use-conversation-overview-column-space.cjs +2 -0
  919. package/dist/hooks/use-conversation-overview-column-space.cjs.map +1 -0
  920. package/dist/hooks/use-conversation-overview-column-space.d.ts +2 -0
  921. package/dist/hooks/use-conversation-overview-column-space.js +25 -0
  922. package/dist/hooks/use-conversation-overview-column-space.js.map +1 -0
  923. package/dist/hooks/use-conversation-overview-git-diff-stats.cjs +2 -0
  924. package/dist/hooks/use-conversation-overview-git-diff-stats.cjs.map +1 -0
  925. package/dist/hooks/use-conversation-overview-git-diff-stats.d.ts +7 -0
  926. package/dist/hooks/use-conversation-overview-git-diff-stats.js +37 -0
  927. package/dist/hooks/use-conversation-overview-git-diff-stats.js.map +1 -0
  928. package/dist/hooks/use-conversation-overview-panel-peek.cjs +2 -0
  929. package/dist/hooks/use-conversation-overview-panel-peek.cjs.map +1 -0
  930. package/dist/hooks/use-conversation-overview-panel-peek.d.ts +9 -0
  931. package/dist/hooks/use-conversation-overview-panel-peek.js +32 -0
  932. package/dist/hooks/use-conversation-overview-panel-peek.js.map +1 -0
  933. package/dist/hooks/use-conversation-overview-stats.cjs +2 -0
  934. package/dist/hooks/use-conversation-overview-stats.cjs.map +1 -0
  935. package/dist/hooks/use-conversation-overview-stats.d.ts +4 -0
  936. package/dist/hooks/use-conversation-overview-stats.js +15 -0
  937. package/dist/hooks/use-conversation-overview-stats.js.map +1 -0
  938. package/dist/hooks/use-conversation-primary-repository.cjs +2 -0
  939. package/dist/hooks/use-conversation-primary-repository.cjs.map +1 -0
  940. package/dist/hooks/use-conversation-primary-repository.d.ts +11 -0
  941. package/dist/hooks/use-conversation-primary-repository.js +17 -0
  942. package/dist/hooks/use-conversation-primary-repository.js.map +1 -0
  943. package/dist/hooks/use-drag-scroll.cjs +2 -0
  944. package/dist/hooks/use-drag-scroll.cjs.map +1 -0
  945. package/dist/hooks/use-drag-scroll.d.ts +12 -0
  946. package/dist/hooks/use-drag-scroll.js +41 -0
  947. package/dist/hooks/use-drag-scroll.js.map +1 -0
  948. package/dist/hooks/use-has-permission.cjs +2 -0
  949. package/dist/hooks/use-has-permission.cjs.map +1 -0
  950. package/dist/hooks/use-has-permission.js +8 -0
  951. package/dist/hooks/use-has-permission.js.map +1 -0
  952. package/dist/hooks/use-home-automation-actions.cjs +2 -0
  953. package/dist/hooks/use-home-automation-actions.cjs.map +1 -0
  954. package/dist/hooks/use-home-automation-actions.js +15 -0
  955. package/dist/hooks/use-home-automation-actions.js.map +1 -0
  956. package/dist/hooks/use-launch-skill-in-chat.cjs +2 -0
  957. package/dist/hooks/use-launch-skill-in-chat.cjs.map +1 -0
  958. package/dist/hooks/use-launch-skill-in-chat.js +16 -0
  959. package/dist/hooks/use-launch-skill-in-chat.js.map +1 -0
  960. package/dist/hooks/use-mcp-server-health.cjs +1 -1
  961. package/dist/hooks/use-mcp-server-health.js +3 -3
  962. package/dist/hooks/use-resizable-drawer-width.cjs +2 -0
  963. package/dist/hooks/use-resizable-drawer-width.cjs.map +1 -0
  964. package/dist/hooks/use-resizable-drawer-width.d.ts +22 -0
  965. package/dist/hooks/use-resizable-drawer-width.js +46 -0
  966. package/dist/hooks/use-resizable-drawer-width.js.map +1 -0
  967. package/dist/hooks/use-responder-url-secret.cjs +2 -0
  968. package/dist/hooks/use-responder-url-secret.cjs.map +1 -0
  969. package/dist/hooks/use-responder-url-secret.js +51 -0
  970. package/dist/hooks/use-responder-url-secret.js.map +1 -0
  971. package/dist/hooks/use-select-conversation-tab.cjs +1 -1
  972. package/dist/hooks/use-select-conversation-tab.cjs.map +1 -1
  973. package/dist/hooks/use-select-conversation-tab.d.ts +2 -0
  974. package/dist/hooks/use-select-conversation-tab.js +15 -7
  975. package/dist/hooks/use-select-conversation-tab.js.map +1 -1
  976. package/dist/hooks/use-tracking.cjs +1 -1
  977. package/dist/hooks/use-tracking.cjs.map +1 -1
  978. package/dist/hooks/use-tracking.d.ts +17 -0
  979. package/dist/hooks/use-tracking.js +10 -0
  980. package/dist/hooks/use-tracking.js.map +1 -1
  981. package/dist/hooks/use-websocket.cjs +1 -1
  982. package/dist/hooks/use-websocket.cjs.map +1 -1
  983. package/dist/hooks/use-websocket.d.ts +1 -2
  984. package/dist/hooks/use-websocket.js +58 -51
  985. package/dist/hooks/use-websocket.js.map +1 -1
  986. package/dist/i18n/declaration.cjs +1 -1
  987. package/dist/i18n/declaration.cjs.map +1 -1
  988. package/dist/i18n/declaration.d.ts +124 -43
  989. package/dist/i18n/declaration.js +1 -1
  990. package/dist/i18n/declaration.js.map +1 -1
  991. package/dist/i18n/translation.cjs +3 -3
  992. package/dist/i18n/translation.cjs.map +1 -1
  993. package/dist/i18n/translation.js +2091 -714
  994. package/dist/i18n/translation.js.map +1 -1
  995. package/dist/icons/check-circle.cjs +2 -0
  996. package/dist/icons/check-circle.cjs.map +1 -0
  997. package/dist/icons/check-circle.js +20 -0
  998. package/dist/icons/check-circle.js.map +1 -0
  999. package/dist/icons/chevron-down.cjs +2 -0
  1000. package/dist/icons/chevron-down.cjs.map +1 -0
  1001. package/dist/icons/chevron-down.js +20 -0
  1002. package/dist/icons/chevron-down.js.map +1 -0
  1003. package/dist/icons/clock.cjs +2 -0
  1004. package/dist/icons/clock.cjs.map +1 -0
  1005. package/dist/icons/clock.js +20 -0
  1006. package/dist/icons/clock.js.map +1 -0
  1007. package/dist/icons/exclamation-circle.cjs +2 -0
  1008. package/dist/icons/exclamation-circle.cjs.map +1 -0
  1009. package/dist/icons/exclamation-circle.js +20 -0
  1010. package/dist/icons/exclamation-circle.js.map +1 -0
  1011. package/dist/icons/kebab-vertical.cjs +2 -0
  1012. package/dist/icons/kebab-vertical.cjs.map +1 -0
  1013. package/dist/icons/kebab-vertical.js +14 -0
  1014. package/dist/icons/kebab-vertical.js.map +1 -0
  1015. package/dist/icons/key.cjs +2 -0
  1016. package/dist/icons/key.cjs.map +1 -0
  1017. package/dist/icons/key.js +21 -0
  1018. package/dist/icons/key.js.map +1 -0
  1019. package/dist/icons/message-square-share.cjs +2 -0
  1020. package/dist/icons/message-square-share.cjs.map +1 -0
  1021. package/dist/icons/message-square-share.js +22 -0
  1022. package/dist/icons/message-square-share.js.map +1 -0
  1023. package/dist/icons/play.cjs +2 -0
  1024. package/dist/icons/play.cjs.map +1 -0
  1025. package/dist/icons/play.js +19 -0
  1026. package/dist/icons/play.js.map +1 -0
  1027. package/dist/icons/power.cjs +2 -0
  1028. package/dist/icons/power.cjs.map +1 -0
  1029. package/dist/icons/power.js +20 -0
  1030. package/dist/icons/power.js.map +1 -0
  1031. package/dist/icons/sparkle.cjs +2 -0
  1032. package/dist/icons/sparkle.cjs.map +1 -0
  1033. package/dist/icons/sparkle.js +20 -0
  1034. package/dist/icons/sparkle.js.map +1 -0
  1035. package/dist/icons/trash.cjs +2 -0
  1036. package/dist/icons/trash.cjs.map +1 -0
  1037. package/dist/icons/trash.js +20 -0
  1038. package/dist/icons/trash.js.map +1 -0
  1039. package/dist/icons/x-circle.cjs +2 -0
  1040. package/dist/icons/x-circle.cjs.map +1 -0
  1041. package/dist/icons/x-circle.js +20 -0
  1042. package/dist/icons/x-circle.js.map +1 -0
  1043. package/dist/locales/ar/openhands.json +124 -43
  1044. package/dist/locales/ca/openhands.json +124 -43
  1045. package/dist/locales/de/openhands.json +124 -43
  1046. package/dist/locales/en/openhands.json +124 -43
  1047. package/dist/locales/es/openhands.json +124 -43
  1048. package/dist/locales/fr/openhands.json +124 -43
  1049. package/dist/locales/it/openhands.json +124 -43
  1050. package/dist/locales/ja/openhands.json +124 -43
  1051. package/dist/locales/ko-KR/openhands.json +124 -43
  1052. package/dist/locales/no/openhands.json +124 -43
  1053. package/dist/locales/pt/openhands.json +124 -43
  1054. package/dist/locales/tr/openhands.json +124 -43
  1055. package/dist/locales/uk/openhands.json +124 -43
  1056. package/dist/locales/zh-CN/openhands.json +124 -43
  1057. package/dist/locales/zh-TW/openhands.json +124 -43
  1058. package/dist/manifests/automation-insights.cjs +2 -0
  1059. package/dist/manifests/automation-insights.cjs.map +1 -0
  1060. package/dist/manifests/automation-insights.d.ts +2 -0
  1061. package/dist/manifests/automation-insights.js +9 -0
  1062. package/dist/manifests/automation-insights.js.map +1 -0
  1063. package/dist/manifests/automation-interface.cjs +1 -1
  1064. package/dist/manifests/automation-interface.cjs.map +1 -1
  1065. package/dist/manifests/automation-interface.d.ts +47 -31
  1066. package/dist/manifests/automation-interface.js +48 -54
  1067. package/dist/manifests/automation-interface.js.map +1 -1
  1068. package/dist/manifests/automation-setup.cjs +1 -1
  1069. package/dist/manifests/automation-setup.cjs.map +1 -1
  1070. package/dist/manifests/automation-setup.d.ts +37 -3
  1071. package/dist/manifests/automation-setup.js +16 -2
  1072. package/dist/manifests/automation-setup.js.map +1 -1
  1073. package/dist/manifests/interface-validation.cjs +1 -1
  1074. package/dist/manifests/interface-validation.cjs.map +1 -1
  1075. package/dist/manifests/interface-validation.js +56 -52
  1076. package/dist/manifests/interface-validation.js.map +1 -1
  1077. package/dist/manifests/manifest-actions.d.ts +5 -0
  1078. package/dist/manifests/manifest-bundle.d.ts +30 -0
  1079. package/dist/manifests/manifest-local-validation.d.ts +10 -1
  1080. package/dist/manifests/manifest-sources.cjs +1 -1
  1081. package/dist/manifests/manifest-sources.cjs.map +1 -1
  1082. package/dist/manifests/manifest-sources.js +3 -3
  1083. package/dist/manifests/manifest-sources.js.map +1 -1
  1084. package/dist/manifests/manifest-template.d.ts +14 -0
  1085. package/dist/manifests/manifest-validation.cjs +1 -1
  1086. package/dist/manifests/manifest-validation.cjs.map +1 -1
  1087. package/dist/manifests/manifest-validation.js +78 -45
  1088. package/dist/manifests/manifest-validation.js.map +1 -1
  1089. package/dist/manifests/types.cjs +1 -1
  1090. package/dist/manifests/types.cjs.map +1 -1
  1091. package/dist/manifests/types.d.ts +64 -3
  1092. package/dist/manifests/types.js +7 -6
  1093. package/dist/manifests/types.js.map +1 -1
  1094. package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.cjs +1 -1
  1095. package/dist/node_modules/@heroui/popover/dist/chunk-NW7HJLND.js +10 -10
  1096. package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.cjs +1 -1
  1097. package/dist/node_modules/@heroui/ripple/dist/chunk-UIQI3AYJ.js +8 -8
  1098. package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.cjs +1 -1
  1099. package/dist/node_modules/@heroui/tooltip/dist/chunk-AUA5GDXN.js +9 -9
  1100. package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs +4843 -0
  1101. package/dist/node_modules/@openhands/extensions/automations/bundle-index.cjs.map +1 -0
  1102. package/dist/node_modules/@openhands/extensions/automations/bundle-index.js +11 -0
  1103. package/dist/node_modules/@openhands/extensions/automations/bundle-index.js.map +1 -0
  1104. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs +13 -0
  1105. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.cjs.map +1 -0
  1106. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js +87 -0
  1107. package/dist/node_modules/@openhands/extensions/automations/catalog/github-agents-md-maintainer/manifest.js.map +1 -0
  1108. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs +12 -0
  1109. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.cjs.map +1 -0
  1110. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js +98 -0
  1111. package/dist/node_modules/@openhands/extensions/automations/catalog/github-issue-to-pr/manifest.js.map +1 -0
  1112. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs +9 -7
  1113. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.cjs.map +1 -1
  1114. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js +32 -13
  1115. package/dist/node_modules/@openhands/extensions/automations/catalog/github-pr-reviewer/manifest.js.map +1 -1
  1116. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs +2 -2
  1117. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.cjs.map +1 -1
  1118. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js +29 -34
  1119. package/dist/node_modules/@openhands/extensions/automations/catalog/github-repo-monitor/manifest.js.map +1 -1
  1120. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs +3 -3
  1121. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.cjs.map +1 -1
  1122. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js +2 -2
  1123. package/dist/node_modules/@openhands/extensions/automations/catalog/jira-issue-to-pr/manifest.js.map +1 -1
  1124. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs +14 -0
  1125. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.cjs.map +1 -0
  1126. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js +72 -0
  1127. package/dist/node_modules/@openhands/extensions/automations/catalog/news-digest/manifest.js.map +1 -0
  1128. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs +1 -1
  1129. package/dist/node_modules/@openhands/extensions/automations/catalog-index.cjs.map +1 -1
  1130. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js +16 -10
  1131. package/dist/node_modules/@openhands/extensions/automations/catalog-index.js.map +1 -1
  1132. package/dist/node_modules/@openhands/extensions/automations/index.cjs +1 -1
  1133. package/dist/node_modules/@openhands/extensions/automations/index.cjs.map +1 -1
  1134. package/dist/node_modules/@openhands/extensions/automations/index.js +18 -13
  1135. package/dist/node_modules/@openhands/extensions/automations/index.js.map +1 -1
  1136. package/dist/node_modules/@openhands/extensions/automations/interface.cjs +1 -1
  1137. package/dist/node_modules/@openhands/extensions/automations/interface.cjs.map +1 -1
  1138. package/dist/node_modules/@openhands/extensions/automations/interface.js +6 -2
  1139. package/dist/node_modules/@openhands/extensions/automations/interface.js.map +1 -1
  1140. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs +1 -1
  1141. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.cjs.map +1 -1
  1142. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js +36 -3
  1143. package/dist/node_modules/@openhands/extensions/integrations/catalog/posthog.js.map +1 -1
  1144. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs +2 -0
  1145. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.cjs.map +1 -0
  1146. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js +75 -0
  1147. package/dist/node_modules/@openhands/extensions/integrations/catalog/sonarqube.js.map +1 -0
  1148. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs +1 -1
  1149. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.cjs.map +1 -1
  1150. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js +68 -66
  1151. package/dist/node_modules/@openhands/extensions/integrations/catalog-index.js.map +1 -1
  1152. package/dist/node_modules/@openhands/extensions/skills/index.cjs +1002 -47
  1153. package/dist/node_modules/@openhands/extensions/skills/index.cjs.map +1 -1
  1154. package/dist/node_modules/@openhands/extensions/skills/index.js +59 -17
  1155. package/dist/node_modules/@openhands/extensions/skills/index.js.map +1 -1
  1156. package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs +2 -0
  1157. package/dist/node_modules/lucide-react/dist/esm/icons/activity.cjs.map +1 -0
  1158. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +9 -0
  1159. package/dist/node_modules/lucide-react/dist/esm/icons/activity.js.map +1 -0
  1160. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs +2 -0
  1161. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.cjs.map +1 -0
  1162. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js +12 -0
  1163. package/dist/node_modules/lucide-react/dist/esm/icons/book-open.js.map +1 -0
  1164. package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs +2 -0
  1165. package/dist/node_modules/lucide-react/dist/esm/icons/download.cjs.map +1 -0
  1166. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +19 -0
  1167. package/dist/node_modules/lucide-react/dist/esm/icons/download.js.map +1 -0
  1168. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs +2 -0
  1169. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.cjs.map +1 -0
  1170. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +27 -0
  1171. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js.map +1 -0
  1172. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs +2 -0
  1173. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.cjs.map +1 -0
  1174. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js +27 -0
  1175. package/dist/node_modules/lucide-react/dist/esm/icons/git-commit-horizontal.js.map +1 -0
  1176. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs +2 -0
  1177. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.cjs.map +1 -0
  1178. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js +12 -0
  1179. package/dist/node_modules/lucide-react/dist/esm/icons/laptop.js.map +1 -0
  1180. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs +2 -0
  1181. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.cjs.map +1 -0
  1182. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +39 -0
  1183. package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js.map +1 -0
  1184. package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs +2 -0
  1185. package/dist/node_modules/lucide-react/dist/esm/icons/library.cjs.map +1 -0
  1186. package/dist/node_modules/lucide-react/dist/esm/icons/library.js +23 -0
  1187. package/dist/node_modules/lucide-react/dist/esm/icons/library.js.map +1 -0
  1188. package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs +2 -0
  1189. package/dist/node_modules/lucide-react/dist/esm/icons/package.cjs.map +1 -0
  1190. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +23 -0
  1191. package/dist/node_modules/lucide-react/dist/esm/icons/package.js.map +1 -0
  1192. package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs +2 -0
  1193. package/dist/node_modules/lucide-react/dist/esm/icons/palette.cjs.map +1 -0
  1194. package/dist/node_modules/lucide-react/dist/esm/icons/palette.js +39 -0
  1195. package/dist/node_modules/lucide-react/dist/esm/icons/palette.js.map +1 -0
  1196. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs +2 -0
  1197. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.cjs.map +1 -0
  1198. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +12 -0
  1199. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js.map +1 -0
  1200. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs +2 -0
  1201. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.cjs.map +1 -0
  1202. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +12 -0
  1203. package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js.map +1 -0
  1204. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs +2 -0
  1205. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.cjs.map +1 -0
  1206. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +25 -0
  1207. package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js.map +1 -0
  1208. package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs +2 -0
  1209. package/dist/node_modules/lucide-react/dist/esm/icons/timer.cjs.map +1 -0
  1210. package/dist/node_modules/lucide-react/dist/esm/icons/timer.js +27 -0
  1211. package/dist/node_modules/lucide-react/dist/esm/icons/timer.js.map +1 -0
  1212. package/dist/package.cjs +1 -1
  1213. package/dist/package.cjs.map +1 -1
  1214. package/dist/package.js +3 -3
  1215. package/dist/package.js.map +1 -1
  1216. package/dist/routes/app-settings.cjs +1 -1
  1217. package/dist/routes/app-settings.cjs.map +1 -1
  1218. package/dist/routes/app-settings.js +87 -85
  1219. package/dist/routes/app-settings.js.map +1 -1
  1220. package/dist/routes/commits-tab.cjs +1 -1
  1221. package/dist/routes/commits-tab.cjs.map +1 -1
  1222. package/dist/routes/commits-tab.js +27 -21
  1223. package/dist/routes/commits-tab.js.map +1 -1
  1224. package/dist/routes/conversation.cjs +1 -1
  1225. package/dist/routes/conversation.cjs.map +1 -1
  1226. package/dist/routes/conversation.js +56 -55
  1227. package/dist/routes/conversation.js.map +1 -1
  1228. package/dist/routes/files-tab.cjs +1 -1
  1229. package/dist/routes/files-tab.cjs.map +1 -1
  1230. package/dist/routes/files-tab.d.ts +4 -0
  1231. package/dist/routes/files-tab.js +121 -151
  1232. package/dist/routes/files-tab.js.map +1 -1
  1233. package/dist/routes/llm-settings.cjs +1 -1
  1234. package/dist/routes/llm-settings.cjs.map +1 -1
  1235. package/dist/routes/llm-settings.d.ts +9 -1
  1236. package/dist/routes/llm-settings.js +137 -107
  1237. package/dist/routes/llm-settings.js.map +1 -1
  1238. package/dist/routes/mcp.cjs +1 -1
  1239. package/dist/routes/mcp.cjs.map +1 -1
  1240. package/dist/routes/mcp.js +20 -20
  1241. package/dist/routes/secrets-settings.cjs +1 -1
  1242. package/dist/routes/secrets-settings.js +15 -15
  1243. package/dist/stores/conversation-store.cjs +1 -1
  1244. package/dist/stores/conversation-store.cjs.map +1 -1
  1245. package/dist/stores/conversation-store.d.ts +8 -1
  1246. package/dist/stores/conversation-store.js +9 -0
  1247. package/dist/stores/conversation-store.js.map +1 -1
  1248. package/dist/stores/files-tab-store.cjs +1 -1
  1249. package/dist/stores/files-tab-store.cjs.map +1 -1
  1250. package/dist/stores/files-tab-store.d.ts +13 -0
  1251. package/dist/stores/files-tab-store.js +49 -5
  1252. package/dist/stores/files-tab-store.js.map +1 -1
  1253. package/dist/stores/use-event-store.cjs +1 -1
  1254. package/dist/stores/use-event-store.cjs.map +1 -1
  1255. package/dist/stores/use-event-store.js +11 -11
  1256. package/dist/stores/use-event-store.js.map +1 -1
  1257. package/dist/types/agent-server/core/events/message-event.d.ts +2 -2
  1258. package/dist/types/automation.cjs +2 -0
  1259. package/dist/types/automation.cjs.map +1 -0
  1260. package/dist/types/automation.js +8 -0
  1261. package/dist/types/automation.js.map +1 -0
  1262. package/dist/utils/automation-catalog.cjs +1 -1
  1263. package/dist/utils/automation-catalog.cjs.map +1 -1
  1264. package/dist/utils/automation-catalog.d.ts +12 -0
  1265. package/dist/utils/automation-catalog.js +20 -1
  1266. package/dist/utils/automation-catalog.js.map +1 -1
  1267. package/dist/utils/automation-schedule.cjs +2 -0
  1268. package/dist/utils/automation-schedule.cjs.map +1 -0
  1269. package/dist/utils/automation-schedule.js +8 -0
  1270. package/dist/utils/automation-schedule.js.map +1 -0
  1271. package/dist/utils/automation-stack-section.cjs +2 -0
  1272. package/dist/utils/automation-stack-section.cjs.map +1 -0
  1273. package/dist/utils/automation-stack-section.d.ts +2 -0
  1274. package/dist/utils/automation-stack-section.js +6 -0
  1275. package/dist/utils/automation-stack-section.js.map +1 -0
  1276. package/dist/utils/constants.cjs +1 -1
  1277. package/dist/utils/constants.cjs.map +1 -1
  1278. package/dist/utils/constants.js +4 -0
  1279. package/dist/utils/constants.js.map +1 -1
  1280. package/dist/utils/conversation-local-storage.cjs +1 -1
  1281. package/dist/utils/conversation-local-storage.cjs.map +1 -1
  1282. package/dist/utils/conversation-local-storage.d.ts +17 -4
  1283. package/dist/utils/conversation-local-storage.js +111 -63
  1284. package/dist/utils/conversation-local-storage.js.map +1 -1
  1285. package/dist/utils/conversation-metrics.cjs +1 -1
  1286. package/dist/utils/conversation-metrics.cjs.map +1 -1
  1287. package/dist/utils/conversation-metrics.d.ts +3 -2
  1288. package/dist/utils/conversation-metrics.js +16 -14
  1289. package/dist/utils/conversation-metrics.js.map +1 -1
  1290. package/dist/utils/conversation-overview-project-scope.cjs +2 -0
  1291. package/dist/utils/conversation-overview-project-scope.cjs.map +1 -0
  1292. package/dist/utils/conversation-overview-project-scope.d.ts +16 -0
  1293. package/dist/utils/conversation-overview-project-scope.js +22 -0
  1294. package/dist/utils/conversation-overview-project-scope.js.map +1 -0
  1295. package/dist/utils/extension-module-card-classes.cjs +1 -1
  1296. package/dist/utils/extension-module-card-classes.cjs.map +1 -1
  1297. package/dist/utils/extension-module-card-classes.d.ts +1 -1
  1298. package/dist/utils/extension-module-card-classes.js +2 -2
  1299. package/dist/utils/extension-module-card-classes.js.map +1 -1
  1300. package/dist/utils/format-relative-time.cjs +2 -0
  1301. package/dist/utils/format-relative-time.cjs.map +1 -0
  1302. package/dist/utils/format-relative-time.js +17 -0
  1303. package/dist/utils/format-relative-time.js.map +1 -0
  1304. package/dist/utils/git-diff-stats.cjs +5 -0
  1305. package/dist/utils/git-diff-stats.cjs.map +1 -0
  1306. package/dist/utils/git-diff-stats.d.ts +9 -0
  1307. package/dist/utils/git-diff-stats.js +53 -0
  1308. package/dist/utils/git-diff-stats.js.map +1 -0
  1309. package/dist/utils/handle-event-for-ui.cjs +1 -1
  1310. package/dist/utils/handle-event-for-ui.cjs.map +1 -1
  1311. package/dist/utils/handle-event-for-ui.js +13 -11
  1312. package/dist/utils/handle-event-for-ui.js.map +1 -1
  1313. package/dist/utils/mcp-credential-validation.cjs +1 -1
  1314. package/dist/utils/mcp-credential-validation.js +3 -3
  1315. package/dist/utils/mcp-marketplace-utils.cjs +1 -1
  1316. package/dist/utils/mcp-marketplace-utils.cjs.map +1 -1
  1317. package/dist/utils/mcp-marketplace-utils.js +22 -9
  1318. package/dist/utils/mcp-marketplace-utils.js.map +1 -1
  1319. package/dist/utils/parse-git-remote-url.cjs +1 -1
  1320. package/dist/utils/parse-git-remote-url.cjs.map +1 -1
  1321. package/dist/utils/parse-git-remote-url.js +6 -7
  1322. package/dist/utils/parse-git-remote-url.js.map +1 -1
  1323. package/dist/utils/recommended-automation-rail.cjs +2 -0
  1324. package/dist/utils/recommended-automation-rail.cjs.map +1 -0
  1325. package/dist/utils/recommended-automation-rail.d.ts +22 -0
  1326. package/dist/utils/recommended-automation-rail.js +44 -0
  1327. package/dist/utils/recommended-automation-rail.js.map +1 -0
  1328. package/dist/utils/responder-deployment.cjs +2 -0
  1329. package/dist/utils/responder-deployment.cjs.map +1 -0
  1330. package/dist/utils/responder-deployment.js +42 -0
  1331. package/dist/utils/responder-deployment.js.map +1 -0
  1332. package/dist/utils/scroll-fade-state.cjs +2 -0
  1333. package/dist/utils/scroll-fade-state.cjs.map +1 -0
  1334. package/dist/utils/scroll-fade-state.d.ts +6 -0
  1335. package/dist/utils/scroll-fade-state.js +13 -0
  1336. package/dist/utils/scroll-fade-state.js.map +1 -0
  1337. package/dist/utils/skill-category.cjs +2 -0
  1338. package/dist/utils/skill-category.cjs.map +1 -0
  1339. package/dist/utils/skill-category.js +51 -0
  1340. package/dist/utils/skill-category.js.map +1 -0
  1341. package/dist/utils/skill-scope.cjs +1 -1
  1342. package/dist/utils/skill-scope.cjs.map +1 -1
  1343. package/dist/utils/skill-scope.js +1 -1
  1344. package/dist/utils/skill-scope.js.map +1 -1
  1345. package/dist/utils/streaming-delta-batcher.cjs +2 -0
  1346. package/dist/utils/streaming-delta-batcher.cjs.map +1 -0
  1347. package/dist/utils/streaming-delta-batcher.d.ts +21 -0
  1348. package/dist/utils/streaming-delta-batcher.js +31 -0
  1349. package/dist/utils/streaming-delta-batcher.js.map +1 -0
  1350. package/dist/utils/tar-gzip.d.ts +26 -0
  1351. package/dist/utils/utils.cjs +1 -1
  1352. package/dist/utils/utils.cjs.map +1 -1
  1353. package/dist/utils/utils.d.ts +1 -41
  1354. package/dist/utils/utils.js +27 -6
  1355. package/dist/utils/utils.js.map +1 -1
  1356. package/dist/utils/websocket-handshake.cjs +2 -0
  1357. package/dist/utils/websocket-handshake.cjs.map +1 -0
  1358. package/dist/utils/websocket-handshake.d.ts +11 -0
  1359. package/dist/utils/websocket-handshake.js +12 -0
  1360. package/dist/utils/websocket-handshake.js.map +1 -0
  1361. package/package.json +3 -3
  1362. package/scripts/check-translation-completeness.cjs +4 -0
  1363. package/scripts/dev-static.mjs +49 -43
  1364. package/scripts/dev-with-automation.mjs +13 -5
  1365. package/scripts/seed-automation-ux-data.mjs +810 -0
  1366. package/build/assets/acp-providers-CYy8qA2z.js +0 -1
  1367. package/build/assets/active-backend-context-BZDG15C0.js +0 -2
  1368. package/build/assets/agent-context-settings-DGWBBbcp.js +0 -1
  1369. package/build/assets/agent-profiles-settings-DrkGdf4_.js +0 -1
  1370. package/build/assets/agent-server-conversation-service.api-DK56YPTs.js +0 -86
  1371. package/build/assets/agent-settings-DfcSgkLD.js +0 -2
  1372. package/build/assets/agent-settings-Lrc5-twS.js +0 -1
  1373. package/build/assets/alert-banner-BgDHhL7b.js +0 -1
  1374. package/build/assets/api-error-message-BEIE_yD1.js +0 -1
  1375. package/build/assets/api-key-entry-screen-DaZnOlVo.js +0 -1
  1376. package/build/assets/app-settings-BG5NAUbC.js +0 -1
  1377. package/build/assets/automation-detail-D4Hs831Z.js +0 -3
  1378. package/build/assets/automation-export-n0X6FB0C.js +0 -2
  1379. package/build/assets/automation-git-sync-CDrm8WV7.js +0 -1
  1380. package/build/assets/automation-setup-route-CZCl4ONs.js +0 -1
  1381. package/build/assets/automation-templates-DFF96AdL.js +0 -1
  1382. package/build/assets/automations-list-Bl-oGOrV.js +0 -1
  1383. package/build/assets/back-nav-button-H_ThtDA0.js +0 -1
  1384. package/build/assets/backend-form-modal-CbCemvHt.js +0 -1
  1385. package/build/assets/backend-not-configured-DP8KLNq_.js +0 -1
  1386. package/build/assets/backend-synced-settings-badge-BBASWqsb.js +0 -1
  1387. package/build/assets/badge-B-51h-SW.js +0 -1
  1388. package/build/assets/base-modal-BbjycA8X.js +0 -1
  1389. package/build/assets/bot-CGPCg03p.js +0 -1
  1390. package/build/assets/brand-button-Blxv5nww.js +0 -1
  1391. package/build/assets/browser-CuW0nWvh.js +0 -7
  1392. package/build/assets/browser-tab-D5G0ORwt.js +0 -1
  1393. package/build/assets/chat-send-button-BD2tii1r.js +0 -1
  1394. package/build/assets/check-DSuS-lyr.js +0 -1
  1395. package/build/assets/chevron-down-CgGcmtE2.js +0 -1
  1396. package/build/assets/circle-check-CG5-NPw7.js +0 -1
  1397. package/build/assets/circle-plus-check-toggle-ASbpB8vN.js +0 -1
  1398. package/build/assets/cloud-funnel-analytics-GlCUG0gk.js +0 -1
  1399. package/build/assets/cog-CZiR80uT.js +0 -1
  1400. package/build/assets/combobox-caret-DvpEsh2O.js +0 -1
  1401. package/build/assets/command-menu-DwUQzjYP.js +0 -1
  1402. package/build/assets/condenser-settings-BptcoiLA.js +0 -1
  1403. package/build/assets/confirmation-modal-CiEwxZAA.js +0 -1
  1404. package/build/assets/context-menu-list-item-CdcamfM1.js +0 -1
  1405. package/build/assets/conversation-DREHj4nT.js +0 -1
  1406. package/build/assets/conversation-DotRfiDz.js +0 -90
  1407. package/build/assets/conversation-panel-DREHj4nT.js +0 -1
  1408. package/build/assets/conversation-state-store-DMLtlHbE.js +0 -1
  1409. package/build/assets/conversation-store-Blc5xysY.js +0 -6
  1410. package/build/assets/conversation-tab-empty-state-D-puECpY.js +0 -1
  1411. package/build/assets/copy-to-clipboard-button-BGxcUbgy.js +0 -1
  1412. package/build/assets/device-verify-CZJfWaJf.js +0 -1
  1413. package/build/assets/dropdown-classes-tLhpwtxS.js +0 -1
  1414. package/build/assets/entry.client-D8GnI6GZ.js +0 -2
  1415. package/build/assets/enum-filter-dropdown-Fk8k60nk.js +0 -1
  1416. package/build/assets/environment-switch-overlay-DeztVYuL.js +0 -1
  1417. package/build/assets/extension-module-card-classes-Bo43vY5V.js +0 -1
  1418. package/build/assets/extensions-hub-Cd6GCYzq.js +0 -1
  1419. package/build/assets/extensions-navigation-C4sgZg-y.js +0 -1
  1420. package/build/assets/external-link-C0UpBgsE.js +0 -1
  1421. package/build/assets/file-text-C6WYtNdV.js +0 -1
  1422. package/build/assets/files-tab-BW_qzyAm.js +0 -1
  1423. package/build/assets/form-control-classes-CGXBLcn1.js +0 -1
  1424. package/build/assets/format-relative-time-ZhQD4rsl.js +0 -1
  1425. package/build/assets/git-provider-icon-CaQ1yLPi.js +0 -1
  1426. package/build/assets/git-repo-dropdown-CgXR6M_E.js +0 -1
  1427. package/build/assets/git-repo-dropdown-D2Uei3CO.js +0 -1
  1428. package/build/assets/highlighted-source-view-C_YOp8Fo.js +0 -1
  1429. package/build/assets/home-DNzzJcMP.js +0 -1
  1430. package/build/assets/home-aCos-5vc.js +0 -1
  1431. package/build/assets/home-store-DgzViC3f.js +0 -1
  1432. package/build/assets/index-home-DNzzJcMP.js +0 -1
  1433. package/build/assets/info-CLoC1LRo.js +0 -1
  1434. package/build/assets/install-server-modal-D7zIqNKz.js +0 -1
  1435. package/build/assets/kebab-menu-item-content-DERMdnDv.js +0 -1
  1436. package/build/assets/launch-5PjKeLak.js +0 -1
  1437. package/build/assets/list-todo-BF049YaY.js +0 -1
  1438. package/build/assets/llm-not-configured-banner-BK9z5eS0.js +0 -27
  1439. package/build/assets/llm-settings-BLAMK2tR.js +0 -1
  1440. package/build/assets/llm-settings-BWsbarGM.js +0 -1
  1441. package/build/assets/llm-subscription-service-SfnEV9Uc.js +0 -1
  1442. package/build/assets/loader-circle-D7IagAyF.js +0 -1
  1443. package/build/assets/loading-spinner-DBgXgra0.js +0 -1
  1444. package/build/assets/manage-backends-modal-BTqNPhzc.js +0 -1
  1445. package/build/assets/manifest-abebca3c.js +0 -1
  1446. package/build/assets/manifest-subpage-layout-Rn-glaxV.js +0 -1
  1447. package/build/assets/map-provider-BK4HnqYz.js +0 -1
  1448. package/build/assets/markdown-renderer-Cp6DlHQN.js +0 -8
  1449. package/build/assets/mcp-BC-Ixn4T.js +0 -9
  1450. package/build/assets/mcp-marketplace-utils-BJWJgbB6.js +0 -1
  1451. package/build/assets/messages-CzFKrzPG.js +0 -40
  1452. package/build/assets/modal-body-BdKfD3Hl.js +0 -1
  1453. package/build/assets/modal-classes-D5_b5vMi.js +0 -1
  1454. package/build/assets/modal-close-button-objukxk_.js +0 -1
  1455. package/build/assets/mouse-pointer-click-C_gXyLyD.js +0 -1
  1456. package/build/assets/npm-CHVHV1MC.js +0 -1
  1457. package/build/assets/onboarding-Diw0V51A.js +0 -1
  1458. package/build/assets/onboarding-modal-Da4yHzsA.js +0 -1
  1459. package/build/assets/organization-service.api-BztSy69u.js +0 -1
  1460. package/build/assets/parse-git-remote-url-BkXN9jzl.js +0 -1
  1461. package/build/assets/pencil-49avMHlD.js +0 -1
  1462. package/build/assets/planner-tab-CJiSpNax.js +0 -1
  1463. package/build/assets/plugins-management-service-lHdNKWNU.js +0 -1
  1464. package/build/assets/plus-C0BagBpV.js +0 -1
  1465. package/build/assets/profiles-service.api-BLr7FXec.js +0 -1
  1466. package/build/assets/providers-CWXnb7S3.js +0 -1
  1467. package/build/assets/proxy-DYDXxtje.js +0 -1
  1468. package/build/assets/puzzle-Bt2B1rzf.js +0 -1
  1469. package/build/assets/recommended-automations-launcher-CcFMfJRR.js +0 -1
  1470. package/build/assets/refresh-cw-nmcesifB.js +0 -1
  1471. package/build/assets/root-CT4t7apy.css +0 -1
  1472. package/build/assets/root-DnRgLKpU.js +0 -2
  1473. package/build/assets/root-layout-2L9tr-BN.js +0 -2
  1474. package/build/assets/schema-field-C59lVZTA.js +0 -1
  1475. package/build/assets/sdk-section-page-BbBEQQjq.js +0 -1
  1476. package/build/assets/search-CYSDBczG.js +0 -1
  1477. package/build/assets/secrets-service-BtsgYSlj.js +0 -1
  1478. package/build/assets/secrets-settings-DJ0OKa4_.js +0 -1
  1479. package/build/assets/segmented-toggle-DiVfTZuN.js +0 -1
  1480. package/build/assets/settings-CDqL_Uqh.js +0 -1
  1481. package/build/assets/settings-dropdown-input-Ba1UN5Du.js +0 -1
  1482. package/build/assets/settings-index-Cz2cKt2K.js +0 -1
  1483. package/build/assets/settings-input-CWUEHHvS.js +0 -1
  1484. package/build/assets/settings-list-classes-DdcLXDGn.js +0 -1
  1485. package/build/assets/settings-modal-nEEK1Kh1.js +0 -1
  1486. package/build/assets/settings-service.api-3yAUFcaP.js +0 -1
  1487. package/build/assets/settings-switch-Dk9hChx1.js +0 -1
  1488. package/build/assets/settings-utils-CxjtCSB3.js +0 -1
  1489. package/build/assets/shared-conversation-DbAcrx3s.js +0 -1
  1490. package/build/assets/shield-check-CiOTXxV2.js +0 -1
  1491. package/build/assets/sidebar-layout-lrfPooIB.js +0 -1
  1492. package/build/assets/sidebar-mobile-menu-toggle-KERXfNu1.js +0 -1
  1493. package/build/assets/sidebar-nav-link-B8lFD6Cb.js +0 -1
  1494. package/build/assets/sidebar-store-u6pUpxJ7.js +0 -1
  1495. package/build/assets/skill-card-pill-row-dGIUzr_b.js +0 -1
  1496. package/build/assets/skill-icon-badge-kkOWZ89w.js +0 -1
  1497. package/build/assets/skill-scope-DWN1PBPH.js +0 -1
  1498. package/build/assets/skills-plugins-DFjH2Nq6.js +0 -1
  1499. package/build/assets/skills-settings-DIHpl3ol.js +0 -2
  1500. package/build/assets/sparkles-ntyMLnbj.js +0 -1
  1501. package/build/assets/styled-tooltip-B6JXcsmL.js +0 -1
  1502. package/build/assets/task-list-tab-aEJzEcHD.js +0 -1
  1503. package/build/assets/terminal-Dch7Ty5K.js +0 -3
  1504. package/build/assets/toggle-switch-B2MLKsgt.js +0 -1
  1505. package/build/assets/trash-2-yZnDM4Ji.js +0 -1
  1506. package/build/assets/typography-DB5HoCk0.js +0 -1
  1507. package/build/assets/usage-tab-DrEtBmBT.js +0 -1
  1508. package/build/assets/use-acp-credential-form-c8KXAa8A.js +0 -1
  1509. package/build/assets/use-activate-agent-profile-B0p34N3q.js +0 -1
  1510. package/build/assets/use-agent-profiles-CPIc6wLH.js +0 -1
  1511. package/build/assets/use-can-manage-org-profiles-Dz_8Eqkv.js +0 -1
  1512. package/build/assets/use-cloud-current-user-id-DvUVqCle.js +0 -1
  1513. package/build/assets/use-config-C3PO4TBw.js +0 -1
  1514. package/build/assets/use-create-conversation-DVrA_uLD.js +0 -1
  1515. package/build/assets/use-create-secret-DbBIpaCR.js +0 -1
  1516. package/build/assets/use-get-secrets-6PBitf54.js +0 -1
  1517. package/build/assets/use-has-permission-CQ31Cl8j.js +0 -1
  1518. package/build/assets/use-is-authed-2UrDIziV.js +0 -1
  1519. package/build/assets/use-is-creating-conversation-BvYpmb3v.js +0 -1
  1520. package/build/assets/use-launch-skill-in-chat-COnDpxCQ.js +0 -1
  1521. package/build/assets/use-llm-profiles-diZS4FiN.js +0 -1
  1522. package/build/assets/use-manifest-capabilities-HIWCtIUm.js +0 -1
  1523. package/build/assets/use-onboarding-completion-Bs8PcXik.js +0 -1
  1524. package/build/assets/use-plugins-marketplace-BCuNLFsr.js +0 -1
  1525. package/build/assets/use-save-agent-profile-BaMNSpBV.js +0 -1
  1526. package/build/assets/use-save-settings-BahvC2Gw.js +0 -1
  1527. package/build/assets/use-settings-C6ZxpBDX.js +0 -1
  1528. package/build/assets/use-settings-nav-items-Bqn69Ggw.js +0 -16
  1529. package/build/assets/use-tracking-Bhu7gk2y.js +0 -3
  1530. package/build/assets/use-user-conversation-BkNXpXrd.js +0 -1
  1531. package/build/assets/useInfiniteQuery-c_OmS3lK.js +0 -1
  1532. package/build/assets/useMutation-6ZsQCqAn.js +0 -1
  1533. package/build/assets/useQueries-xDrGlTO_.js +0 -1
  1534. package/build/assets/useQuery-Bs5NFz2s.js +0 -1
  1535. package/build/assets/utils-DUD5ScdA.js +0 -1
  1536. package/build/assets/vendor~browser-B-fae1JU.js +0 -47
  1537. package/build/assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js +0 -186
  1538. package/build/assets/vendor~files-tab-B6POTS66.js +0 -11
  1539. package/build/assets/vendor~index-home~home~conversation-panel~conversation-53Q_U6uP.js +0 -13
  1540. package/build/assets/vendor~root-layout-DeQACFVA.js +0 -1
  1541. package/build/assets/vendor~root-layout~conversation-panel~conversation-bv7ooVgH.js +0 -1
  1542. package/build/assets/vendor~root-layout~conversation-panel~conversation~skills-settings~automations-list~shared-~bovqqk8e-e8pX05xf.js +0 -1
  1543. package/build/assets/vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-BvS6PCK2.js +0 -1
  1544. package/build/assets/vendor~root-layout~index-home~home~mcp~automations-list~automation-templates~automation-set~bxsimjx0-D7IDevqN.js +0 -1
  1545. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-DOPLJMH9.js +0 -48
  1546. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js +0 -1
  1547. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~eo2nf80n-BOVIFA_g.js +0 -73
  1548. package/build/assets/vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C0JXQb_q.js +0 -7465
  1549. package/build/assets/verification-settings-COueVXmM.js +0 -1
  1550. package/build/assets/wrench-C95ujnYo.js +0 -1
  1551. package/build/assets/x-86ZCfxKY.js +0 -1
  1552. package/build/assets/zap-DRa-r-Tf.js +0 -1
  1553. package/dist/components/features/diff-viewer/empty-changes-message.cjs +0 -2
  1554. package/dist/components/features/diff-viewer/empty-changes-message.cjs.map +0 -1
  1555. package/dist/components/features/diff-viewer/empty-changes-message.js +0 -17
  1556. package/dist/components/features/diff-viewer/empty-changes-message.js.map +0 -1
  1557. package/dist/components/features/tips/random-tip.cjs +0 -2
  1558. package/dist/components/features/tips/random-tip.cjs.map +0 -1
  1559. package/dist/components/features/tips/random-tip.js +0 -41
  1560. package/dist/components/features/tips/random-tip.js.map +0 -1
  1561. package/dist/hooks/query/use-has-git-commits.cjs +0 -2
  1562. package/dist/hooks/query/use-has-git-commits.cjs.map +0 -1
  1563. package/dist/hooks/query/use-has-git-commits.d.ts +0 -25
  1564. package/dist/hooks/query/use-has-git-commits.js +0 -31
  1565. package/dist/hooks/query/use-has-git-commits.js.map +0 -1
  1566. package/dist/hooks/use-has-attached-source.cjs +0 -2
  1567. package/dist/hooks/use-has-attached-source.cjs.map +0 -1
  1568. package/dist/hooks/use-has-attached-source.d.ts +0 -18
  1569. package/dist/hooks/use-has-attached-source.js +0 -14
  1570. package/dist/hooks/use-has-attached-source.js.map +0 -1
  1571. package/dist/icons/chveron-up.cjs +0 -2
  1572. package/dist/icons/chveron-up.cjs.map +0 -1
  1573. package/dist/icons/chveron-up.js +0 -21
  1574. package/dist/icons/chveron-up.js.map +0 -1
  1575. package/dist/routes/changes-tab.cjs +0 -2
  1576. package/dist/routes/changes-tab.cjs.map +0 -1
  1577. package/dist/routes/changes-tab.d.ts +0 -3
  1578. package/dist/routes/changes-tab.js +0 -64
  1579. package/dist/routes/changes-tab.js.map +0 -1
  1580. package/dist/utils/file-priority.cjs +0 -2
  1581. package/dist/utils/file-priority.cjs.map +0 -1
  1582. package/dist/utils/file-priority.d.ts +0 -27
  1583. package/dist/utils/file-priority.js +0 -61
  1584. package/dist/utils/file-priority.js.map +0 -1
  1585. package/dist/utils/table-row-classes.d.ts +0 -9
  1586. package/dist/utils/tips.cjs +0 -2
  1587. package/dist/utils/tips.cjs.map +0 -1
  1588. package/dist/utils/tips.js +0 -45
  1589. package/dist/utils/tips.js.map +0 -1
  1590. /package/build/assets/{vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dcc51rps-rfV8mQ9m.js → vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ew3u153i-rfV8mQ9m.js} +0 -0
@@ -1 +0,0 @@
1
- import{z as e}from"./utils-DUD5ScdA.js";import{n as t}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-DOPLJMH9.js";var n=`cli-generic`;function r(e){if(typeof e!=`string`)return null;let t=e.trim();return!t||t===`acp-managed`?null:t}function i(e){for(let t of[e.runtimeName,e.runtimeId,e.configured,e.sdkLlm]){let e=r(t);if(e)return e}return e.providerDefault??null}var a={"claude-code":{icon:`claude-code`,description_key:e.ONBOARDING$AGENT_CLAUDE_CODE_DESCRIPTION},codex:{icon:`codex`,description_key:e.ONBOARDING$AGENT_CODEX_DESCRIPTION},"gemini-cli":{icon:`gemini`,description_key:e.ONBOARDING$AGENT_GEMINI_CLI_DESCRIPTION}},o=Object.entries(a).map(([e,n])=>{let r=t(e);return{key:e,display_name:r?.display_name??e,default_command:r?[...r.default_command]:[],available_models:r?.available_models?.map(e=>({id:e.id,label:e.label})),default_model:r?.default_model??void 0,description_key:n.description_key,icon:n.icon}}),s=`custom`,c={codex:[{name:`CODEX_AUTH_JSON`,secret:!0,multiline:!0,hint_key:e.ONBOARDING$ACP_SECRET_FILE_BLOB_HINT,hint_values:{file:`~/.codex/auth.json`}}],"claude-code":[{name:`CLAUDE_CODE_OAUTH_TOKEN`,secret:!0,hint_key:e.ONBOARDING$ACP_SECRET_OAUTH_TOKEN_HINT}],"gemini-cli":[{name:`GOOGLE_APPLICATION_CREDENTIALS_JSON`,secret:!0,multiline:!0,hint_key:e.ONBOARDING$ACP_SECRET_FILE_BLOB_HINT,hint_values:{file:`~/.config/gcloud/application_default_credentials.json`}},{name:`GOOGLE_CLOUD_PROJECT`,hint_key:e.ONBOARDING$ACP_SECRET_GCP_PROJECT_HINT},{name:`GOOGLE_CLOUD_LOCATION`,hint_key:e.ONBOARDING$ACP_SECRET_GCP_LOCATION_HINT},{name:`GOOGLE_GENAI_USE_VERTEXAI`,hint_key:e.ONBOARDING$ACP_SECRET_VERTEXAI_FLAG_HINT}]},l={"claude-code":[[`CLAUDE_CODE_OAUTH_TOKEN`,`ANTHROPIC_API_KEY`],[`CLAUDE_CODE_OAUTH_TOKEN`,`ANTHROPIC_BASE_URL`]]};function u(e,t){return e?(l[e]??[]).filter(([e,n])=>t(e)&&t(n)):[]}var d=`gemini-2.5-pro`;function f(e){return e===`gemini-cli`?d:m(e)?.default_model??null}function p(n){if(!n)return[];let r=t(n);if(!r)return[];let i=[...c[n]??[]];return r.api_key_env_var&&i.push({name:r.api_key_env_var,secret:!0,hint_key:e.ONBOARDING$ACP_SECRET_API_KEY_HINT}),r.base_url_env_var&&i.push({name:r.base_url_env_var,hint_key:e.ONBOARDING$ACP_SECRET_BASE_URL_HINT}),i}function m(e){if(e)return o.find(t=>t.key===e)}function h(e){let t=m(e);return t?t.display_name:null}function g(e){return m(e)?.icon??`cli-generic`}function _(e,t){return t?m(e)?.available_models?.find(e=>e.id===t)?.label??t:null}function v(e,t={}){if(e===`openhands`)return{agent_kind:`openhands`};let n=e===s,r=n?void 0:m(e);if(!n&&!r&&!t.allowUnknownServer)return null;let i=t.model===void 0?f(e):t.model;return{agent_kind:`acp`,acp_server:e,acp_command:t.command??[],acp_args:[],acp_model:i??null}}export{u as a,h as c,g as d,i as f,v as i,p as l,o as n,f as o,n as r,m as s,s as t,_ as u};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor~module-DyG7x7JT.js","assets/rolldown-runtime-Cyuzqnbw.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{r as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{A as a,E as o,F as s,I as ee,L as te,N as ne,O as re,T as c,b as ie,f as ae,k as oe}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{R as se,t as ce,z as l}from"./utils-DUD5ScdA.js";var u=e(t(),1),le=`__AGENT_CANVAS_BASE_PATH__`;function ue(e){let t=e?.trim();return!t||t===`/`?``:(t.startsWith(`/`)?t:`/${t}`).replace(/\/+$/,``)}function de(){let e=ue(void 0);if(e)return e;if(typeof window<`u`){let e=window[le];if(typeof e==`string`)return ue(e)}return``}function fe(e){let t=de();return t?`${t}${e.startsWith(`/`)?e:`/${e}`}`:e.startsWith(`/`)?e:`/${e}`}var d=`openhands`,pe=[{label:`English`,value:`en`},{label:`日本語`,value:`ja`},{label:`简体中文`,value:`zh-CN`},{label:`繁體中文`,value:`zh-TW`},{label:`한국어`,value:`ko-KR`},{label:`Norsk`,value:`no`},{label:`Arabic`,value:`ar`},{label:`Deutsch`,value:`de`},{label:`Français`,value:`fr`},{label:`Italiano`,value:`it`},{label:`Português`,value:`pt`},{label:`Español`,value:`es`},{label:`Català`,value:`ca`},{label:`Türkçe`,value:`tr`},{label:`Українська`,value:`uk`}],me=new WeakMap,he=e=>{if(!me.has(e)){let t=e.use(oe).use(re).use(i).init({fallbackLng:`en`,debug:!1,supportedLngs:pe.map(e=>e.value),nonExplicitSupportedLngs:!1,ns:[d],defaultNS:d,fallbackNS:d,backend:{loadPath:fe(`/locales/{{lng}}/{{ns}}.json`)},interpolation:{escapeValue:!1}});me.set(e,t)}return e},ge=()=>he(ne()),_e=null,ve=null,f=()=>(_e||=ge(),_e),ye=()=>ve??f(),be=e=>(ve=e??f(),ve),xe=async(e=f())=>(await me.get(e),e),Se=e=>e?typeof e==`object`&&!Array.isArray(e)?{ns:d,...e}:e:{ns:d},p=new Proxy({},{get:(e,t)=>{let n=ye();if(t===`t`)return(e,t)=>n.t(e,Se(t));if(t===`exists`)return(e,t)=>n.exists(e,Se(t));let r=Reflect.get(n,t,n);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>{let r=ye();return Reflect.set(r,t,n,r)}}),Ce=e=>typeof e.response?.data==`object`&&e.response?.data!==null&&`error`in e.response.data&&typeof e.response?.data?.error==`string`,we=e=>typeof e.response?.data==`object`&&e.response?.data!==null&&`message`in e.response.data&&typeof e.response?.data?.message==`string`,Te=`Disconnected (check URL or network). Check that the backend URL is correct and the backend server is reachable. If the backend is on another origin, check that it allows this frontend origin.`,Ee=`Disconnected (request timed out). Check that the backend URL is correct and reachable.`,De=4;function Oe(e){return typeof e==`object`&&!!e}function ke(e){let t=[],n=new Set,r=e,i=0;for(;r!=null&&i<De&&!n.has(r);){if(n.add(r),r instanceof Error)r.message&&t.push(r.message),r=r.cause;else if(typeof r==`string`){r&&t.push(r);break}else if(Oe(r)){let e=r.message;typeof e==`string`&&e&&t.push(e),r=r.cause}else break;i+=1}return t}function Ae(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`disconnected (check cors or network)`)||t.includes(`disconnected (check url or network)`)||t.includes(`blocked by cors`)||t.includes(`failed to fetch`)||t.includes(`network error`)||t.includes(`load failed`)||t.includes(`networkerror when attempting to fetch resource`)||t.includes(`cors`)&&t.includes(`blocked`)}function je(e){return ke(e).some(Ae)}function Me(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`request timeout`)||t.includes(`timeout after`)||t.includes(`backend request timed out`)}function Ne(e){let t=ke(e);return t.some(Ae)?Te:t.some(Me)?Ee:t[0]??null}function Pe(e){return typeof e==`object`&&!!e&&`isAxiosError`in e&&e.isAxiosError===!0}var Fe=e=>{let t=null,n=!1;return Pe(e)?(n=!0,t=Ce(e)&&e.response?.data.error?e.response?.data.error:we(e)&&e.response?.data.message?e.response?.data.message:e.message):t=e instanceof Error?e.message:typeof e==`string`?e:null,Ne(n?t??e:e)??t??``},m=(e,t=5e3,n=1e4)=>{if(!e)return t;let r=e.length/(1e3/60)*1e3*1.5;return Math.min(Math.max(r,t),n)},h=r(),Ie={background:`var(--oh-color-tertiary)`,border:`1px solid var(--oh-border-input)`,color:`#fff`,borderRadius:`var(--oh-radius)`,maxWidth:`400px`,wordBreak:`break-word`,overflowWrap:`anywhere`,whiteSpace:`pre-wrap`},g={position:`top-right`,style:Ie},Le={...Ie,color:`var(--oh-muted)`};function Re({message:e}){let t=u.useRef(null),[n,r]=u.useState(!1);return u.useLayoutEffect(()=>{let e=t.current;if(!e)return;let n=()=>{let t=Number.parseFloat(getComputedStyle(e).lineHeight);if(!Number.isFinite(t)||t<=0){r(!1);return}r(e.getBoundingClientRect().height>t*1.5)};n();let i=new ResizeObserver(n);return i.observe(e),()=>i.disconnect()},[e]),(0,h.jsxs)(`div`,{className:ce(`flex min-w-0 gap-2`,n?`items-start`:`items-center`),children:[(0,h.jsx)(o,{"aria-hidden":!0,className:`h-4 w-4 shrink-0`,strokeWidth:2,style:{color:se}}),(0,h.jsx)(`span`,{ref:t,className:`min-w-0 flex-1 text-sm leading-5 [word-break:break-word] [overflow-wrap:anywhere]`,children:e})]})}var ze={...g,icon:null,style:Le},Be=e=>{let t=e||p.t(l.STATUS$ERROR);Ae(t)?t=p.t(l.ERROR$CORS_OR_NETWORK):Me(t)&&(t=p.t(l.ERROR$BACKEND_REQUEST_TIMEOUT));let n=m(t,4e3);c((0,h.jsx)(Re,{message:t}),{...ze,duration:n})},Ve=e=>{let t=m(e,5e3);c.success((0,h.jsx)(`span`,{className:`[word-break:break-word] [overflow-wrap:anywhere]`,children:e}),{...g,duration:t})},He=(e,t,n)=>{let r=m(`${e} ${t}`,5e3);c.success((0,h.jsxs)(`span`,{className:`[word-break:break-word] [overflow-wrap:anywhere]`,children:[e,` `,(0,h.jsx)(`a`,{className:`underline hover:no-underline`,href:n,children:t})]}),{...g,duration:r})},Ue=e=>{let t=m(e,6e3);c((0,h.jsx)(`span`,{className:`[word-break:break-word] [overflow-wrap:anywhere]`,children:e}),{...g,icon:`⚠️`,duration:t})},We=`openhands-backend-health`,Ge=500;function Ke(e){if(typeof e!=`object`||!e)return!1;let t=e;return Number.isInteger(t.consecutiveFailures)&&t.consecutiveFailures>=0&&t.consecutiveFailures<=5&&(t.lastError===null||typeof t.lastError==`string`)&&(t.lastFailureAt===null||typeof t.lastFailureAt==`number`)&&typeof t.disabled==`boolean`}function qe(){if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(We);if(!e)return{};let t=JSON.parse(e);if(typeof t!=`object`||!t)return{};let n={};for(let[e,r]of Object.entries(t))typeof e==`string`&&e.length>0&&Ke(r)&&(n[e]=r);return n}catch{return{}}}function Je(e){if(!(typeof window>`u`))try{if(Object.keys(e).length===0){window.localStorage.removeItem(We);return}window.localStorage.setItem(We,JSON.stringify(e))}catch{}}function Ye(e){let t=Ne(e)??`Unknown error`;return t.length>Ge?`${t.slice(0,Ge)}…`:t}var _=qe(),Xe=new Set;function Ze(){Xe.forEach(e=>e())}function v(e){_=e,Je(e),Ze()}function Qe(){return _}function $e(e){return _[e]??null}function et(e){return Xe.add(e),()=>{Xe.delete(e)}}function tt(e,t){let n=_[e],r=Math.min((n?.consecutiveFailures??0)+1,5),i=n?.disabled===!0||r>=5,a={consecutiveFailures:r,lastError:Ye(t),lastFailureAt:Date.now(),disabled:i};v({..._,[e]:a})}function nt(e){if(!(e in _))return;let{[e]:t,...n}=_;v(n)}function rt(e){if(!(e in _))return;let{[e]:t,...n}=_;v(n)}function it(e){if(!(e in _))return;let{[e]:t,...n}=_;v(n)}var at=`workspace/project`,ot=`__AGENT_CANVAS_LOCK_TO_CLOUD__`,st=`all-hands.dev`,y=`openhands.dev`,ct=`app.${st}`,lt=y,ut=`app.${y}`;function dt(e){return e?.trim()||null}function ft(e){if(!e)return null;let t=e.trim().replace(/\/$/,``);return t?/^https?:\/\//i.test(t)?t:typeof window<`u`?`${window.location.protocol}//${t}`:`http://${t}`:null}function pt(e){if(!e)return null;let t=e.trim().replace(/\/+$/,``);return t?/^https?:\/\//i.test(t)?t:`https://${t}`:null}function mt(e){let t=e.toLowerCase();return t===ct||t===ut?lt:t===st?y:t.endsWith(`.${st}`)?`${t.slice(0,-13)}${y}`:t}function ht(e){let t=pt(e);if(!t)return null;try{let e=new URL(t),n=e.port?`:${e.port}`:``;return`${e.protocol}//${mt(e.hostname)}${n}`}catch{return t.toLowerCase()}}function gt(){let e=b();return!e||typeof window>`u`||!bt(window.location.origin,e)?null:window.location.origin}function _t(){return ft(void 0)}function vt(){let e=dt(void 0);if(e)return e;if(typeof window<`u`){let e=window.__AGENT_CANVAS_SESSION_API_KEY__;if(typeof e==`string`)return dt(e)}return null}function yt(){return{baseUrl:St()??``,sessionApiKey:x()??``}}function b(){let e=pt(void 0);if(e)return e;if(typeof window<`u`){let e=window[ot];if(typeof e==`string`)return pt(e)}return null}function bt(e,t){let n=ht(e),r=ht(t);return!n||!r?!1:n===r}function xt(){return gt()?`cookie`:`api-key`}function St(){return _t()||(typeof window<`u`?window.location.origin:null)}function x(){return vt()}function Ct(){return at}function wt(e){return`${Ct().replace(/\/+$/,``)}/${e.replace(/-/g,``)}`}function Tt(){let e=x();return e?{"X-Session-API-Key":e}:{}}function S(){return typeof window<`u`&&window.__AGENT_CANVAS_AUTH_REQUIRED__===!0}function Et(){return S()?!x():!1}var Dt=`default-local`,Ot=`Local`,kt=`locked-cloud`,At=`OpenHands Cloud`;function jt(){if(!b())return null;let e=gt();return e?{id:kt,name:At,host:e,apiKey:``,kind:`cloud`,authMode:`cookie`}:null}function C(){if(b())return null;let e=St(),t=x();return!e||!t?null:{id:Dt,name:Ot,host:e,apiKey:t,kind:`local`}}var Mt=`openhands-backends`,w=`openhands-active-backend`;function Nt(e){return e===`local`||e===`cloud`}function Pt(e){return e===void 0||e===`api-key`||e===`cookie`}function Ft(e){if(typeof e!=`object`||!e)return!1;let t=e;return typeof t.id==`string`&&t.id.length>0&&typeof t.name==`string`&&typeof t.host==`string`&&typeof t.apiKey==`string`&&Nt(t.kind)&&Pt(t.authMode)&&(t.connectionRevision===void 0||typeof t.connectionRevision==`number`&&Number.isSafeInteger(t.connectionRevision)&&t.connectionRevision>=0)}function It(e){try{let{hostname:t}=new URL(e);return t===`localhost`||t===`127.0.0.1`||t===`::1`||t===`[::1]`}catch{return!1}}function Lt(e,t){return e.id!==`default-local`||e.kind!==`local`?!1:e.host===t.host||It(e.host)&&It(t.host)}function Rt(e){let t=C();if(!t)return e;let n=!1,r=e.map(e=>!Lt(e,t)||e.apiKey===t.apiKey?e:(n=!0,{...e,apiKey:t.apiKey}));return n?(T(r),r):e}function T(e){if(!(typeof window>`u`))try{window.localStorage.setItem(Mt,JSON.stringify(e))}catch{}}function zt(){if(typeof window>`u`)return[];try{let e=jt();if(e)return T([e]),Wt()?.backendId!==e.id&&E({backendId:e.id}),[e];let t=window.localStorage.getItem(Mt);if(t===null){let e=C();return e?(T([e]),[e]):[]}let n=JSON.parse(t);if(!Array.isArray(n))return[];let r=n.filter(Ft);if(r.length===0){let e=C();return e?(T([e]),[e]):[]}return Rt(r)}catch{return[]}}function Bt(e){if(!e)return null;try{let t=JSON.parse(e);if(typeof t!=`object`||!t||typeof t.backendId!=`string`)return null;let n=t.orgId;return{backendId:t.backendId,orgId:typeof n==`string`&&n.length>0?n:null}}catch{return null}}function Vt(e,t){try{return e?.getItem(t)??null}catch{return null}}function Ht(e,t,n){try{e?.setItem(t,n)}catch{}}function Ut(e,t){try{e?.removeItem(t)}catch{}}function Wt(){return typeof window>`u`?null:Bt(Vt(window.sessionStorage,w))||Bt(Vt(window.localStorage,w))}function E(e){if(typeof window>`u`)return;if(!e){Ut(window.sessionStorage,w),Ut(window.localStorage,w);return}let t=JSON.stringify({backendId:e.backendId,orgId:e.orgId??null});Ht(window.sessionStorage,w,t),Ht(window.localStorage,w,t)}var Gt=`backend`;function Kt(e,t){let{backend:n,orgId:r}=t;if(!n.id)return e;let[i,a=``]=e.split(`?`),o=new URLSearchParams(a);return o.set(Gt,n.id),r&&o.set(`org`,r),`${i}?${o.toString()}`}function qt(e,t){if(!t)return null;let n;try{n=new URLSearchParams(t)}catch{return null}let r=n.get(Gt);return!r||!e.some(e=>e.id===r)?null:{backendId:r,orgId:n.get(`org`)||null}}function Jt(){return typeof window>`u`?``:window.location.search}var Yt=`no-backend`,Xt={id:Yt,name:`No Backend Available`,host:``,apiKey:``,kind:`local`};function Zt(e){return e.id===Yt}function Qt(e){return e.find(e=>e.kind===`local`&&$e(e.id)?.disabled!==!0)||(e.find(e=>e.kind===`local`)??e[0]??Xt)}function $t(e,t){let n=null,r=null;if(t){let i=e.find(e=>e.id===t.backendId);i&&(n=i,r=t.orgId??null)}return n||(n=Qt(e),r=null),{backends:e,selection:t,active:{backend:n,orgId:r}}}function en(e){let t=qt(e,Jt());return t?(E(t),t):Wt()}var tn=zt(),D=$t(tn,en(tn)),nn=new Set;function rn(){nn.forEach(e=>e())}function an(){return D.active}function O(){let e=D.active.backend;return e.kind===`local`&&!Zt(e)?e:null}function k(){return D.backends}function on(){return D.selection}function A(){return D}function sn(e){E(e),D=$t(D.backends,e),rn()}function cn(e){T(e);let t=D.selection;t&&!e.some(e=>e.id===t.backendId)&&(t=null,E(null)),D=$t(e,t),rn()}function ln(e){return nn.add(e),()=>{nn.delete(e)}}var un=(e,t)=>{(e?.response?.status===401||e?.status===401)&&t.invalidateQueries({queryKey:[`user`,`authenticated`]})},dn=e=>{if(!(e instanceof a)||e.response?.status!==401&&e.status!==401)return!1;let t=an().backend;if(t.kind!==`cloud`)return!1;let n=e.config?.url;return!n||n.startsWith(t.host.replace(/\/+$/,``))},fn=new Set,pn=()=>{let e=new s({queryCache:new ee({onSuccess:(e,t)=>{let n=t.meta?.backendId??t.options.meta?.backendId;typeof n==`string`&&nt(n)},onError:(t,n)=>{if(n.queryKey[0]===`user`&&n.queryKey[1]===`authenticated`||un(t,e),!(n.meta?.disableToast??n.options.meta?.disableToast)&&!dn(t)){let e=Fe(t);fn.has(e||``)||(Be(e||p.t(l.ERROR$GENERIC)),fn.add(e||``),setTimeout(()=>{fn.delete(e||``)},3e3))}}}),mutationCache:new te({onError:(t,n,r,i)=>{un(t,e),!(i?.meta?.disableToast??i?.options.meta?.disableToast)&&!dn(t)&&Be(Fe(t)||p.t(l.ERROR$GENERIC))}})});return e},mn=null,hn=null,gn=()=>(mn||=pn(),mn),_n=()=>hn??gn(),vn=e=>(hn=e??gn(),hn),yn=new Proxy({},{get:(e,t)=>{let n=_n(),r=Reflect.get(n,t,n);return typeof r==`function`?r.bind(n):r},set:(e,t,n)=>{let r=_n();return Reflect.set(r,t,n,r)}});function bn(e){if(e&&!e.startsWith(`/`))try{let t=new URL(e),n=t.hostname,r=window.location.hostname??window.location.host?.split(`:`)[0];return r&&(n===`localhost`||n===`127.0.0.1`)&&r!==`localhost`&&r!==`127.0.0.1`?`${r}:${t.port}`:t.host}catch{return window.location.host}return window.location.host}function xn(e){if(e&&!e.startsWith(`/`))try{return(new URL(e).pathname.split(`/api/conversations`)[0]||``).replace(/\/$/,``)}catch{return``}return``}function Sn(e){let t=bn(e),n=xn(e),r=window.location.protocol===`https:`,i=Cn(e)===`https:`;return`${r||i?`https:`:`http:`}//${t}${n}`}function Cn(e){if(!e||e.startsWith(`/`))return null;try{return new URL(e).protocol}catch{return null}}function wn(e){let t=bn(e),n=xn(e),r=window.location.protocol===`https:`,i=Cn(e)===`https:`;return`${r||i?`wss:`:`ws:`}//${t}${n}/sockets/bash-events`}function Tn(e,t){if(!e)return null;let n=bn(t),r=xn(t),i=window.location.protocol===`https:`,a=Cn(t)===`https:`;return`${i||a?`wss:`:`ws:`}//${n}${r}/sockets/events/${e}`}var En=class extends Error{constructor(){super(`No backend is configured.`),this.name=`NoBackendAvailableError`}};function Dn(e){return e.replace(/\/+$/,``)}function On(e,t){return e.host?Dn(e.host):e.conversationUrl?Dn(Sn(e.conversationUrl)):Dn(t?.host??``)}function kn(e={}){let t=O();if(!t&&!e.host&&!e.conversationUrl)throw new En;let n=e.sessionApiKey??e.apiKey??t?.apiKey??void 0;return{host:On(e,t),...n?{apiKey:n}:{},workingDir:e.workingDir??Ct(),...e.timeout===void 0?{}:{timeout:e.timeout}}}function An(e){let{host:t,apiKey:n,timeout:r}=kn(e);return{baseUrl:t,...n?{apiKey:n}:{},timeout:r??6e4}}var jn={_comment:`Single source of truth for version pins, ports, paths, and defaults shared across the npm and Docker install paths. Read by scripts/dev-safe.mjs, scripts/dev-with-automation.mjs, docker/entrypoint.sh (via generated defaults.env), and .github/workflows/docker.yml.`,versions:{agentServer:`1.42.1`,agentCanvas:`1.14.0`,automation:`1.7.1`},compatibility:{minimumAgentServer:`1.28.0`},constraints:{_comment:`Temporary upper bound on the agent-client-protocol (acp) transitive dependency. openhands-sdk 1.35.0 requires agent-client-protocol>=0.10.1 with no upper bound, but acp 0.11.0 reordered the ACP prompt() arguments and breaks the SDK's ACP client (a PromptRequest validation error surfaces as 'ACP error: 2 validation errors for PromptRequest'). Pin acp <0.11 until a fixed openhands-sdk ships. Consumed by scripts/dev-safe.mjs (agent-server uvx install) and .github/workflows/mock-llm-e2e.yml (mock ACP server venv).`,agentClientProtocol:`agent-client-protocol<0.11`},images:{agentServer:`ghcr.io/openhands/agent-server`,agentCanvas:`ghcr.io/openhands/agent-canvas`},ports:{agentServer:18e3,automation:18001,proxy:8e3},paths:{stateSubdir:`agent-canvas`,conversations:`agent-canvas/conversations`,bashEvents:`agent-canvas/bash_events`,automationDb:`automation/automations.db`,canvasBasePath:`/canvas`},packages:{agentServer:`openhands-agent-server`,automation:`openhands-automation`,tools:`openhands-tools`,workspace:`openhands-workspace`},telemetry:{posthogApiKey:`phc_kBtz5nKmxVRRQ7HtPwr2QX9eMC5j65zE86QKocVNwb4U`,posthogHost:`https://us.i.posthog.com`}},Mn=5e3,Nn=`unknown`,j=jn.compatibility.minimumAgentServer,Pn=`AGENT_SERVER_UNSUPPORTED_VERSION`,Fn=`AGENT_SERVER_UNKNOWN_VERSION`,M=null,In=null,Ln=e=>Array.isArray(e?.usable_tools)?e.usable_tools:null,N=class extends Error{details;noBackendConfigured;constructor(e,t){let n=t?.noBackendConfigured??!1;super(n?`No agent server backend is configured yet. Add a backend to get started.`:`Could not connect to the configured agent server. Make sure it is running and reachable, then reload the page.`),this.name=`AgentServerUnavailableError`,this.details=e??null,this.noBackendConfigured=n}},Rn=e=>e instanceof N||typeof e==`object`&&!!e&&`name`in e&&(e.name===`AgentServerUnavailableError`||e.name===`AgentServerUnsupportedVersionError`||e.name===`AgentServerUnknownVersionError`),zn=class extends N{code=Pn;actualVersion;requiredVersion=j;constructor(e){let t=`Agent Canvas requires agent-server ${j} or newer; this backend is running ${e}. Please upgrade the agent-server backend.`;super(t),this.name=`AgentServerUnsupportedVersionError`,this.message=t,this.actualVersion=e}},Bn=class extends N{code=Fn;actualVersion;requiredVersion=j;constructor(e){let t=`Could not determine this backend's agent-server version.${e?` It reported "${e}".`:``} Agent Canvas requires agent-server ${j} or newer, but this backend did not return a valid version from /server_info. Restart or rebuild the agent-server backend, then try again.`;super(t),this.name=`AgentServerUnknownVersionError`,this.message=t,this.actualVersion=e}},Vn=e=>S()&&F(e,401);function P(){M=null,In=null}function Hn(e){return e?.host&&e.host!==In?null:M}function Un(e){let t=Ln(M);return Array.isArray(t)?t.includes(e):!0}function Wn(e){return e instanceof Error&&e.name===`HttpError`&&`status`in e&&typeof e.status==`number`}function F(e,t){return Wn(e)&&e.status===t}function Gn(e){return typeof e==`string`&&e.trim()||null}function Kn(e){return Gn(e.sdk_version)}function qn(e){return Gn(e.version)??Kn(e)}function Jn(e){let t=qn(e);return!t||t.toLowerCase()===Nn?null:t}function Yn(e){let t=Jn(e);return!t||!Qn(t)?null:t}function Xn(e){return!M||e&&O()?.host!==e?null:Yn(M)}function Zn(e,t){let n=Qn(e),r=Qn(t);if(!n||!r)return null;for(let e of[`major`,`minor`,`patch`]){if(n[e]>r[e])return 1;if(n[e]<r[e])return-1}return n.prerelease&&!r.prerelease?-1:!n.prerelease&&r.prerelease?1:n.prerelease&&r.prerelease?n.prerelease.localeCompare(r.prerelease):0}function Qn(e){let[t]=e.trim().replace(/^v/,``).split(`+`),[n,r]=t.split(`-`,2),i=n.split(`.`);if(i.length!==3)return null;let[a,o,s]=i.map(e=>Number(e));return[a,o,s].every(e=>Number.isInteger(e)&&e>=0)?{major:a,minor:o,patch:s,prerelease:r}:null}function $n(e){let t=Jn(e);if(!t)throw P(),new Bn(qn(e));let n=Zn(t,j);if(n===null)throw P(),new Bn(t);if(n<0)throw P(),new zn(t)}async function er(){let e=O();if(!e){if(P(),Zt(an().backend))throw new N(`No backend configured`,{noBackendConfigured:!0});return null}let t=kn({host:e.host,sessionApiKey:e.apiKey||null,timeout:Mn}),n;try{n=await new ie(t).getServerInfo()}catch(e){throw P(),F(e,401)?e:new N(e instanceof Error?e.message:null)}if($n(n),S())try{await new ae(t).getSettings()}catch(e){if(F(e,401))throw e;console.warn(`[agent-server] getSettings() probe failed (non-401):`,e)}return M=n,In=t.host,n}var tr={WEB_CLIENT_CONFIG:[`web-client-config`],MAIN_APP_COOKIE_AUTH:[`main-app-cookie-auth`]},nr={all:[`settings`],byScope:e=>[`settings`,e],personal:()=>[`settings`,`personal`]},rr={all:[`llm-profiles`]},ir={all:[`agent-profiles`]},ar={retry:!1},or={all:[`llm-subscription`],openaiStatus:[`llm-subscription`,`openai`,`status`],openaiModels:[`llm-subscription`,`openai`,`models`]},sr={all:[`local-workspaces`]},cr={marketplace:[`plugins-marketplace`],installed:[`plugins-installed`],local:[`plugins-local`]},lr={capabilities:()=>[`setup-capabilities`]},ur={latestVersion:[`agent-canvas-latest-version`]},dr={staleTime:1e3*60*5,gcTime:1e3*60*15},fr={name:`@openhands/agent-canvas`,version:`1.14.0`,description:`Agent Canvas UI for OpenHands - run AI coding agents with a visual interface`,license:`MIT`,private:!1,type:`module`,repository:{type:`git`,url:`https://github.com/OpenHands/OpenHands`},homepage:`https://github.com/OpenHands/OpenHands#readme`,bugs:{url:`https://github.com/OpenHands/OpenHands/issues`},bin:{"agent-canvas":`bin/agent-canvas.mjs`},engines:{node:`>=22.12.0`},dependencies:{"@heroui/react":`2.8.10`,"@microlink/react-json-view":`1.31.25`,"@monaco-editor/react":`4.7.0`,"@openhands/extensions":`0.16.0`,"@openhands/typescript-client":`1.38.0`,"@react-router/node":`7.18.2`,"@react-router/serve":`7.18.2`,"@tailwindcss/vite":`4.3.3`,"@tanstack/react-query":`5.101.4`,"@types/shell-quote":`1.7.5`,"@uidotdev/usehooks":`2.4.1`,"@xterm/addon-fit":`0.11.0`,"@xterm/xterm":`6.0.0`,axios:`1.18.0`,"class-variance-authority":`0.7.1`,clsx:`2.1.1`,downshift:`9.3.2`,"framer-motion":`12.38.0`,httpxy:`0.5.3`,i18next:`26.3.6`,"i18next-browser-languagedetector":`8.2.1`,"i18next-http-backend":`4.0.1`,isbot:`5.1.39`,"lucide-react":`1.25.0`,"monaco-editor":`0.56.0`,"posthog-js":`1.380.0`,react:`19.2.8`,"react-dom":`19.2.8`,"react-hot-toast":`2.6.0`,"react-i18next":`17.0.11`,"react-icons":`5.6.0`,"react-markdown":`10.1.0`,"react-router":`7.18.2`,"react-syntax-highlighter":`16.1.1`,"rehype-raw":`7.0.0`,"rehype-sanitize":`6.0.0`,"remark-breaks":`4.0.0`,"remark-gfm":`4.0.1`,"shell-quote":`1.9.0`,sirv:`3.0.2`,"sirv-cli":`3.0.1`,"socket.io-client":`4.8.3`,"tailwind-merge":`3.6.0`,"tailwind-scrollbar":`4.0.2`,"unist-util-visit":`5.1.0`,uuid:`14.0.0`,vite:`8.0.16`,winston:`3.19.0`,"winston-daily-rotate-file":`5.0.0`,zustand:`5.0.14`},scripts:{dev:`node --env-file-if-exists=.env scripts/dev-with-automation.mjs`,"dev:static":`node --env-file-if-exists=.env scripts/dev-static.mjs`,"dev:extra-backend":`node --env-file-if-exists=.env scripts/dev-extra-backend.mjs`,"dev:minimal":`node --env-file-if-exists=.env scripts/dev-safe.mjs`,"dev:frontend":`npm run make-i18n && cross-env VITE_MOCK_API=false react-router dev`,"dev:mock":`npm run make-i18n && cross-env VITE_MOCK_API=true react-router dev`,build:`npm run build:app`,"build:mock":`npm run make-i18n && cross-env VITE_MOCK_API=true react-router build`,start:`npx sirv-cli build/ --single`,test:`npm run make-i18n && vitest run`,"test:e2e":`playwright test --pass-with-no-tests`,"test:e2e:live":`node --env-file-if-exists=.env tests/e2e/live/scripts/run-live-e2e.mjs`,"test:e2e:mock-llm":`playwright test --config=playwright.mock-llm.config.ts`,"test:e2e:mock-llm:docker":`playwright test --config=playwright.mock-llm-docker.config.ts`,"test:coverage":`npm run make-i18n && vitest run --coverage`,"test:mutation":`npm run make-i18n && stryker run`,"test:mutation:diff":`npm run make-i18n && node scripts/stryker-diff.mjs`,"test:mutation:incremental":`npm run make-i18n && stryker run --incremental`,dev_wsl:`VITE_WATCH_USE_POLLING=true vite`,preview:`vite preview`,"make-i18n":`node scripts/make-i18n-translations.cjs`,prelint:`npm run make-i18n`,lint:`npm run typecheck && eslint src && prettier --check src/**/*.{ts,tsx}`,"lint:fix":`eslint src --fix && prettier --write src/**/*.{ts,tsx}`,postinstall:`node -e "if (process.env.npm_config_global === 'true') { console.log('\\n\\x1b[32m\\x1b[1m\\u2713 @openhands/agent-canvas installed!\\x1b[0m\\n\\nTo start Agent Canvas, run:\\n\\n \\x1b[36m\\x1b[1magent-canvas\\x1b[0m\\n\\nThis launches the full stack at \\x1b[36mhttp://localhost:8000\\x1b[0m.\\n\\nDocs: https://docs.openhands.dev/openhands/usage/agent-canvas/setup\\n') }"`,prepare:`husky`,typecheck:`react-router typegen && tsc`,"typecheck:staged":`react-router typegen && npx tsc --noEmit --skipLibCheck`,"check-translation-completeness":`node scripts/check-translation-completeness.cjs`,"build:app":`npm run make-i18n && react-router build`,"build:lib":`npm run make-i18n && react-router typegen && cross-env BUILD_LIB=true vite build && tsc -p tsconfig.lib.json`,"build:docker":`node scripts/docker-build.mjs`,"example:acp-docker:env":`node scripts/gen-acp-docker-env.mjs`,predesktop:`node scripts/brand-dev-electron.mjs`,desktop:`npm run build:app && electron electron`,"build:desktop":`npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && electron-builder --config electron-builder.config.mjs --publish never`,"build:desktop:universal":`npm run build:app && node scripts/download-uv.mjs && node scripts/download-node.mjs && cross-env ELECTRON_ARCH=universal electron-builder --config electron-builder.config.mjs --publish never`,"download-uv":`node scripts/download-uv.mjs`,"download-node":`node scripts/download-node.mjs`,"generate-icons":`node scripts/generate-icons.mjs`},"lint-staged":{"src/**/*.{ts,tsx,js}":[`eslint --fix`,`prettier --write`],"src/**/*.{ts,tsx}":[`node scripts/run-staged-typecheck.mjs`],"src/**/*":[`npm run check-translation-completeness`]},devDependencies:{"@eslint/eslintrc":`3.3.6`,"@eslint/js":`9.39.4`,"@mswjs/socket.io-binding":`0.2.0`,"@playwright/test":`1.62.1`,"@react-router/dev":`7.18.2`,"@stryker-mutator/core":`9.6.1`,"@stryker-mutator/vitest-runner":`9.6.1`,"@tailwindcss/typography":`0.5.20`,"@tanstack/eslint-plugin-query":`5.101.4`,"@testing-library/dom":`10.4.1`,"@testing-library/jest-dom":`7.0.0`,"@testing-library/react":`16.3.2`,"@testing-library/user-event":`14.6.1`,"@types/mdast":`4.0.4`,"@types/node":`26.1.2`,"@types/react":`19.2.18`,"@types/react-dom":`19.2.4`,"@types/react-syntax-highlighter":`15.5.13`,"@typescript-eslint/eslint-plugin":`8.65.0`,"@typescript-eslint/parser":`8.65.0`,"@vercel/react-router":`1.3.0`,"@vitest/coverage-v8":`4.1.10`,"cross-env":`10.1.0`,electron:`42.3.3`,"electron-builder":`26.15.3`,eslint:`9.39.5`,"eslint-config-prettier":`10.1.8`,"eslint-import-resolver-typescript":`4.4.5`,"eslint-plugin-i18next":`6.1.5`,"eslint-plugin-import-x":`4.17.1`,"eslint-plugin-jsx-a11y":`6.10.2`,"eslint-plugin-prettier":`5.5.6`,"eslint-plugin-react":`7.37.5`,"eslint-plugin-react-hooks":`7.1.1`,"eslint-plugin-unused-imports":`4.4.1`,globals:`16.5.0`,husky:`9.1.7`,jsdom:`30.0.1`,"lint-staged":`17.3.0`,msw:`2.15.0`,png2icons:`2.0.1`,"postcss-prefix-selector":`2.1.1`,prettier:`3.8.3`,tailwindcss:`4.3.3`,typescript:`6.0.3`,"vite-plugin-svgr":`5.2.0`,vitest:`4.1.10`},packageManager:`npm@10.5.0`,volta:{node:`22.12.0`},msw:{workerDirectory:[`public`]},overrides:{"@vercel/static-config":{ajv:`8.20.0`},dompurify:`3.4.12`,"typed-rest-client":{qs:`6.15.3`}},main:`./dist/index.cjs`,module:`./dist/index.js`,types:`./dist/index.d.ts`,files:[`dist`,`bin`,`build`,`config`,`scripts`,`tools`],exports:{".":{types:`./dist/index.d.ts`,import:`./dist/index.js`,require:`./dist/index.cjs`},"./browser":{types:`./dist/components/browser/index.d.ts`,import:`./dist/components/browser/index.js`,require:`./dist/components/browser/index.cjs`},"./conversation":{types:`./dist/components/conversation/index.d.ts`,import:`./dist/components/conversation/index.js`,require:`./dist/components/conversation/index.cjs`},"./files":{types:`./dist/components/files/index.d.ts`,import:`./dist/components/files/index.js`,require:`./dist/components/files/index.cjs`},"./settings":{types:`./dist/components/settings/index.d.ts`,import:`./dist/components/settings/index.js`,require:`./dist/components/settings/index.cjs`},"./sidebar":{types:`./dist/components/sidebar/index.d.ts`,import:`./dist/components/sidebar/index.js`,require:`./dist/components/sidebar/index.cjs`},"./terminal":{types:`./dist/components/terminal/index.d.ts`,import:`./dist/components/terminal/index.js`,require:`./dist/components/terminal/index.cjs`},"./i18n":{types:`./dist/i18n/index.d.ts`,import:`./dist/i18n/index.js`,require:`./dist/i18n/index.cjs`},"./package.json":`./package.json`},peerDependencies:{react:`19.2.8`,"react-dom":`19.2.8`,"react-router":`7.18.2`}},pr=`agent_canvas`,mr=fr.version,hr=`X-OpenHands-Client`,gr=`X-OpenHands-Client-Version`,_r=`X-OpenHands-Telemetry-Distinct-Id`,vr={[hr]:pr,[gr]:mr};function yr(e){return e?.trim()||`unknown`}function br(e){return e?.trim()||null}function I({backendKind:e,agentServerVersion:t,automationSdkVersion:n,backendVersion:r,connectionMethod:i}){let a=yr(t??r),o=yr(n),s=yr(r??t);return{backend_kind:e??null,agent_server_version:a,automation_sdk_version:o,backend_version:s,...i?{connection_method:i}:{}}}function xr(e=null){return{cloud_user_id:br(e?.userId),cloud_user_email:br(e?.email),cloud_org_id:br(e?.orgId)}}var L=`openhands-telemetry-consent`,R=`openhands-telemetry-consent-pending-cloud-sync`,z=`openhands-telemetry-consent-pending-local-revocation`,Sr=`openhands-telemetry-consent-change`,Cr=`openhands-telemetry-first-use`,wr=`openhands-telemetry-session`,Tr=`agent-canvas`,Er=`history_change`,Dr=`phc_BgzfxKdgsYMLFTmJqt424ZoyVHvKFfrwttLimzdYTKFK`,Or=`https://z.openhands.dev`,kr=`https://us.posthog.com`,B=null,V=null,Ar,H={},U=!1,W,G=0,K=-1,jr=Object.freeze({client_source:pr,client_version:mr,package_name:fr.name,package_version:fr.version}),Mr=I({}),Nr=xr();function Pr(e){Mr=I(e)}function q(e){Nr=xr(e)}function Fr(e){return e?{...e,properties:{...Mr,...Nr,...e.properties,...jr}}:null}function Ir(e){U||Z()!==`granted`?e.opt_out_capturing():e.opt_in_capturing()}function Lr(e,t=!1){e.reset(t),K=-1,Ir(e)}function J(e){if(W===void 0||!$())return;let t=W?.distinctId,n=e.get_property(`$user_id`);if(n!=null&&n!==t&&Lr(e),W===null){K=G;return}(e.get_property(`$user_id`)!==W.distinctId||K!==G)&&(e.identify(W.distinctId,W.properties),K=G)}function Rr(e,t){let n=Object.keys(e);return n.length===Object.keys(t).length&&n.every(n=>e[n]===t[n])}function zr(e){if(e===!1){if(U)return;U=!0,B?.opt_out_capturing(),Q();return}let t=U;if(U=!1,!B&&!V){let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));H={...H,...t}}t&&(B&&(Ir(B),J(B)),Q())}function Br(){return U?null:{apiKey:H.apiKey||Dr,apiHost:H.apiHost||Or,uiHost:H.uiHost||kr}}function Y(){return typeof window<`u`&&typeof localStorage<`u`}async function Vr(){if(!Y())return null;if(B)return B;try{let{default:e}=await n(async()=>{let{default:e}=await import(`./vendor~module-DyG7x7JT.js`).then(e=>e.t);return{default:e}},__vite__mapDeps([0,1]));return e}catch{return null}}function Hr(){return!!(U||typeof process<`u`&&{}.DO_NOT_TRACK===`1`||typeof navigator<`u`&&(navigator.doNotTrack===`1`||typeof window<`u`&&window.doNotTrack===`1`))}function Ur(e){B||(Ar=e)}async function X(e=!1){if(B)return B;if(V)return V;V=(async()=>{let t=Br();if(!t)return null;let n=await Vr();if(!n)return null;let r=n.init(t.apiKey,{api_host:t.apiHost,ui_host:t.uiHost,opt_out_capturing_by_default:!e,persistence:`localStorage`,persistence_name:Tr,consent_persistence_name:`${Tr}-consent`,person_profiles:`always`,capture_pageview:Er,autocapture:!0,disable_session_recording:!0,bootstrap:Ar,before_send:Fr},Tr);return r?(B=r,Ar=void 0,U?B.opt_out_capturing():Z()===`granted`?(B.opt_in_capturing(),J(B)):e||B.opt_out_capturing(),B):null})();try{return await V}finally{B||(V=null)}}function Z(){if(!Y())return`pending`;if(Hr())return`denied`;if(xt()===`cookie`)return`granted`;try{let e=localStorage.getItem(L);if(e===`granted`||e===`denied`)return e}catch{}return`pending`}function Wr(){if(!Y())return null;try{let e=localStorage.getItem(R);return e===`granted`||e===`denied`?e:null}catch{return null}}function Gr(){if(!Y())return null;try{return localStorage.getItem(z)}catch{return null}}function Kr(e){if(!Y())return()=>{};let t=t=>{(t.key===L||t.key===R)&&e()};return window.addEventListener(Sr,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(Sr,e),window.removeEventListener(`storage`,t)}}function Q(){Y()&&window.dispatchEvent(new Event(Sr))}function qr(e){if(Y())try{localStorage.setItem(R,e)}catch{}}function Jr(e){if(!(!Y()||!e))try{localStorage.setItem(z,e)}catch{}}function Yr(e){if(Y())try{if(localStorage.getItem(z)!==e)return;localStorage.removeItem(z)}catch{}}function Xr(e){if(Y())try{if(e!==void 0&&localStorage.getItem(R)!==e)return;localStorage.removeItem(R),Q()}catch{}}async function Zr(e,{syncToCloud:t=!0}={}){if(Y())try{let t=Z()===e;if(localStorage.setItem(L,e),U||t)return;let n=B??await X();if(!n)return;e===`granted`?(n.opt_in_capturing(),J(n)):(Jr(n.get_distinct_id?.()??null),n.get_property?.(`$user_id`)==null?n.opt_out_capturing():Lr(n))}catch{}finally{t&&qr(e),Q()}}async function Qr(e,t={}){let n=e===null?null:{distinctId:e,properties:t};if(W===n||W!=null&&n!==null&&W.distinctId===n.distinctId&&Rr(W.properties,t)||(W=n,G+=1,K=-1,!$()))return;let r=B??await X();r&&$()&&J(r)}function $(){return Z()===`granted`}function $r(){if(!Y())return!1;try{return localStorage.getItem(Cr)===`true`}catch{return!1}}function ei(){if(Y())try{localStorage.setItem(Cr,`true`)}catch{}}async function ti(){if(Hr()||$r())return;let e=await X(!0);!e||Hr()||((e.has_opted_out_capturing?.()??!1)&&e.opt_in_capturing(),e.capture(`canvas_install`,{platform:typeof navigator<`u`?navigator.platform:`unknown`,user_agent:typeof navigator<`u`?navigator.userAgent:`unknown`,referrer:typeof document<`u`?document.referrer:``,url_origin:typeof window<`u`?window.location.origin:``,embedded:typeof window<`u`&&window.self!==window.top}),ei(),Z()!==`granted`&&e.opt_out_capturing())}function ni(){if(!Y())return!1;try{return sessionStorage.getItem(wr)===`true`}catch{return!1}}function ri(){if(Y())try{sessionStorage.setItem(wr,`true`)}catch{}}async function ii(){if(!$()||Z()!==`granted`)return null;let e=await X();return!e||!$()?null:(e.has_opted_out_capturing?.()&&e.opt_in_capturing(),J(e),e)}async function ai(){if(ni())return;let e=await ii();e&&(e.capture(`canvas_new_session`,{is_first_use:!$r()}),ri())}async function oi(){return(await ii())?.get_distinct_id?.()??null}async function si(){if(!Y())return null;if(Z()!==`granted`){let e=Gr();if(e)return e}return U||Hr()?null:(await X())?.get_distinct_id?.()??null}async function ci(e,t={}){let n=await ii();n&&n.capture(e,t)}async function li(){if(Y()){try{Jr(B?.get_distinct_id?.()??null),localStorage.removeItem(L),localStorage.removeItem(Cr)}catch{}Xr();try{sessionStorage.removeItem(wr)}catch{}Mr=I({}),Nr=xr(),W=null,G+=1,K=-1;try{B&&Lr(B,!0)}catch{try{B?.opt_out_capturing()}catch{}}finally{Q()}}}var ui=u.createContext(null);function di(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`backend-${Date.now()}-${Math.random().toString(36).slice(2,10)}`}function fi(e,t){let n=e.backend.kind===`cloud`,r=t.backend.kind===`cloud`;!n&&!r||(q(null),r&&(!n||e.backend.id!==t.backend.id)&&Qr(null))}function pi({children:e}){let t=u.useSyncExternalStore(ln,A,A),n=u.useCallback(()=>{P(),yn.invalidateQueries({queryKey:tr.WEB_CLIENT_CONFIG})},[]),r=u.useCallback((e,t)=>{let r=A(),i=on()?.backendId??null,a=on()?.orgId??null,o=t??null;if(e===i&&o===a)return;let s=k(),ee=s.find(t=>t.id===e),te={backend:ee??s[0]??Xt,orgId:ee?o:null};fi(r.active,te),sn({backendId:e,orgId:o}),n()},[n]),i=u.useCallback(e=>{let t=A().active,r={...e,id:di()},i=[...k(),r];return fi(t,{backend:r,orgId:null}),cn(i),sn({backendId:r.id}),n(),r},[n]),a=u.useCallback((e,t)=>{let r=k().find(t=>t.id===e),i=A().active.backend.id,a=t.host!==void 0&&r!==void 0&&t.host!==r.host,o=t.apiKey!==void 0&&r!==void 0&&t.apiKey!==r.apiKey;cn(k().map(n=>n.id===e?{...n,...t,connectionRevision:a||o?(n.connectionRevision??0)+1:n.connectionRevision}:n)),(a||o)&&(rt(e),i===e&&(r?.kind===`cloud`&&(q(null),Qr(null)),n()))},[n]),o=u.useCallback(e=>{let t=k().find(t=>t.id===e),r=t?.kind===`cloud`&&A().active.backend.id===t.id;cn(k().filter(t=>t.id!==e)),r&&(q(null),Qr(null)),it(e),n()},[n]),s=u.useMemo(()=>({backends:t.backends,active:t.active,setActive:r,addBackend:i,updateBackend:a,removeBackend:o}),[t,r,i,a,o]);return(0,h.jsx)(ui.Provider,{value:s,children:e})}function mi(){let e=u.useContext(ui);if(!e)throw Error(`useActiveBackendContext must be used inside <ActiveBackendProvider>`);return e}function hi(){let e=u.useContext(ui);return e?e.active:{backend:C()??Xt,orgId:null}}export{An as $,ur as A,g as At,P as B,pe as Bt,I as C,S as Ct,_r as D,tt as Dt,mr as E,Qe as Et,cr as F,Fe as Ft,Vn as G,be as Gt,Hn as H,f as Ht,tr as I,Ne as It,Wn as J,Un as K,xe as Kt,nr as L,Me as Lt,rr as M,Ve as Mt,or as N,He as Nt,ir as O,nt as Ot,sr as P,Ue as Pt,kn as Q,lr as R,je as Rt,ai as S,b as St,pr as T,bt as Tt,Xn as U,ye as Ut,Zn as V,d as Vt,Yn as W,p as Wt,er as X,F as Y,En as Z,Zr as _,St as _t,Yr as a,yn as at,ci as b,Ct as bt,zr as c,O as ct,Z as d,Zt as dt,wn as et,oi as f,ln as ft,q as g,wt as gt,Pr as h,at as ht,Xr as i,_n as it,dr as j,Be as jt,ar as k,et as kt,Wr as l,k as lt,X as m,Ot as mt,hi as n,Tn as nt,li as o,vn as ot,si as p,Kt as pt,Rn as q,fe as qt,mi as r,gn as rt,Ur as s,an as st,pi as t,Sn as tt,Gr as u,A as ut,Qr as v,yt as vt,vr as w,Et as wt,ti as x,xt,Kr as y,Tt as yt,$n as z,Ae as zt};
@@ -1 +0,0 @@
1
- import{yt as e}from"./vendor-styling-Ck5D_A2Q.js";import{U as t}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as n}from"./sdk-section-page-BbBEQQjq.js";var r=e();function i(){return(0,r.jsx)(n,{settingsSources:[{settingsSource:`agent_settings`,sectionKeys:[`agent_context`]}],testId:`agent-context-settings-screen`})}var a=t(i);export{a as default};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,bt as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{U as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{n as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dcc51rps-rfV8mQ9m.js";import{t as o}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{t as s}from"./useMutation-6ZsQCqAn.js";import{Ft as c,Mt as l,O as u,jt as d}from"./active-backend-context-BZDG15C0.js";import{t as f,z as p}from"./utils-DUD5ScdA.js";import{t as m}from"./back-nav-button-H_ThtDA0.js";import{t as h}from"./loading-spinner-DBgXgra0.js";import{t as g}from"./brand-button-Blxv5nww.js";import{i as _}from"./dropdown-classes-tLhpwtxS.js";import{t as v}from"./use-llm-profiles-diZS4FiN.js";import{n as y,t as b}from"./use-agent-profiles-CPIc6wLH.js";import{i as x,n as S,t as C}from"./use-can-manage-org-profiles-Dz_8Eqkv.js";import{t as w}from"./u-edit-DAkcF52u.js";import{t as T}from"./settings-dropdown-input-Ba1UN5Du.js";import{r as E}from"./typography-DB5HoCk0.js";import{o as D}from"./extension-module-card-classes-Bo43vY5V.js";import{i as O,n as k,o as A,r as j,t as M}from"./badge-B-51h-SW.js";import{t as N}from"./u-check-circle-BKn1spCL.js";import{i as P,n as F,r as I,t as L}from"./settings-list-classes-DdcLXDGn.js";import{n as R}from"./settings-section-header-context-BOJ_Fbak.js";import{t as z}from"./use-save-agent-profile-BaMNSpBV.js";import{n as B}from"./use-activate-agent-profile-B0p34N3q.js";import{t as V}from"./merge-agent-profile-save-input-WcFmQVKK.js";import{i as H,t as U}from"./agent-settings-DfcSgkLD.js";var W=e(t(),1),G=e(n(),1),K=r();function q({onEdit:e,onSetActive:t,onDelete:n,isActive:r,isActivating:i,onClose:a,anchorRef:s}){let{t:c}=o(`openhands`),l=(0,W.useRef)(null),u=(0,W.useRef)([]),d=s?.current??null,[m,h]=(0,W.useState)();(0,W.useLayoutEffect)(()=>{if(!d)return;let e=()=>{let e=d.getBoundingClientRect();e&&h({position:`fixed`,zIndex:9999,top:e.bottom+8,right:window.innerWidth-e.right,width:`max-content`})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[d]),(0,W.useEffect)(()=>{u.current[0]?.focus()},[]),(0,W.useEffect)(()=>{let e=e=>{let t=e.target;l.current?.contains(t)||d?.contains(t)||a()},t=e=>{e.key===`Escape`&&a()};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[d,a]);let g=e=>{e(),a()},v=(0,W.useCallback)((e,t)=>{if(e.key===`Tab`){a();return}let n=u.current.filter(Boolean).length;if(e.key===`ArrowDown`){e.preventDefault();let r=(t+1)%n;u.current[r]?.focus()}else if(e.key===`ArrowUp`){e.preventDefault();let r=(t-1+n)%n;u.current[r]?.focus()}},[a]),y=r||i,b=!!d,S=(0,K.jsxs)(`div`,{ref:l,className:f(`absolute right-0 top-full z-10 mt-2 w-[160px] rounded-md border border-[var(--oh-border-subtle)] bg-tertiary px-1 py-1 shadow-lg`,_,b&&`!static !top-auto !bottom-auto !left-auto !right-auto !mt-0`),role:`menu`,"aria-orientation":`vertical`,"data-testid":`agent-profile-actions-menu`,children:[(0,K.jsx)(k,{index:0,icon:(0,K.jsx)(w,{width:16,height:16}),label:c(p.SETTINGS$PROFILE_EDIT),onClick:()=>g(e),onKeyDown:v,menuItemsRef:u,testId:`agent-profile-edit`}),(0,K.jsx)(k,{index:1,icon:(0,K.jsx)(N,{width:16,height:16}),label:c(p.SETTINGS$PROFILE_SET_ACTIVE),onClick:()=>g(t),onKeyDown:v,menuItemsRef:u,disabled:y,testId:`agent-profile-set-active`}),(0,K.jsx)(k,{index:2,icon:(0,K.jsx)(x,{width:16,height:16}),label:c(p.BUTTON$DELETE),onClick:()=>g(n),onKeyDown:v,menuItemsRef:u,testId:`agent-profile-delete`})]});return b?typeof document>`u`||!m?null:G.createPortal((0,K.jsx)(`div`,{style:m,children:S}),document.body):S}function J({profile:e,isActive:t,canManage:n,onActivate:r,onEdit:i,onDelete:a,isActivating:s}){let{t:c}=o(`openhands`),[l,u]=(0,W.useState)(!1),d=(0,W.useRef)(null),m=e.agent_kind===`openhands`?e.llm_profile_ref:c(p.SETTINGS$AGENT_TYPE_ACP);return(0,K.jsxs)(`div`,{"data-testid":`agent-profile-row`,className:f(P,`justify-between gap-3`),children:[(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,K.jsx)(`span`,{className:`min-w-0 max-w-full truncate text-sm font-medium text-white`,title:e.name,children:e.name}),m?(0,K.jsx)(`span`,{className:`min-w-0 max-w-full truncate text-sm text-[var(--oh-muted)]`,title:m,children:m}):null,t&&(0,K.jsx)(M,{className:`shrink-0 whitespace-nowrap px-2.5 py-1 text-xs`,"data-testid":`agent-profile-active-badge`,children:c(p.SETTINGS$PROFILE_DEFAULT)})]}),n&&(0,K.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,K.jsx)(S,{ref:d,onClick:()=>u(e=>!e),ariaLabel:c(p.SETTINGS$PROFILE_MENU),testId:`agent-profile-menu-trigger`,className:I}),l&&(0,K.jsx)(q,{anchorRef:d,onEdit:()=>i(e),onSetActive:()=>r(e),onDelete:()=>a(e),isActive:t,isActivating:s,onClose:()=>u(!1)})]})]})}function Y({isLoading:e,loadError:t,profiles:n,activeId:r,canManage:i,onActivate:a,onEdit:s,onDelete:c,isActivating:l}){let{t:u}=o(`openhands`);return e?(0,K.jsx)(`div`,{className:`flex justify-center p-4`,children:(0,K.jsx)(h,{size:`large`})}):t?(0,K.jsx)(`div`,{"data-testid":`agent-profiles-load-error`,className:D,children:(0,K.jsx)(`p`,{className:`text-sm text-red-400`,children:u(p.SETTINGS$PROFILES_LOAD_ERROR)})}):n.length===0?(0,K.jsx)(`div`,{"data-testid":`agent-profiles-empty`,className:D,children:(0,K.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:u(p.SETTINGS$PROFILES_EMPTY)})}):(0,K.jsx)(`div`,{className:f(L,F),children:n.map(e=>(0,K.jsx)(J,{profile:e,isActive:!!e.id&&e.id===r,canManage:i,onActivate:a,onEdit:s,onDelete:c,isActivating:l},e.name))})}function X(){let e=a();return s({mutationFn:e=>y.deleteProfile(e),onSuccess:async()=>{await e.invalidateQueries({queryKey:u.all})},meta:{disableToast:!0}})}function Z({profile:e,onClose:t}){let{t:n}=o(`openhands`),r=X(),i=(0,W.useRef)(null);if(!e)return null;let a=async()=>{try{await r.mutateAsync(e.name),l(n(p.SETTINGS$PROFILE_DELETED,{name:e.name})),t()}catch(e){d(e instanceof Error?e.message:n(p.ERROR$GENERIC))}},s=()=>{r.isPending||t()},c=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(g,{ref:i,type:`button`,variant:`tertiary`,onClick:s,isDisabled:r.isPending,children:n(p.BUTTON$CANCEL)}),(0,K.jsx)(g,{testId:`delete-agent-profile-confirm`,type:`button`,variant:`danger`,onClick:a,isDisabled:r.isPending,"aria-busy":r.isPending,children:r.isPending?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(h,{size:`small`}),(0,K.jsx)(`span`,{className:`sr-only`,children:n(p.BUTTON$DELETE)})]}):n(p.BUTTON$DELETE)})]});return(0,K.jsx)(j,{isOpen:!0,title:n(p.SETTINGS$PROFILE_DELETE_TITLE),footer:c,onClose:s,initialFocusRef:i,children:(0,K.jsx)(`p`,{className:`text-sm break-all`,children:n(p.SETTINGS$PROFILE_DELETE_CONFIRMATION,{name:e.name})})})}function Q({onAddProfile:e,onEditProfile:t}){let{t:n}=o(`openhands`),{data:r,isLoading:i,error:a}=b(),s=B(),c=C(),[u,d]=(0,W.useState)(null),f=r?.profiles??[],m=r?.active_agent_profile_id??null;return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,K.jsx)(`h2`,{className:`text-base font-medium text-white`,children:n(p.SETTINGS$AVAILABLE_PROFILES)}),e&&c?(0,K.jsx)(g,{testId:`add-agent-profile`,type:`button`,variant:`secondary`,className:`ml-auto`,onClick:e,children:n(p.SETTINGS$ADD_AGENT_PROFILE)}):null]}),(0,K.jsx)(Y,{isLoading:i,loadError:a??null,profiles:f,activeId:m,canManage:c,onActivate:async e=>{if(e.id)try{await s.mutateAsync(e.id),l(n(p.SETTINGS$PROFILE_ACTIVATED,{name:e.name}))}catch(e){console.error(`Failed to activate agent profile:`,e)}},onEdit:e=>t?.(e),onDelete:d,isActivating:s.isPending})]}),(0,K.jsx)(Z,{profile:u,onClose:()=>d(null)})]})}function $(){let e=a();return s({mutationFn:({name:e,newName:t})=>y.renameProfile(e,t),onSuccess:async()=>{await e.invalidateQueries({queryKey:u.all})},meta:{disableToast:!0}})}function ee(e){return e.agent_kind===`acp`?{agent_kind:`acp`,acp_server:e.acp_server,acp_command:e.acp_command?H(e.acp_command):[],acp_args:e.acp_args??[],acp_model:e.acp_model??``}:{agent_kind:`openhands`,enable_sub_agents:e.enable_sub_agents,tool_concurrency_limit:e.tool_concurrency_limit}}function te(){let{t:e}=o(`openhands`),{setHideSectionHeader:t}=R(),n=z(),r=$(),{data:i}=b(),{data:a,isLoading:s}=v(),[u,f]=(0,W.useState)(`list`),[h,_]=(0,W.useState)(``),[x,S]=(0,W.useState)(null),[C,w]=(0,W.useState)(null),[D,k]=(0,W.useState)(``),[j,M]=(0,W.useState)(null),[N,P]=(0,W.useState)(!1);(0,W.useEffect)(()=>(t(u!==`list`),()=>t(!1)),[u,t]);let F=a?.profiles??[],I=a?.active_profile??F[0]?.name??``,L=(0,W.useMemo)(()=>new Set(i?.profiles?.map(e=>e.name)??[]),[i]),B=(0,W.useMemo)(()=>!(!A(h,{isRequired:!0})||u===`create`&&L.has(h)||u===`edit`&&h!==x?.name&&L.has(h)),[h,u,L,x?.name]),H=(0,W.useCallback)(()=>{_(``),S(null),w({agent_kind:`openhands`}),k(I),M(null),f(`create`)},[I]),G=(0,W.useCallback)(async t=>{try{let e=(await y.getProfile(t.name,`encrypted`)).profile;S(e),w(ee(e)),e.agent_kind===`openhands`?k(s||F.some(t=>t.name===e.llm_profile_ref)?e.llm_profile_ref:I):k(``),_(e.name),M(null),f(`edit`)}catch(t){console.error(`Failed to fetch agent profile:`,t),d(e(p.ERROR$GENERIC))}},[e,F,s,I]),q=(0,W.useCallback)(()=>{f(`list`),S(null),_(``),w(null),M(null)},[]),J=(0,W.useCallback)(async()=>{if(!j||!B)return;let t;try{let n=j.buildAgentProfileFields();if(n.agent_kind===`openhands`){if(!D){d(e(p.SETTINGS$AGENT_PROFILE_LLM_REQUIRED));return}t={...n,llm_profile_ref:D}}else t=n}catch(t){d(t instanceof Error?t.message:e(p.ERROR$GENERIC));return}let i=h.trim(),a=x?.name,o=u===`edit`&&a&&a!==i;P(!0);try{if(j.credentials.isDirty){if(!await j.credentials.save({silent:!0}))return;j.credentials.reset()}o&&await r.mutateAsync({name:a,newName:i});let s=V(u===`edit`?x:null,t);await n.mutateAsync({name:i,profile:s}),l(e(u===`create`?p.SETTINGS$PROFILE_CREATED:p.SETTINGS$PROFILE_UPDATED,{name:i})),q()}catch(t){d(c(t)||e(p.ERROR$GENERIC))}finally{P(!1)}},[j,B,D,h,u,x,n,r,e,q]);if(u===`list`)return(0,K.jsx)(Q,{onAddProfile:H,onEditProfile:G});let Y=e(u===`edit`?p.SETTINGS$EDIT_AGENT_PROFILE:p.SETTINGS$ADD_AGENT_PROFILE),X=u===`edit`&&x?e(p.SETTINGS$PROFILE_LOADED,{name:x.name}):e(p.SETTINGS$PROFILE_SAVE_HINT),Z=j?.agentType!==`acp`;return(0,K.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,K.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,K.jsx)(m,{testId:`back-to-agent-profiles`,onClick:q,children:e(p.BUTTON$BACK)}),(0,K.jsx)(E.H2,{testId:`agent-profile-editor-title`,children:Y}),(0,K.jsx)(`p`,{"data-testid":`agent-profile-editor-description`,className:`text-sm leading-5 text-tertiary-light`,children:X})]}),(0,K.jsx)(O,{testId:`agent-profile-name-input`,value:h,onChange:_,isRequired:!0}),(0,K.jsx)(U,{embedded:!0,agentSettingsOverride:C,onSaveControlChange:M},u===`edit`?`edit-${x?.id}`:`new-profile`),Z&&(F.length>0?(0,K.jsx)(T,{testId:`agent-profile-llm-selector`,name:`agent-profile-llm`,label:e(p.SETTINGS$AGENT_PROFILE_LLM_LABEL),items:F.map(e=>({key:e.name,label:e.model?`${e.name} (${e.model})`:e.name})),selectedKey:D,onSelectionChange:e=>e&&k(String(e))}):(0,K.jsx)(`p`,{"data-testid":`agent-profile-no-llm`,className:`text-sm text-red-400`,children:e(p.SETTINGS$AGENT_PROFILE_NO_LLM)})),(0,K.jsxs)(`div`,{className:`flex justify-start gap-3 pt-4`,children:[(0,K.jsx)(g,{testId:`cancel-agent-profile-btn`,type:`button`,variant:`secondary`,onClick:q,children:e(p.BUTTON$CANCEL)}),(0,K.jsx)(g,{testId:`save-agent-profile-btn`,type:`button`,variant:`primary`,onClick:J,isDisabled:!B||N||!j?.isValid,"aria-busy":N,children:e(N?p.SETTINGS$SAVING:p.BUTTON$SAVE)})]})]})}var ne={hideTitle:!1},re=i(function(){return(0,K.jsx)(te,{})});export{re as default,ne as handle};
@@ -1,86 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/secrets-service-BtsgYSlj.js","assets/rolldown-runtime-Cyuzqnbw.js","assets/active-backend-context-BZDG15C0.js","assets/vendor-styling-Ck5D_A2Q.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dcc51rps-rfV8mQ9m.js","assets/vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js","assets/utils-DUD5ScdA.js","assets/proxy-DYDXxtje.js"])))=>i.map(i=>d[i]);
2
- import{xt as e}from"./vendor-styling-Ck5D_A2Q.js";import{_ as t,b as n,l as r,p as i,v as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{H as o,K as s,Q as c,Z as l,bt as u,ct as d,gt as ee,lt as te,st as f,tt as p,w as m}from"./active-backend-context-BZDG15C0.js";import{C as ne}from"./utils-DUD5ScdA.js";import{r as h,t as g}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~hjcjabwg-DOPLJMH9.js";import{t as _}from"./proxy-DYDXxtje.js";import{t as v}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~skills-setti~jz4f6vo2-C0JXQb_q.js";import{t as y}from"./settings-DcNPxz0v.js";import{t as b}from"./settings-service.api-3yAUFcaP.js";import{t as re}from"./profiles-service.api-BLr7FXec.js";import{f as x,o as S,s as C}from"./acp-providers-CYy8qA2z.js";import{d as w,f as T,r as ie}from"./llm-subscription-DTqtBCWz.js";import{t as ae}from"./llm-subscription-service-SfnEV9Uc.js";var E=[];for(let e=0;e<256;++e)E.push((e+256).toString(16).slice(1));function oe(e,t=0){return(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+`-`+E[e[t+4]]+E[e[t+5]]+`-`+E[e[t+6]]+E[e[t+7]]+`-`+E[e[t+8]]+E[e[t+9]]+`-`+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase()}var se=new Uint8Array(16);function ce(){return crypto.getRandomValues(se)}function D(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():le(e,t,n)}function le(e,t,n){e||={};let r=e.random??e.rng?.()??ce();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return oe(r)}var O=new Map;function ue(e){return/^([/\\]|[a-zA-Z]:[/\\])/.test(e)}function de(e,t){return`${e.replace(/[/\\]+$/,``)}/${t.replace(/^[/\\]+/,``)}`}async function fe(e={}){let n=c(e),r=n.host,i=O.get(r);if(i)return i;let a=(async()=>{let{home:e}=await new t(n).getHome();if(!e||typeof e!=`string`)throw Error(`Agent server returned an empty home directory`);return e.replace(/[/\\]+$/,``)})();O.set(r,a);try{return await a}catch(e){throw O.delete(r),e}}async function pe(e,t={}){let n=e.replace(/[/\\]+$/,``);return n?ue(n)?n:de(await fe(t),n):fe(t)}var k=`openhands-agent-server-conversation-metadata`,me=e=>({source:e.source,ref:e.ref??null,repo_path:e.repo_path??null}),A=()=>{if(typeof window>`u`)return{};try{let e=window.localStorage.getItem(k);if(!e)return{};let t=JSON.parse(e);return!t||typeof t!=`object`?{}:t}catch{return{}}},j=e=>{if(!(typeof window>`u`)){if(Object.keys(e).length===0){window.localStorage.removeItem(k);return}window.localStorage.setItem(k,JSON.stringify(e))}},M=e=>A()[e]??null,N=(e,t)=>{let n=A();n[e]=t,j(n)},P=e=>{let t=A();e in t&&(delete t[e],j(t))};function F(e){if(!e?.id)return e;let t=M(e.id);return t?{...e,selected_repository:e.selected_repository??t.selected_repository??null,selected_branch:e.selected_branch??t.selected_branch??null,git_provider:e.git_provider??t.git_provider??null,selected_workspace:e.selected_workspace??t.selected_workspace??null}:e}function I(){let e=f().backend;if(e.kind!==`cloud`)throw Error(`Cloud conversations call requires a cloud backend.`);return e}function he(){let e=f().backend;return e.kind===`cloud`?e:te().find(e=>e.kind===`cloud`&&!!e.apiKey)??null}async function ge(e=20,t){let n=I(),r=new URLSearchParams;r.set(`limit`,String(e)),t&&r.set(`page_id`,t),r.set(`sort_order`,`UPDATED_AT_DESC`);let i=await _({backend:n,method:`GET`,path:`/api/v1/app-conversations/search?${r.toString()}`});return{items:(i?.items??[]).map(e=>F(e)),next_page_id:i?.next_page_id??null}}async function L(e){if(e.length===0)return[];let t=I(),n=new URLSearchParams;for(let t of e)n.append(`ids`,t);return(await _({backend:t,method:`GET`,path:`/api/v1/app-conversations?${n.toString()}`})??[]).map(F)}async function R(e,t){return await _({backend:t??I(),method:`POST`,path:`/api/v1/app-conversations`,body:e,headers:m})}async function _e(e){return _({backend:I(),method:`GET`,path:`/api/v1/app-conversations/${e}/download`,responseType:`blob`})}async function ve(e){await _({backend:I(),method:`DELETE`,path:`/api/v1/app-conversations/${e}`})}async function ye(e,t){return await _({backend:I(),method:`PATCH`,path:`/api/v1/app-conversations/${e}`,body:{public:t}})}async function be(e){await _({backend:I(),method:`POST`,path:`/api/v1/sandboxes/${e}/pause`})}async function xe(e){await _({backend:I(),method:`POST`,path:`/api/v1/sandboxes/${e}/resume`})}async function z(e,t){let n=I(),r=new URLSearchParams;return r.append(`file_path`,t),await _({backend:n,method:`GET`,path:`/api/v1/app-conversations/${e}/file?${r.toString()}`})??``}async function Se(e,t){let n=I(),r=new URLSearchParams;r.append(`path`,t);let i=await _({backend:n,method:`GET`,path:`/api/v1/app-conversations/${e}/files?${r.toString()}`});return Array.isArray(i)?i:[]}async function B(e,t){let n=t??I(),r=new URLSearchParams;return r.set(`ids`,e),(await _({backend:n,method:`GET`,path:`/api/v1/app-conversations/start-tasks?${r.toString()}`}))?.[0]??null}function Ce(e){return e.kind===`cloud`&&e.authMode===`cookie`||!e.apiKey?{}:e.kind===`cloud`?{Authorization:`Bearer ${e.apiKey}`}:{"X-Session-API-Key":e.apiKey}}var V=`canvas_ui`,H=`canvas_ui_control`,we=`ClientAction_${H}`,Te={name:H,description:`The user is interacting with you inside Agent Canvas — a web UI with a chat panel on the left and a tabbed right-side panel (files, terminal, browser, vscode, planner, tasklist). This tool lets you drive that right-side panel so the user sees what you just produced.
3
-
4
- They will NOT see the files you wrote, the terminal output, or the browser
5
- unless you call this tool to switch the right-side panel to the relevant
6
- tab. Call this every time you finish work that produces something the user
7
- should look at — don't rely on them noticing on their own.
8
-
9
- When to call (pick the most specific option that matches your last action):
10
-
11
- * You wrote or modified a single file (ANY language, ANY size — including
12
- small scripts like a hello-world bash file) →
13
- command="navigate_to_file", path=<workspace-relative path of that file>
14
-
15
- * You generated an HTML page, image, SVG, PDF, markdown report, or other
16
- previewable artifact →
17
- command="show_preview", path=<that file>
18
-
19
- * You finished editing multiple files in one logical step →
20
- command="open_tab", tab="files"
21
- (The Files tab automatically renders a diff view when the workspace has
22
- uncommitted git changes, which covers the "highlight changes" case.)
23
-
24
- * You ran a long-running terminal command, or one whose output the user
25
- should inspect →
26
- command="open_tab", tab="terminal"
27
-
28
- * You browsed to a URL the user should see →
29
- First call browser_get_state(include_screenshot=true) after your final
30
- browser interaction so Agent Canvas has a screenshot to display, then call
31
- command="open_tab", tab="browser"
32
- (browser_navigate alone only updates the URL; without browser_get_state,
33
- the Browser tab will open without a screenshot.)
34
-
35
- Call this BEFORE writing your chat-message summary of the change, so the
36
- artifact is visible while the user reads what you did. One canvas_ui_control
37
- call per logical step is enough — don't repeat it for the same file or tab in
38
- the same turn.`,parameters:{type:`object`,additionalProperties:!1,properties:{command:{type:`string`,enum:[`navigate_to_file`,`open_tab`,`show_preview`],description:`UI command to dispatch.`},path:{type:`string`,description:`Workspace-relative file path. Required for navigate_to_file and show_preview; ignored otherwise.`},tab:{type:`string`,enum:[`files`,`browser`,`vscode`,`terminal`,`planner`,`tasklist`],description:`Tab to open. Required for open_tab; ignored otherwise.`}},required:[`command`]},annotations:{readOnlyHint:!0,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}},U=`launch_child_conversation`,Ee=`ClientAction_${U}`,De=`[child-conversation] `,Oe=[`local`,`cloud`],ke=[`worktree`,`shared`],Ae=`1.37.1`,je={name:U,description:`Start a NEW, independent conversation to work on a well-scoped task in parallel with this one, without the user having to run any CLI command. The new conversation is recorded as a child of this one.
39
-
40
- The child runs on its own. It does not block you, you do not see its output,
41
- and it cannot see this conversation's history — everything it needs must be in
42
- the task brief.
43
-
44
- Choosing target:
45
-
46
- * target="local" — runs on the same machine, in this conversation's workspace.
47
- Fast, no repository clone, no sandbox provisioning. Use this by default when
48
- the work is on code that is already checked out here.
49
-
50
- * target="cloud" — runs on OpenHands Cloud in its own isolated sandbox, from a
51
- git repository. Use this when the work should not touch the user's machine or
52
- when it needs a repository that is not checked out locally. Requires the user
53
- to have an OpenHands Cloud backend connected in Agent Canvas; if none is
54
- connected you will be told so and should fall back to target="local".
55
-
56
- Writing the task brief:
57
-
58
- * Put everything the child needs in "task": the goal, the relevant file paths,
59
- the constraints, the expected deliverable, and how it should report back.
60
- * Keep each child's scope independent of its siblings so parallel children do
61
- not fight over the same files.
62
- * One call per delegated task. Do NOT call this tool twice for the same task.
63
-
64
- Parameter rules (a call that breaks one of these launches nothing and comes
65
- back with corrective guidance):
66
-
67
- * "repository" and "branch" apply to target="cloud" only. A local child always
68
- inherits this conversation's workspace, so do not pass them with
69
- target="local".
70
- * "isolation" applies to target="local" only. Cloud sandboxes are always
71
- isolated, so do not pass it with target="cloud".
72
- * isolation="worktree" (the default) gives the child its own git worktree and
73
- branch, cut from the repository's default branch — it will NOT see this
74
- conversation's uncommitted or committed work. isolation="shared" puts the
75
- child in this conversation's exact directory; only choose it when the child
76
- genuinely must see work in progress, and expect the two agents to conflict.
77
-
78
- What comes back: this tool is acknowledged immediately, before the conversation
79
- exists. The real outcome arrives moments later as a follow-up message starting
80
- with "${De.trim()}" that carries the child's
81
- conversation id, URL, target and initial status — or an error with guidance.
82
- Wait for it, then tell the user what you launched and give them the URL. If it
83
- reports an error, fix the parameters and call this tool again.`,parameters:{type:`object`,additionalProperties:!1,properties:{target:{type:`string`,enum:[...Oe],description:`Where the child runs. 'local' reuses this machine and this conversation's workspace; 'cloud' runs in an isolated OpenHands Cloud sandbox.`},task:{type:`string`,description:`Self-contained task brief, sent as the child's first message. The child cannot see this conversation, so state the goal, constraints, expected output and handoff criteria.`},title:{type:`string`,description:`Optional short title for the child conversation. Omit to let it title itself from the task.`},repository:{type:`string`,description:`target='cloud' only. Repository to clone into the sandbox, as 'owner/repo'. Defaults to this conversation's repository when it has one.`},branch:{type:`string`,description:`target='cloud' only, and only together with 'repository'. Defaults to the repository's default branch.`},isolation:{type:`string`,enum:[...ke],description:`target='local' only. 'worktree' (default) gives the child its own git worktree and branch; 'shared' runs it in this conversation's exact directory.`}},required:[`target`,`task`]},annotations:{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!0}},Me=[`terminal`,`file_editor`,`task_tracker`],Ne=`browser_tool_set`,Pe=`task_tool_set`;function Fe(){return!0}function W(e){if(typeof e==`string`){let t=e.trim();if(!t)return null;try{return W(JSON.parse(t))}catch{return null}}if(!e||typeof e!=`object`||Array.isArray(e))return null;let t=e;return!t.services||typeof t.services!=`object`?null:t}async function Ie(){let e;try{e=c({timeout:3e3})}catch{return null}let t=W(o({host:e.host})?.runtime_services);if(t)return t;try{return W((await new n(e).getServerInfo()).runtime_services)}catch{return null}}function Le(e){let t=W(e);if(!t?.services)return;let n=[];n.push(`<RUNTIME_SERVICES>`),t.mode?n.push(`You are running inside an agent-canvas dev stack started in '${t.mode}' mode.`):n.push(`You are running inside an agent-canvas dev stack.`),n.push(`The following services are reachable from your sandbox. URLs are written`,`from your point of view (i.e., as you should curl/fetch them).`,``);let{agent_server:r,ingress:i,automation:a}=t.services,{frontend:o}=t.services;r?.url_from_agent&&n.push(`* Agent Server (you): ${r.url_from_agent}`,` ${r.description??`The agent-server hosting your tool calls.`}`),i?.url_from_agent&&n.push(`* Ingress: ${i.url_from_agent}`,` ${i.description??`Unified entry point for browser-facing traffic.`}`),o?.url_from_agent&&n.push(`* Frontend: ${o.url_from_agent}`,` ${o.description??`Frontend dev server.`}`),a?.url_from_agent?(n.push(`* Automation backend: ${a.url_from_agent}`,` ${a.description??`OpenHands Automations service.`}`),a.docs_url&&n.push(` Docs: ${a.docs_url}`),a.openapi_url&&n.push(` OpenAPI: ${a.openapi_url}`),a.auth_env_var&&n.push(` Auth: header 'X-Session-API-Key: $${a.auth_env_var}'`)):n.push(`* Automation backend: not running in this dev mode (skip /api/automation calls).`);let s=r?.url_from_agent;return n.push(``,`Trust this block over guessing: do not assume any other URLs are running.`),s&&n.push(`In particular, ${s} inside your sandbox is the Agent Server`,`you are running inside of — NOT the automation backend.`),n.push(`</RUNTIME_SERVICES>`),n.join(`
84
- `)}function Re(e){let{host:t}=c();return`${t}/api/conversations/${e}`}function ze(e){return`Conversation ${e.slice(0,5)}`}function Be(e){let t=M(e.id),n=e.agent?.kind===`ACPAgent`,r=n?e.tags?.acpserver??e.agent?.acp_server??null:null;return{id:e.id,created_by_user_id:null,selected_repository:t?.selected_repository??null,selected_branch:t?.selected_branch??null,git_provider:t?.git_provider??null,selected_workspace:t?.selected_workspace??null,active_profile:t?.active_profile??null,title:e.title?.trim()?e.title:ze(e.id),trigger:null,pr_number:[],agent_kind:n?`acp`:`openhands`,acp_server:r,tags:e.tags??null,launched_agent_profile:e.launched_agent_profile??null,llm_model:n?x({runtimeName:e.current_model_name,runtimeId:e.current_model_id,configured:e.agent?.acp_model,sdkLlm:e.agent?.llm?.model}):e.agent?.llm?.model??y.llm_model,metrics:e.metrics?{accumulated_cost:e.metrics.accumulated_cost??null,max_budget_per_task:e.metrics.max_budget_per_task??null,accumulated_token_usage:e.metrics.accumulated_token_usage?{prompt_tokens:e.metrics.accumulated_token_usage.prompt_tokens??0,completion_tokens:e.metrics.accumulated_token_usage.completion_tokens??0,cache_read_tokens:e.metrics.accumulated_token_usage.cache_read_tokens??0,cache_write_tokens:e.metrics.accumulated_token_usage.cache_write_tokens??0,context_window:e.metrics.accumulated_token_usage.context_window??0,per_turn_token:e.metrics.accumulated_token_usage.per_turn_token??0}:null}:null,created_at:e.created_at,updated_at:e.updated_at,execution_status:e.execution_status??ne.IDLE,sandbox_status:e.sandbox_status??null,conversation_url:Re(e.id),session_api_key:c().apiKey??null,sandbox_id:null,workspace:{working_dir:e.workspace?.working_dir??u()},public:!1,sub_conversation_ids:[]}}function Ve(e){return{items:e.items.map(Be),next_page_id:e.next_page_id??null}}var He=`acpserver`,Ue=`automationtrigger`,We=`automationid`,Ge=`automationname`,Ke=`automationrunid`,qe=[Ue,We,Ge,Ke],Je=new Set([He,We,Ke,`title`,`git_provider`,`repo_name`,`repo`,`repository`,`selected_branch`,`branch`,`archiveworkspacepath`,`workspace`,`working_dir`]),Ye=[`origin`];function Xe(e){if(!e)return[];let t=e=>{let t=Ye.indexOf(e.trim().toLowerCase());return t===-1?1/0:t};return Object.entries(e).filter(([e,t])=>!Je.has(e.trim().toLowerCase())&&typeof t==`string`&&t.trim().length>0).sort(([e],[n])=>{let r=t(e),i=t(n);return r===i?e.localeCompare(n):r-i})}var Ze=`gAAAAA`,Qe=new Set([`schema_version`,`agent_settings`,`workspace`,`conversation_id`,`initial_message`,`plugins`]);function G(e){return!e||typeof e!=`object`||Array.isArray(e)?{}:structuredClone(e)}function $e(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function et(e){return!!e&&typeof e==`object`&&!Array.isArray(e)}function K(e){return typeof e==`string`?e.startsWith(Ze):Array.isArray(e)?e.some(K):et(e)?Object.values(e).some(K):!1}function tt(e){return et(e)?Object.values(e).some(K):!1}function nt(e){return e.confirmation_mode===!0?e.security_analyzer===`llm`?{kind:`ConfirmRisky`,threshold:`HIGH`,confirm_unknown:!0}:{kind:`AlwaysConfirm`}:{kind:`NeverConfirm`}}function rt(e){switch(e.security_analyzer){case`llm`:return{kind:`LLMSecurityAnalyzer`};case`pattern`:return{kind:`PatternSecurityAnalyzer`};case`policy_rail`:return{kind:`PolicyRailSecurityAnalyzer`};default:return}}function it(e){return!!e&&typeof e==`object`&&!Array.isArray(e)&&typeof e.name==`string`}function q(e,t){return e===Ne?Fe()&&s(e):e===Pe?t.enable_sub_agents===!0&&s(e):!0}function at(e){let t=new Map;for(let n of Me)q(n,e)&&t.set(n,{name:n,params:{}});for(let n of[Ne,Pe])q(n,e)&&t.set(n,{name:n,params:{}});let n=e.tools;if(Array.isArray(n)&&n.every(e=>it(e)))for(let r of n)q(r.name,e)&&t.set(r.name,{name:r.name,params:G(r.params)});return Array.from(t.values())}function ot(e,t){let n=[e?.trim(),t?.trim()].filter(Boolean);return n.length===0?null:{role:`user`,content:[{type:`text`,text:n.join(`
85
-
86
- `)}],run:!0}}function st(){return v.map(e=>{let t=e.triggers?.length>0?{type:`keyword`,keywords:e.triggers}:null,n=`/home/runner/work/OpenHands/OpenHands/node_modules/@openhands/extensions/skills/${e.name}/SKILL.md`;return{name:e.name,content:e.content,trigger:t,source:n,description:e.description??null,is_agentskills_format:!0,...e.license?{license:e.license}:{},...e.compatibility?{compatibility:e.compatibility}:{}}})}function ct(e,t,n=[]){let r=Le(t),i=G(e.agent_context),a=Array.isArray(i.skills)?i.skills:[],o=new Set(n),s=[...a,...st()].filter(e=>typeof e.name!=`string`||!o.has(e.name));return{...i,skills:s,load_public_skills:!1,load_user_skills:!0,load_project_skills:!0,...r?{system_message_suffix:r}:{}}}function lt(e){return G(e.agent_settings).agent_kind===`acp`}function ut(e){let t=G(e.agent_settings).acp_server;return typeof t==`string`&&t.length>0?t:void 0}function dt(e){let t=e.acp_command;if(!(Array.isArray(t)&&t.length===0)&&t!==void 0)return t;let n=C(typeof e.acp_server==`string`?e.acp_server:void 0);return n?[...n.default_command]:t}function ft(e,t){let n=G(e.agent_settings),r={agent_kind:`acp`,agent_context:ct(n,t,e.disabled_skills)};for(let e of g){if(e===`acp_model`||e===`acp_env`)continue;let t=e===`acp_command`?dt(n):n[e];t!=null&&(r[e]=t)}let i=G(n.mcp_config);Object.keys(i).length>0&&(r.mcp_config=i);let a=typeof n.acp_server==`string`?n.acp_server:void 0,o=x({configured:n.acp_model,providerDefault:S(a)});return o&&(r.acp_model=o),r}function pt(e,t){let n=G(e.agent_settings),r=G(n.llm);r.model=typeof r.model==`string`&&r.model.trim().length>0?r.model:y.llm_model,r.stream=!0;let i=$e(r.api_key);i?r.api_key=i:delete r.api_key;let a=$e(r.base_url);a?r.base_url=a:delete r.base_url,T(r)?(r.auth_type=ie,r.subscription_vendor=w,delete r.api_key,delete r.base_url):(delete r.auth_type,delete r.subscription_vendor);let o=G(n.mcp_config);Object.keys(o).length===0&&delete n.mcp_config,delete n.acp_server;for(let e of g)delete n[e];return delete n.acp_env,{...n,llm:r,agent_context:ct(n,t,e.disabled_skills),tools:at(n)}}function mt(e,t){return lt(e)?ft(e,t):pt(e,t)}function ht(e){let{settings:t,query:n,conversationInstructions:r,plugins:i,workingDir:a}=e,o=G(t.conversation_settings),s=ot(n,r);return Qe.forEach(e=>delete o[e]),{...o,workspace:{kind:`LocalWorkspace`,working_dir:a??u()},...s?{initial_message:s}:{},...i?.length?{plugins:i.map(e=>({source:e.source,...e.ref?{ref:e.ref}:{},...e.repo_path?{repo_path:e.repo_path}:{}}))}:{}}}function gt(e){let t=e.encryptedAgentSettings?{...e.settings,agent_settings:e.encryptedAgentSettings}:e.settings,n=lt(t),r=e.agentProfileId?e.agentProfileKind:n?`acp`:`openhands`,i=mt(t,e.runtimeServicesInfo),a=n?ut(t):void 0,o=ht(e.encryptedConversationSettings?{...e,settings:{...e.settings,conversation_settings:e.encryptedConversationSettings}}:e),s={...e.agentProfileId?{agent_profile_id:e.agentProfileId}:{agent_settings:i},workspace:o.workspace,client_tools:r===`openhands`?[Te,je]:[],confirmation_policy:nt(o),max_iterations:typeof o.max_iterations==`number`?o.max_iterations:500,stuck_detection:!0,autotitle:!0,...e.titleLlmProfile?{title_llm_profile:e.titleLlmProfile}:{},worktree:e.worktree??!0};!e.agentProfileId&&a&&(s.tags={[He]:a}),!e.agentProfileId&&e.secretsEncrypted&&(!n||tt(i.mcp_config))&&(s.secrets_encrypted=!0),e.conversationId&&(s.conversation_id=e.conversationId),e.parentConversationId&&(s.parent_conversation_id=e.parentConversationId);let c=rt(o);c&&(s.security_analyzer=c),o.initial_message&&(s.initial_message=o.initial_message),o.plugins&&(s.plugins=o.plugins),o.hook_config&&(s.hook_config=o.hook_config);let l={...o.tool_module_qualnames??{}};if(delete l[V],delete l[H],delete l[U],Object.keys(l).length>0&&(s.tool_module_qualnames=l),o.agent_definitions&&(s.agent_definitions=o.agent_definitions),e.customSecrets&&e.customSecrets.length>0){let t=d(),n=t?Ce(t):{},r={};for(let t of e.customSecrets){let e={kind:`LookupSecret`,url:`/api/settings/secrets/${encodeURIComponent(t.name)}`,description:t.description};Object.keys(n).length>0&&(e.headers=n),r[t.name]=e}s.secrets=r}return s}var _t=`Connect your ChatGPT subscription before starting a conversation with this LLM profile.`;async function vt(e){if(T(G(e.llm))&&!(await ae.getOpenAIStatus()).connected)throw Error(_t)}async function yt(t){let{SecretsService:n}=await e(async()=>{let{SecretsService:e}=await import(`./secrets-service-BtsgYSlj.js`).then(e=>e.n);return{SecretsService:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8])),[r,i,a]=await Promise.all([b.getSettingsForConversation(),n.getSecrets(),Ie()]),{agentSettings:o,conversationSettings:s,secretsEncrypted:c}=r;return t.agentProfileId||await vt(o),gt({...t,encryptedAgentSettings:o,encryptedConversationSettings:s,secretsEncrypted:c,customSecrets:i,runtimeServicesInfo:a})}function bt(){return{hooks:[]}}function xt(e,t){if(!t)return;let n=new Set(t.profiles.map(e=>e.name));if(e&&n.has(e))return e;if(t.active_profile&&n.has(t.active_profile))return t.active_profile}var St=`1970-01-01T00:00:00.000Z`,Ct=300*1e3,wt=`Unable to load conversations because the selected agent server returned data this UI does not understand. Check the backend URL/session key and update the agent server if needed.`;function J(){return Error(wt)}function Y(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Tt(e){return typeof e==`number`?e:null}function X(e){return typeof e==`number`?e:0}function Z(e){return typeof e==`string`?e:null}function Et(e,t,n){let r=e[t]??e[n];return typeof r==`string`&&r.trim()?r:St}function Dt(e){return Y(e)?{prompt_tokens:X(e.prompt_tokens),completion_tokens:X(e.completion_tokens),cache_read_tokens:X(e.cache_read_tokens),cache_write_tokens:X(e.cache_write_tokens),context_window:X(e.context_window),per_turn_token:X(e.per_turn_token)}:null}function Q(e){return Y(e)?{accumulated_cost:Tt(e.accumulated_cost),max_budget_per_task:Tt(e.max_budget_per_task),accumulated_token_usage:Dt(e.accumulated_token_usage)}:null}function Ot(e){if(!Y(e))return null;let t=Y(e.llm)?{model:Z(e.llm.model)}:null;return{kind:Z(e.kind),acp_server:Z(e.acp_server),acp_model:Z(e.acp_model),llm:t}}function kt(e){return Y(e)?{working_dir:Z(e.working_dir)}:null}function At(e){if(!Y(e))return null;let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}function jt(e){if(!Y(e))return null;let{agent_profile_id:t,revision:n}=e;return typeof t!=`string`||typeof n!=`number`?null:{agent_profile_id:t,revision:n}}function Mt(e){if(!e.startsWith(`/`))return null;let t=[];for(let n of e.split(`/`))if(n&&n!==`.`)if(n===`..`){if(!t.length)return null;t.pop()}else t.push(n);return`/${t.join(`/`)}`}function Nt(e,t){let n=Mt(e),r=Mt(t);if(!n||!r||n!==r&&!n.startsWith(`${r}/`))throw Error(`Conversation file path must stay inside the workspace`);return n}function Pt(e){if(!Y(e)||typeof e.id!=`string`||!e.id.trim())throw J();return{id:e.id.trim(),title:Z(e.title),created_at:Et(e,`created_at`,`createdAt`),updated_at:Et(e,`updated_at`,`updatedAt`),execution_status:Z(e.execution_status),sandbox_status:Z(e.sandbox_status),metrics:Q(e.metrics),agent:Ot(e.agent),workspace:kt(e.workspace),tags:At(e.tags),launched_agent_profile:jt(e.launched_agent_profile),current_model_id:Z(e.current_model_id),current_model_name:Z(e.current_model_name)}}function $(e){if(!Array.isArray(e))throw J();return e.map(Pt)}function Ft(e){if(Array.isArray(e))return{items:$(e),next_page_id:null};if(!Y(e))throw J();return{items:$(e.items),next_page_id:typeof e.next_page_id==`string`?e.next_page_id:null}}var It=new Set([`idle`,`running`,`paused`,`waiting_for_confirmation`,`finished`,`error`,`stuck`]);function Lt(e){let t=e??`idle`;return It.has(t)?t:`idle`}function Rt(e,t){if(!e)throw Error(`Conversation ${t} was not found`);return e}var zt=class{static async sendMessage(e,t,n){let r=f().backend,i=n?.conversationUrl??null,o=n?.sessionApiKey??null;if(r.kind===`cloud`){if(!i||!o){let[t]=await L([e]);i=t?.conversation_url?.trim()??null,o=t?.session_api_key?.trim()??null}if(!i||!o)throw Error(`Conversation sandbox is still starting. Wait for it to finish, then try again.`);return await _({backend:r,method:`POST`,hostOverride:p(i),path:`/api/conversations/${e}/events`,body:{...t,run:!0},authMode:`session-api-key`,sessionApiKey:o}),t}return await new a(c({conversationUrl:i,sessionApiKey:o})).sendEvent(e,t,{run:!0}),t}static async createConversation(e={}){let{initialUserMsg:t,conversationInstructions:n,plugins:r,metadata:i,workingDirOverride:o,workspaceMode:s,parentConversationId:u,agentType:te,sandboxId:p,agentProfileId:m,agentProfileKind:ne}=e;if(f().backend.kind===`cloud`)return R({initial_message:t?{role:`user`,content:[{type:`text`,text:t}]}:null,title:n??null,selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,plugins:r??null,parent_conversation_id:u??null,agent_type:te,sandbox_id:p??null,agent_profile_id:m??null});let[h,g]=await Promise.all([b.getSettings(),re.listProfiles().catch(()=>void 0)]),_=xt(h.title_llm_profile,g),v=D(),y=await pe(o??ee(v)),x=s??(o?`local_repo`:`new_worktree`),S=await yt({settings:h,query:t,conversationInstructions:n,plugins:r,conversationId:v,parentConversationId:u,workingDir:y,worktree:x===`new_worktree`,agentProfileId:m,agentProfileKind:ne,titleLlmProfile:_}),C=await new a(c({timeout:Ct})).createConversation(S),w=d();if(!w)throw new l;return(i?.selected_repository||o)&&N(C.id,{selected_repository:i?.selected_repository??null,selected_branch:i?.selected_branch??null,git_provider:i?.git_provider??null,selected_workspace:o??null,workspace_mode:x}),{id:C.id,created_by_user_id:null,status:`READY`,detail:null,app_conversation_id:C.id,agent_server_url:w.host,request:{initial_message:S.initial_message,plugins:r??null},created_at:C.created_at,updated_at:C.updated_at}}static async getStartTask(e){return f().backend.kind===`cloud`?B(e):null}static async getVSCodeUrl(e,t,n){let i=await this.resolveConversationWorkingDir(e);return{vscode_url:await new r(c({conversationUrl:t,sessionApiKey:n})).getUrl({baseUrl:typeof window<`u`?window.location.origin:void 0,workspaceDir:i})}}static async resolveConversationWorkingDir(e){let[t]=await this.batchGetAppConversations([e]);return t?.workspace?.working_dir??u()}static async batchGetAppConversations(e){return e.length===0?[]:f().backend.kind===`cloud`?L(e):$(await new a(c()).getConversations(e)).map(e=>Be(e))}static async updateConversationPublicFlag(e,t){if(f().backend.kind!==`cloud`)throw Error(`Public sharing requires a cloud backend.`);return ye(e,t)}static async updateConversationRepository(e,t,n,r){t?N(e,{...M(e)??{},selected_repository:t,selected_branch:n??null,git_provider:r??null}):P(e);let[i]=await this.batchGetAppConversations([e]);return Rt(i,e)}static async readConversationFile(e,n){if(f().backend.kind===`cloud`)return z(e,Nt(n??`/workspace/project/.agents_tmp/PLAN.md`,`/workspace/project`));let r=await this.resolveConversationWorkingDir(e),i=Nt(n??`${r}/.agents_tmp/PLAN.md`,r);return new t(c()).downloadTextFile(i)}static async downloadConversation(e){return f().backend.kind===`cloud`?_e(e):new t(c()).downloadTrajectory(e)}static async getHooks(e){return bt()}static async getRuntimeConversation(e,t,n){let r=await new a(c({conversationUrl:t,sessionApiKey:n})).getConversation(e),i=Pt(r),o=Y(r)?r.stats:null;return{id:i.id,title:i.title?.trim()?i.title:ze(i.id),metrics:Q(i.metrics),created_at:i.created_at,updated_at:i.updated_at,status:Lt(i.execution_status),stats:Y(o)?o:{usage_to_metrics:{}}}}static async condenseConversation(e,t,n){let r=f().backend;if(r.kind===`cloud`&&t){await _({backend:r,method:`POST`,hostOverride:p(t),path:`/api/conversations/${e}/condense`,authMode:`session-api-key`,sessionApiKey:n});return}await new a(c({conversationUrl:t,sessionApiKey:n})).condenseConversation(e)}static async searchConversations(e=20,t){return f().backend.kind===`cloud`?ge(e,t):Ve(Ft(await new a(c()).searchConversations({limit:e,page_id:t,sort_order:h.UPDATED_AT_DESC})))}static async deleteConversation(e){f().backend.kind===`cloud`?await ve(e):await new a(c()).deleteConversation(e),P(e)}static async updateConversationTitle(e,t){await new a(c()).updateConversation(e,{title:t});let[n]=await this.batchGetAppConversations([e]);return Rt(n,e)}static async forkConversation(e,t,n){if(f().backend.kind===`cloud`)throw Error(`Branching a conversation isn't supported on the cloud backend yet.`);let r=await new a(c()).forkConversation(e,{from_event_id:t,...n?{title:n}:{}}),i=M(e);return i&&N(r.id,i),r}static async getEventParentId(e,t){return(await new a(c()).getEvent(e,t)).parent_id??void 0}static async switchProfile(e,t){let{backend:n}=f();if(n.kind===`cloud`){if(!e){await re.activateProfile(t);return}await _({backend:n,method:`POST`,path:`/api/v1/app-conversations/${e}/switch_profile`,body:{profile_name:t}});return}if(!e){await new i(c()).activateProfile(t);return}let r=c(),o=new a(r),s=await new i(r).getProfile(t,{exposeSecrets:`encrypted`}),l=typeof s.config.model==`string`?s.config.model:``;if(!l)throw Error(`Profile '${t}' has no model.`);await vt({llm:s.config}),await o.switchLLM(e,{...s.config,model:l,stream:!0,usage_id:`profile:${t}:${D()}`})}static async switchAcpModel(e,t){let{backend:n}=f();if(n.kind===`cloud`){await _({backend:n,method:`POST`,path:`/api/v1/app-conversations/${e}/switch_acp_model`,body:{model:t}});return}await new a(c()).switchAcpModel(e,t)}};export{N as C,D as E,M as S,pe as T,Se as _,ke as a,z as b,Ee as c,we as d,H as f,B as g,R as h,Xe as i,U as l,L as m,Ge as n,De as o,V as p,qe as r,Oe as s,zt as t,Ae as u,be as v,me as w,xe as x,he as y};
@@ -1,2 +0,0 @@
1
- import{a as e,t}from"./rolldown-runtime-Cyuzqnbw.js";import{St as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{U as i,f as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as o}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{Ft as s,Mt as c,jt as l}from"./active-backend-context-BZDG15C0.js";import{t as u,z as d}from"./utils-DUD5ScdA.js";import{n as f}from"./use-settings-C6ZxpBDX.js";import{t as p}from"./use-save-settings-BahvC2Gw.js";import"./form-control-classes-CGXBLcn1.js";import{t as m}from"./brand-button-Blxv5nww.js";import{t as h}from"./settings-input-CWUEHHvS.js";import{c as g,i as _,n as v,o as y,s as ee,t as te}from"./acp-providers-CYy8qA2z.js";import{_ as ne,g as re,h as ie,m as ae,n as oe,o as se}from"./schema-field-C59lVZTA.js";import{t as b}from"./settings-dropdown-input-Ba1UN5Du.js";import{r as x}from"./typography-DB5HoCk0.js";import{t as ce}from"./settings-switch-Dk9hChx1.js";import{a as S,i as le,n as C,r as w,t as ue}from"./use-acp-credential-form-c8KXAa8A.js";var T=e(n(),1),E=r();function de({form:e,providerKey:t}){let{t:n}=o(`openhands`),{fields:r,values:i,setValue:a,secretExists:s,conflicts:c}=e,{status:l,isChecking:u}=C(t),f=g(t)??t;return r.length===0?null:(0,E.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,E.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,E.jsx)(x.Text,{className:`text-sm font-medium text-white`,children:n(d.SETTINGS$ACP_CREDENTIALS_TITLE)}),(0,E.jsx)(x.Text,{className:`text-xs text-[#717888]`,children:n(d.SETTINGS$ACP_CREDENTIALS_DESCRIPTION)})]}),(0,E.jsx)(le,{status:l,isChecking:u,providerName:f,testIdPrefix:`settings-acp-auth`}),(0,E.jsx)(`div`,{className:`flex flex-col gap-5`,children:r.map(e=>(0,E.jsx)(w,{field:e,value:i[e.name]??``,onChange:t=>a(e.name,t),alreadySet:s(e.name),testId:`settings-acp-secret-${e.name}`,showOptionalTag:!0},e.name))}),(0,E.jsx)(S,{conflicts:c})]})}var D=t(((e,t)=>{var n=[`||`,`&&`,`;;`,`|&`,`<(`,`<<<`,`>>`,`>&`,`<&`,`&`,`;`,`(`,`)`,`|`,`<`,`>`],r=/[\n\r\u2028\u2029]/,i=/[\s#!"$&'():;<=>@\\^`|]/g;t.exports=function(e){return e.map(function(e){if(e===``)return`''`;if(e&&typeof e==`object`){if(`op`in e&&e.op===`glob`){if(typeof e.pattern!=`string`)throw TypeError("glob token requires a string `pattern`");if(r.test(e.pattern))throw TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(i,`\\$&`)}if(`op`in e&&typeof e.op==`string`){if(n.indexOf(e.op)<0)throw TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,`\\$&`)}if(`comment`in e&&typeof e.comment==`string`){if(r.test(e.comment))throw TypeError("`comment` must not contain line terminators");return`#`+e.comment}throw TypeError(`unrecognized object token shape`)}return/["\s\\]/.test(e)&&!/'/.test(e)?`'`+e.replace(/(['])/g,`\\$1`)+`'`:/["'\s]/.test(e)?`"`+e.replace(/(["\\$`!])/g,`\\$1`)+`"`:String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}~])/g,`$1\\$2`)}).join(` `)}})),O=t(((e,t)=>{for(var n=`(?:`+[`\\|\\|`,`\\&\\&`,`;;`,`\\|\\&`,`\\<\\(`,`\\<\\<\\<`,`>>`,`>\\&`,`<\\&`,`[&;()|<>]`].join(`|`)+`)`,r=RegExp(`^`+n+`$`),i=`|&;()<> \\t`,a=`"((\\\\"|[^"])*?)"`,o=`'((\\\\'|[^'])*?)'`,s=/^#$/,c=`'`,l=`"`,u=`$`,d=``,f=4294967296,p=0;p<4;p++)d+=(f*Math.random()).toString(16);var m=RegExp(`^`+d);function h(e,t){for(var n=t.lastIndex,r=[],i;i=t.exec(e);)r[r.length]=i,t.lastIndex===i.index&&(t.lastIndex+=1);return t.lastIndex=n,r}function g(e,t,n){var r=typeof e==`function`?e(n):e[n];return r===void 0&&n!=``?r=``:r===void 0&&(r=`$`),typeof r==`object`?t+d+JSON.stringify(r)+d:t+r}function _(e,t,d){d||={};var f=d.escape||`\\`,p=`(\\`+f+`['"`+i+`]|[^\\s'"`+i+`])+`,m=h(e,new RegExp([`(`+n+`)`,`(`+p+`|`+a+`|`+o+`)+`].join(`|`),`g`));if(m.length===0)return[];t||={};var _=!1;return m.map(function(n){var i=n[0];if(!i||_)return;if(r.test(i))return{op:i};var a=!1,o=!1,d=``,p=!1,m;function h(){m+=1;var e,n,r=i.charAt(m);if(r===`{`){if(m+=1,i.charAt(m)===`}`)throw Error(`Bad substitution: `+i.slice(m-2,m+1));if(e=i.indexOf(`}`,m),e<0)throw Error(`Bad substitution: `+i.slice(m));n=i.slice(m,e),m=e}else if(/[*@#?$!_-]/.test(r))n=r,m+=1;else{var a=i.slice(m);e=a.match(/[^\w\d_]/),e?(n=a.slice(0,e.index),m+=e.index-1):(n=a,m=i.length)}return g(t,``,n)}for(m=0;m<i.length;m++){var v=i.charAt(m);if(p||=!a&&(v===`*`||v===`?`),o)d+=v,o=!1;else if(a)v===a?a=!1:a==c?d+=v:v===f?(m+=1,v=i.charAt(m),v===l||v===f||v===u?d+=v:d+=f+v):v===u?d+=h():d+=v;else if(v===l||v===c)a=v;else if(r.test(v))return{op:i};else if(s.test(v)){_=!0;var y={comment:e.slice(n.index+m+1)};return d.length?[d,y]:[y]}else v===f?o=!0:v===u?d+=h():d+=v}return p?{op:`glob`,pattern:d}:d}).reduce(function(e,t){return t===void 0||[].concat(t).forEach(function(t){e[e.length]=t}),e},[])}t.exports=function(e,t,n){var r=_(e,t,n);return typeof t==`function`?r.reduce(function(e,t){if(typeof t==`object`)return e[e.length]=t,e;var n=t.split(RegExp(`(`+d+`.*?`+d+`)`,`g`));return n.length===1?(e[e.length]=n[0],e):(n.filter(Boolean).forEach(function(t){e[e.length]=m.test(t)?JSON.parse(t.split(d)[1]):t}),e)},[]):r}})),{quote:k}=e(t((e=>{e.quote=D(),e.parse=O()}))(),1);function A(e){let t=[],n=0,r=``,i=!1;for(;n<e.length;){let a=e[n];if(a===` `||a===` `||a===`
2
- `||a===`\r`){i&&=(t.push(r),r=``,!1),n+=1;continue}if(a===`'`){for(i=!0,n+=1;n<e.length&&e[n]!==`'`;)r+=e[n],n+=1;n<e.length&&(n+=1);continue}if(a===`"`){for(i=!0,n+=1;n<e.length&&e[n]!==`"`;){if(e[n]===`\\`&&n+1<e.length){let t=e[n+1];if(t===`"`||t===`\\`){r+=t,n+=2;continue}}r+=e[n],n+=1}n<e.length&&(n+=1);continue}if(a===`\\`&&n+1<e.length){i=!0,r+=e[n+1],n+=2;continue}i=!0,r+=a,n+=1}return i&&t.push(r),t}var fe=/[\s"'\\$`&|;<>(){}*?#!~[\]]/;function j(e){return e.map(e=>fe.test(e)||e===``?k([e]):e).join(` `)}var M={hideTitle:!0},pe=`enable_sub_agents`,me=`tool_concurrency_limit`,he=`npx -y <package-name>`,N=`__custom_model__`;function ge(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function P(e,t){let n=A(e).join(` `);for(let e of t)if(n===e.default_command.join(` `))return e.key;return te}function _e(e){return e?.find(e=>e.key===pe)}function ve(e,t){return typeof e==`boolean`?e:t?.default===!0}function ye(e,t){return e?.available_models?.some(({id:e})=>e===t.trim())??!1}function be(e){let{isAcp:t,selectedPreset:n,isDefaultProviderCommand:r,commandTokens:i,acpModel:a,subAgentsEnabled:o,toolConcurrencyField:s,toolConcurrency:c}=e;if(t){let e=r&&n!==`custom`;return{agent_kind:`acp`,acp_server:n,acp_model:a.trim()||null,acp_command:e?null:j(i)||null,acp_args:null}}let l={agent_kind:`openhands`,enable_sub_agents:o};if(s){let e=se(s,c),t=typeof s.default==`number`?s.default:1;l.tool_concurrency_limit=e==null?t:Number(e)}return l}function F({embedded:e=!1,agentSettingsOverride:t=null,onSaveControlChange:n}={}){let{t:r}=o(`openhands`),{data:i,isLoading:a}=f(),g=t??i?.agent_settings??null,{mutate:S,isPending:le}=p(),{data:C}=ne(i?.agent_settings_schema),w=T.useMemo(()=>C?.sections.flatMap(e=>e.fields),[C]),D=_e(w),O=T.useMemo(()=>ve(g?.[pe],D),[D,g]),[k,fe]=(0,T.useState)(O),M=w?.find(e=>e.key===me),F=T.useMemo(()=>{if(!M)return``;let e=g?.[me];return ae(M,e)},[M,g]),[I,xe]=(0,T.useState)(F),[L,R]=(0,T.useState)(`openhands`),[z,B]=(0,T.useState)(``),[V,H]=(0,T.useState)(``),[Se,U]=(0,T.useState)(!1),[Ce,W]=(0,T.useState)(!1),G=L===`acp`?P(z,v):null,K=ue(G&&G!==`custom`?G:null),we=(0,T.useRef)(null),q=(0,T.useRef)(null),J=(0,T.useRef)(``);(0,T.useEffect)(()=>{let e=t??i?.agent_settings??null;if(!e&&!i)return;let n=t??i;if(we.current!==n){if(we.current=n,e?.agent_kind===`acp`){R(`acp`);let t=e?.acp_server,n=typeof t==`string`?t:void 0,r=ee(n),i=ge(e?.acp_command),a=[...i.length>0?i:r?.default_command??[],...ge(e?.acp_args)],o=a.length>0?j(a):``;B(o),q.current=n??null,J.current=o;let s=e?.acp_model,c=typeof s==`string`?s.trim():``;H(c||y(n)||``),U(!!c&&(!r||!ye(r,c)))}else R(`openhands`),B(``),H(``),q.current=null,J.current=``,U(!1);W(!1)}},[i,t]),(0,T.useEffect)(()=>{fe(O)},[O]),(0,T.useEffect)(()=>{xe(F)},[F]);let Te=(0,T.useRef)(()=>({agent_kind:`openhands`,enable_sub_agents:!1})),Ee=(0,T.useCallback)(()=>Te.current(),[]),Y=(0,T.useRef)(K);Y.current=K;let De=(0,T.useCallback)(e=>Y.current.save(e),[]),Oe=(0,T.useCallback)(()=>Y.current.reset(),[]),ke=L===`acp`&&A(z).length===0,Ae=K.isDirty;if((0,T.useEffect)(()=>{!e||!n||n({agentType:L,isValid:!ke,buildAgentProfileFields:Ee,credentials:{isDirty:Ae,save:De,reset:Oe}})},[e,n,L,ke,Ae,Ee,De,Oe]),a)return null;let X=L===`acp`,Z=A(z),je=X&&Z.length===0,Q=P(z,v),$=ee(Q),Me=$?.available_models??[],Ne=Me.length>0,Pe=ye($,V),Fe=Se||!Pe?N:V,Ie=!!$&&Z.join(` `)===$.default_command.join(` `),Le=j(v[0]?.default_command??[])||he;Te.current=()=>be({isAcp:X,selectedPreset:Q,isDefaultProviderCommand:Ie,commandTokens:Z,acpModel:V,subAgentsEnabled:k,toolConcurrencyField:M,toolConcurrency:I});let Re=Ce||!X&&(k!==O||I!==F),ze=K.isDirty,Be=Re||ze,Ve=le||K.isSaving,He=async()=>{if(K.isDirty){if(!await K.save({silent:Re}))return;K.reset()}if(Re)if(X){let e=!!($&&Ie),t=q.current,n=z===J.current,i=!!t&&t!==`custom`&&!v.some(e=>e.key===t),a=X&&n&&i,o=_(a?t:$&&Ie?$.key:te,{command:e?[]:Z,model:V.trim()||void 0,allowUnknownServer:a});if(!o)return;S({agent_settings_diff:o},{onError:e=>{l(s(e)||r(d.ERROR$GENERIC))},onSuccess:()=>{c(r(d.SETTINGS$SAVED)),W(!1)}})}else{let e={agent_kind:`openhands`,enable_sub_agents:k};if(M){let t;try{t=se(M,I)}catch(e){l(e instanceof Error?e.message:r(d.ERROR$GENERIC));return}t!=null&&(e[me]=t)}S({agent_settings_diff:e},{onError:e=>{l(s(e)||r(d.ERROR$GENERIC))},onSuccess:()=>{c(r(d.SETTINGS$SAVED)),W(!1)}})}},Ue=D?re(r,D.key,D.label):r(d.SCHEMA$ENABLE_SUB_AGENTS$LABEL),We=D?ie(r,D.key,D.description):r(d.SCHEMA$ENABLE_SUB_AGENTS$DESCRIPTION);return(0,E.jsxs)(`div`,{"data-testid":`agent-settings-screen`,className:`flex flex-col gap-6 pb-8 max-w-2xl`,children:[!e&&(0,E.jsxs)(`div`,{children:[(0,E.jsx)(x.H2,{className:`mb-2`,children:r(d.SETTINGS$NAV_AGENT)}),(0,E.jsx)(x.Paragraph,{className:`text-sm text-[#A3A3A3]`,children:r(d.SETTINGS$AGENT_PAGE_DESCRIPTION)})]}),(0,E.jsx)(b,{testId:`agent-type-selector`,name:`agent-type`,label:r(d.SETTINGS$NAV_AGENT),items:[{key:`openhands`,label:r(d.SETTINGS$AGENT_TYPE_OPENHANDS)},{key:`acp`,label:r(d.SETTINGS$AGENT_TYPE_ACP)}],selectedKey:L,onSelectionChange:e=>{if(!e)return;let t=e;if(R(t),t===`acp`&&!z){let e=v[0];e&&(B(j(e.default_command)),H(y(e.key)??``),U(!1))}else t===`openhands`&&U(!1);W(!0)}}),!X&&(0,E.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[(0,E.jsx)(ce,{testId:`agent-settings-enable-sub-agents`,isToggled:k,onToggle:e=>{fe(e)},children:Ue}),We?(0,E.jsx)(x.Paragraph,{className:u(`pl-12`,`text-tertiary-alt text-xs leading-5`),children:We}):null]}),!X&&M?(0,E.jsx)(oe,{field:M,value:I,isDisabled:Ve,onChange:xe}):null,X&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(b,{testId:`agent-preset-selector`,name:`agent-preset`,label:r(d.SETTINGS$AGENT_PRESET),items:[...v.map(e=>({key:e.key,label:e.display_name})),{key:`custom`,label:r(d.SETTINGS$AGENT_PRESET_CUSTOM)}],selectedKey:Q,onSelectionChange:e=>{if(!e)return;let t=String(e),n=ee(t);n?(B(j(n.default_command)),H(y(t)??``),U(!1)):t===`custom`&&(B(``),H(``),U(!0)),W(!0)}}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,E.jsx)(x.Text,{className:`text-sm`,children:r(d.SETTINGS$AGENT_COMMAND)}),(0,E.jsx)(`textarea`,{"data-testid":`agent-command-input`,className:`bg-tertiary border border-[#717888] rounded-sm p-2 text-sm font-mono text-white placeholder:text-[#717888] min-h-[60px] resize-y focus:outline-none focus:border-white`,value:z,placeholder:Le,onChange:e=>{let t=e.target.value,n=P(z,v),r=P(t,v);r!==n&&(H(y(r)??``),U(!1)),B(t),W(!0)}}),(0,E.jsx)(x.Text,{className:`text-xs text-[#717888]`,children:r(d.SETTINGS$AGENT_COMMAND_HINT)})]}),(0,E.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[Ne&&(0,E.jsx)(b,{testId:`agent-model-selector`,name:`agent-model`,label:r(d.SETTINGS$AGENT_MODEL),items:[...Me.map(e=>({key:e.id,label:e.label})),{key:N,label:r(d.SETTINGS$AGENT_PRESET_CUSTOM)}],selectedKey:Fe,onSelectionChange:e=>{if(!e)return;let t=String(e);t===N?(U(!0),H(``)):(U(!1),H(t)),W(!0)}}),Fe===N&&(0,E.jsx)(h,{testId:`agent-model-input`,label:r(Ne?d.SETTINGS$AGENT_CUSTOM_MODEL:d.SETTINGS$AGENT_MODEL),type:`text`,className:`w-full`,value:V,showOptionalTag:!0,onChange:e=>{H(e),W(!0)}}),(0,E.jsx)(x.Text,{className:`text-xs text-[#717888]`,children:r(d.SETTINGS$AGENT_MODEL_HINT)})]})]}),X&&Q!==`custom`&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`hr`,{className:`border-[#3D4046]`}),(0,E.jsx)(de,{form:K,providerKey:Q})]}),!e&&(0,E.jsx)(`div`,{children:(0,E.jsx)(m,{testId:`agent-save-button`,type:`button`,variant:`primary`,isDisabled:Ve||!Be||je,onClick:He,children:r(Ve?d.SETTINGS$SAVING:d.SETTINGS$SAVE_CHANGES)})})]})}var I=i(function(){return(0,E.jsx)(a,{to:`/settings/agents`,replace:!0})});export{A as i,I as n,M as r,F as t};
@@ -1 +0,0 @@
1
- import{n as e,r as t}from"./agent-settings-DfcSgkLD.js";export{e as default,t as handle};
@@ -1 +0,0 @@
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~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{t as i,z as a}from"./utils-DUD5ScdA.js";import{c as o}from"./vendor~root-layout~index-home~home~conversation-panel~conversation~shared-conversation-BvS6PCK2.js";import{n as s}from"./navigation-context-CQZwH_tC.js";import{t as c}from"./close-ScPlnwyq.js";import{r as l}from"./typography-DB5HoCk0.js";import{t as u}from"./vendor~index-home~home~conversation-panel~conversation~alert-banner-B3qC_oj8.js";var d=e(t(),1),f=n();function p({maintenanceStartTime:e,faultyModels:t,errorMessage:n,updatedAt:p}){let{t:m}=r(`openhands`),[h,g]=u(`alert_banner_dismissed_at`,null),{currentPath:_}=s(),v=e?(e=>new Date(e).toLocaleString(void 0,{year:`numeric`,month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,timeZoneName:`short`}))(e):null,y=!!e,b=t&&t.length>0,x=n&&n.trim().length>0,S=y||b||x,C=(0,d.useMemo)(()=>S?h!==p:!1,[h,p,S]),w=(0,d.useMemo)(()=>{if(!n)return null;let e=m(n);return e===n?n:e},[n,m]);return C?(0,f.jsxs)(`div`,{"data-testid":`alert-banner`,className:i(`bg-base border border-primary text-white p-4 rounded`,`flex flex-row items-center justify-between m-1`,_===`/`&&`mt-3 mr-3`),children:[(0,f.jsxs)(`div`,{className:`flex items-center`,children:[(0,f.jsx)(`div`,{className:`flex-shrink-0`,children:(0,f.jsx)(o,{className:`text-primary align-middle`})}),(0,f.jsx)(`div`,{className:`ml-3 flex flex-col gap-1`,children:(()=>{let e=[];return y&&v&&e.push((0,f.jsx)(l.Paragraph,{className:`text-sm font-medium`,children:m(a.MAINTENANCE$SCHEDULED_MESSAGE,{time:v})},`maintenance`)),b&&e.push((0,f.jsxs)(l.Paragraph,{className:`text-sm font-medium`,children:[m(a.ALERT$FAULTY_MODELS_MESSAGE),` `,t.join(`, `)]},`faulty-models`)),x&&w&&e.push((0,f.jsx)(l.Paragraph,{className:`text-sm font-medium`,children:w},`error-message`)),e})()})]}),(0,f.jsx)(`button`,{type:`button`,"data-testid":`dismiss-button`,onClick:()=>g(p),className:i(`bg-base rounded-full w-5 h-5 flex items-center justify-center cursor-pointer`),children:(0,f.jsx)(c,{})})]}):null}export{p as AlertBanner};
@@ -1 +0,0 @@
1
- import{M as e}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";function t(t){if(e.isAxiosError(t))return t.response?.data;if(t instanceof Error&&`response`in t)return t.response}function n(e,n){let r=t(e);if(r&&typeof r==`object`){let{message:e,detail:t}=r;if(typeof e==`string`&&e)return e;if(typeof t==`string`&&t)return t}return e instanceof Error&&e.message?e.message:n}export{n,t};
@@ -1 +0,0 @@
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~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{f as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{Q as a,Y as o,dt as s,r as c}from"./active-backend-context-BZDG15C0.js";import{t as l,z as u}from"./utils-DUD5ScdA.js";import{n as d,o as f}from"./backend-form-modal-CbCemvHt.js";import{r as p,t as m}from"./modal-body-BdKfD3Hl.js";import{t as h}from"./brand-button-Blxv5nww.js";var g=e(t(),1),_=n();function v(){let{t:e}=r(`openhands`),{active:t,addBackend:n,updateBackend:v}=c(),y=window.location.origin,[b,x]=g.useState(!1),[S,C]=g.useState(`idle`),[w,T]=g.useState(null),E=g.useCallback(async r=>{x(!0),C(`idle`),T(null);try{await new i(a({host:r.host,sessionApiKey:r.apiKey,timeout:5e3})).getSettings(),C(`success`),s(t.backend)?n(r):v(t.backend.id,r),window.location.reload()}catch(t){if(C(`error`),o(t,401))T(e(u.AUTH$INVALID_KEY));else{let n=t instanceof Error?t.message:String(t);T(`${e(u.AUTH$CONNECTION_FAILED)}${n?`: ${n}`:``}`)}x(!1)}},[t.backend,n,v,e]);return(0,_.jsx)(`div`,{"data-testid":`api-key-entry-screen`,className:`flex min-h-screen items-center justify-center bg-base px-6`,children:(0,_.jsxs)(`div`,{className:l(`relative rounded-xl border border-[var(--oh-border)] bg-base-secondary`,p(`md`),m),children:[(0,_.jsx)(`div`,{className:`px-6 pt-6 pb-2 pr-12`,children:(0,_.jsx)(`h2`,{className:`text-lg font-semibold`,children:e(u.BACKEND$ADD_TITLE)})}),(0,_.jsx)(`div`,{className:`px-6 pb-6 pt-2`,children:(0,_.jsx)(d,{mode:`add`,backend:{...t.backend,host:y,apiKey:``,name:``},onSubmitted:()=>{},testIdRoot:`api-key-entry`,hostReadOnly:!0,requireApiKey:!0,onSubmitOverride:E,renderActions:({canSubmit:t,testIdRoot:n})=>(0,_.jsxs)(_.Fragment,{children:[S!==`idle`&&(0,_.jsxs)(`div`,{className:`flex items-center gap-3 text-sm`,children:[(0,_.jsx)(f,{isConnected:S===`success`}),(0,_.jsx)(`span`,{"data-testid":`${n}-status`,className:S===`error`?`text-red-400`:`text-green-400`,children:S===`error`?w:e(u.ONBOARDING$BACKEND_STATUS_CONNECTED)})]}),(0,_.jsx)(h,{type:`submit`,variant:`secondary`,isDisabled:!t||b,testId:`${n}-submit`,className:`w-full text-center`,children:e(b?u.ONBOARDING$BACKEND_STATUS_CHECKING:u.BACKEND$CONNECT)})]})})})]})})}export{v as default};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{U as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as i}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{Bt as a,Ft as o,Mt as s,_ as ee,jt as c,n as l}from"./active-backend-context-BZDG15C0.js";import{z as u}from"./utils-DUD5ScdA.js";import{t as d}from"./settings-DcNPxz0v.js";import{n as f}from"./use-settings-C6ZxpBDX.js";import{t as p}from"./use-save-settings-BahvC2Gw.js";import{t as m}from"./brand-button-Blxv5nww.js";import{i as h,n as g,r as _,t as v}from"./color-themes-DTj5Ylbr.js";import{t as y}from"./navigation-link-Bxo3-4vo.js";import{t as b}from"./settings-input-CWUEHHvS.js";import{t as x}from"./use-llm-profiles-diZS4FiN.js";import{r as S}from"./format-model-name-BNPKVsIq.js";import{t as C}from"./settings-dropdown-input-Ba1UN5Du.js";import{n as w,t as T}from"./switch-skeleton-DwOoCqaL.js";import{t as E}from"./settings-switch-Dk9hChx1.js";var D=e(t(),1),O=n();function k({defaultKey:e,onChange:t,name:n}){let{t:r}=i(`openhands`);return(0,O.jsx)(C,{testId:n,name:n,onInputChange:t,label:r(u.SETTINGS$LANGUAGE),items:a.map(e=>({key:e.value,label:e.label})),defaultSelectedKey:e,isClearable:!1,wrapperClassName:`w-full min-w-0`})}function A(){let{t:e}=i(`openhands`),t=D.useCallback(e=>{if(!e)return;let t=e;g(t),_(t)},[]);return(0,O.jsx)(C,{testId:`color-theme-input`,name:`color-theme-input`,label:e(u.SETTINGS$COLOR_THEME),items:v.map(e=>({key:e.key,label:e.label})),defaultSelectedKey:h(),onSelectionChange:t,isClearable:!1,wrapperClassName:`w-full min-w-0`})}function j(){return(0,O.jsxs)(`div`,{"data-testid":`app-settings-skeleton`,className:`px-11 py-9 flex flex-col gap-6`,children:[(0,O.jsx)(w,{}),(0,O.jsx)(T,{}),(0,O.jsx)(T,{})]})}var M=`__automatic__`;function N(){let{t:e}=i(`openhands`),{mutate:t,isPending:n}=p(),{data:r,isLoading:h}=f(),g=l().backend.kind===`cloud`,{data:_,isLoading:v}=x(),[w,T]=D.useState(!1),[N,P]=D.useState(!1),[F,I]=D.useState(!1),[L,R]=D.useState(!1),[z,B]=D.useState(!1),[V,H]=D.useState(void 0),U=D.useMemo(()=>{let e=r?.title_llm_profile??null;return!e||!_||_.profiles.some(t=>t.name===e)?e:null},[_,r?.title_llm_profile]),W=V===void 0?U:V,G=D.useMemo(()=>[{key:M,label:e(u.SETTINGS$TITLE_GENERATION_AUTOMATIC)},..._?.profiles.map(t=>({key:t.name,label:t.model?e(u.SETTINGS$TITLE_GENERATION_PROFILE_OPTION,{name:t.name,model:S(t.model)??t.model}):t.name}))??[]],[_?.profiles,e]),K=n=>{let r=n.get(`language-input`)?.toString(),i=a.find(({label:e})=>e===r)?.value||d.language,l=g?!0:n.get(`enable-analytics-switch`)?.toString()===`on`,f=n.get(`enable-sound-notifications-switch`)?.toString()===`on`,p=n.get(`git-user-name-input`)?.toString()||d.git_user_name,m=n.get(`git-user-email-input`)?.toString()||d.git_user_email;t({language:i,...!g&&{user_consents_to_analytics:l},enable_sound_notifications:f,git_user_name:p,git_user_email:m,title_llm_profile:W},{onSuccess:()=>{ee(l?`granted`:`denied`),s(e(u.SETTINGS$SAVED))},onError:t=>{c(o(t)||e(u.ERROR$GENERIC))},onSettled:()=>{T(!1),P(!1),I(!1),R(!1),B(!1),H(void 0)}})},q=e=>{let t=a.find(({label:t})=>t===e)?.label,n=a.find(({value:e})=>e===r?.language)?.label;T(t!==n)},J=e=>{P(e!==(r?.user_consents_to_analytics??!0))},Y=e=>{I(e!==!!r?.enable_sound_notifications)},X=e=>{let t=r?.git_user_name;R(e!==t)},Z=e=>{let t=r?.git_user_email;B(e!==t)},Q=!w&&!N&&!F&&W===U&&!L&&!z,$=!r||h||v||n;return(0,O.jsxs)(`form`,{"data-testid":`app-settings-screen`,action:K,className:`flex flex-col gap-6`,children:[$&&(0,O.jsx)(j,{}),!$&&(0,O.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,O.jsx)(k,{name:`language-input`,defaultKey:r.language,onChange:q}),(0,O.jsx)(A,{}),(0,O.jsx)(E,{testId:`enable-analytics-switch`,name:g?void 0:`enable-analytics-switch`,defaultIsToggled:g?!0:r.user_consents_to_analytics??!0,isToggled:g?!0:void 0,isDisabled:g,onToggle:g?void 0:J,children:e(u.ANALYTICS$SEND_ANONYMOUS_DATA)}),(0,O.jsx)(E,{testId:`enable-sound-notifications-switch`,name:`enable-sound-notifications-switch`,defaultIsToggled:!!r.enable_sound_notifications,onToggle:Y,children:e(u.SETTINGS$SOUND_NOTIFICATIONS)}),(0,O.jsxs)(`div`,{className:`border-t border-[var(--oh-border)] pt-6 mt-2`,children:[(0,O.jsx)(`h3`,{className:`text-lg font-medium mb-2`,children:e(u.SETTINGS$CONVERSATION_TITLES)}),(0,O.jsx)(`p`,{className:`mb-4 text-sm leading-5 text-tertiary-light`,children:e(u.SETTINGS$TITLE_GENERATION_DESCRIPTION)}),(0,O.jsx)(C,{testId:`title-llm-profile-input`,name:`title-llm-profile-input`,label:e(u.SETTINGS$TITLE_GENERATION_MODEL),items:G,selectedKey:W??M,onSelectionChange:e=>{let t=e?.toString();H(!t||t===M?null:t)}}),(0,O.jsx)(y,{to:`/settings/llm`,className:`mt-3 inline-block text-sm text-primary hover:underline`,children:e(u.SETTINGS$MANAGE_LLM_PROFILES)})]}),(0,O.jsxs)(`div`,{className:`border-t border-[var(--oh-border)] pt-6 mt-2`,children:[(0,O.jsx)(`h3`,{className:`text-lg font-medium mb-2`,children:e(u.SETTINGS$GIT_SETTINGS)}),(0,O.jsx)(`p`,{className:`mb-4 text-sm leading-5 text-tertiary-light`,children:e(u.SETTINGS$GIT_SETTINGS_DESCRIPTION)}),(0,O.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,O.jsx)(b,{testId:`git-user-name-input`,name:`git-user-name-input`,type:`text`,label:e(u.SETTINGS$GIT_USERNAME),defaultValue:r.git_user_name||``,onChange:X,placeholder:e(u.SETTINGS$GIT_USERNAME_PLACEHOLDER),className:`w-full min-w-0`}),(0,O.jsx)(b,{testId:`git-user-email-input`,name:`git-user-email-input`,type:`email`,label:e(u.SETTINGS$GIT_EMAIL),defaultValue:r.git_user_email||``,onChange:Z,placeholder:e(u.SETTINGS$GIT_EMAIL_PLACEHOLDER),className:`w-full min-w-0`})]}),(0,O.jsx)(`div`,{className:`flex justify-start pt-4`,children:(0,O.jsxs)(m,{testId:`submit-button`,variant:`primary`,type:`submit`,isDisabled:n||Q,children:[!n&&e(u.SETTINGS$SAVE_CHANGES),n&&e(u.SETTINGS$SAVING)]})})]})]})]})}var P=r(N);export{P as default};
@@ -1,3 +0,0 @@
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,H as i,U as a}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as o}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{M as s,y as c}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{t as l}from"./useQuery-Bs5NFz2s.js";import{J as u,Mt as d,Q as f,jt as p,n as m,st as h,tt as g}from"./active-backend-context-BZDG15C0.js";import{i as _,t as v,z as y}from"./utils-DUD5ScdA.js";import{t as b}from"./zap-DRa-r-Tf.js";import{t as x}from"./proxy-DYDXxtje.js";import{m as S,n as C,t as w}from"./use-tracking-Bhu7gk2y.js";import{t as T}from"./use-settings-C6ZxpBDX.js";import{r as E}from"./modal-classes-D5_b5vMi.js";import{t as D}from"./brand-button-Blxv5nww.js";import{n as O}from"./navigation-context-CQZwH_tC.js";import{n as ee}from"./use-create-conversation-DVrA_uLD.js";import{t as k}from"./u-edit-DAkcF52u.js";import{t as A}from"./terminal-BUpID2wS.js";import{t as j}from"./use-user-conversation-BkNXpXrd.js";import{t as M}from"./toggle-switch-B2MLKsgt.js";import{t as N}from"./x-mark-BopmFoBq.js";import{n as P,t as F}from"./link-external-BNZzCM1I.js";import{n as I,r as te,t as ne}from"./use-has-permission-CQ31Cl8j.js";import{t as L}from"./automation-C_eCrGyP.js";import{a as R,c as re,d as ie,i as ae,l as oe,m as z,n as B,p as se,r as V}from"./kebab-menu-item-content-DERMdnDv.js";import{n as H}from"./api-error-message-BEIE_yD1.js";import{i as ce,n as le,r as ue,t as de}from"./format-relative-time-ZhQD4rsl.js";import{a as fe,i as pe,o as me,r as he,s as ge,t as _e}from"./automation-export-n0X6FB0C.js";import{n as ve,r as ye,t as be}from"./backend-not-configured-DP8KLNq_.js";import{a as U,i as xe,n as W,r as G,t as Se}from"./cog-CZiR80uT.js";var K=e(t()),q=n(),J=e=>(0,q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,...e,children:(0,q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3`})});function Ce({active:e}){let{t}=o(`openhands`);return(0,q.jsx)(`span`,{"data-testid":e?`active-status-badge-active`:`active-status-badge-inactive`,className:v(`inline-flex items-center rounded-full px-3 py-1 text-xs font-medium`,e?`bg-[var(--oh-success)]/15 text-[var(--oh-success)]`:`bg-surface-raised text-muted`),children:t(e?y.AUTOMATIONS$DETAIL$ACTIVE:y.AUTOMATIONS$DETAIL$INACTIVE)})}function we({automation:e,onToggle:t,onEdit:n,onDelete:r,onExport:i,onDownloadTarball:a,onRunNow:s,isRunningNow:c=!1}){let{t:l}=o(`openhands`),u=ne(`manage_automations`),d=[...n?[{label:l(y.AUTOMATIONS$EDIT),icon:(0,q.jsx)(k,{className:`size-4`}),onClick:n}]:[],{label:e.enabled?l(y.AUTOMATIONS$TURN_OFF):l(y.AUTOMATIONS$TURN_ON),icon:(0,q.jsx)(B,{className:`size-4`}),onClick:t},{label:l(y.AUTOMATIONS$EXPORT),icon:(0,q.jsx)(J,{className:`size-4`}),onClick:i},{label:l(y.AUTOMATIONS$DOWNLOAD_TARBALL),icon:(0,q.jsx)(J,{className:`size-4`}),onClick:a},{label:l(y.AUTOMATIONS$DELETE),icon:(0,q.jsx)(fe,{className:`size-4`}),onClick:r}];return(0,q.jsx)(`div`,{className:`flex flex-col gap-4`,children:(0,q.jsxs)(`div`,{className:`flex items-start justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`h1`,{className:`text-xl font-medium text-content`,children:e.name}),(0,q.jsx)(Ce,{active:e.enabled})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[u&&s&&(0,q.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1.5 rounded-md border border-[var(--oh-border)] px-3 py-1.5 text-sm font-medium text-content transition-colors hover:bg-surface-raised disabled:cursor-not-allowed disabled:opacity-60`,disabled:c||!e.enabled,onClick:s,children:[(0,q.jsx)(V,{className:`size-3.5 shrink-0`,"aria-hidden":!0}),l(c?y.AUTOMATIONS$STARTING:y.AUTOMATIONS$RUN_NOW)]}),u&&(0,q.jsx)(M,{enabled:e.enabled,label:e.enabled?l(y.AUTOMATIONS$TURN_OFF):l(y.AUTOMATIONS$TURN_ON),onToggle:t}),u&&(0,q.jsx)(ge,{items:d})]})]})})}var Te=240,Ee=`max-h-60`;function De({prompt:e}){let{t}=o(`openhands`),[n,r]=K.useState(!1),[i,a]=K.useState(!1),s=K.useRef(null),c=i&&!n;return K.useLayoutEffect(()=>{let e=s.current;if(!e)return;let t=()=>{a(e.scrollHeight>Te)};t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[e]),(0,q.jsx)(G,{icon:(0,q.jsx)(A,{className:`size-4`}),title:t(y.AUTOMATIONS$DETAIL$PROMPT),children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,q.jsxs)(`div`,{className:`relative`,children:[(0,q.jsx)(`p`,{ref:s,className:v(`whitespace-pre-wrap text-sm leading-6 text-content`,c&&v(Ee,`overflow-hidden`)),"data-testid":`automation-prompt-content`,children:e}),c?(0,q.jsx)(`div`,{className:`pointer-events-none absolute inset-x-0 bottom-0 h-20 bg-gradient-to-t from-[var(--oh-surface)] to-transparent`,"aria-hidden":!0,"data-testid":`automation-prompt-fade`}):null]}),i?(0,q.jsx)(`button`,{type:`button`,className:`self-start cursor-pointer text-sm font-normal text-[var(--oh-muted)] hover:text-white`,onClick:()=>r(e=>!e),"data-testid":`automation-prompt-toggle`,children:t(n?y.COMMON$VIEW_LESS:y.COMMON$VIEW_MORE)}):null]})})}var Y=e=>(0,q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,...e,children:(0,q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5`})}),Oe=e=>(0,q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,...e,children:(0,q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0`})});function ke({branch:e}){return(0,q.jsx)(`span`,{className:`inline-flex items-center rounded-full border border-[var(--oh-border)] bg-surface-raised px-2.5 py-0.5 text-xs text-muted`,children:e})}var X=60;function Ae({filter:e}){let{t}=o(`openhands`),[n,r]=(0,K.useState)(!1),i=e.length>X;return(0,q.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,q.jsx)(`span`,{className:`font-mono break-all`,children:i&&!n?`${e.slice(0,X)}…`:e}),i&&(0,q.jsx)(`button`,{type:`button`,onClick:()=>r(!n),"aria-expanded":n,className:`text-xs text-muted hover:text-content self-start`,children:t(n?y.SETTINGS$SKILLS_SHOW_LESS:y.SETTINGS$SKILLS_SHOW_MORE)})]})}function je({automation:e}){let{t}=o(`openhands`),n=e.trigger.type===`event`,r=e.trigger.schedule??``;e.trigger.schedule_human&&(r=e.timezone?`${e.trigger.schedule_human} (${e.timezone})`:e.trigger.schedule_human);let i=t(n?y.AUTOMATIONS$DETAIL$TRIGGER_EVENT:y.AUTOMATIONS$DETAIL$TRIGGER_SCHEDULE);return(0,q.jsx)(G,{icon:(0,q.jsx)(Se,{className:`size-4`}),title:t(y.AUTOMATIONS$DETAIL$CONFIGURATION),children:(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-4 gap-y-5`,children:[e.repository&&(0,q.jsx)(W,{icon:(0,q.jsx)(xe,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$REPOSITORIES),children:(0,q.jsxs)(`span`,{className:`flex items-center gap-1`,children:[e.repository,e.branch&&(0,q.jsx)(ke,{branch:e.branch})]})}),(0,q.jsx)(W,{icon:(0,q.jsx)(ce,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$TRIGGER),children:i}),!n&&(0,q.jsx)(W,{icon:(0,q.jsx)(Y,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$SCHEDULE),children:r}),n&&e.trigger.source&&(0,q.jsx)(W,{icon:(0,q.jsx)(b,{className:`size-3.5`,"aria-hidden":`true`}),label:t(y.AUTOMATIONS$DETAIL$EVENT_SOURCE),children:e.trigger.source}),n&&e.trigger.on&&(0,q.jsx)(W,{icon:(0,q.jsx)(F,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$EVENT_TYPE),children:R(e.trigger.on)}),n&&e.trigger.filter&&(0,q.jsx)(W,{icon:(0,q.jsx)(P,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$EVENT_FILTER),children:(0,q.jsx)(Ae,{filter:e.trigger.filter})}),(0,q.jsx)(W,{icon:(0,q.jsx)(me,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$MODEL),children:e.model??t(y.COMMON$ACTIVE_PROFILE)}),e.notification&&(0,q.jsx)(W,{icon:(0,q.jsx)(Oe,{className:`size-3.5`}),label:t(y.AUTOMATIONS$DETAIL$NOTIFICATION),children:e.notification})]})})}var Me=e=>(0,q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,...e,children:(0,q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M14.25 6.087c0-.355.186-.676.401-.959.221-.29.349-.634.349-1.003 0-1.036-1.007-1.875-2.25-1.875s-2.25.84-2.25 1.875c0 .369.128.713.349 1.003.215.283.401.604.401.959v0a.64.64 0 0 1-.657.643 48.39 48.39 0 0 1-4.163-.3c.186 1.613.293 3.25.315 4.907a.656.656 0 0 1-.658.663v0c-.355 0-.676-.186-.959-.401a1.647 1.647 0 0 0-1.003-.349c-1.036 0-1.875 1.007-1.875 2.25s.84 2.25 1.875 2.25c.369 0 .713-.128 1.003-.349.283-.215.604-.401.959-.401v0c.31 0 .555.26.532.57a48.039 48.039 0 0 1-.642 5.056c1.518.19 3.058.309 4.616.354a.64.64 0 0 0 .657-.643v0c0-.355-.186-.676-.401-.959a1.647 1.647 0 0 1-.349-1.003c0-1.035 1.008-1.875 2.25-1.875 1.243 0 2.25.84 2.25 1.875 0 .369-.128.713-.349 1.003-.215.283-.4.604-.4.959v0c0 .333.277.599.61.58a48.1 48.1 0 0 0 5.427-.63 48.05 48.05 0 0 0 .582-4.717.532.532 0 0 0-.533-.57v0c-.355 0-.676.186-.959.401-.29.221-.634.349-1.003.349-1.035 0-1.875-1.007-1.875-2.25s.84-2.25 1.875-2.25c.37 0 .713.128 1.003.349.283.215.604.401.96.401v0a.656.656 0 0 0 .658-.663 48.422 48.422 0 0 0-.37-5.36c-1.886.342-3.81.574-5.766.689a.578.578 0 0 1-.61-.58v0Z`})});function Ne({name:e}){return(0,q.jsx)(`span`,{className:`inline-flex items-center rounded-full border border-[var(--oh-border)] bg-[var(--oh-surface-deep)] px-3.5 py-1.5 text-sm text-content`,children:e})}function Pe({plugins:e}){let{t}=o(`openhands`);return(0,q.jsx)(G,{icon:(0,q.jsx)(Me,{className:`size-4`}),title:t(y.AUTOMATIONS$DETAIL$PLUGINS),children:(0,q.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map(e=>(0,q.jsx)(Ne,{name:e},e))})})}var Z=e=>(0,q.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:2,stroke:`currentColor`,...e,children:(0,q.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182`})});function Fe({createdAt:e,lastRunAt:t}){let{t:n,i18n:r}=o(`openhands`),i=r.language;return(0,q.jsx)(G,{icon:(0,q.jsx)(Z,{className:`size-4`}),title:n(y.AUTOMATIONS$DETAIL$ACTIVITY),children:(0,q.jsxs)(`div`,{className:`grid grid-cols-2 gap-x-4`,children:[(0,q.jsx)(W,{icon:(0,q.jsx)(Y,{className:`size-3.5`}),label:n(y.AUTOMATIONS$DETAIL$CREATED),children:de(e,i)}),(0,q.jsx)(W,{icon:(0,q.jsx)(I,{className:`size-3.5`}),label:n(y.AUTOMATIONS$DETAIL$LAST_RUN),children:t?le(t,i,n):n(y.AUTOMATIONS$DETAIL$TIME_NEVER)})]})})}var Ie=100,Le=[`run_id`,`automation_id`,`automation_name`,`trigger`,`start_time`,`end_time`,`duration_seconds`,`status`,`conversation_id`,`conversation_url`,`error`,`cost`];function Re(e,t){return`${e.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||e.id}.activity-log.${t}`}function ze(e){return/[",\n\r]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e}function Be(e){let t=[Le.join(`,`)];for(let n of e){let e=Le.map(e=>{let t=n[e];return t==null?``:ze(e===`trigger`?JSON.stringify(t):String(t))});t.push(e.join(`,`))}return`${t.join(`
2
- `)}\n`}function Ve(e,t){if(!e)return null;let n=`/conversations/${e}`;return t?`${t.replace(/\/$/,``)}${n}`:n}function He(e,t,n){let r=e.started_at||null,i=e.completed_at,a=null;return r&&i&&(a=(new Date(i).getTime()-new Date(r).getTime())/1e3),{run_id:e.id,automation_id:t.id,automation_name:t.name,trigger:t.trigger,start_time:r,end_time:i,duration_seconds:a,status:e.status,conversation_id:e.conversation_id,conversation_url:Ve(e.conversation_id,n),error:e.error_detail,cost:e.cost??null}}async function Ue(e,t){let n=[],r=0,i=1/0;for(;r<i;){let a=await C.listAutomationRuns(e.id,{limit:Ie,offset:r});for(let r of a.runs)n.push(He(r,e,t));if(i=a.total,r+=a.runs.length,a.runs.length===0)break}return n}async function We(e){let{automation:t,format:n,conversationBaseUrl:r}=e,i=await Ue(t,r);if(n===`json`){_(new Blob([`${JSON.stringify({runs:i,total:i.length},null,2)}\n`],{type:`application/json`}),Re(t,`json`));return}_(new Blob([Be(i)],{type:`text/csv;charset=utf-8`}),Re(t,`csv`))}var Ge=20;function Ke(e){return e.kind===`BashOutput`}var qe=class e{static async listOutputs(t,n,r){let i=[],a;for(let o=0;o<Ge;o+=1){let o=await e.searchEvents(t,n,{kind__eq:`BashOutput`,command_id__eq:r,sort_order:`TIMESTAMP`,...a?{page_id:a}:{}});if(o.items.forEach(e=>{Ke(e)&&i.push(e)}),!o.next_page_id)break;a=o.next_page_id}return i}static async searchEvents(e,t,n){let r=h().backend;if(r.kind===`cloud`){if(!e)throw Error(`BashService.listOutputs requires a conversation URL on cloud backends`);let i=new URLSearchParams;return Object.entries(n).forEach(([e,t])=>{t!=null&&i.set(e,String(t))}),x({backend:r,method:`GET`,hostOverride:g(e),path:`/api/bash/bash_events/search?${i.toString()}`,authMode:`session-api-key`,sessionApiKey:t})}return new c(f({...e?{conversationUrl:e}:{},sessionApiKey:t})).searchEvents(n)}},Je=[`bash-command-logs`];function Ye(e){switch(e){case`MISSING`:return`missing`;case`PAUSED`:return`paused`;case`STARTING`:return`starting`;case`ERROR`:return`errored`;case`RUNNING`:case null:case void 0:default:return null}}function Xe(e){let t=s.isAxiosError(e)?e.response?.status:u(e)?e.status:void 0;if(t!==void 0)return t===404||t>=500?`unreachable`:null;if(s.isAxiosError(e)||e instanceof TypeError)return`unreachable`;if(e instanceof Error){let t=e.cause instanceof Error?e.cause.name:null;if(e.name===`AbortError`||e.name===`TimeoutError`||t===`AbortError`||t===`TimeoutError`)return`unreachable`}return null}function Ze(e){let{conversationId:t,bashCommandId:n,enabled:r=!0}=e,i=m(),a=j(r?t??null:null),o=a.data,s=o?.conversation_url??null,c=o?.session_api_key??null,u=i.backend.kind===`cloud`,d=a.isFetched,f=null,p=!1;u&&d&&(o?f=Ye(o.sandbox_status)??(o.conversation_url?null:`missing`):p=!0);let h=r&&!!n&&(u?!!s:!0)&&!f&&!p,g=l({queryKey:[...Je,n,s,c,i.backend.id,i.orgId],queryFn:()=>qe.listOutputs(s,c,n),enabled:h,staleTime:60*1e3,gcTime:300*1e3,retry:!1}),_=u?Xe(g.error):null,v=f??_;return{data:g.data,error:_?null:g.error,isFetching:g.isFetching,isPending:g.isPending,isResolvingConversation:u&&a.isPending,conversationMissing:p,sandboxIssue:v}}var Qe=4e3;function $e(e,t){return e.length<=t?e:`…(truncated)…\n${e.slice(e.length-t)}`}function et({automationName:e,automationPrompt:t,errorDetail:n,stderr:r,runId:i}){let a=r?.trim()||n?.trim()||``,o=a?$e(a,Qe):`No error output was captured for this run.`,s=e?.trim(),c=[`${s?`The scheduled automation "${s}" failed during a run.`:`A scheduled automation failed during a run.`} Please investigate the error and fix the root cause.`],l=t?.trim();return l&&c.push(``,`What the automation was set up to do:`,l),c.push(``,`Error output from the failed run (run ${i}):`,o,``,`Please diagnose why it failed and propose or implement a fix.`),c.join(`
3
- `)}function tt({run:e,automation:t,stderr:n}){let{t:r}=o(`openhands`),{navigate:i}=O(),a=ee();return(0,q.jsx)(D,{testId:`debug-automation-button`,type:`button`,variant:`primary`,onClick:()=>{if(a.isPending)return;let r=et({automationName:t?.name,automationPrompt:t?.prompt,errorDetail:e.error_detail,stderr:n,runId:e.id});a.mutate({query:r},{onSuccess:e=>{i(`/conversations/${e.conversation_id}`)}})},isDisabled:a.isPending,"aria-busy":a.isPending,children:r(y.AUTOMATIONS$DETAIL$DEBUG_WITH_OPENHANDS)})}var nt={missing:y.AUTOMATIONS$DETAIL$LOGS_SANDBOX_MISSING,paused:y.AUTOMATIONS$DETAIL$LOGS_SANDBOX_PAUSED,starting:y.AUTOMATIONS$DETAIL$LOGS_SANDBOX_STARTING,errored:y.AUTOMATIONS$DETAIL$LOGS_SANDBOX_ERROR,unreachable:y.AUTOMATIONS$DETAIL$LOGS_SANDBOX_UNREACHABLE};function rt(e,t){return[...e].sort((e,t)=>{let n=e.timestamp.localeCompare(t.timestamp);return n===0?(e.order??0)-(t.order??0):n}).map(e=>e[t]??``).join(``)}function it({conversationId:e,bashCommandId:t,isOpen:n,onClose:r,run:i,automation:a}){let{t:s}=o(`openhands`),[c,l]=(0,K.useState)(`stdout`),{data:u,isFetching:d,isResolvingConversation:f,sandboxIssue:p,conversationMissing:m,error:h}=Ze({conversationId:e,bashCommandId:t,enabled:n});(0,K.useEffect)(()=>{n&&l(`stdout`)},[n,t]),(0,K.useEffect)(()=>{if(!n)return;let e=e=>{e.key===`Escape`&&r()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[n,r]);let{stdout:g,stderr:_}=(0,K.useMemo)(()=>u?{stdout:rt(u,`stdout`),stderr:rt(u,`stderr`)}:{stdout:``,stderr:``},[u]);if(!n)return null;let b=f||d&&!u,x=!t,S=c===`stdout`?g:_,C=`border-b-2 px-3 py-2 text-sm font-normal transition-colors focus:outline-none`,w=`border-[var(--oh-primary)] text-white`,T=`border-transparent text-muted hover:text-content`;return(0,q.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center p-4`,role:`dialog`,"aria-modal":`true`,"aria-label":s(y.AUTOMATIONS$DETAIL$LOGS_TITLE),children:[(0,q.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:r,onKeyDown:e=>{e.key===`Escape`&&r()},role:`presentation`}),(0,q.jsxs)(`div`,{className:`relative flex max-h-[80vh] w-full max-w-3xl flex-col rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6`,children:[(0,q.jsx)(`button`,{type:`button`,onClick:r,className:`absolute right-4 top-4 text-muted hover:text-foreground`,"aria-label":s(y.AUTOMATIONS$CANCEL),children:(0,q.jsx)(N,{className:`size-5`})}),(0,q.jsx)(`h2`,{className:v(`pr-8`,E),children:s(y.AUTOMATIONS$DETAIL$LOGS_TITLE)}),(0,q.jsxs)(`div`,{role:`tablist`,"aria-label":s(y.AUTOMATIONS$DETAIL$LOGS_TITLE),className:`mt-4 flex gap-1 border-b border-[var(--oh-border)]`,children:[(0,q.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":c===`stdout`,"aria-controls":`run-logs-panel-stdout`,id:`run-logs-tab-stdout`,tabIndex:c===`stdout`?0:-1,onClick:()=>l(`stdout`),className:`${C} ${c===`stdout`?w:T}`,children:s(y.AUTOMATIONS$DETAIL$LOGS_TAB_OUTPUT)}),(0,q.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":c===`stderr`,"aria-controls":`run-logs-panel-stderr`,id:`run-logs-tab-stderr`,tabIndex:c===`stderr`?0:-1,onClick:()=>l(`stderr`),className:`${C} ${c===`stderr`?w:T}`,children:s(y.AUTOMATIONS$DETAIL$LOGS_TAB_ERROR)})]}),(0,q.jsxs)(`div`,{role:`tabpanel`,id:`run-logs-panel-${c}`,"aria-labelledby":`run-logs-tab-${c}`,className:`mt-3 min-h-[12rem] flex-1 overflow-auto rounded-lg border border-[var(--oh-border)] bg-black/40 p-4 font-mono text-xs`,children:[x&&(0,q.jsx)(`p`,{className:`text-muted italic`,children:s(y.AUTOMATIONS$DETAIL$LOGS_NO_COMMAND)}),!x&&m&&(0,q.jsx)(`p`,{className:`text-muted italic`,children:s(y.AUTOMATIONS$DETAIL$LOGS_CONVERSATION_MISSING)}),!x&&!m&&p&&(0,q.jsx)(`p`,{"data-testid":`run-logs-sandbox-issue-${p}`,className:`text-muted italic`,children:s(nt[p])}),!x&&!m&&!p&&b&&(0,q.jsx)(`p`,{className:`text-muted italic`,children:s(y.AUTOMATIONS$DETAIL$LOGS_LOADING)}),!x&&!m&&!p&&!b&&h&&!u&&(0,q.jsxs)(`p`,{className:`text-danger`,children:[s(y.AUTOMATIONS$DETAIL$LOGS_ERROR),`: `,String(h)]}),!b&&!p&&u&&(0,q.jsx)(`pre`,{"data-testid":`run-logs-output-${c}`,className:`whitespace-pre-wrap break-words ${c===`stderr`?`text-danger`:`text-content`}`,children:S.length>0?S:(0,q.jsx)(`span`,{className:`text-muted italic`,children:s(y.AUTOMATIONS$DETAIL$LOGS_EMPTY)})})]}),i?.status===L.FAILED&&(0,q.jsx)(`div`,{className:`mt-4 flex justify-end`,children:(0,q.jsx)(tt,{run:i,automation:a,stderr:_})})]})]})}function at(e,t){return new Date(e).toLocaleDateString(t,{weekday:`long`,year:`numeric`,month:`long`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}function ot(e){if(!e)return!0;let t=new Date(e).getTime();return Number.isNaN(t)||t===0}function st(e){return`/conversations/${e}`}function ct(e){return typeof e!=`number`||!Number.isFinite(e)?null:`$${e.toFixed(4)}`}function lt({run:e,automation:t}){let{t:n,i18n:r}=o(`openhands`),i=!!e.conversation_id,a=!!e.bash_command_id,s=e.status===L.COMPLETED||e.status===L.FAILED,c=!i&&s,[l,u]=(0,K.useState)(!1),[d]=(0,K.useState)(()=>new Date().toISOString()),f=at(ot(e.started_at)?d:e.started_at,r.language),p=ct(e.cost),m=a?(0,q.jsx)(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),e.preventDefault(),u(!0)},className:`rounded-md p-1 text-muted hover:bg-surface-raised hover:text-foreground focus:bg-surface-raised focus:outline-none`,"aria-label":n(y.AUTOMATIONS$DETAIL$LOGS_VIEW,{timestamp:f}),title:n(y.AUTOMATIONS$DETAIL$LOGS_VIEW_SHORT),children:(0,q.jsx)(A,{className:`size-4`})}):null,h=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)(`span`,{className:`text-sm text-content`,children:f}),c&&(0,q.jsx)(`span`,{className:`text-xs text-muted`,children:n(y.AUTOMATIONS$DETAIL$NO_CONVERSATION)})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p&&(0,q.jsx)(`span`,{"data-testid":`run-cost`,title:n(y.AUTOMATIONS$DETAIL$RUN_COST),className:`text-xs tabular-nums text-muted`,children:p}),m,(0,q.jsx)(ue,{status:e.status})]})]});return(0,q.jsxs)(q.Fragment,{children:[i&&e.conversation_id?(0,q.jsx)(`a`,{href:st(e.conversation_id),className:`flex items-center justify-between px-5 py-3 transition-colors cursor-pointer hover:bg-surface-raised focus:bg-surface-raised focus:outline-none`,"aria-label":`View conversation for run at ${f}`,children:h}):(0,q.jsx)(`div`,{className:`flex items-center justify-between px-5 py-3 cursor-default`,children:h}),a&&(0,q.jsx)(it,{conversationId:e.conversation_id,bashCommandId:e.bash_command_id,isOpen:l,onClose:()=>u(!1),run:e,automation:t})]})}var Q=20,ut=100;function dt({automation:e,highlightedRunId:t=null}){let{t:n}=o(`openhands`),r=m(),{trackAutomationActivityLogExported:i}=w(),[a,s]=(0,K.useState)(Q),c=(0,K.useRef)(null),[l,u]=(0,K.useState)(!1),{data:d,isLoading:f}=z({id:e.id,limit:a,offset:0}),h=d?d.total>d.runs.length:!1,g=!f&&(d?.total??0)>0&&!l,_=async t=>{if(g){u(!0);try{await We({automation:e,format:t,conversationBaseUrl:window.location.origin}),i({backendKind:r.backend.kind,format:t})}catch(e){p(H(e,n(y.AUTOMATIONS$DETAIL$EXPORT_ACTIVITY_LOG_ERROR)))}finally{u(!1)}}};return(0,K.useEffect)(()=>{if(!(!t||!d?.runs.length)){if(d.runs.findIndex(e=>e.id===t)<0){h&&a<ut&&s(e=>e+Q);return}c.current?.scrollIntoView({behavior:`smooth`,block:`center`})}},[d?.runs,h,t,a]),(0,q.jsxs)(`div`,{"data-testid":`automation-activity-log`,className:`rounded-2xl border border-[var(--oh-border)] bg-[var(--oh-surface)]`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-[var(--oh-border)] px-5 py-3`,children:[(0,q.jsx)(`span`,{className:`size-4 text-muted`,children:(0,q.jsx)(Z,{className:`size-4`})}),(0,q.jsx)(`h3`,{className:`text-sm font-medium text-content`,children:n(y.AUTOMATIONS$DETAIL$ACTIVITY_LOG)}),(0,q.jsxs)(`div`,{className:`ml-auto flex items-center gap-3`,children:[(0,q.jsx)(`button`,{type:`button`,"data-testid":`activity-log-export-json`,disabled:!g,onClick:()=>void _(`json`),className:`text-sm text-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,children:n(y.AUTOMATIONS$DETAIL$EXPORT_JSON)}),(0,q.jsx)(`button`,{type:`button`,"data-testid":`activity-log-export-csv`,disabled:!g,onClick:()=>void _(`csv`),className:`text-sm text-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50`,children:n(y.AUTOMATIONS$DETAIL$EXPORT_CSV)})]})]}),f&&(0,q.jsx)(`div`,{className:`space-y-1 p-5`,children:Array.from({length:3}).map((e,t)=>(0,q.jsxs)(`div`,{className:`flex items-center justify-between py-3`,children:[(0,q.jsx)(`div`,{className:`h-5 w-64 animate-pulse rounded bg-surface-raised`}),(0,q.jsx)(`div`,{className:`h-6 w-24 animate-pulse rounded-full bg-surface-raised`})]},`skeleton-${t}`))}),!f&&d?.runs.length===0&&(0,q.jsx)(`p`,{className:`px-5 py-8 text-center text-sm text-muted`,children:n(y.AUTOMATIONS$DETAIL$NO_RUNS)}),!f&&d&&d.runs.length>0&&(0,q.jsxs)(`div`,{children:[d.runs.map((n,r)=>{let i=n.id===t;return(0,q.jsx)(`div`,{ref:i?c:void 0,"data-testid":i?`automation-run-highlight-${n.id}`:void 0,className:v(r>0?`border-t border-[var(--oh-border)]`:``,i&&`bg-[var(--oh-focus)]/10`),children:(0,q.jsx)(lt,{run:n,automation:e})},n.id)}),h&&(0,q.jsx)(`div`,{className:`border-t border-[var(--oh-border)] px-5 py-3`,children:(0,q.jsx)(`button`,{type:`button`,onClick:()=>s(e=>e+Q),className:`text-sm text-muted hover:text-foreground`,children:n(y.AUTOMATIONS$DETAIL$LOAD_MORE_RUNS)})})]})]})}function $({className:e}){return(0,q.jsx)(`div`,{className:v(`animate-pulse rounded bg-surface-raised`,e)})}function ft(){return(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,"data-testid":`detail-skeleton`,children:[(0,q.jsx)($,{className:`h-5 w-40`}),(0,q.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,q.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,q.jsx)($,{className:`h-6 w-48`}),(0,q.jsx)($,{className:`h-6 w-16 rounded-full`})]}),(0,q.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,q.jsx)($,{className:`h-6 w-11 rounded-full`}),(0,q.jsx)($,{className:`h-8 w-8`})]})]}),(0,q.jsx)($,{className:`h-5 w-96`}),(0,q.jsx)($,{className:`h-36 w-full rounded-2xl`}),(0,q.jsx)($,{className:`h-72 w-full rounded-2xl`}),(0,q.jsx)($,{className:`h-32 w-full rounded-2xl`}),(0,q.jsx)($,{className:`h-40 w-full rounded-2xl`})]})}function pt(){let{t:e}=o(`openhands`);return(0,q.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-20`,children:[(0,q.jsx)(ye,{className:`size-12 text-muted`}),(0,q.jsx)(`p`,{className:`mt-4 text-sm font-medium text-content`,children:e(y.AUTOMATIONS$DETAIL$NOT_FOUND_TITLE)}),(0,q.jsx)(`p`,{className:`mt-2 text-sm text-muted`,children:e(y.AUTOMATIONS$DETAIL$NOT_FOUND_MESSAGE)}),(0,q.jsx)(`div`,{className:`mt-6`,children:(0,q.jsx)(U,{})})]})}var mt=a(function(){let{t:e}=o(`openhands`),{automationId:t}=r(),[n]=i(),a=n.get(`run`),{navigate:s}=O(),[c,l]=(0,K.useState)(!1),[u,f]=(0,K.useState)(!1),{data:h,isLoading:g,refetch:v}=te(),b=h?.status===`ok`,x=m(),E=(0,K.useRef)(x.backend.id).current!==x.backend.id,{data:D,isLoading:ee,isError:k,error:A,refetch:j}=se({id:t??``,enabled:b&&!E}),{trackPrebuiltAutomationEnabled:M,trackAutomationExported:N}=w(),P=ie(),F=re(),I=oe(),ne=k&&T(A)===404;if(g)return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsx)(ft,{})})});if(!b)return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsx)(be,{onRetry:v})})});if(ee)return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsx)(ft,{})})});if(ne)return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsx)(pt,{})})});if(k||!D)return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsx)(ve,{onRetry:()=>j()})})});let L=()=>{let e=!D.enabled;P.mutate({id:D.id,enabled:e}),e&&M({automationId:D.id,automationName:D.name})},R=()=>{F.mutate(D.id,{onSuccess:()=>{s?.(S())}})},z=()=>{I.mutate(D.id,{onSuccess:()=>{d(e(y.AUTOMATIONS$RUN_NOW_SUCCESS))},onError:t=>{p(H(t,e(y.AUTOMATIONS$RUN_NOW_ERROR)))}})},B=()=>{let e=`${JSON.stringify(he(D),null,2)}\n`;_(new Blob([e],{type:`application/json`}),_e(D)),N({backendKind:x.backend.kind})},V=x.backend.kind===`local`;return(0,q.jsx)(`div`,{className:`min-h-full`,children:(0,q.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,q.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,q.jsx)(U,{}),(0,q.jsx)(we,{automation:D,onToggle:L,onEdit:V?()=>f(!0):void 0,onDelete:()=>l(!0),onExport:B,onDownloadTarball:()=>C.downloadTarball(D.id,D.name),onRunNow:z,isRunningNow:I.isPending}),D.prompt&&(0,q.jsx)(De,{prompt:D.prompt}),(0,q.jsx)(je,{automation:D}),D.plugins&&D.plugins.length>0&&(0,q.jsx)(Pe,{plugins:D.plugins}),(0,q.jsx)(Fe,{createdAt:D.created_at,lastRunAt:D.last_triggered_at}),(0,q.jsx)(dt,{automation:D,highlightedRunId:a}),(0,q.jsx)(pe,{automationName:D.name,isOpen:c,onConfirm:R,onCancel:()=>l(!1)}),V&&(0,q.jsx)(ae,{automation:D,isOpen:u,onClose:()=>f(!1)})]})})})});export{mt as default};
@@ -1,2 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,bt as n,yt as r}from"./vendor-styling-Ck5D_A2Q.js";import{t as i}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{t as a,z as o}from"./utils-DUD5ScdA.js";import{b as s}from"./use-tracking-Bhu7gk2y.js";import{r as c}from"./modal-classes-D5_b5vMi.js";import{r as l}from"./dropdown-classes-tLhpwtxS.js";import{n as u,t as d}from"./context-menu-list-item-CdcamfM1.js";import{t as f}from"./x-mark-BopmFoBq.js";import{t as p}from"./kebab-menu-item-content-DERMdnDv.js";var m=e(n(),1),h=e(t()),g=r(),_=e=>(0,g.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 20 20`,...e,children:(0,g.jsx)(`path`,{d:`M10 6a2 2 0 110-4 2 2 0 010 4zm0 6a2 2 0 110-4 2 2 0 010 4zm0 6a2 2 0 110-4 2 2 0 010 4z`})}),v=a(`inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border-0 bg-transparent text-muted hover:bg-interactive-hover hover:text-white focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-muted`,l),y=a(`inline-flex h-8 shrink-0 cursor-pointer items-center gap-1.5 rounded-md border-0 bg-transparent px-2 text-xs text-muted hover:bg-interactive-hover hover:text-white focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent disabled:hover:text-muted`,l);function b({items:e}){let{t}=i(`openhands`),[n,r]=(0,h.useState)(!1),[a,s]=(0,h.useState)(),c=(0,h.useRef)(null),l=(0,h.useRef)(null);(0,h.useLayoutEffect)(()=>{if(!n||!c.current)return;let e=()=>{let e=c.current?.getBoundingClientRect();e&&s({position:`fixed`,zIndex:9999,top:e.bottom+4,right:window.innerWidth-e.right})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[n]),(0,h.useEffect)(()=>{if(!n)return;let e=e=>{let t=e.target;c.current?.contains(t)||l.current?.contains(t)||r(!1)},t=e=>{e.key===`Escape`&&r(!1)};return document.addEventListener(`mousedown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`mousedown`,e),document.removeEventListener(`keydown`,t)}},[n]);let f=n&&a?(0,g.jsx)(u,{ref:l,theme:`popover`,className:`min-w-[10rem]`,children:e.map(e=>(0,g.jsx)(`li`,{children:(0,g.jsx)(d,{onClick:t=>{t.stopPropagation(),e.onClick(),r(!1)},isDisabled:e.disabled,className:`group`,children:(0,g.jsx)(p,{icon:e.icon,label:e.label})})},e.label))}):null;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(`button`,{ref:c,type:`button`,onClick:e=>{e.stopPropagation(),r(e=>!e)},className:v,"aria-label":t(o.AUTOMATIONS$ACTIONS_MENU),"aria-expanded":n,"aria-haspopup":`menu`,children:(0,g.jsx)(_,{className:`size-4`})}),n&&a&&typeof document<`u`?m.createPortal((0,g.jsx)(`div`,{style:a,children:f}),document.body):null]})}var x=e=>(0,g.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,...e,children:(0,g.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 00-2.455 2.456z`})}),S=e=>(0,g.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,stroke:`currentColor`,strokeWidth:2,...e,children:(0,g.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16`})});function C({automationName:e,isOpen:t,onConfirm:n,onCancel:r}){let{t:a}=i(`openhands`);return t?(0,g.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[(0,g.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:r,onKeyDown:e=>{e.key===`Escape`&&r()},role:`presentation`}),(0,g.jsxs)(`div`,{className:`relative w-full max-w-sm rounded-xl border border-[var(--oh-border)] bg-[var(--oh-surface)] p-6`,children:[(0,g.jsx)(`button`,{type:`button`,onClick:r,className:`absolute right-4 top-4 text-muted hover:text-foreground`,"aria-label":a(o.BUTTON$CLOSE),children:(0,g.jsx)(f,{className:`size-5`})}),(0,g.jsx)(`h2`,{className:c,children:a(o.AUTOMATIONS$DELETE_CONFIRM_TITLE)}),(0,g.jsx)(`p`,{className:`mt-2 text-sm text-muted`,children:a(o.AUTOMATIONS$DELETE_CONFIRM_MESSAGE,{name:e})}),(0,g.jsxs)(`div`,{className:`mt-6 flex justify-end gap-3`,children:[(0,g.jsx)(`button`,{type:`button`,onClick:r,className:`rounded-lg border border-[var(--oh-border)] px-4 py-2 text-sm text-white hover:bg-surface-raised`,children:a(o.AUTOMATIONS$CANCEL)}),(0,g.jsx)(`button`,{type:`button`,onClick:n,className:`rounded-lg bg-danger px-4 py-2 text-sm text-white hover:bg-danger/80`,children:a(o.AUTOMATIONS$DELETE)})]})]})]}):null}var w=new Set([`cron`,`schedule`,`event`]),T=class extends Error{issues;constructor(e){super(e.join(`
2
- `)),this.name=`AutomationFileValidationError`,this.issues=e}};function E(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function D(e,t,n,r){let i=e[t];if(typeof i!=`string`||i.trim().length===0){r.push(`${n}: expected a non-empty string`);return}return i}function O(e,t,n,r){let i=e[t];if(i!==void 0){if(typeof i!=`string`){r.push(`${n}: expected a string`);return}return i}}function k(e,t){if(!E(e)){t.push(`spec.trigger: expected an object`);return}let n=D(e,`type`,`spec.trigger.type`,t);n&&!w.has(n)&&t.push(`spec.trigger.type: expected one of "cron", "schedule", or "event"`);let r=O(e,`schedule`,`spec.trigger.schedule`,t),i=O(e,`schedule_human`,`spec.trigger.schedule_human`,t),a=O(e,`timezone`,`spec.trigger.timezone`,t),o=O(e,`source`,`spec.trigger.source`,t),s=O(e,`filter`,`spec.trigger.filter`,t),c;if(e.on!==void 0&&(typeof e.on==`string`||Array.isArray(e.on)&&e.on.length>0&&e.on.every(e=>typeof e==`string`&&e.trim().length>0)?c=e.on:t.push(`spec.trigger.on: expected a string or a non-empty array of strings`)),(n===`cron`||n===`schedule`)&&!r?.trim()&&t.push(`spec.trigger.schedule: required for a scheduled trigger`),n===`event`&&(o?.trim()||t.push(`spec.trigger.source: required for an event trigger`),(c===void 0||typeof c==`string`&&c.trim().length===0)&&t.push(`spec.trigger.on: required for an event trigger`)),!(!n||!w.has(n)))return{type:n,...r!==void 0&&{schedule:r},...i!==void 0&&{schedule_human:i},...a!==void 0&&{timezone:a},...o!==void 0&&{source:o},...c!==void 0&&{on:c},...s!==void 0&&{filter:s}}}function A(e){let t=e.timezone??e.trigger.timezone,n={name:e.name,trigger:{...e.trigger},enabled:e.enabled,prompt:e.prompt,...e.repository!==void 0&&{repository:e.repository},...e.model!==void 0&&{model:e.model},...e.timeout!=null&&{timeout:e.timeout},...e.branch!==void 0&&{branch:e.branch},...e.plugins!==void 0&&{plugins:[...e.plugins]},...e.notification!==void 0&&{notification:e.notification},...t!==void 0&&{timezone:t}},r=s();return{version:r.fileVersion,kind:r.fileKind,spec:n}}function j(e){return`${e.name.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||e.id}${s().filenameSuffix}`}function M(e){let t=[];if(!E(e))throw new T([`file: expected a JSON object`]);let n=s();if(e.version!==n.fileVersion&&t.push(`version: expected ${n.fileVersion}`),e.kind!==n.fileKind&&t.push(`kind: expected "${n.fileKind}"`),!E(e.spec))throw t.push(`spec: expected an object`),new T(t);let r=D(e.spec,`name`,`spec.name`,t),i=D(e.spec,`prompt`,`spec.prompt`,t),a=k(e.spec.trigger,t),o=e.spec.enabled;typeof o!=`boolean`&&t.push(`spec.enabled: expected a boolean`);let c=O(e.spec,`repository`,`spec.repository`,t),l=O(e.spec,`branch`,`spec.branch`,t),u=O(e.spec,`notification`,`spec.notification`,t),d=O(e.spec,`timezone`,`spec.timezone`,t),f;e.spec.model===null||e.spec.model===void 0||typeof e.spec.model==`string`&&e.spec.model.trim().length>0?f=e.spec.model:t.push(`spec.model: expected a non-empty string or null`);let p;e.spec.timeout===null||e.spec.timeout===void 0||typeof e.spec.timeout==`number`&&Number.isInteger(e.spec.timeout)&&e.spec.timeout>0?p=e.spec.timeout:t.push(`spec.timeout: expected a positive integer`);let m;if(e.spec.plugins!==void 0&&(Array.isArray(e.spec.plugins)&&e.spec.plugins.every(e=>typeof e==`string`&&e.trim().length>0)?m=[...e.spec.plugins]:t.push(`spec.plugins: expected an array of non-empty strings`)),t.length>0||!r||!i||!a)throw new T(t);return{name:r,prompt:i,trigger:a,enabled:o,...c!==void 0&&{repository:c},...f!==void 0&&{model:f},...p!==void 0&&{timeout:p},...l!==void 0&&{branch:l},...m!==void 0&&{plugins:m},...u!==void 0&&{notification:u},...d!==void 0&&{timezone:d}}}export{S as a,v as c,C as i,y as l,M as n,x as o,A as r,b as s,j as t};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{U as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{n as i}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~dcc51rps-rfV8mQ9m.js";import{t as a}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{D as o}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{t as s}from"./useMutation-6ZsQCqAn.js";import{t as c}from"./useQuery-Bs5NFz2s.js";import{Mt as l,jt as u,n as d}from"./active-backend-context-BZDG15C0.js";import{t as f,z as p}from"./utils-DUD5ScdA.js";import{t as m}from"./check-DSuS-lyr.js";import{t as h}from"./refresh-cw-nmcesifB.js";import{n as g,t as _}from"./use-tracking-Bhu7gk2y.js";import{t as v}from"./use-settings-C6ZxpBDX.js";import{t as y}from"./brand-button-Blxv5nww.js";import{t as b}from"./settings-input-CWUEHHvS.js";import{t as x}from"./format-time-delta-BIR5Os7T.js";import{t as S}from"./folder-C1ou4_DT.js";import{t as C}from"./settings-switch-Dk9hChx1.js";import{n as w,r as T,t as E}from"./use-has-permission-CQ31Cl8j.js";import{n as D}from"./api-error-message-BEIE_yD1.js";import{t as O}from"./parse-git-remote-url-BkXN9jzl.js";import{n as k,r as A,t as j}from"./backend-not-configured-DP8KLNq_.js";import{a as M,i as N,n as P,r as F,t as ee}from"./cog-CZiR80uT.js";var I=o(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),L=e(t()),R=[`git-sync-status`];function z(e={}){let{enabled:t=!0,refetchInterval:n=!1}=e,r=d();return c({queryKey:[...R,r.backend.id,r.orgId],queryFn:()=>g.getGitSyncStatus(),staleTime:10*1e3,enabled:t,refetchInterval:n,retry:(e,t)=>v(t)===void 0&&e<2,meta:{disableToast:!0}})}function te(){let e=i(),t=d(),{trackGitSyncConfigUpdated:n}=_();return s({mutationFn:e=>g.updateGitSyncConfig(e),onSuccess:async r=>{let i=[...R,t.backend.id,t.orgId];await e.cancelQueries({queryKey:i}),e.setQueryData(i,r),n({backendKind:t.backend.kind})},meta:{disableToast:!0}})}function ne(){return s({mutationFn:e=>g.checkGitSyncConfig(e),retry:!1,meta:{disableToast:!0}})}function B(){let e=i(),t=d(),{trackGitSyncTriggered:n}=_();return s({mutationFn:()=>g.triggerGitSync(),onSuccess:()=>{e.invalidateQueries({queryKey:R}),n({backendKind:t.backend.kind})},meta:{disableToast:!0}})}var V=n();function H({className:e}){return(0,V.jsx)(`div`,{className:f(`animate-pulse rounded bg-surface-raised`,e)})}function U(){return(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,"data-testid":`git-sync-skeleton`,children:[(0,V.jsx)(H,{className:`h-5 w-40`}),(0,V.jsx)(H,{className:`h-6 w-48`}),(0,V.jsx)(H,{className:`h-5 w-96`}),(0,V.jsx)(H,{className:`h-48 w-full rounded-2xl`}),(0,V.jsx)(H,{className:`h-96 w-full rounded-2xl`})]})}function W(){let{t:e}=a(`openhands`);return(0,V.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-20`,children:[(0,V.jsx)(A,{className:`size-12 text-muted`}),(0,V.jsx)(`p`,{className:`mt-4 text-sm font-medium text-content`,children:e(p.AUTOMATIONS$GIT_SYNC$NOT_LOCAL_TITLE)}),(0,V.jsx)(`p`,{className:`mt-2 text-sm text-muted`,children:e(p.AUTOMATIONS$GIT_SYNC$NOT_LOCAL_MESSAGE)}),(0,V.jsx)(`div`,{className:`mt-6`,children:(0,V.jsx)(M,{})})]})}function G(){let{t:e}=a(`openhands`);return(0,V.jsxs)(`div`,{className:`flex flex-col items-center justify-center py-20`,children:[(0,V.jsx)(A,{className:`size-12 text-muted`}),(0,V.jsx)(`p`,{className:`mt-4 text-sm font-medium text-content`,children:e(p.AUTOMATIONS$GIT_SYNC$UNSUPPORTED_TITLE)}),(0,V.jsx)(`p`,{className:`mt-2 text-sm text-muted`,children:e(p.AUTOMATIONS$GIT_SYNC$UNSUPPORTED_MESSAGE)}),(0,V.jsx)(`div`,{className:`mt-6`,children:(0,V.jsx)(M,{})})]})}function K({error:e,errorAt:t}){let{t:n}=a(`openhands`);return(0,V.jsxs)(`div`,{role:`alert`,"data-testid":`git-sync-error-banner`,className:`rounded-md border border-red-500/40 bg-red-500/10 p-3 text-sm text-red-300 whitespace-pre-wrap break-words`,children:[(0,V.jsx)(`p`,{className:`font-medium`,children:n(p.AUTOMATIONS$GIT_SYNC$LAST_ERROR_TITLE)}),(0,V.jsx)(`p`,{className:`mt-1`,children:e}),t&&(0,V.jsx)(`p`,{className:`mt-1 text-xs text-red-300/70`,children:`${x(t)} ${n(p.CONVERSATION$AGO)}`})]})}var q=e=>(0,V.jsx)(`svg`,{viewBox:`0 0 18 18`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2.4375 9C2.4375 5.37563 5.37563 2.4375 9 2.4375C12.6244 2.4375 15.5625 5.37563 15.5625 9C15.5625 12.6244 12.6244 15.5625 9 15.5625C5.37563 15.5625 2.4375 12.6244 2.4375 9ZM4.13812 6.5625C4.81317 5.21867 6.02897 4.19333 7.49996 3.77204C7.15155 4.17641 6.85182 4.65395 6.60713 5.17892C6.40828 5.60556 6.24263 6.06975 6.11494 6.5625H4.13812ZM3.72196 7.6875C3.61778 8.10783 3.5625 8.54746 3.5625 9C3.5625 9.45254 3.61778 9.89217 3.72196 10.3125H5.89738C5.84161 9.88758 5.8125 9.44852 5.8125 8.99998C5.8125 8.55142 5.84161 8.11239 5.89737 7.6875H3.72196ZM7.0333 7.6875C6.97087 8.10689 6.9375 8.54634 6.9375 8.99998C6.9375 9.45367 6.97087 9.89313 7.0333 10.3125H10.9667C11.0291 9.89311 11.0625 9.45367 11.0625 9.00002C11.0625 8.54637 11.0291 8.1069 10.9667 7.6875H7.0333ZM12.1026 7.6875C12.1584 8.1124 12.1875 8.55145 12.1875 9.00002C12.1875 9.44858 12.1584 9.88762 12.1026 10.3125H14.278C14.3822 9.89217 14.4375 9.45254 14.4375 9C14.4375 8.54746 14.3822 8.10783 14.278 7.6875H12.1026ZM13.8619 6.5625H11.885C11.7574 6.06976 11.5917 5.6056 11.3929 5.17897C11.1482 4.65397 10.8484 4.1764 10.5 3.77203C11.971 4.19331 13.1868 5.21866 13.8619 6.5625ZM10.7171 6.5625H7.28293C7.38007 6.23971 7.49559 5.93571 7.62681 5.65419C7.99835 4.85708 8.48101 4.26914 8.99997 3.92442C9.51895 4.26913 10.0016 4.8571 10.3732 5.65424C10.5044 5.93575 10.6199 6.23973 10.7171 6.5625ZM4.13812 11.4375H6.11496C6.24963 11.9572 6.42655 12.4452 6.64015 12.8909C6.87835 13.3879 7.16685 13.8413 7.50006 14.228C6.02902 13.8067 4.81318 12.7814 4.13812 11.4375ZM10.7171 11.4375H7.28295C7.3869 11.7829 7.51191 12.1068 7.65465 12.4047C8.02305 13.1733 8.49456 13.7398 9.00007 14.0756C9.51902 13.7308 10.0017 13.1429 10.3732 12.3458C10.5044 12.0643 10.6199 11.7603 10.7171 11.4375ZM11.3929 12.8211C11.5917 12.3944 11.7574 11.9303 11.8851 11.4375H13.8619C13.1868 12.7813 11.971 13.8067 10.5 14.228C10.8485 13.8236 11.1482 13.346 11.3929 12.8211Z`,fill:`currentColor`})});function J({tone:e,label:t,testId:n}){return(0,V.jsx)(`span`,{"data-testid":n,className:f(`inline-flex items-center rounded-full px-3 py-1 text-xs font-medium`,e===`success`&&`bg-[var(--oh-success)]/15 text-[var(--oh-success)]`,e===`warning`&&`bg-[var(--oh-warning)]/15 text-[var(--oh-warning)]`,e===`neutral`&&`bg-surface-raised text-muted`),children:t})}function Y(e){let[,t]=(0,L.useState)(0);(0,L.useEffect)(()=>{if(!e)return;let n=setInterval(()=>t(e=>e+1),1e3);return()=>clearInterval(n)},[e])}function X({state:e,startedAt:t,pendingCount:n}){let{t:r}=a(`openhands`),i=e===`running`;if(Y(i&&t!==null),e===`idle`)return null;let o=e===`failed`;return(0,V.jsxs)(`div`,{"data-testid":`git-sync-activity-row`,"data-state":e,className:f(`mt-4 flex flex-wrap items-center gap-x-2 gap-y-1 rounded-md px-3 py-2 text-sm`,i&&`bg-tertiary text-content`,e===`succeeded`&&`bg-green-500/10 text-green-300`,o&&`bg-red-500/10 text-red-300`),children:[i&&(0,V.jsx)(h,{className:`size-4 animate-spin`,"aria-hidden":!0}),e===`succeeded`&&(0,V.jsx)(m,{className:`size-4`,"aria-hidden":!0}),o&&(0,V.jsx)(I,{className:`size-4`,"aria-hidden":!0}),(0,V.jsxs)(`span`,{className:`font-medium`,children:[i&&r(p.AUTOMATIONS$GIT_SYNC$SYNCING),e===`succeeded`&&r(p.AUTOMATIONS$GIT_SYNC$SYNC_COMPLETED),o&&r(p.AUTOMATIONS$GIT_SYNC$SYNC_FAILED)]}),i&&t&&(0,V.jsx)(`span`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$SYNC_STARTED_AGO,{time:x(t)})}),i&&n>0&&(0,V.jsx)(`span`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$SYNC_PENDING_COUNT,{count:n})})]})}function Z(e){let t=O(e);if(!t?.host||!t.repository)return null;if(/^https?:\/\//i.test(t.url)){let e=new URL(t.url);return e.username=``,e.password=``,e.pathname=e.pathname.replace(/\.git$/,``),e.toString()}return`https://${t.host}/${t.repository}`}function Q({status:e,onSyncNow:t,isSyncing:n,syncActivity:r,syncStartedAt:i,canManage:o}){let{t:s}=a(`openhands`),c=Z(e.repo_url);return(0,V.jsxs)(F,{icon:(0,V.jsx)(N,{className:`size-4`}),title:s(p.AUTOMATIONS$GIT_SYNC$STATUS_TITLE),children:[(0,V.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(J,{testId:`git-sync-enabled-pill`,tone:e.enabled?`success`:`neutral`,label:s(e.enabled?p.AUTOMATIONS$GIT_SYNC$ENABLED:p.AUTOMATIONS$GIT_SYNC$DISABLED)}),(0,V.jsx)(J,{testId:`git-sync-encryption-pill`,tone:e.encryption_enabled?`success`:`neutral`,label:s(e.encryption_enabled?p.AUTOMATIONS$GIT_SYNC$ENCRYPTED:p.AUTOMATIONS$GIT_SYNC$NOT_ENCRYPTED)})]}),(0,V.jsx)(y,{testId:`git-sync-now-button`,type:`button`,variant:`secondary`,isDisabled:!o||!e.enabled||n,onClick:t,startContent:(0,V.jsx)(h,{className:f(`size-4`,n&&`animate-spin`),"aria-hidden":!0}),children:s(n?p.AUTOMATIONS$GIT_SYNC$SYNCING:p.AUTOMATIONS$GIT_SYNC$SYNC_NOW)})]}),(0,V.jsx)(X,{state:r,startedAt:i,pendingCount:e.dirty_count}),(0,V.jsxs)(`div`,{className:`mt-5 grid grid-cols-2 gap-x-4 gap-y-5`,children:[(0,V.jsx)(P,{icon:(0,V.jsx)(q,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$REPOSITORY),children:c?(0,V.jsx)(`a`,{"data-testid":`git-sync-repo-link`,href:c,target:`_blank`,rel:`noopener noreferrer`,className:`break-all underline transition-colors hover:text-foreground`,children:e.repo_url}):(0,V.jsx)(`span`,{className:`break-all`,children:e.repo_url||s(p.AUTOMATIONS$GIT_SYNC$NOT_CONFIGURED)})}),(0,V.jsx)(P,{icon:(0,V.jsx)(N,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$FIELD_BRANCH),children:e.branch}),(0,V.jsx)(P,{icon:(0,V.jsx)(S,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$FIELD_PATH),children:e.path}),(0,V.jsx)(P,{icon:(0,V.jsx)(N,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$LAST_SYNCED_COMMIT),children:e.last_synced_commit?(0,V.jsx)(`span`,{className:`font-mono`,children:e.last_synced_commit.slice(0,7)}):s(p.AUTOMATIONS$GIT_SYNC$NEVER_SYNCED)}),(0,V.jsx)(P,{icon:(0,V.jsx)(w,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$LAST_SYNCED_AT),children:e.last_synced_at?`${x(e.last_synced_at)} ${s(p.CONVERSATION$AGO)}`:s(p.AUTOMATIONS$GIT_SYNC$NEVER_SYNCED)}),(0,V.jsx)(P,{icon:(0,V.jsx)(w,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$FIELD_INTERVAL),children:e.interval_seconds>0?s(p.AUTOMATIONS$GIT_SYNC$EVERY_N_SECONDS,{count:e.interval_seconds}):s(p.AUTOMATIONS$GIT_SYNC$MANUAL_ONLY)}),(0,V.jsx)(P,{icon:(0,V.jsx)(w,{className:`size-3.5`}),label:s(p.AUTOMATIONS$GIT_SYNC$PENDING_CHANGES),children:(0,V.jsx)(`span`,{className:f(e.dirty_count>0&&`text-[var(--oh-warning)]`),children:e.dirty_count})})]})]})}var $=`git-sync-save-and-sync`;function re({status:e,canManage:t,onSyncNow:n}){let{t:r}=a(`openhands`),{mutate:i,isPending:o}=te(),{mutateAsync:s,isPending:c}=ne(),[d,f]=(0,L.useState)(null),[m,h]=(0,L.useState)(!1),[g,_]=(0,L.useState)(!1),[x,S]=(0,L.useState)(!1),[w,T]=(0,L.useState)(!1),[E,O]=(0,L.useState)(!1),[k,A]=(0,L.useState)(!1),[j,M]=(0,L.useState)(null),N=j??e.enabled,P=j!==null&&N!==e.enabled,[I,R]=(0,L.useState)(``),[z,B]=(0,L.useState)(!1),[H,U]=(0,L.useState)(``),[W,G]=(0,L.useState)(!1),K=I.trim().length>0||z,q=H.trim().length>0||W,J=!P&&!m&&!g&&!x&&!w&&!E&&!k&&!K&&!q,Y=()=>{M(null),h(!1),_(!1),S(!1),T(!1),O(!1),A(!1),R(``),B(!1),U(``),G(!1),f(null)},X=e=>{B(e),R(``)},Z=e=>{G(e),U(``)},Q=(e,t)=>e.get(t)?.toString().trim()||null,re=(e,t)=>{i(e,{onSuccess:()=>{l(r(p.AUTOMATIONS$GIT_SYNC$CONFIG_SAVED)),Y(),t&&n()},onError:e=>{u(v(e)===409?r(p.AUTOMATIONS$GIT_SYNC$ENABLE_BLOCKED_ERROR):D(e,r(p.ERROR$GENERIC)))}})},ie=e=>[`repo_url`,`branch`,`token`].filter(t=>t in e).map(t=>`${t}=${e[t]}`).join(`&`),ae=async e=>{try{let t=await s(e);return t.ok?null:t.detail??r(p.AUTOMATIONS$GIT_SYNC$CHECK_FAILED_TITLE)}catch{return null}};return(0,V.jsx)(F,{icon:(0,V.jsx)(ee,{className:`size-4`}),title:r(p.AUTOMATIONS$GIT_SYNC$CONFIG_TITLE),children:(0,V.jsxs)(`form`,{onSubmit:async e=>{e.preventDefault();let t=e.nativeEvent.submitter?.getAttribute(`name`)===$,n=new FormData(e.currentTarget),r={};if(P&&(r.enabled=N),m){let e=n.get(`git-sync-interval-input`)?.toString().trim(),t=Number(e);r.interval_seconds=e&&Number.isFinite(t)?Math.max(0,Math.trunc(t)):0}g&&(r.repo_url=Q(n,`git-sync-repo-url-input`)),x&&(r.branch=Q(n,`git-sync-branch-input`)),w&&(r.path=Q(n,`git-sync-path-input`)),E&&(r.author_name=Q(n,`git-sync-author-name-input`)),k&&(r.author_email=Q(n,`git-sync-author-email-input`));let i=I.trim(),a=H.trim();z?r.token=null:i&&(r.token=i),W?r.encryption_key=null:a&&(r.encryption_key=a);let o=ie(r);if(o&&d?.key!==o){let e=await ae(r);if(e){f({key:o,detail:e});return}}f(null),re(r,t)},className:`flex flex-col gap-6`,children:[(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(C,{testId:`git-sync-enabled-switch`,isToggled:N,isDisabled:!t,onToggle:M,children:r(p.AUTOMATIONS$GIT_SYNC$FIELD_ENABLED)}),(0,V.jsx)(`p`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$ENABLED_HELP)})]}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(b,{testId:`git-sync-interval-input`,name:`git-sync-interval-input`,type:`number`,min:0,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_INTERVAL),defaultValue:String(e.interval_seconds),isDisabled:!t,onChange:t=>h(t.trim()!==String(e.interval_seconds))}),(0,V.jsx)(`p`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$INTERVAL_HELP)})]}),(0,V.jsx)(b,{testId:`git-sync-repo-url-input`,name:`git-sync-repo-url-input`,type:`text`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_REPO_URL),defaultValue:e.repo_url,placeholder:r(p.AUTOMATIONS$GIT_SYNC$REPO_URL_PLACEHOLDER),isDisabled:!t,onChange:t=>_(t.trim()!==e.repo_url)}),(0,V.jsx)(b,{testId:`git-sync-branch-input`,name:`git-sync-branch-input`,type:`text`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_BRANCH),defaultValue:e.branch,placeholder:r(p.AUTOMATIONS$GIT_SYNC$BRANCH_PLACEHOLDER),isDisabled:!t,onChange:t=>S(t.trim()!==e.branch)}),(0,V.jsx)(b,{testId:`git-sync-path-input`,name:`git-sync-path-input`,type:`text`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_PATH),defaultValue:e.path,placeholder:r(p.AUTOMATIONS$GIT_SYNC$PATH_PLACEHOLDER),isDisabled:!t,onChange:t=>T(t.trim()!==e.path)}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(b,{testId:`git-sync-author-name-input`,name:`git-sync-author-name-input`,type:`text`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_AUTHOR_NAME),showOptionalTag:!0,defaultValue:``,isDisabled:!t,onChange:()=>O(!0)}),(0,V.jsx)(b,{testId:`git-sync-author-email-input`,name:`git-sync-author-email-input`,type:`email`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_AUTHOR_EMAIL),showOptionalTag:!0,defaultValue:``,isDisabled:!t,onChange:()=>A(!0)}),(0,V.jsx)(`p`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$AUTHOR_HELP)})]}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(b,{testId:`git-sync-token-input`,name:`git-sync-token-input`,type:`password`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_TOKEN),placeholder:r(p.AUTOMATIONS$GIT_SYNC$TOKEN_PLACEHOLDER),isDisabled:!t||z,onChange:R},z?`token-cleared`:`token-editable`),(0,V.jsx)(`p`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$TOKEN_HELP)}),(0,V.jsx)(C,{testId:`git-sync-clear-token-switch`,isToggled:z,isDisabled:!t,onToggle:X,children:r(p.AUTOMATIONS$GIT_SYNC$CLEAR_TOKEN)})]}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(b,{testId:`git-sync-encryption-key-input`,name:`git-sync-encryption-key-input`,type:`password`,label:r(p.AUTOMATIONS$GIT_SYNC$FIELD_ENCRYPTION_KEY),placeholder:r(e.encryption_enabled?p.AUTOMATIONS$GIT_SYNC$KEY_SET_PLACEHOLDER:p.AUTOMATIONS$GIT_SYNC$KEY_UNSET_PLACEHOLDER),isDisabled:!t||W,onChange:U},W?`key-cleared`:`key-editable`),(0,V.jsx)(`p`,{className:`text-xs text-muted`,children:r(p.AUTOMATIONS$GIT_SYNC$ENCRYPTION_KEY_HELP)}),(0,V.jsx)(C,{testId:`git-sync-clear-encryption-key-switch`,isToggled:W,isDisabled:!t,onToggle:Z,children:r(p.AUTOMATIONS$GIT_SYNC$CLEAR_ENCRYPTION_KEY)})]}),d&&(0,V.jsxs)(`div`,{role:`alert`,"data-testid":`git-sync-check-failure`,className:`rounded-md border border-red-500/40 bg-red-500/10 p-3 text-sm text-red-300 whitespace-pre-wrap break-words`,children:[(0,V.jsx)(`p`,{className:`font-medium`,children:r(p.AUTOMATIONS$GIT_SYNC$CHECK_FAILED_TITLE)}),(0,V.jsx)(`p`,{className:`mt-1`,children:d.detail}),(0,V.jsx)(`p`,{className:`mt-1 text-xs text-red-300/70`,children:r(p.AUTOMATIONS$GIT_SYNC$CHECK_FAILED_HINT)})]}),(0,V.jsxs)(`div`,{className:`flex justify-start gap-3`,children:[(0,V.jsxs)(y,{testId:`git-sync-save-button`,variant:`primary`,type:`submit`,isDisabled:!t||o||c||J,children:[!o&&!c&&r(p.SETTINGS$SAVE_CHANGES),c&&r(p.AUTOMATIONS$GIT_SYNC$CHECKING),o&&r(p.SETTINGS$SAVING)]}),(0,V.jsx)(y,{testId:`git-sync-save-and-sync-button`,name:$,variant:`secondary`,type:`submit`,isDisabled:!t||o||c||J||!N,children:r(p.AUTOMATIONS$GIT_SYNC$SAVE_AND_SYNC)})]})]})})}var ie=3e3,ae=15e3,oe=3e4,se=e=>({state:`running`,startedAt:e.sync_started_at??new Date().toISOString(),lastSyncedAt:e.last_synced_at,lastErrorAt:e.last_error_at}),ce=r(function(){let{t:e}=a(`openhands`),t=d(),n=E(`manage_automations`),[r,i]=(0,L.useState)({state:`idle`}),o=r.state===`running`,{data:s,isLoading:c,refetch:l}=T(),f=s?.status===`ok`,m=t.backend.kind===`local`,{data:h,isLoading:g,error:_,refetch:y}=z({enabled:f&&m,refetchInterval:o?ie:ae});(0,L.useEffect)(()=>{h?.sync_in_progress&&i(e=>e.state===`running`?e:se(h))},[h]),(0,L.useEffect)(()=>{r.state!==`running`||!h||(h.last_error_at&&h.last_error_at!==r.lastErrorAt?i({state:`failed`}):h.last_synced_at&&h.last_synced_at!==r.lastSyncedAt&&i({state:`succeeded`}))},[h,r]),(0,L.useEffect)(()=>{if(!o)return;let e=setTimeout(()=>i({state:`idle`}),oe);return()=>clearTimeout(e)},[o,r]);let b=B();if(!m)return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,V.jsx)(W,{})})});if(c)return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,V.jsx)(U,{})})});if(!f)return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,V.jsx)(j,{onRetry:l})})});if(g)return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,V.jsx)(U,{})})});if(!h)return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:v(_)===404?(0,V.jsx)(G,{}):(0,V.jsx)(k,{onRetry:()=>y()})})});let x=()=>{b.mutate(void 0,{onSuccess:()=>i(se(h)),onError:t=>{u(v(t)===503?e(p.AUTOMATIONS$GIT_SYNC$SYNC_DISABLED_ERROR):D(t,e(p.ERROR$GENERIC)))}})};return(0,V.jsx)(`div`,{className:`min-h-full`,children:(0,V.jsx)(`div`,{className:`p-6 max-w-4xl mx-auto`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsx)(M,{}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h1`,{className:`text-xl font-semibold text-content`,children:e(p.AUTOMATIONS$GIT_SYNC$TITLE)}),(0,V.jsx)(`p`,{className:`mt-1 text-sm text-muted`,children:e(p.AUTOMATIONS$GIT_SYNC$SUBTITLE)})]}),h.last_error&&(0,V.jsx)(K,{error:h.last_error,errorAt:h.last_error_at}),(0,V.jsx)(Q,{status:h,onSyncNow:x,isSyncing:b.isPending||o,syncActivity:r.state,syncStartedAt:o?r.startedAt:null,canManage:n}),(0,V.jsx)(re,{status:h,canManage:n,onSyncNow:x})]})})})});export{ce as default};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{F as r,P as i,R as a,U as o}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{t as s}from"./vendor~root~root-layout~index-home~home~conversation-panel~conversation~launch~extensions-h~iw7io29p-Dz8NQve5.js";import{M as c}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~kepq2zme-D87mAf6K.js";import{Y as l,n as u}from"./active-backend-context-BZDG15C0.js";import{t as d,z as f}from"./utils-DUD5ScdA.js";import{t as p}from"./loading-spinner-DBgXgra0.js";import{E as m,T as h,a as g,c as _,d as v,f as y,i as ee,l as te,m as ne,n as b,o as x,p as S,r as C,t as re,u as ie}from"./use-tracking-Bhu7gk2y.js";import{l as w}from"./settings-service.api-3yAUFcaP.js";import{n as T}from"./use-settings-C6ZxpBDX.js";import{t as ae}from"./modal-backdrop-BSzNhM4r.js";import{n as oe}from"./modal-classes-D5_b5vMi.js";import{l as E}from"./form-control-classes-CGXBLcn1.js";import{t as D}from"./brand-button-Blxv5nww.js";import{t as O}from"./navigation-link-Bxo3-4vo.js";import{o as k,s as A,t as j}from"./conversation-store-Blc5xysY.js";import{t as se}from"./modal-close-button-objukxk_.js";import{t as M}from"./settings-input-CWUEHHvS.js";import{n as N}from"./use-create-conversation-DVrA_uLD.js";import{t as P}from"./settings-dropdown-input-Ba1UN5Du.js";import{f as F,n as I,o as L,s as R}from"./mcp-marketplace-utils-BJWJgbB6.js";import{t as z}from"./vendor~root-layout~index-home~home~mcp~automations-list~automation-templates~automation-set~bxsimjx0-D7IDevqN.js";import{t as ce}from"./api-error-message-BEIE_yD1.js";import{n as le}from"./use-manifest-capabilities-HIWCtIUm.js";import{t as B}from"./git-repo-dropdown-CgXR6M_E.js";import"./git-repo-dropdown-D2Uei3CO.js";var V=e(t(),1);function ue(e){let t=e.requires.integrations,{data:n,isLoading:r}=T(),i=(0,V.useMemo)(()=>F(w(n?.agent_settings?.mcp_config)),[n?.agent_settings?.mcp_config]),a=(0,V.useMemo)(()=>{let e=R(z);return Object.entries(t).map(([t,n])=>({id:t,requirement:n,entry:L(t,e)??null})).filter(({entry:e})=>!e||!I(e,i))},[t,i]),o=a.filter(({requirement:e})=>e.required!==!1);return{blockingIntegrations:o,warningIntegrations:a.filter(({requirement:e})=>e.required===!1),isBlocked:o.length>0,isLoading:r}}var H={fieldErrors:{},formErrors:[]};function U(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function W(e,t){let n=e[0]===`body`?e.slice(1):e,r=[],i=t;return n.forEach(e=>{if(typeof e==`number`){Array.isArray(i)&&r.length>0&&(r[r.length-1]+=`[${e}]`,i=i[e]);return}U(i)&&e in i&&(r.push(e),i=i[e])}),r.join(`.`)}function G(e,t){if(!U(e))return[];if(Array.isArray(e.errors))return e.errors.flatMap(e=>!U(e)||typeof e.message!=`string`?[]:[{path:typeof e.field==`string`?e.field:``,message:e.message}]);let{detail:n}=e;return typeof n==`string`?[{path:``,message:n}]:Array.isArray(n)?n.flatMap(e=>!U(e)||typeof e.msg!=`string`?[]:[{path:W(Array.isArray(e.loc)?e.loc:[],t),message:e.msg}]):[]}function K(e,t){if(e.length===0)return H;let n={},r=[];return e.forEach(({path:e,message:i})=>{let a=e?t[e]:void 0;if(!a?.length){r.push(i);return}a.forEach(e=>{e in n||(n[e]=i)})}),{fieldErrors:n,formErrors:r}}var de={fieldErrors:{},formErrors:[]},q=[404,501];function J(e){return q.some(t=>l(e,t)||c.isAxiosError(e)&&e.response?.status===t)}function fe(e){let t=(0,V.useRef)(0),n=(0,V.useMemo)(()=>x(e),[e]);return(0,V.useCallback)(async r=>{let i=g(e,r);if(!i)return null;t.current+=1;let a=t.current;try{let e=await b.validateDraft(i);return a===t.current?e?.valid?de:K(G(e,i.draft),n):null}catch(e){return J(e)||console.warn(`Automation setup preflight failed:`,e),null}},[e,n])}function pe(){let e=N(),t=j(e=>e.setMessageToSend),n=(0,V.useCallback)(async n=>{let r=await e.mutateAsync({});return r.conversation_id.startsWith(`task-`)&&r.task_id?A(r.task_id,n):k(r.conversation_id,{draftMessage:n}),window.setTimeout(()=>t(n),0),{response:{...r}}},[e,t]);return(0,V.useCallback)(async(e,t,r)=>r?{response:await b.createAutomationDraft(r)}:n(C(e,t)),[n])}var Y=n();function me({name:e,field:t,value:n,error:r,options:i,repository:a,disabled:o,onChange:c,onRepositoryChange:l,onBlur:p}){let{t:m}=s(`openhands`),{backend:h}=u(),g=`setup-field-${e}`,_=(0,Y.jsx)(`p`,{className:`text-xs text-[var(--oh-muted)]`,children:t.help}),v=h.kind===`cloud`;if(t.type===`repo-picker`&&v)return(0,Y.jsxs)(`div`,{className:`flex w-full flex-col gap-2.5`,children:[(0,Y.jsx)(he,{field:t}),(0,Y.jsx)(B,{provider:t.provider??`github`,value:a?.id??null,repositoryName:a?.full_name??n??null,placeholder:t.placeholder,disabled:o,onChange:e=>{l(e??null),c(e?.full_name??``),p()}}),(0,Y.jsx)(Z,{testId:g,error:r}),_]});if(t.type===`select`||t.type===`timezone`&&i.length>0)return(0,Y.jsxs)(`div`,{className:`flex w-full flex-col gap-2.5`,children:[(0,Y.jsx)(P,{testId:g,name:e,label:(0,Y.jsx)(X,{field:t}),items:i.map(e=>({key:e.value,label:e.label})),selectedKey:n||void 0,placeholder:t.placeholder,isDisabled:o,required:t.required,onSelectionChange:e=>{c(e===null?``:String(e)),p()}}),(0,Y.jsx)(Z,{testId:g,error:r}),_]});if(t.type===`textarea`)return(0,Y.jsxs)(`label`,{className:`flex w-full flex-col gap-2.5`,children:[(0,Y.jsx)(X,{field:t}),(0,Y.jsx)(`textarea`,{"data-testid":g,name:e,rows:4,value:n,placeholder:t.placeholder,disabled:o,"aria-invalid":!!r,onChange:e=>c(e.target.value),onBlur:p,className:d(E,r&&`border-red-500`)}),(0,Y.jsx)(Z,{testId:g,error:r}),_]});let y=t.placeholder??(t.type===`repo-picker`?m(f.SETUP$REPOSITORY_PLACEHOLDER):void 0);return(0,Y.jsxs)(`div`,{className:`flex w-full flex-col gap-2.5`,children:[(0,Y.jsx)(M,{testId:g,name:e,type:`text`,label:t.label,value:n,placeholder:y,isDisabled:o,showRequiredTag:t.required,error:r,onChange:c,onBlur:p}),_]})}function X({field:e}){return(0,Y.jsxs)(`span`,{className:`flex items-center gap-2 text-sm`,children:[e.label,e.required&&(0,Y.jsx)(`span`,{className:`text-sm leading-none text-red-400`,"aria-hidden":!0,children:`*`})]})}function he({field:e}){return(0,Y.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,Y.jsx)(X,{field:e})})}function Z({testId:e,error:t}){return t?(0,Y.jsx)(`p`,{role:`alert`,"data-testid":`${e}-error`,className:`-mt-1 text-xs text-red-400`,children:t}):null}var ge=`/mcp`;function _e({prerequisites:e}){let{t}=s(`openhands`),{blockingIntegrations:n,warningIntegrations:r}=e;return(0,Y.jsxs)(`div`,{className:`flex flex-col gap-4`,"data-testid":`setup-prerequisites`,children:[[...n,...r].map(({id:e,requirement:t,entry:n})=>(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Y.jsx)(`span`,{className:`text-sm`,children:n?.name??e}),(0,Y.jsx)(`span`,{className:`text-xs text-[var(--oh-muted)]`,children:t.message})]},e)),(0,Y.jsx)(O,{to:ge,className:`text-sm underline`,children:t(f.SETUP$MANAGE_INTEGRATIONS)})]})}function ve({setup:e,values:t}){let{t:n}=s(`openhands`);return(0,Y.jsx)(`div`,{className:`flex flex-col gap-4`,"data-testid":`setup-review`,children:(0,Y.jsx)(`dl`,{className:`flex flex-col gap-3`,children:Object.entries(_(e)).map(([e,r])=>(0,Y.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,Y.jsx)(`dt`,{className:`text-xs text-[var(--oh-muted)]`,children:r.label}),(0,Y.jsx)(`dd`,{className:`text-sm break-words`,children:(t[e]??``).trim()||n(f.SETUP$EMPTY_VALUE)})]},e))})})}var ye=400,be={fieldErrors:{},formErrors:[]};function xe(e){return e.formErrors.length>0||Object.keys(e.fieldErrors).length>0}function Se(e){return typeof e.conversation_id==`string`?`/conversations/${e.conversation_id}`:typeof e.id==`string`?S(e.id):null}function Ce({entry:e,onClose:t}){let{t:n}=s(`openhands`),r=a(),i=le(e),o=ue(e),c=fe(e),l=pe(),{trackAutomationSetupOpened:u,trackAutomationSetupValidated:h,trackAutomationSetupCreated:g,trackAutomationSetupFailed:ne}=re(),[b,S]=(0,V.useState)(`prerequisites`),[C,w]=(0,V.useState)(()=>ie(e.setup)),[T,E]=(0,V.useState)({}),[O,k]=(0,V.useState)({}),[A,j]=(0,V.useState)(be),[M,N]=(0,V.useState)(!1),P=(0,V.useRef)(C),F=(0,V.useRef)(null);(0,V.useEffect)(()=>()=>{F.current&&window.clearTimeout(F.current)},[]);let I=(0,V.useMemo)(()=>_(e.setup),[e]),L=(0,V.useMemo)(()=>v(e.setup,i.capabilities),[e,i.capabilities]),R=(0,V.useMemo)(()=>ee(e,C),[e,C]),z=(0,V.useMemo)(()=>x(e),[e]),B=(0,V.useRef)(!1);(0,V.useEffect)(()=>{B.current||(B.current=!0,u({automationId:e.id}))},[e.id,u]);let H=i.supported===!1,U=o.blockingIntegrations.length>0||o.warningIntegrations.length>0,W=b===`prerequisites`&&!U?`form`:b,de=(e,t)=>{P.current={...P.current,[e]:t},w(P.current),k(({[e]:t,...n})=>n),j(t=>{if(!(e in t.fieldErrors))return t;let{[e]:n,...r}=t.fieldErrors;return{...t,fieldErrors:r}})},q=()=>{F.current&&window.clearTimeout(F.current),F.current=window.setTimeout(()=>{c(P.current).then(e=>{e&&j(e)})},ye)},J=async()=>{if(W===`prerequisites`){S(`form`);return}let t=y(e.setup,C,L);if(Object.keys(t).length>0){k(t);return}k({});let n=await c(C);if(n&&xe(n)){j(n);return}j(be),h({automationId:e.id}),S(`review`)},X=async(i,a)=>{N(!0);try{let{response:n}=await l(e,C,i);g({automationId:e.id,setupMode:a});let o=Se(n);o?r(o,{replace:!0}):t()}catch(t){ne({automationId:e.id,setupMode:a});let r=K(G(ce(t),i),z);j(xe(r)?r:{fieldErrors:{},formErrors:[n(f.SETUP$SUBMIT_FAILED)]}),S(`form`)}finally{N(!1)}},he=()=>X(R,e.setup.mode),Z=()=>X(null,`assisted`),ge=e.setup.mode===`direct`&&(m(e)!==null||e.setup.message!==void 0),Ce=e=>{let t=O[e];return t?we(t,n):A.fieldErrors[e]},Q=i.isLoading||o.isLoading,$=H?n(f.SETUP$UNAVAILABLE_TITLE):W===`prerequisites`?n(f.SETUP$PREREQUISITES_TITLE):W===`review`?n(f.SETUP$REVIEW_TITLE):e.name;return(0,Y.jsx)(ae,{onClose:t,"aria-label":e.name,children:(0,Y.jsxs)(`div`,{"data-testid":`setup-dialog`,className:`relative flex max-h-[85vh] w-[92vw] max-w-lg flex-col rounded-xl border border-[var(--oh-border)] bg-base-secondary`,children:[(0,Y.jsx)(se,{onClose:t,testId:`setup-dialog-close`,disabled:M}),(0,Y.jsx)(`header`,{className:`flex-shrink-0 px-6 pb-4 pt-6`,children:(0,Y.jsx)(`h2`,{className:d(`pr-6`,oe),children:$})}),(0,Y.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-6`,children:[Q&&(0,Y.jsx)(`div`,{className:`flex justify-center py-6`,children:(0,Y.jsx)(p,{size:`small`})}),!Q&&H&&(0,Y.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:n(f.SETUP$UNSUPPORTED_MESSAGE)}),i.unmet.length>0&&(0,Y.jsx)(`p`,{"data-testid":`setup-unmet-requirements`,className:`text-sm text-[var(--oh-muted)]`,children:i.unmet.join(`, `)})]}),!Q&&!H&&W===`prerequisites`&&(0,Y.jsx)(_e,{prerequisites:o}),!Q&&!H&&W===`form`&&(0,Y.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,Y.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:e.description}),e.setup.form.note&&(0,Y.jsx)(`p`,{className:`text-sm text-[var(--oh-muted)]`,children:e.setup.form.note}),Object.entries(I).map(([e,t])=>(0,Y.jsx)(me,{name:e,field:t,value:C[e]??``,error:Ce(e),options:te(e,t,L),repository:T[e]??null,disabled:M,onChange:t=>de(e,t),onRepositoryChange:t=>E(n=>({...n,[e]:t})),onBlur:q},e))]}),!Q&&!H&&W===`review`&&(0,Y.jsx)(ve,{setup:e.setup,values:C}),A.formErrors.map(e=>(0,Y.jsx)(`p`,{role:`alert`,"data-testid":`setup-form-error`,className:`pt-4 text-sm text-red-400`,children:e},e))]}),(0,Y.jsxs)(`footer`,{className:`flex flex-shrink-0 justify-end gap-2 px-6 pb-6 pt-4`,children:[W===`review`&&(0,Y.jsx)(D,{testId:`setup-back-button`,type:`button`,variant:`secondary`,isDisabled:M,onClick:()=>S(`form`),children:n(f.BUTTON$BACK)}),H?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(D,{type:`button`,variant:`secondary`,isDisabled:M,onClick:t,children:n(f.BUTTON$CLOSE)}),ge&&(0,Y.jsx)(D,{testId:`setup-fallback-conversation`,type:`button`,variant:`primary`,isDisabled:M,onClick:Z,children:n(f.SETUP$FALLBACK_CONVERSATION)})]}):(0,Y.jsx)(D,{testId:`setup-continue-button`,type:`button`,variant:`primary`,isDisabled:Q||M||W===`prerequisites`&&o.isBlocked,onClick:W===`review`?he:J,children:n(W===`review`?f.SETUP$CONFIRM:f.BUTTON$CONTINUE)})]})]})})}function we(e,t){switch(e.code){case`required`:return t(f.SETUP$VALIDATION_REQUIRED);case`minLength`:return t(f.SETUP$VALIDATION_MIN_LENGTH,{length:e.length});case`maxLength`:return t(f.SETUP$VALIDATION_MAX_LENGTH,{length:e.length});case`invalidOption`:return t(f.SETUP$VALIDATION_INVALID_OPTION);case`unsafeExpressionLiteral`:return t(f.SETUP$VALIDATION_UNSAFE_VALUE);default:return e}}var Q=({params:e})=>{let t=h.findById(e.automationId??``);if(!t)throw new Response(null,{status:404,statusText:`Not Found`});return{automationId:t.id}},$=o(function(){let{automationId:e}=i(),t=r(),n=a(),o=h.findById(e);return o?(0,Y.jsx)(Ce,{entry:o,onClose:()=>{t.key==="default"?n(ne(),{replace:!0}):n(-1)}}):null});export{Q as clientLoader,$ as default};
@@ -1 +0,0 @@
1
- import{a as e}from"./rolldown-runtime-Cyuzqnbw.js";import{St as t,yt as n}from"./vendor-styling-Ck5D_A2Q.js";import{U as r}from"./vendor~entry.client~root~root-layout~index-home~home~conversation-panel~conversation~launch~ox0jfsa0-cHFhpUBq.js";import{i,n as a,t as o}from"./manifest-subpage-layout-Rn-glaxV.js";import{w as s}from"./use-tracking-Bhu7gk2y.js";import{t as c}from"./recommended-automations-launcher-CcFMfJRR.js";var l=e(t(),1),u=n(),d=()=>{if(!s())throw new Response(null,{status:404,statusText:`Not Found`});return null},f=r(function(){let[e,t]=(0,l.useState)(``),n=s(),r=a();return!n||!r?null:(0,u.jsxs)(o,{heading:r.heading,navTestIdBase:`automations-navbar`,items:r.items,children:[(0,u.jsxs)(`div`,{className:`min-w-0`,children:[(0,u.jsx)(`h1`,{className:`text-xl font-semibold text-content`,children:n.title}),(0,u.jsx)(`p`,{className:`mt-1 text-sm text-muted`,children:n.description})]}),(0,u.jsx)(`div`,{className:`flex max-w-xl items-stretch`,children:(0,u.jsx)(i,{value:e,onChange:t})}),(0,u.jsx)(c,{query:e})]})});export{d as clientLoader,f as default};