@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,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,13 +13,12 @@
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 ai_configuration_detail_widget_1 = require("./ai-configuration-detail-widget");
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 { AiConfigurationDetailWidget } from './ai-configuration-detail-widget.js';
24
22
  disableJSDOM();
25
23
  /**
26
24
  * Exercises the selection → detail dispatch logic of {@link AiConfigurationDetailWidget#renderBody}
@@ -28,10 +26,10 @@ disableJSDOM();
28
26
  * so we invoke it on a prototype instance without spinning up the DI container or a DOM.
29
27
  */
30
28
  describe('AiConfigurationDetailWidget dispatch', () => {
31
- before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
29
+ before(() => disableJSDOM = enableJSDOM());
32
30
  after(() => disableJSDOM());
33
31
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
34
- const widget = Object.create(ai_configuration_detail_widget_1.AiConfigurationDetailWidget.prototype);
32
+ const widget = Object.create(AiConfigurationDetailWidget.prototype);
35
33
  const ctx = {};
36
34
  function category(kind, renderer) {
37
35
  return { id: 'c', label: 'C', iconClass: 'codicon codicon-gear', kind, renderer };
@@ -50,31 +48,31 @@ describe('AiConfigurationDetailWidget dispatch', () => {
50
48
  renderItemDetail: itemId => `detail:${itemId}`,
51
49
  renderOverview: () => 'overview'
52
50
  });
53
- (0, chai_1.expect)(renderBody(cat, { categoryId: 'c', itemId: 'a' })).to.equal('detail:a');
51
+ expect(renderBody(cat, { categoryId: 'c', itemId: 'a' })).to.equal('detail:a');
54
52
  });
55
53
  it('falls back to the overview when an item is selected but the renderer has no item detail', () => {
56
54
  const cat = category('collection', { renderOverview: () => 'overview' });
57
- (0, chai_1.expect)(contentOf(cat, { categoryId: 'c', itemId: 'a' })).to.equal('overview');
55
+ expect(contentOf(cat, { categoryId: 'c', itemId: 'a' })).to.equal('overview');
58
56
  });
59
57
  it('renders the overview for a collection without an item selection', () => {
60
58
  const cat = category('collection', { renderOverview: () => 'overview', renderPage: () => 'page' });
61
- (0, chai_1.expect)(contentOf(cat, { categoryId: 'c' })).to.equal('overview');
59
+ expect(contentOf(cat, { categoryId: 'c' })).to.equal('overview');
62
60
  });
63
61
  it('renders the page for a single-page category', () => {
64
62
  const cat = category('single-page', { renderPage: () => 'page' });
65
- (0, chai_1.expect)(contentOf(cat, { categoryId: 'c' })).to.equal('page');
63
+ expect(contentOf(cat, { categoryId: 'c' })).to.equal('page');
66
64
  });
67
65
  it('shows the coming-soon placeholder when the renderer provides no applicable method', () => {
68
66
  const cat = category('single-page', {});
69
67
  // The placeholder is a <div> element rather than a plain renderer return value.
70
68
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
- (0, chai_1.expect)(contentOf(cat, { categoryId: 'c' }).type).to.equal('div');
69
+ expect(contentOf(cat, { categoryId: 'c' }).type).to.equal('div');
72
70
  });
73
71
  it('prefixes category-level views with the shared category header', () => {
74
72
  const cat = category('single-page', { renderPage: () => 'page' });
75
73
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
76
74
  const header = renderBody(cat, { categoryId: 'c' }).props.children[0];
77
- (0, chai_1.expect)(header.props.className).to.contain('ai-configuration-category-header');
75
+ expect(header.props.className).to.contain('ai-configuration-category-header');
78
76
  });
79
77
  });
80
78
  /**
@@ -88,10 +86,10 @@ describe('AiConfigurationDetailWidget dispatch', () => {
88
86
  * assertion here (verified by patching the method back).
89
87
  */
90
88
  describe('AiConfigurationDetailWidget revealInBody', () => {
91
- before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
89
+ before(() => disableJSDOM = enableJSDOM());
92
90
  after(() => disableJSDOM());
93
91
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
- const widget = Object.create(ai_configuration_detail_widget_1.AiConfigurationDetailWidget.prototype);
92
+ const widget = Object.create(AiConfigurationDetailWidget.prototype);
95
93
  /** An element whose `scrollTop` is a plain writable property, since JSDOM would otherwise clamp it to 0. */
96
94
  function scrollable(rect, clientHeight) {
97
95
  const element = document.createElement('div');
@@ -115,25 +113,25 @@ describe('AiConfigurationDetailWidget revealInBody', () => {
115
113
  const { body, element } = hierarchy(500);
116
114
  // Row sits 400px below the body's top, less the margin kept above it.
117
115
  widget.revealInBody(body, element);
118
- (0, chai_1.expect)(body.scrollTop).to.equal(400 - ai_configuration_detail_widget_1.AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
116
+ expect(body.scrollTop).to.equal(400 - AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
119
117
  });
120
118
  it('leaves the scroll position alone when the row is already at the top', () => {
121
- const { body, element } = hierarchy(100 + ai_configuration_detail_widget_1.AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
119
+ const { body, element } = hierarchy(100 + AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
122
120
  widget.revealInBody(body, element);
123
- (0, chai_1.expect)(body.scrollTop).to.equal(0);
121
+ expect(body.scrollTop).to.equal(0);
124
122
  });
125
123
  it('scrolls back up for a row above the current position', () => {
126
124
  const { body, element } = hierarchy(120);
127
125
  // 20px below the body's top, so it has to scroll up to put the row at the margin.
128
126
  body.scrollTop = 300;
129
127
  widget.revealInBody(body, element);
130
- (0, chai_1.expect)(body.scrollTop).to.equal(300 + 20 - ai_configuration_detail_widget_1.AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
128
+ expect(body.scrollTop).to.equal(300 + 20 - AiConfigurationDetailWidget.TARGET_ROW_MARGIN);
131
129
  });
132
130
  it('never scrolls an ancestor of the container', () => {
133
131
  const { ancestor, body, element } = hierarchy(500);
134
132
  widget.revealInBody(body, element);
135
- (0, chai_1.expect)(body.scrollTop, 'the container itself should have scrolled').to.not.equal(0);
136
- (0, chai_1.expect)(ancestor.scrollTop, 'scrolling an ancestor shifts the whole shell').to.equal(0);
133
+ expect(body.scrollTop, 'the container itself should have scrolled').to.not.equal(0);
134
+ expect(ancestor.scrollTop, 'scrolling an ancestor shifts the whole shell').to.equal(0);
137
135
  });
138
136
  });
139
137
  //# sourceMappingURL=ai-configuration-detail-widget.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-configuration-detail-widget.spec.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts"],"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,8DAAiE;AACjE,IAAI,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC;AAEjC,uHAAiH;AACjH,wEAAiC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE1C,+BAA8B;AAK9B,qFAA+E;AAE/E,YAAY,EAAE,CAAC;AAEf;;;;GAIG;AACH,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;IAElD,MAAM,CAAC,GAAG,EAAE,CAAC,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC,CAAC;IAC3C,KAAK,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC;IAE5B,8DAA8D;IAC9D,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,4DAA2B,CAAC,SAAS,CAAQ,CAAC;IAC3E,MAAM,GAAG,GAAG,EAAkC,CAAC;IAE/C,SAAS,QAAQ,CAAC,IAAkC,EAAE,QAA6C;QAC/F,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,sBAAsB,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IACtF,CAAC;IAED,SAAS,UAAU,CAAC,GAA4B,EAAE,SAAmC;QACjF,OAAO,MAAM,CAAC,UAAU,CAAC,GAAG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AAC,iBAAiB,CAAC,CAAC;IAC9F,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QACnD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnC,IAAA,aAAM,EAAC,IAAI,CAAC,SAAS,EAAE,2CAA2C,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpF,IAAA,aAAM,EAAC,QAAQ,CAAC,SAAS,EAAE,8CAA8C,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ai-configuration-detail-widget.spec.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts"],"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,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,IAAI,YAAY,GAAG,WAAW,EAAE,CAAC;AAEjC,OAAO,EAAE,iCAAiC,EAAE,MAAM,8DAA8D,CAAC;AACjH,iCAAiC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,YAAY,EAAE,CAAC;AAEf;;;;GAIG;AACH,QAAQ,CAAC,sCAAsC,EAAE,GAAG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EAAE,OAAO,CAAC,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE,GAAG,EAAE;QAC5D,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QACzC,kFAAkF;QAClF,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC;QACrB,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,GAAG,EAAE,GAAG,2BAA2B,CAAC,iBAAiB,CAAC,CAAC;IAC9F,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QAClD,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;QACnD,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACnC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,2CAA2C,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACpF,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,8CAA8C,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3F,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,14 +13,12 @@
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
- exports.AiConfigurationLabelProviderContribution = void 0;
19
- const tslib_1 = require("tslib");
20
- const core_1 = require("@theia/core");
21
- const browser_1 = require("@theia/core/lib/browser");
22
- const uri_1 = tslib_1.__importDefault(require("@theia/core/lib/common/uri"));
23
- const inversify_1 = require("@theia/core/shared/inversify");
24
- const ai_configuration_resource_1 = require("./ai-configuration-resource");
16
+ import { __decorate } from "tslib";
17
+ import { nls } from '@theia/core';
18
+ import { codicon } from '@theia/core/lib/browser';
19
+ import URI from '@theia/core/lib/common/uri';
20
+ import { injectable } from '@theia/core/shared/inversify';
21
+ import { AI_CONFIGURATION_RESOURCE_SCHEME } from './ai-configuration-resource.js';
25
22
  /**
26
23
  * Labels the AI Configuration view's constant resource URI (see {@link AI_CONFIGURATION_RESOURCE_URI}).
27
24
  * The view is a {@link NavigatableWidget} so the shell renders breadcrumbs for it; without this, the
@@ -29,20 +26,20 @@ const ai_configuration_resource_1 = require("./ai-configuration-resource");
29
26
  */
30
27
  let AiConfigurationLabelProviderContribution = class AiConfigurationLabelProviderContribution {
31
28
  canHandle(element) {
32
- return element instanceof uri_1.default && element.scheme === ai_configuration_resource_1.AI_CONFIGURATION_RESOURCE_SCHEME ? 200 : 0;
29
+ return element instanceof URI && element.scheme === AI_CONFIGURATION_RESOURCE_SCHEME ? 200 : 0;
33
30
  }
34
31
  getName() {
35
- return core_1.nls.localize('theia/ai/ide/aiConfiguration/breadcrumbRoot', 'AI Configuration');
32
+ return nls.localize('theia/ai/ide/aiConfiguration/breadcrumbRoot', 'AI Configuration');
36
33
  }
37
34
  getLongName() {
38
35
  return this.getName();
39
36
  }
40
37
  getIcon() {
41
- return (0, browser_1.codicon)('settings-gear');
38
+ return codicon('settings-gear');
42
39
  }
43
40
  };
44
- exports.AiConfigurationLabelProviderContribution = AiConfigurationLabelProviderContribution;
45
- exports.AiConfigurationLabelProviderContribution = AiConfigurationLabelProviderContribution = tslib_1.__decorate([
46
- (0, inversify_1.injectable)()
41
+ AiConfigurationLabelProviderContribution = __decorate([
42
+ injectable()
47
43
  ], AiConfigurationLabelProviderContribution);
44
+ export { AiConfigurationLabelProviderContribution };
48
45
  //# sourceMappingURL=ai-configuration-label-provider-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-configuration-label-provider-contribution.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts"],"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,sCAAkC;AAClC,qDAAkD;AAElD,6EAA6C;AAC7C,4DAA0D;AAC1D,2EAA+E;AAE/E;;;;GAIG;AAEI,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IAEjD,SAAS,CAAC,OAAe;QACrB,OAAO,OAAO,YAAY,aAAG,IAAI,OAAO,CAAC,MAAM,KAAK,4DAAgC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC;IAED,OAAO;QACH,OAAO,UAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,kBAAkB,CAAC,CAAC;IAC3F,CAAC;IAED,WAAW;QACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED,OAAO;QACH,OAAO,IAAA,iBAAO,EAAC,eAAe,CAAC,CAAC;IACpC,CAAC;CACJ,CAAA;AAjBY,4FAAwC;mDAAxC,wCAAwC;IADpD,IAAA,sBAAU,GAAE;GACA,wCAAwC,CAiBpD"}
1
+ {"version":3,"file":"ai-configuration-label-provider-contribution.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts"],"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,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAElF;;;;GAIG;AAEI,IAAM,wCAAwC,GAA9C,MAAM,wCAAwC;IAEjD,SAAS,CAAC,OAAe;QACrB,OAAO,OAAO,YAAY,GAAG,IAAI,OAAO,CAAC,MAAM,KAAK,gCAAgC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnG,CAAC;IAED,OAAO;QACH,OAAO,GAAG,CAAC,QAAQ,CAAC,6CAA6C,EAAE,kBAAkB,CAAC,CAAC;IAC3F,CAAC;IAED,WAAW;QACP,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED,OAAO;QACH,OAAO,OAAO,CAAC,eAAe,CAAC,CAAC;IACpC,CAAC;CACJ,CAAA;AAjBY,wCAAwC;IADpD,UAAU,EAAE;GACA,wCAAwC,CAiBpD"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -15,25 +14,23 @@
15
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
15
  // *****************************************************************************
17
16
  var AiConfigurationOpenPreferenceRendererContribution_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.AiConfigurationOpenPreferenceRendererContribution = exports.AiConfigurationOpenPreferenceRenderer = void 0;
20
- const tslib_1 = require("tslib");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const core_1 = require("@theia/core");
23
- const browser_1 = require("@theia/ai-core/lib/browser");
24
- const preference_node_renderer_1 = require("@theia/preferences/lib/browser/views/components/preference-node-renderer");
25
- const preference_node_renderer_creator_1 = require("@theia/preferences/lib/browser/views/components/preference-node-renderer-creator");
26
- const ai_configuration_view_contribution_1 = require("./ai-configuration-view-contribution");
17
+ import { __decorate } from "tslib";
18
+ import { inject, injectable } from '@theia/core/shared/inversify';
19
+ import { CommandService, nls } from '@theia/core';
20
+ import { AI_CONFIGURATION_OPEN_PREFERENCE_ID } from '@theia/ai-core/lib/browser';
21
+ import { PreferenceLeafNodeRenderer } from '@theia/preferences/lib/browser/views/components/preference-node-renderer';
22
+ import { PreferenceLeafNodeRendererContribution } from '@theia/preferences/lib/browser/views/components/preference-node-renderer-creator';
23
+ import { OPEN_AI_CONFIG_VIEW } from './ai-configuration-view-contribution.js';
27
24
  /**
28
25
  * Renders the {@link AI_CONFIGURATION_OPEN_PREFERENCE_ID} placeholder (shown where the AI
29
26
  * preferences used to live in the Settings UI) as a button that opens the AI Configuration view.
30
27
  */
31
- let AiConfigurationOpenPreferenceRenderer = class AiConfigurationOpenPreferenceRenderer extends preference_node_renderer_1.PreferenceLeafNodeRenderer {
28
+ let AiConfigurationOpenPreferenceRenderer = class AiConfigurationOpenPreferenceRenderer extends PreferenceLeafNodeRenderer {
32
29
  createInteractable(container) {
33
30
  const button = document.createElement('button');
34
31
  button.classList.add('theia-button', 'main');
35
- button.textContent = core_1.nls.localize('theia/ai/ide/aiConfiguration/openButton', 'Open AI Configuration');
36
- button.onclick = () => this.commandService.executeCommand(ai_configuration_view_contribution_1.OPEN_AI_CONFIG_VIEW.id);
32
+ button.textContent = nls.localize('theia/ai/ide/aiConfiguration/openButton', 'Open AI Configuration');
33
+ button.onclick = () => this.commandService.executeCommand(OPEN_AI_CONFIG_VIEW.id);
37
34
  this.interactable = button;
38
35
  container.appendChild(button);
39
36
  }
@@ -43,15 +40,14 @@ let AiConfigurationOpenPreferenceRenderer = class AiConfigurationOpenPreferenceR
43
40
  }
44
41
  doHandleValueChange() { }
45
42
  };
46
- exports.AiConfigurationOpenPreferenceRenderer = AiConfigurationOpenPreferenceRenderer;
47
- tslib_1.__decorate([
48
- (0, inversify_1.inject)(core_1.CommandService),
49
- tslib_1.__metadata("design:type", Object)
43
+ __decorate([
44
+ inject(CommandService)
50
45
  ], AiConfigurationOpenPreferenceRenderer.prototype, "commandService", void 0);
51
- exports.AiConfigurationOpenPreferenceRenderer = AiConfigurationOpenPreferenceRenderer = tslib_1.__decorate([
52
- (0, inversify_1.injectable)()
46
+ AiConfigurationOpenPreferenceRenderer = __decorate([
47
+ injectable()
53
48
  ], AiConfigurationOpenPreferenceRenderer);
54
- let AiConfigurationOpenPreferenceRendererContribution = class AiConfigurationOpenPreferenceRendererContribution extends preference_node_renderer_creator_1.PreferenceLeafNodeRendererContribution {
49
+ export { AiConfigurationOpenPreferenceRenderer };
50
+ let AiConfigurationOpenPreferenceRendererContribution = class AiConfigurationOpenPreferenceRendererContribution extends PreferenceLeafNodeRendererContribution {
55
51
  constructor() {
56
52
  super(...arguments);
57
53
  this.id = AiConfigurationOpenPreferenceRendererContribution_1.ID;
@@ -59,14 +55,14 @@ let AiConfigurationOpenPreferenceRendererContribution = class AiConfigurationOpe
59
55
  static { AiConfigurationOpenPreferenceRendererContribution_1 = this; }
60
56
  static { this.ID = 'ai-configuration-open-preference-renderer'; }
61
57
  canHandleLeafNode(node) {
62
- return node.preferenceId === browser_1.AI_CONFIGURATION_OPEN_PREFERENCE_ID ? 100 : 0;
58
+ return node.preferenceId === AI_CONFIGURATION_OPEN_PREFERENCE_ID ? 100 : 0;
63
59
  }
64
60
  createLeafNodeRenderer(container) {
65
61
  return container.get(AiConfigurationOpenPreferenceRenderer);
66
62
  }
67
63
  };
68
- exports.AiConfigurationOpenPreferenceRendererContribution = AiConfigurationOpenPreferenceRendererContribution;
69
- exports.AiConfigurationOpenPreferenceRendererContribution = AiConfigurationOpenPreferenceRendererContribution = AiConfigurationOpenPreferenceRendererContribution_1 = tslib_1.__decorate([
70
- (0, inversify_1.injectable)()
64
+ AiConfigurationOpenPreferenceRendererContribution = AiConfigurationOpenPreferenceRendererContribution_1 = __decorate([
65
+ injectable()
71
66
  ], AiConfigurationOpenPreferenceRendererContribution);
67
+ export { AiConfigurationOpenPreferenceRendererContribution };
72
68
  //# sourceMappingURL=ai-configuration-open-preference-renderer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-configuration-open-preference-renderer.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts"],"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,4DAA8E;AAC9E,sCAAkD;AAClD,wDAAiF;AACjF,uHAA8I;AAC9I,uIAA0I;AAE1I,6FAA2E;AAE3E;;;GAGG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCAAsC,SAAQ,qDAA6C;IAK1F,kBAAkB,CAAC,SAAsB;QAC/C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;QAC7C,MAAM,CAAC,WAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,yCAAyC,EAAE,uBAAuB,CAAC,CAAC;QACtG,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,wDAAmB,CAAC,EAAE,CAAC,CAAC;QAClF,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;QAC3B,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAES,gBAAgB;QACtB,2CAA2C;QAC3C,OAAO,IAAI,CAAC;IAChB,CAAC;IAES,mBAAmB,KAAW,CAAC;CAC5C,CAAA;AApBY,sFAAqC;AAG3B;IADlB,IAAA,kBAAM,EAAC,qBAAc,CAAC;;6EAC2B;gDAHzC,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAoBjD;AAGM,IAAM,iDAAiD,GAAvD,MAAM,iDAAkD,SAAQ,yEAAsC;IAAtG;;QAEH,OAAE,GAAG,mDAAiD,CAAC,EAAE,CAAC;IAS9D,CAAC;;aAVU,OAAE,GAAG,2CAA2C,AAA9C,CAA+C;IAGxD,iBAAiB,CAAC,IAAyB;QACvC,OAAO,IAAI,CAAC,YAAY,KAAK,6CAAmC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED,sBAAsB,CAAC,SAA+B;QAClD,OAAO,SAAS,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IAChE,CAAC;;AAVQ,8GAAiD;4DAAjD,iDAAiD;IAD7D,IAAA,sBAAU,GAAE;GACA,iDAAiD,CAW7D"}
1
+ {"version":3,"file":"ai-configuration-open-preference-renderer.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts"],"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,OAAO,EAAE,MAAM,EAAE,UAAU,EAAc,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,c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CAAC,YAAY,KAAK,mCAAmC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/E,CAAC;IAED,sBAAsB,CAAC,SAA+B;QAClD,OAAO,SAAS,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IAChE,CAAC;;AAVQ,iDAAiD;IAD7D,UAAU,EAAE;GACA,iDAAiD,CAW7D"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,9 +13,8 @@
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)();
16
+ import { enableJSDOM } from '@theia/core/lib/browser/test/jsdom';
17
+ let disableJSDOM = enableJSDOM();
20
18
  // @lumino/dragdrop (pulled in transitively by the categories) extends the DragEvent DOM global at
21
19
  // module load, which JSDOM does not provide; stub it so the imports succeed.
22
20
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -25,38 +23,38 @@ if (!global.DragEvent) {
25
23
  global.DragEvent = class DragEvent extends global.Event {
26
24
  };
27
25
  }
28
- const frontend_application_config_provider_1 = require("@theia/core/lib/browser/frontend-application-config-provider");
26
+ import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/frontend-application-config-provider';
29
27
  // Mocha loads every spec into one process and `set` throws if called twice, so guard it.
30
28
  try {
31
- frontend_application_config_provider_1.FrontendApplicationConfigProvider.get();
29
+ FrontendApplicationConfigProvider.get();
32
30
  }
33
31
  catch {
34
- frontend_application_config_provider_1.FrontendApplicationConfigProvider.set({});
32
+ FrontendApplicationConfigProvider.set({});
35
33
  }
36
- const chai_1 = require("chai");
37
- const ai_core_preferences_1 = require("@theia/ai-core/lib/common/ai-core-preferences");
38
- const agent_preferences_1 = require("@theia/ai-core/lib/common/agent-preferences");
39
- const ai_chat_preferences_1 = require("@theia/ai-chat/lib/common/ai-chat-preferences");
40
- const chat_tool_preferences_1 = require("@theia/ai-chat/lib/common/chat-tool-preferences");
41
- const shell_command_preferences_1 = require("@theia/ai-terminal/lib/common/shell-command-preferences");
42
- const ai_ide_preferences_1 = require("../../common/ai-ide-preferences");
43
- const general_configuration_category_1 = require("./categories/general-configuration-category");
44
- const agents_configuration_category_1 = require("./categories/agents-configuration-category");
45
- const tools_configuration_category_1 = require("./categories/tools-configuration-category");
46
- const model_aliases_configuration_category_1 = require("./categories/model-aliases-configuration-category");
47
- const prompts_and_skills_configuration_category_1 = require("./categories/prompts-and-skills-configuration-category");
34
+ import { expect } from 'chai';
35
+ import { aiCorePreferenceSchema } from '@theia/ai-core/lib/common/ai-core-preferences';
36
+ import { AgentSettingsPreferenceSchema } from '@theia/ai-core/lib/common/agent-preferences';
37
+ import { aiChatPreferences } from '@theia/ai-chat/lib/common/ai-chat-preferences';
38
+ import { chatToolPreferences } from '@theia/ai-chat/lib/common/chat-tool-preferences';
39
+ import { shellCommandPreferences } from '@theia/ai-terminal/lib/common/shell-command-preferences';
40
+ import { aiIdePreferenceSchema } from '../../common/ai-ide-preferences.js';
41
+ import { GeneralConfigurationCategory } from './categories/general-configuration-category.js';
42
+ import { AgentsConfigurationCategory } from './categories/agents-configuration-category.js';
43
+ import { ToolsConfigurationCategory } from './categories/tools-configuration-category.js';
44
+ import { ModelAliasesConfigurationCategory } from './categories/model-aliases-configuration-category.js';
45
+ import { PromptsAndSkillsConfigurationCategory } from './categories/prompts-and-skills-configuration-category.js';
48
46
  disableJSDOM();
49
47
  /**
50
48
  * The schemas that declare the `ai-features.*` preferences the categories below claim. Kept explicit
51
49
  * rather than read from a live `PreferenceSchemaService`, so the check does not depend on DI.
52
50
  */
53
51
  const SCHEMAS = [
54
- ai_core_preferences_1.aiCorePreferenceSchema,
55
- agent_preferences_1.AgentSettingsPreferenceSchema,
56
- ai_chat_preferences_1.aiChatPreferences,
57
- chat_tool_preferences_1.chatToolPreferences,
58
- shell_command_preferences_1.shellCommandPreferences,
59
- ai_ide_preferences_1.aiIdePreferenceSchema
52
+ aiCorePreferenceSchema,
53
+ AgentSettingsPreferenceSchema,
54
+ aiChatPreferences,
55
+ chatToolPreferences,
56
+ shellCommandPreferences,
57
+ aiIdePreferenceSchema
60
58
  ];
61
59
  /**
62
60
  * Categories with a statically declared ownership list. `ModelsConfigurationCategory` derives its ids
@@ -65,22 +63,22 @@ const SCHEMAS = [
65
63
  */
66
64
  function ownershipByCategory() {
67
65
  const categories = [
68
- new general_configuration_category_1.GeneralConfigurationCategory(),
69
- new agents_configuration_category_1.AgentsConfigurationCategory(),
70
- new tools_configuration_category_1.ToolsConfigurationCategory(),
71
- new model_aliases_configuration_category_1.ModelAliasesConfigurationCategory(),
72
- new prompts_and_skills_configuration_category_1.PromptsAndSkillsConfigurationCategory()
66
+ new GeneralConfigurationCategory(),
67
+ new AgentsConfigurationCategory(),
68
+ new ToolsConfigurationCategory(),
69
+ new ModelAliasesConfigurationCategory(),
70
+ new PromptsAndSkillsConfigurationCategory()
73
71
  ];
74
72
  return new Map(categories.map(category => [category.id, category.getOwnedPreferenceIds()]));
75
73
  }
76
74
  describe('AI configuration preference ownership', () => {
77
- before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
75
+ before(() => disableJSDOM = enableJSDOM());
78
76
  after(() => disableJSDOM());
79
77
  it('reads a non-empty schema and ownership set (guards the checks below against passing vacuously)', () => {
80
78
  const declared = SCHEMAS.flatMap(schema => Object.keys(schema.properties ?? {}));
81
- (0, chai_1.expect)(declared).to.include('ai-features.AiEnable.enableAI');
79
+ expect(declared).to.include('ai-features.AiEnable.enableAI');
82
80
  for (const [categoryId, ownedIds] of ownershipByCategory()) {
83
- (0, chai_1.expect)(ownedIds, `${categoryId} declares no owned preference ids`).to.not.be.empty;
81
+ expect(ownedIds, `${categoryId} declares no owned preference ids`).to.not.be.empty;
84
82
  }
85
83
  });
86
84
  it('claims only preference ids that a schema actually declares', () => {
@@ -95,7 +93,7 @@ describe('AI configuration preference ownership', () => {
95
93
  }
96
94
  // A typo or a renamed preference makes the id unclaimed, so General's catch-all silently renders it
97
95
  // a second time. Nothing else fails, which is why this is worth asserting.
98
- (0, chai_1.expect)(unknown, `categories claim preference ids that no schema declares: ${unknown.join(', ')}`).to.be.empty;
96
+ expect(unknown, `categories claim preference ids that no schema declares: ${unknown.join(', ')}`).to.be.empty;
99
97
  });
100
98
  it('never lets two categories claim the same preference id', () => {
101
99
  const owners = new Map();
@@ -107,20 +105,20 @@ describe('AI configuration preference ownership', () => {
107
105
  const contested = [...owners.entries()]
108
106
  .filter(([, categoryIds]) => categoryIds.length > 1)
109
107
  .map(([preferenceId, categoryIds]) => `${preferenceId} (${categoryIds.join(', ')})`);
110
- (0, chai_1.expect)(contested, `preference ids claimed more than once: ${contested.join(', ')}`).to.be.empty;
108
+ expect(contested, `preference ids claimed more than once: ${contested.join(', ')}`).to.be.empty;
111
109
  });
112
110
  it('claims every id it renders as a row, so the General catch-all does not duplicate it', () => {
113
111
  // The ownership contract only holds if a category claims what it renders. Spot-check the two
114
112
  // categories whose rows are hand-authored (rather than derived from their ownership list).
115
- const general = new general_configuration_category_1.GeneralConfigurationCategory();
116
- const agents = new agents_configuration_category_1.AgentsConfigurationCategory();
113
+ const general = new GeneralConfigurationCategory();
114
+ const agents = new AgentsConfigurationCategory();
117
115
  const generalOwned = new Set(general.getOwnedPreferenceIds());
118
116
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
117
  const generalRendered = general.getSectionRefs().map(ref => ref.preferenceId);
120
118
  const missing = generalRendered.filter(preferenceId => !generalOwned.has(preferenceId));
121
- (0, chai_1.expect)(missing, `General renders rows it does not claim: ${missing.join(', ')}`).to.be.empty;
119
+ expect(missing, `General renders rows it does not claim: ${missing.join(', ')}`).to.be.empty;
122
120
  // The agent page's own rows are covered by its ownership list too.
123
- (0, chai_1.expect)(agents.getOwnedPreferenceIds()).to.include('ai-features.agentSettings');
121
+ expect(agents.getOwnedPreferenceIds()).to.include('ai-features.agentSettings');
124
122
  });
125
123
  });
126
124
  //# sourceMappingURL=ai-configuration-preference-ownership.spec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-configuration-preference-ownership.spec.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts"],"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,8DAAiE;AACjE,IAAI,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC;AAEjC,kGAAkG;AAClG,6EAA6E;AAC7E,8DAA8D;AAC9D,IAAI,CAAE,MAAc,CAAC,SAAS,EAAE,CAAC;IAC7B,8DAA8D;IAC7D,MAAc,CAAC,SAAS,GAAG,MAAM,SAAU,SAAS,MAAc,CAAC,KAAK;KAAI,CAAC;AAClF,CAAC;AAED,uHAAiH;AACjH,yFAAyF;AACzF,IAAI,CAAC;IACD,wEAAiC,CAAC,GAAG,EAAE,CAAC;AAC5C,CAAC;AAAC,MAAM,CAAC;IACL,wEAAiC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,+BAA8B;AAE9B,uFAAuF;AACvF,mFAA4F;AAC5F,uFAAkF;AAClF,2FAAsF;AACtF,uGAAkG;AAClG,wEAAwE;AACxE,gGAA2F;AAC3F,8FAAyF;AACzF,4FAAuF;AACvF,4GAAsG;AACtG,sHAA+G;AAE/G,YAAY,EAAE,CAAC;AAEf;;;GAGG;AACH,MAAM,OAAO,GAAuB;IAChC,4CAAsB;IACtB,iDAA6B;IAC7B,uCAAi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C,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,EAAE,EAAE,CAAC,GAAG,YAAY,KAAK,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACzF,IAAA,aAAM,EAAC,SAAS,EAAE,0CAA0C,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACpG,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qFAAqF,EAAE,GAAG,EAAE;QAC3F,6FAA6F;QAC7F,2FAA2F;QAC3F,MAAM,OAAO,GAAG,IAAI,6DAA4B,EAAE,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,2DAA2B,EAAE,CAAC;QACjD,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;QAC9D,8DAA8D;QAC9D,MAAM,eAAe,GAAK,OAAe,CAAC,cAAc,EAAiC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACvH,MAAM,OAAO,GAAG,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;QACxF,IAAA,aAAM,EAAC,OAAO,EAAE,2CAA2C,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;QAC7F,mEAAmE;QACnE,IAAA,aAAM,EAAC,MAAM,CAAC,qBAAqB,EAAE,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"ai-configuration-preference-ownership.spec.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts"],"names":[],"mappings":"AA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C,2BAA2B,CAAC,CAAC;IACnF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource GmbH.
4
3
  //
@@ -14,16 +13,13 @@
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
- exports.AI_CONFIGURATION_RESOURCE_URI = exports.AI_CONFIGURATION_RESOURCE_SCHEME = void 0;
19
- const tslib_1 = require("tslib");
20
- const uri_1 = tslib_1.__importDefault(require("@theia/core/lib/common/uri"));
16
+ import URI from '@theia/core/lib/common/uri';
21
17
  /** URI scheme identifying the AI Configuration view for Theia's breadcrumbs infrastructure. */
22
- exports.AI_CONFIGURATION_RESOURCE_SCHEME = 'ai-configuration';
18
+ export const AI_CONFIGURATION_RESOURCE_SCHEME = 'ai-configuration';
23
19
  /**
24
20
  * The stable resource URI of the AI Configuration view. It is constant (the current
25
21
  * category/item is read from the selection model), mirroring how an editor keeps its file URI
26
22
  * while its breadcrumb content changes with the cursor.
27
23
  */
28
- exports.AI_CONFIGURATION_RESOURCE_URI = new uri_1.default(`${exports.AI_CONFIGURATION_RESOURCE_SCHEME}:/`);
24
+ export const AI_CONFIGURATION_RESOURCE_URI = new URI(`${AI_CONFIGURATION_RESOURCE_SCHEME}:/`);
29
25
  //# sourceMappingURL=ai-configuration-resource.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-configuration-resource.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-resource.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,6EAA6C;AAE7C,+FAA+F;AAClF,QAAA,gCAAgC,GAAG,kBAAkB,CAAC;AAEnE;;;;GAIG;AACU,QAAA,6BAA6B,GAAG,IAAI,aAAG,CAAC,GAAG,wCAAgC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"ai-configuration-resource.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-resource.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,yCAAyC;AACzC,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,OAAO,GAAG,MAAM,4BAA4B,CAAC;AAE7C,+FAA+F;AAC/F,MAAM,CAAC,MAAM,gCAAgC,GAAG,kBAAkB,CAAC;AAEnE;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAC,GAAG,gCAAgC,IAAI,CAAC,CAAC"}
@@ -1,9 +1,6 @@
1
- "use strict";
2
1
  var AiConfigurationSearchWidget_1;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AiConfigurationSearchWidget = void 0;
5
- const tslib_1 = require("tslib");
6
- const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
2
+ import { __decorate } from "tslib";
3
+ import { jsx as _jsx, jsxs as _jsxs } from "@theia/core/shared/react/jsx-runtime";
7
4
  // *****************************************************************************
8
5
  // Copyright (C) 2026 EclipseSource and others.
9
6
  //
@@ -19,23 +16,23 @@ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
19
16
  //
20
17
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
21
18
  // *****************************************************************************
22
- const React = tslib_1.__importStar(require("@theia/core/shared/react"));
23
- const core_1 = require("@theia/core");
24
- const inversify_1 = require("@theia/core/shared/inversify");
25
- const browser_1 = require("@theia/core/lib/browser");
19
+ import * as React from '@theia/core/shared/react';
20
+ import { Emitter, nls } from '@theia/core';
21
+ import { injectable, postConstruct } from '@theia/core/shared/inversify';
22
+ import { codicon, ReactWidget } from '@theia/core/lib/browser';
26
23
  /**
27
24
  * The search box above the category tree. It emits {@link onDidChangeFilter} so the tree can
28
25
  * live-filter its nodes; filtering the tree is the only search affordance.
29
26
  */
30
- let AiConfigurationSearchWidget = class AiConfigurationSearchWidget extends browser_1.ReactWidget {
27
+ let AiConfigurationSearchWidget = class AiConfigurationSearchWidget extends ReactWidget {
31
28
  constructor() {
32
29
  super(...arguments);
33
- this.onDidChangeFilterEmitter = new core_1.Emitter();
30
+ this.onDidChangeFilterEmitter = new Emitter();
34
31
  this.onDidChangeFilter = this.onDidChangeFilterEmitter.event;
35
- this.onDidRequestExpandAllEmitter = new core_1.Emitter();
32
+ this.onDidRequestExpandAllEmitter = new Emitter();
36
33
  /** Fired by the "Expand All" toolbar button below the search input. */
37
34
  this.onDidRequestExpandAll = this.onDidRequestExpandAllEmitter.event;
38
- this.onDidRequestCollapseAllEmitter = new core_1.Emitter();
35
+ this.onDidRequestCollapseAllEmitter = new Emitter();
39
36
  /** Fired by the "Collapse All" toolbar button below the search input. */
40
37
  this.onDidRequestCollapseAll = this.onDidRequestCollapseAllEmitter.event;
41
38
  /** Whether the tree has any expandable category, and whether all of them are currently expanded. */
@@ -64,21 +61,18 @@ let AiConfigurationSearchWidget = class AiConfigurationSearchWidget extends brow
64
61
  }
65
62
  }
66
63
  render() {
67
- return (0, jsx_runtime_1.jsxs)(React.Fragment, { children: [(0, jsx_runtime_1.jsx)(AiConfigurationSearchInput, { onQueryChange: this.onQueryChange }), this.hasExpandable && (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-tree-toolbar', children: this.allExpanded
68
- ? (0, jsx_runtime_1.jsx)("button", { type: 'button', className: `ai-configuration-tree-toolbar-button ${(0, browser_1.codicon)('collapse-all')}`, title: core_1.nls.localizeByDefault('Collapse All'), onClick: this.onCollapseAll })
69
- : (0, jsx_runtime_1.jsx)("button", { type: 'button', className: `ai-configuration-tree-toolbar-button ${(0, browser_1.codicon)('expand-all')}`, title: core_1.nls.localizeByDefault('Expand All'), onClick: this.onExpandAll }) })] });
64
+ return _jsxs(React.Fragment, { children: [_jsx(AiConfigurationSearchInput, { onQueryChange: this.onQueryChange }), this.hasExpandable && _jsx("div", { className: 'ai-configuration-tree-toolbar', children: this.allExpanded
65
+ ? _jsx("button", { type: 'button', className: `ai-configuration-tree-toolbar-button ${codicon('collapse-all')}`, title: nls.localizeByDefault('Collapse All'), onClick: this.onCollapseAll })
66
+ : _jsx("button", { type: 'button', className: `ai-configuration-tree-toolbar-button ${codicon('expand-all')}`, title: nls.localizeByDefault('Expand All'), onClick: this.onExpandAll }) })] });
70
67
  }
71
68
  };
72
- exports.AiConfigurationSearchWidget = AiConfigurationSearchWidget;
73
- tslib_1.__decorate([
74
- (0, inversify_1.postConstruct)(),
75
- tslib_1.__metadata("design:type", Function),
76
- tslib_1.__metadata("design:paramtypes", []),
77
- tslib_1.__metadata("design:returntype", void 0)
69
+ __decorate([
70
+ postConstruct()
78
71
  ], AiConfigurationSearchWidget.prototype, "init", null);
79
- exports.AiConfigurationSearchWidget = AiConfigurationSearchWidget = AiConfigurationSearchWidget_1 = tslib_1.__decorate([
80
- (0, inversify_1.injectable)()
72
+ AiConfigurationSearchWidget = AiConfigurationSearchWidget_1 = __decorate([
73
+ injectable()
81
74
  ], AiConfigurationSearchWidget);
75
+ export { AiConfigurationSearchWidget };
82
76
  /**
83
77
  * The search box, as a functional component so its value lives in React state. Typing therefore preserves
84
78
  * the caret position (editing mid-string no longer jumps to the end, which happened when the enclosing
@@ -100,7 +94,7 @@ const AiConfigurationSearchInput = ({ onQueryChange }) => {
100
94
  clear();
101
95
  }
102
96
  }, [query, clear]);
103
- const clearLabel = core_1.nls.localizeByDefault('Clear');
104
- return (0, jsx_runtime_1.jsxs)("div", { className: 'ai-configuration-search-wrap', children: [(0, jsx_runtime_1.jsx)("span", { className: `ai-configuration-search-icon ${(0, browser_1.codicon)('search')}` }), (0, jsx_runtime_1.jsx)("input", { className: 'theia-input ai-configuration-search-input', type: 'text', spellCheck: false, placeholder: core_1.nls.localize('theia/ai/core/aiConfiguration/searchPlaceholder', 'Search AI settings'), value: query, onChange: change, onKeyDown: onKeyDown }), query.length > 0 && (0, jsx_runtime_1.jsx)("button", { type: 'button', className: `ai-configuration-search-clear ${(0, browser_1.codicon)('close')}`, title: clearLabel, "aria-label": clearLabel, onClick: clear })] });
97
+ const clearLabel = nls.localizeByDefault('Clear');
98
+ return _jsxs("div", { className: 'ai-configuration-search-wrap', children: [_jsx("span", { className: `ai-configuration-search-icon ${codicon('search')}` }), _jsx("input", { className: 'theia-input ai-configuration-search-input', type: 'text', spellCheck: false, placeholder: nls.localize('theia/ai/core/aiConfiguration/searchPlaceholder', 'Search AI settings'), value: query, onChange: change, onKeyDown: onKeyDown }), query.length > 0 && _jsx("button", { type: 'button', className: `ai-configuration-search-clear ${codicon('close')}`, title: clearLabel, "aria-label": clearLabel, onClick: clear })] });
105
99
  };
106
100
  //# sourceMappingURL=ai-configuration-search-widget.js.map