@theia/ai-ide 1.77.0-next.99 → 1.77.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 (558) hide show
  1. package/lib/browser/address-pr-review-command-contribution.js +15 -19
  2. package/lib/browser/address-pr-review-command-contribution.js.map +1 -1
  3. package/lib/browser/agent-mode-confirmation-service.js +20 -24
  4. package/lib/browser/agent-mode-confirmation-service.js.map +1 -1
  5. package/lib/browser/agents-md-agent.js +15 -19
  6. package/lib/browser/agents-md-agent.js.map +1 -1
  7. package/lib/browser/ai-allow-all-mode-chat-banner.js +32 -39
  8. package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
  9. package/lib/browser/ai-allow-all-mode-chat-banner.spec.js +49 -51
  10. package/lib/browser/ai-allow-all-mode-chat-banner.spec.js.map +1 -1
  11. package/lib/browser/ai-aware-scm-commit-widget.d.ts +1 -1
  12. package/lib/browser/ai-aware-scm-commit-widget.d.ts.map +1 -1
  13. package/lib/browser/ai-aware-scm-commit-widget.js +36 -47
  14. package/lib/browser/ai-aware-scm-commit-widget.js.map +1 -1
  15. package/lib/browser/ai-configuration/agent-icon.js +5 -9
  16. package/lib/browser/ai-configuration/agent-icon.js.map +1 -1
  17. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +28 -37
  18. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -1
  19. package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +29 -39
  20. package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -1
  21. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +22 -24
  22. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -1
  23. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +12 -15
  24. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -1
  25. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +20 -24
  26. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -1
  27. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +37 -39
  28. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -1
  29. package/lib/browser/ai-configuration/ai-configuration-resource.js +3 -7
  30. package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -1
  31. package/lib/browser/ai-configuration/ai-configuration-search-widget.js +20 -26
  32. package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -1
  33. package/lib/browser/ai-configuration/ai-configuration-search.js +2 -5
  34. package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -1
  35. package/lib/browser/ai-configuration/ai-configuration-search.spec.js +15 -17
  36. package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -1
  37. package/lib/browser/ai-configuration/ai-configuration-service.js +9 -12
  38. package/lib/browser/ai-configuration/ai-configuration-service.js.map +1 -1
  39. package/lib/browser/ai-configuration/ai-configuration-tree-model.js +7 -10
  40. package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -1
  41. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +14 -17
  42. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -1
  43. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +47 -49
  44. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -1
  45. package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +1 -1
  46. package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -1
  47. package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +68 -79
  48. package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -1
  49. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +2 -2
  50. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
  51. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +47 -54
  52. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
  53. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +4 -4
  54. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
  55. package/lib/browser/ai-configuration/ai-configuration-widget.js +45 -57
  56. package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
  57. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +3 -0
  58. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -1
  59. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +34 -40
  60. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -1
  61. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +135 -140
  62. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -1
  63. package/lib/browser/ai-configuration/categories/agent-chips.js +8 -13
  64. package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -1
  65. package/lib/browser/ai-configuration/categories/agent-detail-model.js +7 -10
  66. package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -1
  67. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js +13 -15
  68. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js.map +1 -1
  69. package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +1 -1
  70. package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -1
  71. package/lib/browser/ai-configuration/categories/agent-detail-view.js +29 -34
  72. package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -1
  73. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +1 -1
  74. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -1
  75. package/lib/browser/ai-configuration/categories/agents-configuration-category.js +106 -128
  76. package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -1
  77. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +32 -34
  78. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -1
  79. package/lib/browser/ai-configuration/categories/general-configuration-category.js +91 -101
  80. package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -1
  81. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +38 -40
  82. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -1
  83. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +53 -63
  84. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -1
  85. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +25 -27
  86. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -1
  87. package/lib/browser/ai-configuration/categories/models-configuration-category.js +45 -56
  88. package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -1
  89. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +31 -33
  90. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -1
  91. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +68 -76
  92. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -1
  93. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +55 -57
  94. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -1
  95. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +85 -100
  96. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -1
  97. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +39 -41
  98. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -1
  99. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js +44 -49
  100. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js.map +1 -1
  101. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js +71 -74
  102. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js.map +1 -1
  103. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +34 -42
  104. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -1
  105. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +16 -18
  106. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -1
  107. package/lib/browser/ai-configuration/categories/tools-configuration-category.js +101 -112
  108. package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -1
  109. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +46 -48
  110. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -1
  111. package/lib/browser/ai-configuration/categories/variables-configuration-category.js +54 -63
  112. package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -1
  113. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +27 -29
  114. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -1
  115. package/lib/browser/ai-configuration/components/agent-notification-settings.js +12 -16
  116. package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
  117. package/lib/browser/ai-configuration/language-model-renderer.js +25 -31
  118. package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
  119. package/lib/browser/ai-configuration/language-model-renderer.spec.js +29 -32
  120. package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -1
  121. package/lib/browser/ai-first-perspective-contribution.js +18 -21
  122. package/lib/browser/ai-first-perspective-contribution.js.map +1 -1
  123. package/lib/browser/ai-getting-started-commands.js +3 -6
  124. package/lib/browser/ai-getting-started-commands.js.map +1 -1
  125. package/lib/browser/ai-getting-started-contribution.js +24 -30
  126. package/lib/browser/ai-getting-started-contribution.js.map +1 -1
  127. package/lib/browser/ai-getting-started-walkthrough.js +54 -58
  128. package/lib/browser/ai-getting-started-walkthrough.js.map +1 -1
  129. package/lib/browser/ai-getting-started-walkthrough.spec.js +32 -34
  130. package/lib/browser/ai-getting-started-walkthrough.spec.js.map +1 -1
  131. package/lib/browser/ai-ide-activation-service.js +25 -34
  132. package/lib/browser/ai-ide-activation-service.js.map +1 -1
  133. package/lib/browser/ai-sessions-view-contribution.d.ts +1 -1
  134. package/lib/browser/ai-sessions-view-contribution.d.ts.map +1 -1
  135. package/lib/browser/ai-sessions-view-contribution.js +28 -33
  136. package/lib/browser/ai-sessions-view-contribution.js.map +1 -1
  137. package/lib/browser/ai-sessions-widget.d.ts +3 -3
  138. package/lib/browser/ai-sessions-widget.d.ts.map +1 -1
  139. package/lib/browser/ai-sessions-widget.js +42 -55
  140. package/lib/browser/ai-sessions-widget.js.map +1 -1
  141. package/lib/browser/ai-terminal-functions.js +18 -24
  142. package/lib/browser/ai-terminal-functions.js.map +1 -1
  143. package/lib/browser/ai-walkthrough-context-keys.js +35 -45
  144. package/lib/browser/ai-walkthrough-context-keys.js.map +1 -1
  145. package/lib/browser/ai-walkthrough-context-keys.spec.js +34 -36
  146. package/lib/browser/ai-walkthrough-context-keys.spec.js.map +1 -1
  147. package/lib/browser/ai-workspace-restriction-contribution.js +11 -15
  148. package/lib/browser/ai-workspace-restriction-contribution.js.map +1 -1
  149. package/lib/browser/analyze-gh-ticket-command-contribution.js +19 -23
  150. package/lib/browser/analyze-gh-ticket-command-contribution.js.map +1 -1
  151. package/lib/browser/app-tester-chat-agent.js +45 -51
  152. package/lib/browser/app-tester-chat-agent.js.map +1 -1
  153. package/lib/browser/app-tester-chat-functions.d.ts +1 -1
  154. package/lib/browser/app-tester-chat-functions.d.ts.map +1 -1
  155. package/lib/browser/app-tester-chat-functions.js +29 -34
  156. package/lib/browser/app-tester-chat-functions.js.map +1 -1
  157. package/lib/browser/app-tester-prompt-template.js +42 -45
  158. package/lib/browser/app-tester-prompt-template.js.map +1 -1
  159. package/lib/browser/apptester-capability-contribution.js +13 -17
  160. package/lib/browser/apptester-capability-contribution.js.map +1 -1
  161. package/lib/browser/architect-agent.d.ts +2 -2
  162. package/lib/browser/architect-agent.d.ts.map +1 -1
  163. package/lib/browser/architect-agent.js +38 -44
  164. package/lib/browser/architect-agent.js.map +1 -1
  165. package/lib/browser/architect-prompt-template.js +84 -87
  166. package/lib/browser/architect-prompt-template.js.map +1 -1
  167. package/lib/browser/chat-session-item-action-contribution.js +15 -18
  168. package/lib/browser/chat-session-item-action-contribution.js.map +1 -1
  169. package/lib/browser/chat-session-item.d.ts +1 -1
  170. package/lib/browser/chat-session-item.d.ts.map +1 -1
  171. package/lib/browser/chat-session-item.js +25 -29
  172. package/lib/browser/chat-session-item.js.map +1 -1
  173. package/lib/browser/chat-session-list-components.js +9 -14
  174. package/lib/browser/chat-session-list-components.js.map +1 -1
  175. package/lib/browser/chat-session-list-service.d.ts +2 -2
  176. package/lib/browser/chat-session-list-service.d.ts.map +1 -1
  177. package/lib/browser/chat-session-list-service.js +33 -43
  178. package/lib/browser/chat-session-list-service.js.map +1 -1
  179. package/lib/browser/chat-session-list-service.spec.js +56 -58
  180. package/lib/browser/chat-session-list-service.spec.js.map +1 -1
  181. package/lib/browser/chat-session-tooltip.js +31 -35
  182. package/lib/browser/chat-session-tooltip.js.map +1 -1
  183. package/lib/browser/chat-sessions-welcome-message-provider.d.ts +3 -3
  184. package/lib/browser/chat-sessions-welcome-message-provider.d.ts.map +1 -1
  185. package/lib/browser/chat-sessions-welcome-message-provider.js +54 -70
  186. package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
  187. package/lib/browser/code-review-capability-contribution.js +13 -17
  188. package/lib/browser/code-review-capability-contribution.js.map +1 -1
  189. package/lib/browser/code-reviewer-agent.js +17 -21
  190. package/lib/browser/code-reviewer-agent.js.map +1 -1
  191. package/lib/browser/code-reviewer-prompt-template.js +5 -8
  192. package/lib/browser/code-reviewer-prompt-template.js.map +1 -1
  193. package/lib/browser/coder-agent.d.ts +2 -2
  194. package/lib/browser/coder-agent.d.ts.map +1 -1
  195. package/lib/browser/coder-agent.js +44 -50
  196. package/lib/browser/coder-agent.js.map +1 -1
  197. package/lib/browser/commit-message-agent.js +26 -32
  198. package/lib/browser/commit-message-agent.js.map +1 -1
  199. package/lib/browser/commit-message-agent.spec.js +25 -28
  200. package/lib/browser/commit-message-agent.spec.js.map +1 -1
  201. package/lib/browser/commit-message-command-contribution.d.ts +1 -1
  202. package/lib/browser/commit-message-command-contribution.d.ts.map +1 -1
  203. package/lib/browser/commit-message-command-contribution.js +21 -28
  204. package/lib/browser/commit-message-command-contribution.js.map +1 -1
  205. package/lib/browser/commit-message-commands.js +4 -7
  206. package/lib/browser/commit-message-commands.js.map +1 -1
  207. package/lib/browser/commit-message-prompt-template.js +9 -12
  208. package/lib/browser/commit-message-prompt-template.js.map +1 -1
  209. package/lib/browser/commit-message-runner.d.ts +2 -2
  210. package/lib/browser/commit-message-runner.d.ts.map +1 -1
  211. package/lib/browser/commit-message-runner.js +33 -41
  212. package/lib/browser/commit-message-runner.js.map +1 -1
  213. package/lib/browser/commit-message-runner.spec.js +65 -68
  214. package/lib/browser/commit-message-runner.spec.js.map +1 -1
  215. package/lib/browser/context-file-validation-service-impl.d.ts +1 -1
  216. package/lib/browser/context-file-validation-service-impl.d.ts.map +1 -1
  217. package/lib/browser/context-file-validation-service-impl.js +20 -26
  218. package/lib/browser/context-file-validation-service-impl.js.map +1 -1
  219. package/lib/browser/context-file-validation-service-impl.spec.js +77 -79
  220. package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
  221. package/lib/browser/context-functions.js +27 -31
  222. package/lib/browser/context-functions.js.map +1 -1
  223. package/lib/browser/context-functions.spec.js +64 -66
  224. package/lib/browser/context-functions.spec.js.map +1 -1
  225. package/lib/browser/create-skill-agent.d.ts +1 -1
  226. package/lib/browser/create-skill-agent.d.ts.map +1 -1
  227. package/lib/browser/create-skill-agent.js +19 -23
  228. package/lib/browser/create-skill-agent.js.map +1 -1
  229. package/lib/browser/default-chat-agent-recommendation-service.js +16 -19
  230. package/lib/browser/default-chat-agent-recommendation-service.js.map +1 -1
  231. package/lib/browser/explore-agent.d.ts +1 -1
  232. package/lib/browser/explore-agent.d.ts.map +1 -1
  233. package/lib/browser/explore-agent.js +18 -22
  234. package/lib/browser/explore-agent.js.map +1 -1
  235. package/lib/browser/explore-prompt-template.js +5 -8
  236. package/lib/browser/explore-prompt-template.js.map +1 -1
  237. package/lib/browser/file-changeset-function.spec.js +12 -14
  238. package/lib/browser/file-changeset-function.spec.js.map +1 -1
  239. package/lib/browser/file-changeset-functions.d.ts +1 -1
  240. package/lib/browser/file-changeset-functions.d.ts.map +1 -1
  241. package/lib/browser/file-changeset-functions.js +134 -164
  242. package/lib/browser/file-changeset-functions.js.map +1 -1
  243. package/lib/browser/file-changeset-functions.spec.js +136 -138
  244. package/lib/browser/file-changeset-functions.spec.js.map +1 -1
  245. package/lib/browser/frontend-module.js +293 -295
  246. package/lib/browser/frontend-module.js.map +1 -1
  247. package/lib/browser/git-changes-tool.js +22 -26
  248. package/lib/browser/git-changes-tool.js.map +1 -1
  249. package/lib/browser/git-changes-tool.spec.js +52 -55
  250. package/lib/browser/git-changes-tool.spec.js.map +1 -1
  251. package/lib/browser/github-capability-contribution.js +14 -18
  252. package/lib/browser/github-capability-contribution.js.map +1 -1
  253. package/lib/browser/github-chat-agent.js +58 -67
  254. package/lib/browser/github-chat-agent.js.map +1 -1
  255. package/lib/browser/github-prompt-template.js +6 -9
  256. package/lib/browser/github-prompt-template.js.map +1 -1
  257. package/lib/browser/github-repo-variable-contribution.d.ts +1 -1
  258. package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
  259. package/lib/browser/github-repo-variable-contribution.js +23 -30
  260. package/lib/browser/github-repo-variable-contribution.js.map +1 -1
  261. package/lib/browser/ide-chat-welcome-message-provider.js +59 -71
  262. package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
  263. package/lib/browser/implement-gh-ticket-command-contribution.js +15 -19
  264. package/lib/browser/implement-gh-ticket-command-contribution.js.map +1 -1
  265. package/lib/browser/memory-capability-contribution.d.ts.map +1 -1
  266. package/lib/browser/memory-capability-contribution.js +21 -25
  267. package/lib/browser/memory-capability-contribution.js.map +1 -1
  268. package/lib/browser/memory-capability-contribution.spec.js +30 -32
  269. package/lib/browser/memory-capability-contribution.spec.js.map +1 -1
  270. package/lib/browser/memory-directory-variable-contribution.d.ts +1 -1
  271. package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -1
  272. package/lib/browser/memory-directory-variable-contribution.js +19 -24
  273. package/lib/browser/memory-directory-variable-contribution.js.map +1 -1
  274. package/lib/browser/memory-directory-variable-contribution.spec.js +28 -30
  275. package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -1
  276. package/lib/browser/mode-aware-chat-agent.js +9 -12
  277. package/lib/browser/mode-aware-chat-agent.js.map +1 -1
  278. package/lib/browser/multi-root-paths.spec.js +86 -88
  279. package/lib/browser/multi-root-paths.spec.js.map +1 -1
  280. package/lib/browser/open-editors-hint-contribution.js +10 -14
  281. package/lib/browser/open-editors-hint-contribution.js.map +1 -1
  282. package/lib/browser/remember-command-contribution.js +17 -21
  283. package/lib/browser/remember-command-contribution.js.map +1 -1
  284. package/lib/browser/review/pr-review-agent.js +17 -21
  285. package/lib/browser/review/pr-review-agent.js.map +1 -1
  286. package/lib/browser/review/pr-review-capability-contribution.js +41 -45
  287. package/lib/browser/review/pr-review-capability-contribution.js.map +1 -1
  288. package/lib/browser/review/pr-review-prompt-template.js +48 -51
  289. package/lib/browser/review/pr-review-prompt-template.js.map +1 -1
  290. package/lib/browser/shell-execution-capability-contribution.js +17 -21
  291. package/lib/browser/shell-execution-capability-contribution.js.map +1 -1
  292. package/lib/browser/skill-file-functions.js +27 -33
  293. package/lib/browser/skill-file-functions.js.map +1 -1
  294. package/lib/browser/skill-file-functions.spec.js +19 -21
  295. package/lib/browser/skill-file-functions.spec.js.map +1 -1
  296. package/lib/browser/summarize-session-command-contribution.d.ts +1 -1
  297. package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
  298. package/lib/browser/summarize-session-command-contribution.js +38 -50
  299. package/lib/browser/summarize-session-command-contribution.js.map +1 -1
  300. package/lib/browser/task-background-summary-variable.js +17 -20
  301. package/lib/browser/task-background-summary-variable.js.map +1 -1
  302. package/lib/browser/task-context-file-storage-service.js +39 -51
  303. package/lib/browser/task-context-file-storage-service.js.map +1 -1
  304. package/lib/browser/task-context-file-storage-service.spec.js +41 -43
  305. package/lib/browser/task-context-file-storage-service.spec.js.map +1 -1
  306. package/lib/browser/task-context-functions.js +44 -52
  307. package/lib/browser/task-context-functions.js.map +1 -1
  308. package/lib/browser/template-preference-contribution.js +30 -37
  309. package/lib/browser/template-preference-contribution.js.map +1 -1
  310. package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +8 -10
  311. package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +1 -1
  312. package/lib/browser/todo-tool-renderer.d.ts +1 -1
  313. package/lib/browser/todo-tool-renderer.d.ts.map +1 -1
  314. package/lib/browser/todo-tool-renderer.js +42 -51
  315. package/lib/browser/todo-tool-renderer.js.map +1 -1
  316. package/lib/browser/todo-tool.js +8 -11
  317. package/lib/browser/todo-tool.js.map +1 -1
  318. package/lib/browser/todo-tool.spec.js +14 -16
  319. package/lib/browser/todo-tool.spec.js.map +1 -1
  320. package/lib/browser/user-interaction-tool-renderer.d.ts +1 -1
  321. package/lib/browser/user-interaction-tool-renderer.d.ts.map +1 -1
  322. package/lib/browser/user-interaction-tool-renderer.js +81 -95
  323. package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
  324. package/lib/browser/user-interaction-tool.d.ts +2 -2
  325. package/lib/browser/user-interaction-tool.d.ts.map +1 -1
  326. package/lib/browser/user-interaction-tool.js +56 -65
  327. package/lib/browser/user-interaction-tool.js.map +1 -1
  328. package/lib/browser/user-interaction-tool.spec.js +118 -121
  329. package/lib/browser/user-interaction-tool.spec.js.map +1 -1
  330. package/lib/browser/workspace-functions.d.ts +1 -1
  331. package/lib/browser/workspace-functions.d.ts.map +1 -1
  332. package/lib/browser/workspace-functions.js +126 -155
  333. package/lib/browser/workspace-functions.js.map +1 -1
  334. package/lib/browser/workspace-functions.spec.js +607 -600
  335. package/lib/browser/workspace-functions.spec.js.map +1 -1
  336. package/lib/browser/workspace-launch-provider.d.ts +1 -1
  337. package/lib/browser/workspace-launch-provider.d.ts.map +1 -1
  338. package/lib/browser/workspace-launch-provider.js +46 -57
  339. package/lib/browser/workspace-launch-provider.js.map +1 -1
  340. package/lib/browser/workspace-launch-provider.spec.js +119 -122
  341. package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
  342. package/lib/browser/workspace-search-provider.d.ts +1 -1
  343. package/lib/browser/workspace-search-provider.d.ts.map +1 -1
  344. package/lib/browser/workspace-search-provider.js +25 -32
  345. package/lib/browser/workspace-search-provider.js.map +1 -1
  346. package/lib/browser/workspace-search-provider.spec.js +35 -38
  347. package/lib/browser/workspace-search-provider.spec.js.map +1 -1
  348. package/lib/browser/workspace-task-provider.d.ts +1 -1
  349. package/lib/browser/workspace-task-provider.d.ts.map +1 -1
  350. package/lib/browser/workspace-task-provider.js +42 -51
  351. package/lib/browser/workspace-task-provider.js.map +1 -1
  352. package/lib/browser/workspace-task-provider.spec.js +102 -105
  353. package/lib/browser/workspace-task-provider.spec.js.map +1 -1
  354. package/lib/common/agent-ids.js +2 -5
  355. package/lib/common/agent-ids.js.map +1 -1
  356. package/lib/common/agents-md-prompt-template.js +38 -41
  357. package/lib/common/agents-md-prompt-template.js.map +1 -1
  358. package/lib/common/ai-configuration-preferences.js +5 -8
  359. package/lib/common/ai-configuration-preferences.js.map +1 -1
  360. package/lib/common/ai-ide-preferences.js +16 -19
  361. package/lib/common/ai-ide-preferences.js.map +1 -1
  362. package/lib/common/ai-terminal-functions.js +1 -4
  363. package/lib/common/ai-terminal-functions.js.map +1 -1
  364. package/lib/common/app-tester-chat-functions.js +4 -7
  365. package/lib/common/app-tester-chat-functions.js.map +1 -1
  366. package/lib/common/browser-automation-protocol.js +3 -6
  367. package/lib/common/browser-automation-protocol.js.map +1 -1
  368. package/lib/common/coder-replace-prompt-template.js +102 -108
  369. package/lib/common/coder-replace-prompt-template.js.map +1 -1
  370. package/lib/common/command-chat-agents.js +34 -40
  371. package/lib/common/command-chat-agents.js.map +1 -1
  372. package/lib/common/command-prompt-template.js +1 -4
  373. package/lib/common/command-prompt-template.js.map +1 -1
  374. package/lib/common/context-files-variable.js +17 -20
  375. package/lib/common/context-files-variable.js.map +1 -1
  376. package/lib/common/context-functions.js +3 -6
  377. package/lib/common/context-functions.js.map +1 -1
  378. package/lib/common/context-variables.js +2 -5
  379. package/lib/common/context-variables.js.map +1 -1
  380. package/lib/common/create-skill-prompt-template.js +22 -25
  381. package/lib/common/create-skill-prompt-template.js.map +1 -1
  382. package/lib/common/file-changeset-function-ids.js +8 -11
  383. package/lib/common/file-changeset-function-ids.js.map +1 -1
  384. package/lib/common/github-repo-protocol.js +2 -5
  385. package/lib/common/github-repo-protocol.js.map +1 -1
  386. package/lib/common/open-editors-hint-fragment-id.js +1 -4
  387. package/lib/common/open-editors-hint-fragment-id.js.map +1 -1
  388. package/lib/common/orchestrator-chat-agent.js +36 -42
  389. package/lib/common/orchestrator-chat-agent.js.map +1 -1
  390. package/lib/common/orchestrator-prompt-template.js +1 -4
  391. package/lib/common/orchestrator-prompt-template.js.map +1 -1
  392. package/lib/common/summarize-session-commands.js +2 -5
  393. package/lib/common/summarize-session-commands.js.map +1 -1
  394. package/lib/common/task-context-function-ids.js +5 -8
  395. package/lib/common/task-context-function-ids.js.map +1 -1
  396. package/lib/common/todo-tool.js +2 -6
  397. package/lib/common/todo-tool.js.map +1 -1
  398. package/lib/common/universal-chat-agent.js +17 -21
  399. package/lib/common/universal-chat-agent.js.map +1 -1
  400. package/lib/common/universal-prompt-template.js +6 -9
  401. package/lib/common/universal-prompt-template.js.map +1 -1
  402. package/lib/common/user-interaction-tool.js +11 -21
  403. package/lib/common/user-interaction-tool.js.map +1 -1
  404. package/lib/common/user-interaction-tool.spec.js +52 -54
  405. package/lib/common/user-interaction-tool.spec.js.map +1 -1
  406. package/lib/common/workspace-functions.js +13 -16
  407. package/lib/common/workspace-functions.js.map +1 -1
  408. package/lib/common/workspace-preferences.js +41 -44
  409. package/lib/common/workspace-preferences.js.map +1 -1
  410. package/lib/common/workspace-search-provider-util.js +3 -6
  411. package/lib/common/workspace-search-provider-util.js.map +1 -1
  412. package/lib/common/workspace-search-provider-util.spec.js +13 -15
  413. package/lib/common/workspace-search-provider-util.spec.js.map +1 -1
  414. package/lib/node/app-tester-agent/browser-automation-impl.d.ts +1 -1
  415. package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +1 -1
  416. package/lib/node/app-tester-agent/browser-automation-impl.js +7 -10
  417. package/lib/node/app-tester-agent/browser-automation-impl.js.map +1 -1
  418. package/lib/node/backend-module.js +21 -23
  419. package/lib/node/backend-module.js.map +1 -1
  420. package/lib/node/github-repo-service-impl.d.ts +1 -1
  421. package/lib/node/github-repo-service-impl.d.ts.map +1 -1
  422. package/lib/node/github-repo-service-impl.js +11 -15
  423. package/lib/node/github-repo-service-impl.js.map +1 -1
  424. package/lib/package.spec.d.ts +1 -0
  425. package/lib/package.spec.js +1 -1
  426. package/lib/package.spec.js.map +1 -1
  427. package/package.json +33 -25
  428. package/src/browser/address-pr-review-command-contribution.ts +1 -1
  429. package/src/browser/agent-mode-confirmation-service.ts +1 -1
  430. package/src/browser/agents-md-agent.ts +1 -1
  431. package/src/browser/ai-allow-all-mode-chat-banner.spec.ts +1 -1
  432. package/src/browser/ai-aware-scm-commit-widget.tsx +3 -3
  433. package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +2 -2
  434. package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +1 -1
  435. package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +1 -1
  436. package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +1 -1
  437. package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +6 -6
  438. package/src/browser/ai-configuration/ai-configuration-search.spec.ts +1 -1
  439. package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +1 -1
  440. package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +3 -3
  441. package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +2 -2
  442. package/src/browser/ai-configuration/ai-configuration-widget.tsx +5 -5
  443. package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +9 -9
  444. package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +5 -2
  445. package/src/browser/ai-configuration/categories/agent-chips.tsx +1 -1
  446. package/src/browser/ai-configuration/categories/agent-detail-model.spec.ts +1 -1
  447. package/src/browser/ai-configuration/categories/agent-detail-view.tsx +6 -6
  448. package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +1 -1
  449. package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +5 -5
  450. package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +2 -2
  451. package/src/browser/ai-configuration/categories/general-configuration-category.tsx +1 -1
  452. package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +1 -1
  453. package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +1 -1
  454. package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +1 -1
  455. package/src/browser/ai-configuration/categories/models-configuration-category.tsx +1 -1
  456. package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +1 -1
  457. package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +1 -1
  458. package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +1 -1
  459. package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +1 -1
  460. package/src/browser/ai-configuration/categories/provider-model-discovery-section.spec.tsx +1 -1
  461. package/src/browser/ai-configuration/categories/provider-model-discovery-section.tsx +1 -1
  462. package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +1 -1
  463. package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +1 -1
  464. package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +1 -1
  465. package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +1 -1
  466. package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +1 -1
  467. package/src/browser/ai-configuration/language-model-renderer.spec.ts +1 -1
  468. package/src/browser/ai-first-perspective-contribution.ts +1 -1
  469. package/src/browser/ai-getting-started-contribution.ts +2 -2
  470. package/src/browser/ai-getting-started-walkthrough.spec.ts +2 -2
  471. package/src/browser/ai-getting-started-walkthrough.ts +3 -3
  472. package/src/browser/ai-ide-activation-service.ts +1 -1
  473. package/src/browser/ai-sessions-view-contribution.ts +1 -1
  474. package/src/browser/ai-sessions-widget.tsx +4 -4
  475. package/src/browser/ai-terminal-functions.ts +1 -1
  476. package/src/browser/ai-walkthrough-context-keys.spec.ts +1 -1
  477. package/src/browser/analyze-gh-ticket-command-contribution.ts +3 -3
  478. package/src/browser/app-tester-chat-agent.ts +2 -2
  479. package/src/browser/app-tester-chat-functions.ts +2 -2
  480. package/src/browser/app-tester-prompt-template.ts +2 -2
  481. package/src/browser/apptester-capability-contribution.ts +1 -1
  482. package/src/browser/architect-agent.ts +4 -4
  483. package/src/browser/architect-prompt-template.ts +6 -6
  484. package/src/browser/chat-session-item.tsx +2 -2
  485. package/src/browser/chat-session-list-service.spec.ts +2 -2
  486. package/src/browser/chat-session-list-service.ts +2 -2
  487. package/src/browser/chat-sessions-welcome-message-provider.tsx +5 -5
  488. package/src/browser/code-review-capability-contribution.ts +1 -1
  489. package/src/browser/code-reviewer-agent.ts +1 -1
  490. package/src/browser/coder-agent.ts +3 -3
  491. package/src/browser/commit-message-agent.spec.ts +2 -2
  492. package/src/browser/commit-message-agent.ts +1 -1
  493. package/src/browser/commit-message-command-contribution.ts +3 -3
  494. package/src/browser/commit-message-runner.spec.ts +3 -3
  495. package/src/browser/commit-message-runner.ts +2 -2
  496. package/src/browser/context-file-validation-service-impl.spec.ts +2 -2
  497. package/src/browser/context-file-validation-service-impl.ts +1 -1
  498. package/src/browser/context-functions.spec.ts +1 -1
  499. package/src/browser/context-functions.ts +1 -1
  500. package/src/browser/create-skill-agent.ts +2 -2
  501. package/src/browser/default-chat-agent-recommendation-service.ts +2 -2
  502. package/src/browser/explore-agent.ts +2 -2
  503. package/src/browser/file-changeset-function.spec.ts +1 -1
  504. package/src/browser/file-changeset-functions.spec.ts +3 -3
  505. package/src/browser/file-changeset-functions.ts +3 -3
  506. package/src/browser/frontend-module.ts +89 -89
  507. package/src/browser/git-changes-tool.spec.ts +1 -1
  508. package/src/browser/github-capability-contribution.ts +1 -1
  509. package/src/browser/github-chat-agent.ts +3 -3
  510. package/src/browser/github-repo-variable-contribution.ts +1 -1
  511. package/src/browser/ide-chat-welcome-message-provider.tsx +3 -3
  512. package/src/browser/implement-gh-ticket-command-contribution.ts +1 -1
  513. package/src/browser/memory-capability-contribution.spec.ts +4 -4
  514. package/src/browser/memory-capability-contribution.ts +5 -3
  515. package/src/browser/memory-directory-variable-contribution.spec.ts +1 -1
  516. package/src/browser/memory-directory-variable-contribution.ts +1 -1
  517. package/src/browser/multi-root-paths.spec.ts +2 -2
  518. package/src/browser/open-editors-hint-contribution.ts +1 -1
  519. package/src/browser/remember-command-contribution.ts +2 -2
  520. package/src/browser/review/pr-review-agent.ts +1 -1
  521. package/src/browser/review/pr-review-capability-contribution.ts +6 -6
  522. package/src/browser/review/pr-review-prompt-template.ts +4 -4
  523. package/src/browser/shell-execution-capability-contribution.ts +1 -1
  524. package/src/browser/skill-file-functions.spec.ts +1 -1
  525. package/src/browser/skill-file-functions.ts +1 -1
  526. package/src/browser/summarize-session-command-contribution.ts +2 -2
  527. package/src/browser/task-background-summary-variable.ts +1 -1
  528. package/src/browser/task-context-file-storage-service.spec.ts +1 -1
  529. package/src/browser/task-context-file-storage-service.ts +1 -1
  530. package/src/browser/task-context-functions.ts +1 -1
  531. package/src/browser/template-preference-contribution.ts +1 -1
  532. package/src/browser/todo-tool-renderer.tsx +1 -1
  533. package/src/browser/todo-tool.spec.ts +1 -1
  534. package/src/browser/todo-tool.ts +1 -1
  535. package/src/browser/user-interaction-tool-renderer.tsx +3 -3
  536. package/src/browser/user-interaction-tool.spec.ts +3 -3
  537. package/src/browser/user-interaction-tool.ts +2 -2
  538. package/src/browser/workspace-functions.spec.ts +16 -7
  539. package/src/browser/workspace-functions.ts +7 -6
  540. package/src/browser/workspace-launch-provider.spec.ts +2 -2
  541. package/src/browser/workspace-launch-provider.ts +2 -2
  542. package/src/browser/workspace-search-provider.spec.ts +2 -2
  543. package/src/browser/workspace-search-provider.ts +4 -4
  544. package/src/browser/workspace-task-provider.spec.ts +2 -2
  545. package/src/browser/workspace-task-provider.ts +2 -2
  546. package/src/common/agents-md-prompt-template.ts +4 -4
  547. package/src/common/coder-replace-prompt-template.ts +8 -8
  548. package/src/common/command-chat-agents.ts +1 -1
  549. package/src/common/context-files-variable.ts +1 -1
  550. package/src/common/create-skill-prompt-template.ts +4 -4
  551. package/src/common/orchestrator-chat-agent.ts +2 -2
  552. package/src/common/universal-chat-agent.ts +1 -1
  553. package/src/common/universal-prompt-template.ts +1 -1
  554. package/src/common/user-interaction-tool.spec.ts +1 -1
  555. package/src/common/workspace-search-provider-util.spec.ts +1 -1
  556. package/src/node/app-tester-agent/browser-automation-impl.ts +1 -1
  557. package/src/node/backend-module.ts +7 -7
  558. package/src/node/github-repo-service-impl.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"agents-configuration-category.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agents-configuration-category.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,aAAa,EAKb,kCAAkC,EAClC,aAAa,EACb,sBAAsB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAGhH,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC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S,CAAC,IAAI,IAAI,IAAI;IA0BtB,SAAS,CAAC,UAAU,IAAI,IAAI;IAK5B,OAAO,IAAI,IAAI;IAIf,SAAS,KAAK,UAAU,IAAI,MAAM,CAEjC;IAED,eAAe,IAAI,uBAAuB,EAAE;cAgBzB,sBAAsB,CAAC,GAAG,EAAE,4BAA4B,GAAG,KAAK,CAAC,SAAS;IAwC7F,SAAS,CAAC,mBAAmB,IAAI,YAAY,EAAE;IAc/C,SAAS,CAAC,0BAA0B,IAAI,YAAY,EAAE;IAI7C,YAAY,CAAC,GAAG,EAAE,4BAA4B,GAAG,4BAA4B;cAQnE,eAAe,IAAI,MAAM;cAIzB,gBAAgB,IAAI,KAAK,CAAC,SAAS;IAKtD,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,4BAA4B,GAAG,KAAK,CAAC,SAAS;IAgB/G,SAAS,KAAK,cAAc,IAAI,mBAAmB,CAelD;IAED,cAAc,IAAI,yBAAyB,EAAE;IAwC7C;;;;;;OAMG;IACH,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,sBAAsB,EAAE;cAO9E,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;CA8DlD"}
1
+ {"version":3,"file":"agents-configuration-category.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agents-configuration-category.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACH,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,aAAa,EAKb,kCAAkC,EAClC,aAAa,EACb,sBAAsB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,kBAAkB,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAGhH,OAAO,EAAE,0BAA0B,EAAE,MAAM,4DAA4D,CAAC;AACxG,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,E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K5B,OAAO,IAAI,IAAI;IAIf,SAAS,KAAK,UAAU,IAAI,MAAM,CAEjC;IAED,eAAe,IAAI,uBAAuB,EAAE;cAgBzB,sBAAsB,CAAC,GAAG,EAAE,4BAA4B,GAAG,KAAK,CAAC,SAAS;IAwC7F,SAAS,CAAC,mBAAmB,IAAI,YAAY,EAAE;IAc/C,SAAS,CAAC,0BAA0B,IAAI,YAAY,EAAE;IAI7C,YAAY,CAAC,GAAG,EAAE,4BAA4B,GAAG,4BAA4B;cAQnE,eAAe,IAAI,MAAM;cAIzB,gBAAgB,IAAI,KAAK,CAAC,SAAS;IAKtD,SAAS,CAAC,kBAAkB,CAAC,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,4BAA4B,GAAG,KAAK,CAAC,SAAS;IAgB/G,SAAS,KAAK,cAAc,IAAI,mBAAmB,CAelD;IAED,cAAc,IAAI,yBAAyB,EAAE;IAwC7C;;;;;;OAMG;IACH,SAAS,CAAC,uBAAuB,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,sBAAsB,EAAE;cAO9E,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;CA8DlD"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentsConfigurationCategory = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
1
+ import { __decorate } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@theia/core/shared/react/jsx-runtime";
6
3
  // *****************************************************************************
7
4
  // Copyright (C) 2026 EclipseSource and others.
8
5
  //
@@ -18,42 +15,42 @@ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
18
15
  //
19
16
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
20
17
  // *****************************************************************************
21
- const common_1 = require("@theia/ai-core/lib/common");
22
- const agent_preferences_1 = require("@theia/ai-core/lib/common/agent-preferences");
23
- const language_model_alias_1 = require("@theia/ai-core/lib/common/language-model-alias");
24
- const ai_chat_preferences_1 = require("@theia/ai-chat/lib/common/ai-chat-preferences");
25
- const common_2 = require("@theia/ai-chat/lib/common");
26
- const generic_capabilities_service_1 = require("@theia/ai-chat-ui/lib/browser/generic-capabilities-service");
27
- const chat_capabilities_service_1 = require("@theia/ai-chat-ui/lib/browser/chat-capabilities-service");
28
- const core_1 = require("@theia/core");
29
- const browser_1 = require("@theia/core/lib/browser");
30
- const inversify_1 = require("@theia/core/shared/inversify");
31
- const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
32
- const collection_category_renderer_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/renderers/collection-category-renderer");
33
- const ai_configuration_primitives_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-primitives");
34
- const ai_settings_row_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row");
35
- const ai_settings_row_service_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service");
36
- const ai_ide_preferences_1 = require("../../../common/ai-ide-preferences");
37
- const agent_detail_view_1 = require("./agent-detail-view");
38
- const prompt_snippets_configuration_category_1 = require("./prompt-snippets-configuration-category");
39
- const agent_icon_1 = require("../agent-icon");
18
+ import { AgentService, AISettingsService, AIVariableService, LanguageModelRegistry, NOTIFICATION_TYPES, NOTIFICATION_TYPE_LABELS, PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE, PromptFragmentCustomizationService, PromptService, ToolInvocationRegistry, } from '@theia/ai-core/lib/common';
19
+ import { AGENT_SETTINGS_PREF } from '@theia/ai-core/lib/common/agent-preferences';
20
+ import { LanguageModelAliasRegistry } from '@theia/ai-core/lib/common/language-model-alias';
21
+ import { DEFAULT_CHAT_AGENT_PREF } from '@theia/ai-chat/lib/common/ai-chat-preferences';
22
+ import { isChatAgent } from '@theia/ai-chat/lib/common';
23
+ import { GenericCapabilitiesService } from '@theia/ai-chat-ui/lib/browser/generic-capabilities-service';
24
+ import { ChatCapabilitiesService } from '@theia/ai-chat-ui/lib/browser/chat-capabilities-service';
25
+ import { CommandService, DisposableCollection, Emitter, ILogger, MessageService, nls } from '@theia/core';
26
+ import { codicon, HoverService, QuickInputService } from '@theia/core/lib/browser';
27
+ import { inject, injectable, named, postConstruct } from '@theia/core/shared/inversify';
28
+ import { AiConfigurationCategoryId, AiConfigurationCategoryOrder, AiConfigurationTools } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category';
29
+ import { CollectionCategoryRenderer } from '@theia/ai-core-ui/lib/browser/ai-configuration/renderers/collection-category-renderer';
30
+ import { AiConfigurationSection } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-primitives';
31
+ import { AiSettingsRow } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row';
32
+ import { AiSettingsRowService } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service';
33
+ import { PREFERENCE_NAME_AGENT_MODE_ENABLED, PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST } from '../../../common/ai-ide-preferences.js';
34
+ import { AgentDetailView } from './agent-detail-view.js';
35
+ import { PromptSnippetsConfiguration } from './prompt-snippets-configuration-category.js';
36
+ import { getAgentIconClass } from '../agent-icon.js';
40
37
  /**
41
38
  * The Agents category: a `collection` contributed onto the shared primitives.
42
39
  * Owns the agent-related service logic (previously in `AIAgentConfigurationWidget`)
43
40
  * and delegates the per-item detail to {@link AgentDetailView}.
44
41
  */
45
- let AgentsConfigurationCategory = class AgentsConfigurationCategory extends collection_category_renderer_1.CollectionCategoryRenderer {
42
+ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends CollectionCategoryRenderer {
46
43
  constructor() {
47
44
  super(...arguments);
48
- this.id = ai_configuration_category_1.AiConfigurationCategoryId.AGENTS;
49
- this.label = core_1.nls.localizeByDefault('Agents');
50
- this.description = core_1.nls.localize('theia/ai/ide/agentsConfiguration/description', 'The AI agents available in the IDE. Open an agent to configure its prompts, model and capabilities.');
51
- this.iconClass = (0, browser_1.codicon)('copilot');
52
- this.order = ai_configuration_category_1.AiConfigurationCategoryOrder.AGENTS;
45
+ this.id = AiConfigurationCategoryId.AGENTS;
46
+ this.label = nls.localizeByDefault('Agents');
47
+ this.description = nls.localize('theia/ai/ide/agentsConfiguration/description', 'The AI agents available in the IDE. Open an agent to configure its prompts, model and capabilities.');
48
+ this.iconClass = codicon('copilot');
49
+ this.order = AiConfigurationCategoryOrder.AGENTS;
53
50
  this.kind = 'collection';
54
- this.onDidChangeEmitter = new core_1.Emitter();
51
+ this.onDidChangeEmitter = new Emitter();
55
52
  this.onDidChange = this.onDidChangeEmitter.event;
56
- this.toDispose = new core_1.DisposableCollection(this.onDidChangeEmitter);
53
+ this.toDispose = new DisposableCollection(this.onDidChangeEmitter);
57
54
  this.languageModelAliases = [];
58
55
  /** Bumped on every upstream change so the item-detail view re-runs its async load. */
59
56
  this.revision = 0;
@@ -62,16 +59,16 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
62
59
  return this;
63
60
  }
64
61
  get overviewListTitle() {
65
- return core_1.nls.localizeByDefault('Agents');
62
+ return nls.localizeByDefault('Agents');
66
63
  }
67
64
  getOwnedPreferenceIds() {
68
65
  return [
69
- ai_chat_preferences_1.DEFAULT_CHAT_AGENT_PREF,
70
- common_1.PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE,
71
- ai_ide_preferences_1.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST,
72
- ai_ide_preferences_1.PREFERENCE_NAME_AGENT_MODE_ENABLED,
66
+ DEFAULT_CHAT_AGENT_PREF,
67
+ PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE,
68
+ PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST,
69
+ PREFERENCE_NAME_AGENT_MODE_ENABLED,
73
70
  // Per-agent settings storage; edited through the agent detail pages, not as a raw row.
74
- agent_preferences_1.AGENT_SETTINGS_PREF
71
+ AGENT_SETTINGS_PREF
75
72
  ];
76
73
  }
77
74
  get search() {
@@ -118,42 +115,42 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
118
115
  return {
119
116
  id: agent.id,
120
117
  label: agent.name,
121
- iconClass: (0, agent_icon_1.getAgentIconClass)(agent),
118
+ iconClass: getAgentIconClass(agent),
122
119
  description: agent.description,
123
120
  status: {
124
121
  kind: enabled ? 'on' : 'off',
125
- label: enabled ? core_1.nls.localizeByDefault('Enabled') : core_1.nls.localizeByDefault('Disabled')
122
+ label: enabled ? nls.localizeByDefault('Enabled') : nls.localizeByDefault('Disabled')
126
123
  }
127
124
  };
128
125
  });
129
126
  }
130
127
  renderCategorySettings(ctx) {
131
- return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(ai_configuration_primitives_1.AiConfigurationSection, { title: core_1.nls.localize('theia/ai/ide/agentConfiguration/behavior', 'Behavior'), children: [(0, jsx_runtime_1.jsx)(ai_settings_row_1.AiSettingsRow, { service: this.settingsRowService, preferenceId: ai_ide_preferences_1.PREFERENCE_NAME_AGENT_MODE_ENABLED, label: core_1.nls.localize('theia/ai/ide/agentConfiguration/agentMode', 'Agent mode for Coder'), scope: ctx.scope, control: { type: 'boolean' }, onDidChange: ctx.update }), (0, jsx_runtime_1.jsx)(ai_settings_row_1.AiSettingsRow, { service: this.settingsRowService, preferenceId: ai_ide_preferences_1.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST, label: core_1.nls.localize('theia/ai/ide/agentConfiguration/orchestratorExclude', 'Agents hidden from the orchestrator'), scope: ctx.scope, control: { type: 'array', placeholder: core_1.nls.localize('theia/ai/ide/agentConfiguration/orchestratorExcludePlaceholder', 'Add agent ID...') }, onDidChange: ctx.update })] }), (0, jsx_runtime_1.jsxs)(ai_configuration_primitives_1.AiConfigurationSection, { title: core_1.nls.localize('theia/ai/ide/agentConfiguration/defaults', 'Defaults'), children: [(0, jsx_runtime_1.jsx)(ai_settings_row_1.AiSettingsRow, { service: this.settingsRowService, preferenceId: ai_chat_preferences_1.DEFAULT_CHAT_AGENT_PREF, label: core_1.nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgent', 'Default Chat Agent'), scope: ctx.scope, control: { type: 'select', options: this.getChatAgentOptions() }, onDidChange: ctx.update }), (0, jsx_runtime_1.jsx)(ai_settings_row_1.AiSettingsRow, { service: this.settingsRowService, preferenceId: common_1.PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE, scope: ctx.scope, control: { type: 'select', options: this.getNotificationTypeOptions() }, onDidChange: ctx.update })] })] });
128
+ return _jsxs(_Fragment, { children: [_jsxs(AiConfigurationSection, { title: nls.localize('theia/ai/ide/agentConfiguration/behavior', 'Behavior'), children: [_jsx(AiSettingsRow, { service: this.settingsRowService, preferenceId: PREFERENCE_NAME_AGENT_MODE_ENABLED, label: nls.localize('theia/ai/ide/agentConfiguration/agentMode', 'Agent mode for Coder'), scope: ctx.scope, control: { type: 'boolean' }, onDidChange: ctx.update }), _jsx(AiSettingsRow, { service: this.settingsRowService, preferenceId: PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST, label: nls.localize('theia/ai/ide/agentConfiguration/orchestratorExclude', 'Agents hidden from the orchestrator'), scope: ctx.scope, control: { type: 'array', placeholder: nls.localize('theia/ai/ide/agentConfiguration/orchestratorExcludePlaceholder', 'Add agent ID...') }, onDidChange: ctx.update })] }), _jsxs(AiConfigurationSection, { title: nls.localize('theia/ai/ide/agentConfiguration/defaults', 'Defaults'), children: [_jsx(AiSettingsRow, { service: this.settingsRowService, preferenceId: DEFAULT_CHAT_AGENT_PREF, label: nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgent', 'Default Chat Agent'), scope: ctx.scope, control: { type: 'select', options: this.getChatAgentOptions() }, onDidChange: ctx.update }), _jsx(AiSettingsRow, { service: this.settingsRowService, preferenceId: PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE, scope: ctx.scope, control: { type: 'select', options: this.getNotificationTypeOptions() }, onDidChange: ctx.update })] })] });
132
129
  }
133
130
  getChatAgentOptions() {
134
131
  // Leading empty entry so the (optional) preference can show and select its unset state, where Theia's
135
132
  // built-in defaults apply. Without it the select would fall back to showing the first agent when unset.
136
133
  const none = {
137
134
  value: '',
138
- label: core_1.nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgentNone', 'Built-in default'),
139
- description: core_1.nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgentNoneDescription', 'No explicit default; Theia picks the default Chat Agent.')
135
+ label: nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgentNone', 'Built-in default'),
136
+ description: nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgentNoneDescription', 'No explicit default; Theia picks the default Chat Agent.')
140
137
  };
141
138
  return [none, ...this.agentService.getAllAgents()
142
- .filter(agent => (0, common_2.isChatAgent)(agent))
139
+ .filter(agent => isChatAgent(agent))
143
140
  .map(agent => ({ value: agent.id, label: agent.name }))];
144
141
  }
145
142
  getNotificationTypeOptions() {
146
- return common_1.NOTIFICATION_TYPES.map(type => ({ value: type, label: common_1.NOTIFICATION_TYPE_LABELS[type] }));
143
+ return NOTIFICATION_TYPES.map(type => ({ value: type, label: NOTIFICATION_TYPE_LABELS[type] }));
147
144
  }
148
145
  getAddAction(ctx) {
149
146
  return {
150
- label: core_1.nls.localize('theia/ai/core/agentConfiguration/addCustomAgent', 'Add Custom Agent'),
151
- iconClass: (0, browser_1.codicon)('add'),
147
+ label: nls.localize('theia/ai/core/agentConfiguration/addCustomAgent', 'Add Custom Agent'),
148
+ iconClass: codicon('add'),
152
149
  run: () => this.addCustomAgent()
153
150
  };
154
151
  }
155
152
  getEmptyMessage() {
156
- return core_1.nls.localize('theia/ai/ide/agentConfiguration/noAgents', 'No agents are available.');
153
+ return nls.localize('theia/ai/ide/agentConfiguration/noAgents', 'No agents are available.');
157
154
  }
158
155
  renderItemHeader() {
159
156
  // The detail view renders its own header (with the enable / show-in-chat toggles).
@@ -164,7 +161,7 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
164
161
  if (!agent) {
165
162
  return undefined;
166
163
  }
167
- return (0, jsx_runtime_1.jsx)(agent_detail_view_1.AgentDetailView, { agent: agent, services: this.detailServices, languageModels: this.languageModels, languageModelAliases: this.languageModelAliases, revision: this.revision, onOpenPromptSnippet: fragmentId => ctx.navigate(prompt_snippets_configuration_category_1.PromptSnippetsConfiguration.selectionFor(fragmentId)), onOpenTool: toolName => ctx.navigate(ai_configuration_category_1.AiConfigurationTools.selectionFor(toolName)) });
164
+ return _jsx(AgentDetailView, { agent: agent, services: this.detailServices, languageModels: this.languageModels, languageModelAliases: this.languageModelAliases, revision: this.revision, onOpenPromptSnippet: fragmentId => ctx.navigate(PromptSnippetsConfiguration.selectionFor(fragmentId)), onOpenTool: toolName => ctx.navigate(AiConfigurationTools.selectionFor(toolName)) });
168
165
  }
169
166
  get detailServices() {
170
167
  return {
@@ -183,33 +180,33 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
183
180
  };
184
181
  }
185
182
  getSearchItems() {
186
- const settingLabel = core_1.nls.localizeByDefault('Setting');
183
+ const settingLabel = nls.localizeByDefault('Setting');
187
184
  const items = [{
188
- label: core_1.nls.localize('theia/ai/ide/agentConfiguration/agentMode', 'Agent mode for Coder'),
185
+ label: nls.localize('theia/ai/ide/agentConfiguration/agentMode', 'Agent mode for Coder'),
189
186
  typeLabel: settingLabel,
190
187
  categoryId: this.id,
191
188
  target: { categoryId: this.id },
192
- keywords: ai_ide_preferences_1.PREFERENCE_NAME_AGENT_MODE_ENABLED
189
+ keywords: PREFERENCE_NAME_AGENT_MODE_ENABLED
193
190
  }, {
194
- label: core_1.nls.localize('theia/ai/ide/agentConfiguration/orchestratorExclude', 'Agents hidden from the orchestrator'),
191
+ label: nls.localize('theia/ai/ide/agentConfiguration/orchestratorExclude', 'Agents hidden from the orchestrator'),
195
192
  typeLabel: settingLabel,
196
193
  categoryId: this.id,
197
- target: { categoryId: this.id, highlight: { rowId: ai_ide_preferences_1.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST } },
198
- keywords: ai_ide_preferences_1.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST
194
+ target: { categoryId: this.id, highlight: { rowId: PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST } },
195
+ keywords: PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST
199
196
  }, {
200
- label: core_1.nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgent', 'Default Chat Agent'),
197
+ label: nls.localize('theia/ai/ide/agentConfiguration/defaultChatAgent', 'Default Chat Agent'),
201
198
  typeLabel: settingLabel,
202
199
  categoryId: this.id,
203
- target: { categoryId: this.id, highlight: { rowId: ai_chat_preferences_1.DEFAULT_CHAT_AGENT_PREF } },
204
- keywords: ai_chat_preferences_1.DEFAULT_CHAT_AGENT_PREF
200
+ target: { categoryId: this.id, highlight: { rowId: DEFAULT_CHAT_AGENT_PREF } },
201
+ keywords: DEFAULT_CHAT_AGENT_PREF
205
202
  }, {
206
- label: core_1.nls.localize('theia/ai/core/defaultNotification/title', 'Default Notification Type'),
203
+ label: nls.localize('theia/ai/core/defaultNotification/title', 'Default Notification Type'),
207
204
  typeLabel: settingLabel,
208
205
  categoryId: this.id,
209
- target: { categoryId: this.id, highlight: { rowId: common_1.PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE } },
210
- keywords: common_1.PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE
206
+ target: { categoryId: this.id, highlight: { rowId: PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE } },
207
+ keywords: PREFERENCE_NAME_DEFAULT_NOTIFICATION_TYPE
211
208
  }];
212
- const agentTypeLabel = core_1.nls.localizeByDefault('Agent');
209
+ const agentTypeLabel = nls.localizeByDefault('Agent');
213
210
  for (const agent of this.agentService.getAllAgents()) {
214
211
  items.push({
215
212
  label: agent.name,
@@ -238,15 +235,15 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
238
235
  const allLocations = await this.promptFragmentCustomizationService.getCustomAgentsLocations();
239
236
  const scopeOptions = this.selectAgentScopeOptions(allLocations);
240
237
  if (scopeOptions.length === 0) {
241
- this.messageService.warn(core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/noLocation', 'Cannot create a custom agent: no prompt-templates location is configured. Set a global or workspace prompt-templates folder and try again.'));
238
+ this.messageService.warn(nls.localize('theia/ai/ide/agentConfiguration/newAgent/noLocation', 'Cannot create a custom agent: no prompt-templates location is configured. Set a global or workspace prompt-templates folder and try again.'));
242
239
  return;
243
240
  }
244
241
  let chosen = scopeOptions[0];
245
242
  if (scopeOptions.length > 1) {
246
243
  chosen = await new Promise((resolve, reject) => {
247
244
  const quickPick = this.quickInputService.createQuickPick();
248
- quickPick.title = core_1.nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/title', 'Select location for the new custom agent');
249
- quickPick.placeholder = core_1.nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/placeholder', 'Choose where to create the agents/<id>/agent.md file');
245
+ quickPick.title = nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/title', 'Select location for the new custom agent');
246
+ quickPick.placeholder = nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/placeholder', 'Choose where to create the agents/<id>/agent.md file');
250
247
  quickPick.items = scopeOptions.map(opt => ({
251
248
  label: opt.scopeDir.path.toString(),
252
249
  description: opt.agentsDir.path.toString(),
@@ -267,12 +264,12 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
267
264
  }).catch(() => undefined) ?? scopeOptions[0];
268
265
  }
269
266
  const id = await this.quickInputService.input({
270
- title: core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/idTitle', 'New custom agent'),
271
- prompt: core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/idPrompt', 'Agent id (used as folder name under agents/)'),
267
+ title: nls.localize('theia/ai/ide/agentConfiguration/newAgent/idTitle', 'New custom agent'),
268
+ prompt: nls.localize('theia/ai/ide/agentConfiguration/newAgent/idPrompt', 'Agent id (used as folder name under agents/)'),
272
269
  placeHolder: 'my-agent',
273
270
  validateInput: async (value) => /^[A-Za-z0-9._-]+$/.test(value)
274
271
  ? undefined
275
- : core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/idInvalid', 'Use letters, digits, dash, underscore, or dot only.')
272
+ : nls.localize('theia/ai/ide/agentConfiguration/newAgent/idInvalid', 'Use letters, digits, dash, underscore, or dot only.')
276
273
  });
277
274
  if (!id) {
278
275
  return;
@@ -281,90 +278,71 @@ let AgentsConfigurationCategory = class AgentsConfigurationCategory extends coll
281
278
  await this.promptFragmentCustomizationService.createCustomAgentFile(chosen.scopeDir, {
282
279
  id,
283
280
  name: id,
284
- description: core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/defaultDescription', 'Custom agent. Edit this description in agent.md.'),
285
- prompt: core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/defaultPrompt', 'You are a helpful agent. Adjust this prompt to fit your needs.'),
281
+ description: nls.localize('theia/ai/ide/agentConfiguration/newAgent/defaultDescription', 'Custom agent. Edit this description in agent.md.'),
282
+ prompt: nls.localize('theia/ai/ide/agentConfiguration/newAgent/defaultPrompt', 'You are a helpful agent. Adjust this prompt to fit your needs.'),
286
283
  defaultLLM: 'default/universal',
287
284
  showInChat: true
288
285
  });
289
286
  }
290
287
  catch (error) {
291
- this.messageService.error(core_1.nls.localize('theia/ai/ide/agentConfiguration/newAgent/createFailed', 'Could not create the custom agent "{0}": {1}', id, error instanceof Error ? error.message : String(error)));
288
+ this.messageService.error(nls.localize('theia/ai/ide/agentConfiguration/newAgent/createFailed', 'Could not create the custom agent "{0}": {1}', id, error instanceof Error ? error.message : String(error)));
292
289
  }
293
290
  }
294
291
  };
295
- exports.AgentsConfigurationCategory = AgentsConfigurationCategory;
296
- tslib_1.__decorate([
297
- (0, inversify_1.inject)(common_1.AgentService),
298
- tslib_1.__metadata("design:type", Object)
292
+ __decorate([
293
+ inject(AgentService)
299
294
  ], AgentsConfigurationCategory.prototype, "agentService", void 0);
300
- tslib_1.__decorate([
301
- (0, inversify_1.inject)(common_1.LanguageModelRegistry),
302
- tslib_1.__metadata("design:type", Object)
295
+ __decorate([
296
+ inject(LanguageModelRegistry)
303
297
  ], AgentsConfigurationCategory.prototype, "languageModelRegistry", void 0);
304
- tslib_1.__decorate([
305
- (0, inversify_1.inject)(common_1.PromptFragmentCustomizationService),
306
- tslib_1.__metadata("design:type", Object)
298
+ __decorate([
299
+ inject(PromptFragmentCustomizationService)
307
300
  ], AgentsConfigurationCategory.prototype, "promptFragmentCustomizationService", void 0);
308
- tslib_1.__decorate([
309
- (0, inversify_1.inject)(language_model_alias_1.LanguageModelAliasRegistry),
310
- tslib_1.__metadata("design:type", Object)
301
+ __decorate([
302
+ inject(LanguageModelAliasRegistry)
311
303
  ], AgentsConfigurationCategory.prototype, "languageModelAliasRegistry", void 0);
312
- tslib_1.__decorate([
313
- (0, inversify_1.inject)(common_1.AISettingsService),
314
- tslib_1.__metadata("design:type", Object)
304
+ __decorate([
305
+ inject(AISettingsService)
315
306
  ], AgentsConfigurationCategory.prototype, "aiSettingsService", void 0);
316
- tslib_1.__decorate([
317
- (0, inversify_1.inject)(common_1.AIVariableService),
318
- tslib_1.__metadata("design:type", Object)
307
+ __decorate([
308
+ inject(AIVariableService)
319
309
  ], AgentsConfigurationCategory.prototype, "variableService", void 0);
320
- tslib_1.__decorate([
321
- (0, inversify_1.inject)(common_1.PromptService),
322
- tslib_1.__metadata("design:type", Object)
310
+ __decorate([
311
+ inject(PromptService)
323
312
  ], AgentsConfigurationCategory.prototype, "promptService", void 0);
324
- tslib_1.__decorate([
325
- (0, inversify_1.inject)(browser_1.QuickInputService),
326
- tslib_1.__metadata("design:type", Object)
313
+ __decorate([
314
+ inject(QuickInputService)
327
315
  ], AgentsConfigurationCategory.prototype, "quickInputService", void 0);
328
- tslib_1.__decorate([
329
- (0, inversify_1.inject)(core_1.MessageService),
330
- tslib_1.__metadata("design:type", core_1.MessageService)
316
+ __decorate([
317
+ inject(MessageService)
331
318
  ], AgentsConfigurationCategory.prototype, "messageService", void 0);
332
- tslib_1.__decorate([
333
- (0, inversify_1.inject)(ai_settings_row_service_1.AiSettingsRowService),
334
- tslib_1.__metadata("design:type", ai_settings_row_service_1.AiSettingsRowService)
319
+ __decorate([
320
+ inject(AiSettingsRowService)
335
321
  ], AgentsConfigurationCategory.prototype, "settingsRowService", void 0);
336
- tslib_1.__decorate([
337
- (0, inversify_1.inject)(common_1.ToolInvocationRegistry),
338
- tslib_1.__metadata("design:type", Object)
322
+ __decorate([
323
+ inject(ToolInvocationRegistry)
339
324
  ], AgentsConfigurationCategory.prototype, "toolInvocationRegistry", void 0);
340
- tslib_1.__decorate([
341
- (0, inversify_1.inject)(core_1.CommandService),
342
- tslib_1.__metadata("design:type", Object)
325
+ __decorate([
326
+ inject(CommandService)
343
327
  ], AgentsConfigurationCategory.prototype, "commandService", void 0);
344
- tslib_1.__decorate([
345
- (0, inversify_1.inject)(core_1.ILogger),
346
- (0, inversify_1.named)('ai-ide:AgentsConfigurationCategory'),
347
- tslib_1.__metadata("design:type", Object)
328
+ __decorate([
329
+ inject(ILogger),
330
+ named('ai-ide:AgentsConfigurationCategory')
348
331
  ], AgentsConfigurationCategory.prototype, "logger", void 0);
349
- tslib_1.__decorate([
350
- (0, inversify_1.inject)(generic_capabilities_service_1.GenericCapabilitiesService),
351
- tslib_1.__metadata("design:type", Object)
332
+ __decorate([
333
+ inject(GenericCapabilitiesService)
352
334
  ], AgentsConfigurationCategory.prototype, "genericCapabilitiesService", void 0);
353
- tslib_1.__decorate([
354
- (0, inversify_1.inject)(chat_capabilities_service_1.ChatCapabilitiesService),
355
- tslib_1.__metadata("design:type", Object)
335
+ __decorate([
336
+ inject(ChatCapabilitiesService)
356
337
  ], AgentsConfigurationCategory.prototype, "chatCapabilitiesService", void 0);
357
- tslib_1.__decorate([
358
- (0, inversify_1.inject)(browser_1.HoverService),
359
- tslib_1.__metadata("design:type", browser_1.HoverService)
338
+ __decorate([
339
+ inject(HoverService)
360
340
  ], AgentsConfigurationCategory.prototype, "hoverService", void 0);
361
- tslib_1.__decorate([
362
- (0, inversify_1.postConstruct)(),
363
- tslib_1.__metadata("design:type", Function),
364
- tslib_1.__metadata("design:paramtypes", []),
365
- tslib_1.__metadata("design:returntype", void 0)
341
+ __decorate([
342
+ postConstruct()
366
343
  ], AgentsConfigurationCategory.prototype, "init", null);
367
- exports.AgentsConfigurationCategory = AgentsConfigurationCategory = tslib_1.__decorate([
368
- (0, inversify_1.injectable)()
344
+ AgentsConfigurationCategory = __decorate([
345
+ injectable()
369
346
  ], AgentsConfigurationCategory);
347
+ export { AgentsConfigurationCategory };
370
348
  //# sourceMappingURL=agents-configuration-category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents-configuration-category.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agents-configuration-category.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,sDAcmC;AACnC,mFAAkF;AAClF,yFAAgH;AAChH,uFAAwF;AACxF,sDAAwD;AACxD,6GAAwG;AACxG,uGAAkG;AAClG,sCAAsH;AACtH,qDAAmF;AAEnF,4DAAwF;AAExF,wHASkF;AAClF,wIAAiK;AACjK,uIAA+H;AAC/H,+GAA0G;AAC1G,+HAAyH;AACzH,2EAAqI;AACrI,2DAAsD;AACtD,qGAAuF;AAEvF,8CAAkD;AAQlD;;;;GAIG;AAEI,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;IADlB,IAAA,kBAAM,EAAC,2CAAkC,CAAC;;uFAC+C;AAGvE;IADlB,IAAA,kBAAM,EAAC,iDAA0B,CAAC;;+EACuC;AAGvD;IADlB,IAAA,kBAAM,EAAC,0BAAiB,CAAC;;sEAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,0BAAiB,CAAC;;oEAC4B;AAGnC;IADlB,IAAA,kBAAM,EAAC,sBAAa,CAAC;;kEAC0B;AAG7B;IADlB,IAAA,kBAAM,EAAC,2BAAiB,CAAC;;sEAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,qBAAc,CAAC;sCACY,qBAAc;mEAAC;AAG/B;IADlB,IAAA,kBAAM,EAAC,8CAAoB,CAAC;sCACU,8CAAoB;uEAAC;AAGzC;IADlB,IAAA,kBAAM,EAAC,+BAAsB,CAAC;;2EACmC;AAG/C;IADlB,IAAA,kBAAM,EAAC,qBAAc,CAAC;;mEAC2B;AAG/B;IADlB,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,oCAAoC,CAAC;;2DAC1B;AAGhB;IADlB,IAAA,kBAAM,EAAC,yDAA0B,CAAC;;+EACuC;AAGvD;IADlB,IAAA,kBAAM,EAAC,mDAAuB,CAAC;;4EACoC;AAGjD;IADlB,IAAA,kBAAM,EAAC,sBAAY,CAAC;sCACY,sBAAY;iEAAC;AAoCpC;IADT,IAAA,yBAAa,GAAE;;;;uDAyBf;sCApHQ,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CAmXvC"}
1
+ {"version":3,"file":"agents-configuration-category.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agents-configuration-category.tsx"],"names":[],"mappings":";;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AAC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ADlB,MAAM,CAAC,qBAAqB,CAAC;0EAC0C;AAGrD;IADlB,MAAM,CAAC,kCAAkC,CAAC;uFAC+C;AAGvE;IADlB,MAAM,CAAC,0BAA0B,CAAC;+EACuC;AAGvD;IADlB,MAAM,CAAC,iBAAiB,CAAC;sEAC8B;AAGrC;IADlB,MAAM,CAAC,iBAAiB,CAAC;oEAC4B;AAGnC;IADlB,MAAM,CAAC,aAAa,CAAC;kEAC0B;AAG7B;IADlB,MAAM,CAAC,iBAAiB,CAAC;sEAC8B;AAGrC;IADlB,MAAM,CAAC,cAAc,CAAC;mEAC2B;AAG/B;IADlB,MAAM,CAAC,oBAAoB,CAAC;uEAC+B;AAGzC;IADlB,MAAM,CAAC,sBAAsB,CAAC;2EACmC;AAG/C;IADlB,MAAM,CAAC,cAAc,CAAC;mEAC2B;AAG/B;IADlB,MAAM,CAAC,OAAO,CAAC;IAAE,KAAK,CAAC,oCAAoC,CAAC;2DAC1B;AAGhB;IADlB,MAAM,CAAC,0BAA0B,CAAC;+EACuC;AAGvD;IADlB,MAAM,CAAC,uBAAuB,CAAC;4EACoC;AAGjD;IADlB,MAAM,CAAC,YAAY,CAAC;iEACyB;AAoCpC;IADT,aAAa,EAAE;uDAyBf;AApHQ,2BAA2B;IADvC,UAAU,EAAE;GACA,2BAA2B,CAmXvC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,22 +13,21 @@
14
13
  //
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const jsdom_1 = require("@theia/core/lib/browser/test/jsdom");
19
- let disableJSDOM = (0, jsdom_1.enableJSDOM)();
20
- const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
21
- frontend_application_config_provider_1.FrontendApplicationConfigProvider.set({});
22
- const chai_1 = require("chai");
23
- const core_1 = require("@theia/core");
24
- const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
25
- const agents_configuration_category_1 = require("./agents-configuration-category");
16
+ import { enableJSDOM } from '@theia/core/lib/browser/test/jsdom';
17
+ let disableJSDOM = enableJSDOM();
18
+ import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
19
+ FrontendApplicationConfigProvider.set({});
20
+ import { expect } from 'chai';
21
+ import { URI } from '@theia/core';
22
+ import { AiConfigurationCategoryId } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category';
23
+ import { AgentsConfigurationCategory } from './agents-configuration-category.js';
26
24
  disableJSDOM();
27
25
  /** Minimal agent fixture; only the fields exercised by the category are populated. */
28
26
  function agent(id, name, description = '') {
29
27
  return { id, name, description };
30
28
  }
31
29
  function createCategory(agents, enabledIds) {
32
- const category = new agents_configuration_category_1.AgentsConfigurationCategory();
30
+ const category = new AgentsConfigurationCategory();
33
31
  const agentService = {
34
32
  getAllAgents: () => agents,
35
33
  isEnabled: (agentId) => enabledIds.has(agentId)
@@ -39,24 +37,24 @@ function createCategory(agents, enabledIds) {
39
37
  return category;
40
38
  }
41
39
  describe('AgentsConfigurationCategory', () => {
42
- before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
40
+ before(() => disableJSDOM = enableJSDOM());
43
41
  after(() => disableJSDOM());
44
42
  it('declares the agents collection metadata', () => {
45
43
  const category = createCategory([], new Set());
46
- (0, chai_1.expect)(category.id).to.equal(ai_configuration_category_1.AiConfigurationCategoryId.AGENTS);
47
- (0, chai_1.expect)(category.kind).to.equal('collection');
48
- (0, chai_1.expect)(category.renderer).to.equal(category);
49
- (0, chai_1.expect)(category.search).to.equal(category);
44
+ expect(category.id).to.equal(AiConfigurationCategoryId.AGENTS);
45
+ expect(category.kind).to.equal('collection');
46
+ expect(category.renderer).to.equal(category);
47
+ expect(category.search).to.equal(category);
50
48
  });
51
49
  describe('getTreeChildren', () => {
52
50
  it('maps agents to tree items with an enabled/disabled status', () => {
53
51
  const category = createCategory([agent('a', 'Alpha', 'first'), agent('b', 'Beta')], new Set(['a']));
54
52
  const children = category.getTreeChildren();
55
- (0, chai_1.expect)(children.map(c => c.id)).to.deep.equal(['a', 'b']);
56
- (0, chai_1.expect)(children[0].label).to.equal('Alpha');
57
- (0, chai_1.expect)(children[0].description).to.equal('first');
58
- (0, chai_1.expect)(children[0].status?.kind).to.equal('on');
59
- (0, chai_1.expect)(children[1].status?.kind).to.equal('off');
53
+ expect(children.map(c => c.id)).to.deep.equal(['a', 'b']);
54
+ expect(children[0].label).to.equal('Alpha');
55
+ expect(children[0].description).to.equal('first');
56
+ expect(children[0].status?.kind).to.equal('on');
57
+ expect(children[1].status?.kind).to.equal('off');
60
58
  });
61
59
  });
62
60
  describe('getSearchItems', () => {
@@ -66,33 +64,33 @@ describe('AgentsConfigurationCategory', () => {
66
64
  // Category-level settings target the category itself; agent items carry an itemId.
67
65
  const settings = items.filter(item => item.target.itemId === undefined);
68
66
  const agentItems = items.filter(item => item.target.itemId !== undefined);
69
- (0, chai_1.expect)(agentItems).to.have.lengthOf(1);
70
- (0, chai_1.expect)(settings.some(setting => (setting.keywords ?? '').includes('ai-features.chat.defaultChatAgent'))).to.equal(true);
71
- (0, chai_1.expect)(settings.every(setting => setting.target.categoryId === ai_configuration_category_1.AiConfigurationCategoryId.AGENTS)).to.equal(true);
67
+ expect(agentItems).to.have.lengthOf(1);
68
+ expect(settings.some(setting => (setting.keywords ?? '').includes('ai-features.chat.defaultChatAgent'))).to.equal(true);
69
+ expect(settings.every(setting => setting.target.categoryId === AiConfigurationCategoryId.AGENTS)).to.equal(true);
72
70
  const agentItem = agentItems[0];
73
- (0, chai_1.expect)(agentItem.label).to.equal('Alpha');
74
- (0, chai_1.expect)(agentItem.target).to.deep.equal({ categoryId: ai_configuration_category_1.AiConfigurationCategoryId.AGENTS, itemId: 'a' });
75
- (0, chai_1.expect)(agentItem.keywords).to.contain('a').and.to.contain('the alpha agent');
71
+ expect(agentItem.label).to.equal('Alpha');
72
+ expect(agentItem.target).to.deep.equal({ categoryId: AiConfigurationCategoryId.AGENTS, itemId: 'a' });
73
+ expect(agentItem.keywords).to.contain('a').and.to.contain('the alpha agent');
76
74
  });
77
75
  });
78
76
  describe('selectAgentScopeOptions', () => {
79
- const agentsDir = (scope) => ({ uri: new core_1.URI(`file:///ws/${scope}`).resolve('agents'), exists: false, kind: 'agents-dir' });
80
- const existingAgentsDir = (scope) => ({ uri: new core_1.URI(`file:///ws/${scope}`).resolve('agents'), exists: true, kind: 'agents-dir' });
81
- const legacyYaml = (scope) => ({ uri: new core_1.URI(`file:///ws/${scope}`).resolve('customAgents.yml'), exists: false, kind: 'legacy-yaml' });
77
+ const agentsDir = (scope) => ({ uri: new URI(`file:///ws/${scope}`).resolve('agents'), exists: false, kind: 'agents-dir' });
78
+ const existingAgentsDir = (scope) => ({ uri: new URI(`file:///ws/${scope}`).resolve('agents'), exists: true, kind: 'agents-dir' });
79
+ const legacyYaml = (scope) => ({ uri: new URI(`file:///ws/${scope}`).resolve('customAgents.yml'), exists: false, kind: 'legacy-yaml' });
82
80
  const select = (locations) =>
83
81
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
- new agents_configuration_category_1.AgentsConfigurationCategory().selectAgentScopeOptions(locations).map((o) => o.scopeDir.path.toString());
82
+ new AgentsConfigurationCategory().selectAgentScopeOptions(locations).map((o) => o.scopeDir.path.toString());
85
83
  it('keeps only the default .agents scope when no scope has an agents folder', () => {
86
84
  const locations = [agentsDir('.agents'), legacyYaml('.agents'), agentsDir('.prompts'), legacyYaml('.prompts')];
87
- (0, chai_1.expect)(select(locations)).to.deep.equal(['/ws/.agents']);
85
+ expect(select(locations)).to.deep.equal(['/ws/.agents']);
88
86
  });
89
87
  it('keeps a non-default scope that already contains an agents folder', () => {
90
88
  const locations = [agentsDir('.agents'), legacyYaml('.agents'), existingAgentsDir('.prompts'), legacyYaml('.prompts')];
91
- (0, chai_1.expect)(select(locations)).to.deep.equal(['/ws/.agents', '/ws/.prompts']);
89
+ expect(select(locations)).to.deep.equal(['/ws/.agents', '/ws/.prompts']);
92
90
  });
93
91
  it('ignores legacy customAgents.yml entries', () => {
94
92
  const locations = [agentsDir('.agents'), legacyYaml('.agents')];
95
- (0, chai_1.expect)(select(locations)).to.deep.equal(['/ws/.agents']);
93
+ expect(select(locations)).to.deep.equal(['/ws/.agents']);
96
94
  });
97
95
  });
98
96
  });