@theia/ai-ide 1.77.0-next.99 → 1.78.0-next.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) 2025 EclipseSource GmbH.
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.AddressGhReviewCommandContribution = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const common_1 = require("@theia/ai-core/lib/common");
22
- const core_1 = require("@theia/core");
23
- const ai_core_1 = require("@theia/ai-core");
24
- const github_chat_agent_1 = require("./github-chat-agent");
16
+ import { __decorate } from "tslib";
17
+ import { inject, injectable } from '@theia/core/shared/inversify';
18
+ import { PromptService } from '@theia/ai-core/lib/common';
19
+ import { nls } from '@theia/core';
20
+ import { AGENT_DELEGATION_FUNCTION_ID } from '@theia/ai-core';
21
+ import { GitHubChatAgentId } from './github-chat-agent.js';
25
22
  let AddressGhReviewCommandContribution = class AddressGhReviewCommandContribution {
26
23
  onStart() {
27
24
  this.registerAddressGhReviewCommand();
@@ -33,8 +30,8 @@ let AddressGhReviewCommandContribution = class AddressGhReviewCommandContributio
33
30
  template: commandTemplate,
34
31
  isCommand: true,
35
32
  commandName: 'address-gh-review',
36
- commandDescription: core_1.nls.localize('theia/ai-ide/addressGhReviewCommand/description', 'Address review comments on a GitHub pull request'),
37
- commandArgumentHint: core_1.nls.localize('theia/ai-ide/addressGhReviewCommand/argumentHint', '<pr-number>'),
33
+ commandDescription: nls.localize('theia/ai-ide/addressGhReviewCommand/description', 'Address review comments on a GitHub pull request'),
34
+ commandArgumentHint: nls.localize('theia/ai-ide/addressGhReviewCommand/argumentHint', '<pr-number>'),
38
35
  commandAgents: ['Coder']
39
36
  });
40
37
  }
@@ -49,9 +46,9 @@ You need to retrieve all details about the specified pull request, especially th
49
46
  implement the requested changes.
50
47
 
51
48
  ## Step 1: Retrieve Pull Request Information
52
- Use the ~{${ai_core_1.AGENT_DELEGATION_FUNCTION_ID}} tool to delegate to the GitHub agent and retrieve comprehensive information about the pull request.
49
+ Use the ~{${AGENT_DELEGATION_FUNCTION_ID}} tool to delegate to the GitHub agent and retrieve comprehensive information about the pull request.
53
50
 
54
- **Agent ID:** '${github_chat_agent_1.GitHubChatAgentId}'
51
+ **Agent ID:** '${GitHubChatAgentId}'
55
52
  **Prompt:** Ask the GitHub agent to retrieve ALL details about PR #$ARGUMENTS, specifically requesting:
56
53
  - The PR title and description
57
54
  - The current state of the PR (open, closed, merged)
@@ -165,12 +162,11 @@ All review comments can be safely addressed. Proceeding with implementation.
165
162
  Remember: It's better to ask for clarification than to make assumptions that could introduce bugs or go against the reviewer's intent.`;
166
163
  }
167
164
  };
168
- exports.AddressGhReviewCommandContribution = AddressGhReviewCommandContribution;
169
- tslib_1.__decorate([
170
- (0, inversify_1.inject)(common_1.PromptService),
171
- tslib_1.__metadata("design:type", Object)
165
+ __decorate([
166
+ inject(PromptService)
172
167
  ], AddressGhReviewCommandContribution.prototype, "promptService", void 0);
173
- exports.AddressGhReviewCommandContribution = AddressGhReviewCommandContribution = tslib_1.__decorate([
174
- (0, inversify_1.injectable)()
168
+ AddressGhReviewCommandContribution = __decorate([
169
+ injectable()
175
170
  ], AddressGhReviewCommandContribution);
171
+ export { AddressGhReviewCommandContribution };
176
172
  //# sourceMappingURL=address-pr-review-command-contribution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"address-pr-review-command-contribution.js","sourceRoot":"","sources":["../../src/browser/address-pr-review-command-contribution.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;;;;AAGhF,4DAAkE;AAClE,sDAA0D;AAC1D,sCAAkC;AAClC,4CAA8D;AAC9D,2DAAwD;AAGjD,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAK3C,OAAO;QACH,IAAI,CAAC,8BAA8B,EAAE,CAAC;IAC1C,CAAC;IAES,8BAA8B;QACpC,MAAM,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAEpD,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC;YACxC,EAAE,EAAE,mBAAmB;YACvB,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,mBAAmB;YAChC,kBAAkB,EAAE,UAAG,CAAC,QAAQ,CAC5B,iDAAiD,EACjD,kDAAkD,CACrD;YACD,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAC7B,kDAAkD,EAClD,aAAa,CAChB;YACD,aAAa,EAAE,CAAC,OAAO,CAAC;SAC3B,CAAC,CAAC;IACP,CAAC;IAES,oBAAoB;QAC1B,OAAO;;;;;;;;;;YAUH,sCAA4B;;iBAEvB,qCAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uIA+GqG,CAAC;IACpI,CAAC;CACJ,CAAA;AA3JY,gFAAkC;AAGxB;IADlB,IAAA,kBAAM,EAAC,sBAAa,CAAC;;yEAC0B;6CAHvC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;GACA,kCAAkC,CA2J9C"}
1
+ {"version":3,"file":"address-pr-review-command-contribution.js","sourceRoot":"","sources":["../../src/browser/address-pr-review-command-contribution.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;;AAGhF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGpD,IAAM,kCAAkC,GAAxC,MAAM,kCAAkC;IAK3C,OAAO;QACH,IAAI,CAAC,8BAA8B,EAAE,CAAC;IAC1C,CAAC;IAES,8BAA8B;QACpC,MAAM,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAEpD,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC;YACxC,EAAE,EAAE,mBAAmB;YACvB,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,mBAAmB;YAChC,kBAAkB,EAAE,GAAG,CAAC,QAAQ,CAC5B,iDAAiD,EACjD,kDAAkD,CACrD;YACD,mBAAmB,EAAE,GAAG,CAAC,QAAQ,CAC7B,kDAAkD,EAClD,aAAa,CAChB;YACD,aAAa,EAAE,CAAC,OAAO,CAAC;SAC3B,CAAC,CAAC;IACP,CAAC;IAES,oBAAoB;QAC1B,OAAO;;;;;;;;;;YAUH,4BAA4B;;iBAEvB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uIA+GqG,CAAC;IACpI,CAAC;CACJ,CAAA;AAxJsB;IADlB,MAAM,CAAC,aAAa,CAAC;yEAC0B;AAHvC,kCAAkC;IAD9C,UAAU,EAAE;GACA,kCAAkC,CA2J9C"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,34 +13,32 @@
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.AgentModeConfirmationServiceImpl = exports.AgentModeConfirmationService = void 0;
19
- const tslib_1 = require("tslib");
20
- const common_1 = require("@theia/ai-chat/lib/common");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const core_1 = require("@theia/core");
23
- const promise_util_1 = require("@theia/core/lib/common/promise-util");
24
- const ai_ide_preferences_1 = require("../common/ai-ide-preferences");
25
- exports.AgentModeConfirmationService = Symbol('AgentModeConfirmationService');
16
+ import { __decorate } from "tslib";
17
+ import { MarkdownChatResponseContentImpl, QuestionResponseContentImpl } from '@theia/ai-chat/lib/common';
18
+ import { inject, injectable } from '@theia/core/shared/inversify';
19
+ import { nls, PreferenceScope, PreferenceService } from '@theia/core';
20
+ import { Deferred } from '@theia/core/lib/common/promise-util';
21
+ import { PREFERENCE_NAME_AGENT_MODE_ENABLED } from '../common/ai-ide-preferences.js';
22
+ export const AgentModeConfirmationService = Symbol('AgentModeConfirmationService');
26
23
  let AgentModeConfirmationServiceImpl = class AgentModeConfirmationServiceImpl {
27
24
  isAcknowledged() {
28
- return !!this.preferenceService.get(ai_ide_preferences_1.PREFERENCE_NAME_AGENT_MODE_ENABLED, false);
25
+ return !!this.preferenceService.get(PREFERENCE_NAME_AGENT_MODE_ENABLED, false);
29
26
  }
30
27
  async requestConfirmation(request) {
31
- const deferred = new promise_util_1.Deferred();
32
- const agentModeLabel = core_1.nls.localize('theia/ai/ide/agentModeConfirmation/continueAgentMode', 'Continue with Agent Mode');
33
- const editModeLabel = core_1.nls.localize('theia/ai/ide/agentModeConfirmation/continueEditMode', 'Continue with Edit Mode');
34
- request.response.response.addContent(new common_1.MarkdownChatResponseContentImpl(core_1.nls.localize('theia/ai/ide/agentModeConfirmation/msg', 'You are about to use **Agent Mode**. In this mode, the agent can **read, create, and modify files** '
28
+ const deferred = new Deferred();
29
+ const agentModeLabel = nls.localize('theia/ai/ide/agentModeConfirmation/continueAgentMode', 'Continue with Agent Mode');
30
+ const editModeLabel = nls.localize('theia/ai/ide/agentModeConfirmation/continueEditMode', 'Continue with Edit Mode');
31
+ request.response.response.addContent(new MarkdownChatResponseContentImpl(nls.localize('theia/ai/ide/agentModeConfirmation/msg', 'You are about to use **Agent Mode**. In this mode, the agent can **read, create, and modify files** '
35
32
  + 'in your workspace autonomously, without asking for confirmation on each change.\n\n'
36
33
  + 'We recommend using **version control** (e.g. Git) so you can easily review and revert any changes.\n\n'
37
34
  + 'If you prefer more control, you can continue with **Edit Mode** instead, '
38
35
  + 'where changes are presented as suggestions for you to apply.\n\n'
39
36
  + 'How would you like to proceed?')));
40
- request.response.response.addContent(new common_1.QuestionResponseContentImpl(core_1.nls.localize('theia/ai/ide/agentModeConfirmation/info', 'Continuing with Agent Mode saves your confirmation. You can revoke this later again via the `ai-features.agentMode.enabled` setting.\n\n'
37
+ request.response.response.addContent(new QuestionResponseContentImpl(nls.localize('theia/ai/ide/agentModeConfirmation/info', 'Continuing with Agent Mode saves your confirmation. You can revoke this later again via the `ai-features.agentMode.enabled` setting.\n\n'
41
38
  + 'Continuing with Edit Mode changes your default mode to Edit Mode.\n\n'
42
39
  + 'You can change modes anytime via the mode selector or in the AI Configuration.'), [{ text: agentModeLabel }, { text: editModeLabel }], request, async (selectedOption) => {
43
40
  if (selectedOption.text === agentModeLabel) {
44
- await this.preferenceService.set(ai_ide_preferences_1.PREFERENCE_NAME_AGENT_MODE_ENABLED, true, core_1.PreferenceScope.User);
41
+ await this.preferenceService.set(PREFERENCE_NAME_AGENT_MODE_ENABLED, true, PreferenceScope.User);
45
42
  request.response.stopWaitingForInput();
46
43
  deferred.resolve(true);
47
44
  }
@@ -51,7 +48,7 @@ let AgentModeConfirmationServiceImpl = class AgentModeConfirmationServiceImpl {
51
48
  }
52
49
  }));
53
50
  const progressMessage = request.response.addProgressMessage({
54
- content: core_1.nls.localize('theia/ai/ide/agentModeConfirmation/waiting', 'Waiting for confirmation...'),
51
+ content: nls.localize('theia/ai/ide/agentModeConfirmation/waiting', 'Waiting for confirmation...'),
55
52
  show: 'whileIncomplete'
56
53
  });
57
54
  request.response.waitForInput();
@@ -62,12 +59,11 @@ let AgentModeConfirmationServiceImpl = class AgentModeConfirmationServiceImpl {
62
59
  });
63
60
  }
64
61
  };
65
- exports.AgentModeConfirmationServiceImpl = AgentModeConfirmationServiceImpl;
66
- tslib_1.__decorate([
67
- (0, inversify_1.inject)(core_1.PreferenceService),
68
- tslib_1.__metadata("design:type", Object)
62
+ __decorate([
63
+ inject(PreferenceService)
69
64
  ], AgentModeConfirmationServiceImpl.prototype, "preferenceService", void 0);
70
- exports.AgentModeConfirmationServiceImpl = AgentModeConfirmationServiceImpl = tslib_1.__decorate([
71
- (0, inversify_1.injectable)()
65
+ AgentModeConfirmationServiceImpl = __decorate([
66
+ injectable()
72
67
  ], AgentModeConfirmationServiceImpl);
68
+ export { AgentModeConfirmationServiceImpl };
73
69
  //# sourceMappingURL=agent-mode-confirmation-service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-mode-confirmation-service.js","sourceRoot":"","sources":["../../src/browser/agent-mode-confirmation-service.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,sDAImC;AACnC,4DAAkE;AAClE,sCAAsE;AACtE,sEAA+D;AAC/D,qEAAkF;AAErE,QAAA,4BAA4B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAO5E,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAIzC,cAAc;QACV,OAAO,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAU,uDAAkC,EAAE,KAAK,CAAC,CAAC;IAC5F,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,OAAgC;QACtD,MAAM,QAAQ,GAAG,IAAI,uBAAQ,EAAW,CAAC;QAEzC,MAAM,cAAc,GAAG,UAAG,CAAC,QAAQ,CAAC,sDAAsD,EAAE,0BAA0B,CAAC,CAAC;QACxH,MAAM,aAAa,GAAG,UAAG,CAAC,QAAQ,CAAC,qDAAqD,EAAE,yBAAyB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AC,IAAI,CAAC,MAAM,CAAC,EAAE;YAClC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,GAAG,eAAe,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;YAC/G,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;YACzC,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAvDY,4EAAgC;AAEK;IAA7C,IAAA,kBAAM,EAAC,wBAAiB,CAAC;;2EAAyD;2CAF1E,gCAAgC;IAD5C,IAAA,sBAAU,GAAE;GACA,gCAAgC,CAuD5C"}
1
+ {"version":3,"file":"agent-mode-confirmation-service.js","sourceRoot":"","sources":["../../src/browser/agent-mode-confirmation-service.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,EACH,+BAA+B,EAE/B,2BAA2B,EAC9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAC/D,OAAO,EAAE,kCAAkC,EAAE,MAAM,iCAAiC,CAAC;AAErF,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC;AAO5E,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAIzC,cAAc;QACV,OAAO,CAAC,CAAC,IAAI,CAAC,iBAAiB,CA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AC5B,CAAC;QACL,CAAC,CACJ,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;YACxD,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,6BAA6B,CAAC;YAClG,IAAI,EAAE,iBAAiB;SAC1B,CAAC,CAAC;QACH,OAAO,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;QAEhC,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YAClC,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAC,EAAE,GAAG,eAAe,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;YAC/G,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;YACzC,OAAO,MAAM,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AArDiD;IAA7C,MAAM,CAAC,iBAAiB,CAAC;2EAAyD;AAF1E,gCAAgC;IAD5C,UAAU,EAAE;GACA,gCAAgC,CAuD5C"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentsMdAgent = void 0;
4
- const tslib_1 = require("tslib");
1
+ import { __decorate } from "tslib";
5
2
  // *****************************************************************************
6
3
  // Copyright (C) 2024 EclipseSource GmbH.
7
4
  //
@@ -17,11 +14,11 @@ const tslib_1 = require("tslib");
17
14
  //
18
15
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
19
16
  // *****************************************************************************
20
- const ai_chat_1 = require("@theia/ai-chat");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const agents_md_prompt_template_1 = require("../common/agents-md-prompt-template");
23
- const core_1 = require("@theia/core");
24
- let AgentsMdAgent = class AgentsMdAgent extends ai_chat_1.AbstractStreamParsingChatAgent {
17
+ import { AbstractStreamParsingChatAgent } from '@theia/ai-chat';
18
+ import { inject, injectable, named } from '@theia/core/shared/inversify';
19
+ import { agentsMdSystemVariants, agentsMdTemplateVariants } from '../common/agents-md-prompt-template.js';
20
+ import { ILogger, nls } from '@theia/core';
21
+ let AgentsMdAgent = class AgentsMdAgent extends AbstractStreamParsingChatAgent {
25
22
  constructor() {
26
23
  super(...arguments);
27
24
  this.name = 'AgentsMd';
@@ -31,21 +28,20 @@ let AgentsMdAgent = class AgentsMdAgent extends ai_chat_1.AbstractStreamParsingC
31
28
  identifier: 'default/fast',
32
29
  }];
33
30
  this.defaultLanguageModelPurpose = 'chat';
34
- this.description = core_1.nls.localize('theia/ai/workspace/agentsMdAgent/description', 'An AI assistant for managing the project context that other AI agents use. This agent helps create, update and review the AGENTS.md file at the root of your ' +
31
+ this.description = nls.localize('theia/ai/workspace/agentsMdAgent/description', 'An AI assistant for managing the project context that other AI agents use. This agent helps create, update and review the AGENTS.md file at the root of your ' +
35
32
  'workspace, following the open AGENTS.md standard that other agentic tools read as well. It can analyze your workspace to suggest project information, ' +
36
33
  'consolidate existing instruction files such as CLAUDE.md or copilot-instructions.md, or update the file based on your requirements.');
37
- this.prompts = [agents_md_prompt_template_1.agentsMdSystemVariants, agents_md_prompt_template_1.agentsMdTemplateVariants];
38
- this.systemPromptId = agents_md_prompt_template_1.agentsMdSystemVariants.id;
34
+ this.prompts = [agentsMdSystemVariants, agentsMdTemplateVariants];
35
+ this.systemPromptId = agentsMdSystemVariants.id;
39
36
  this.iconClass = 'codicon codicon-repo';
40
37
  }
41
38
  };
42
- exports.AgentsMdAgent = AgentsMdAgent;
43
- tslib_1.__decorate([
44
- (0, inversify_1.inject)(core_1.ILogger),
45
- (0, inversify_1.named)('ai-ide:AgentsMdAgent'),
46
- tslib_1.__metadata("design:type", Object)
39
+ __decorate([
40
+ inject(ILogger),
41
+ named('ai-ide:AgentsMdAgent')
47
42
  ], AgentsMdAgent.prototype, "logger", void 0);
48
- exports.AgentsMdAgent = AgentsMdAgent = tslib_1.__decorate([
49
- (0, inversify_1.injectable)()
43
+ AgentsMdAgent = __decorate([
44
+ injectable()
50
45
  ], AgentsMdAgent);
46
+ export { AgentsMdAgent };
51
47
  //# sourceMappingURL=agents-md-agent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents-md-agent.js","sourceRoot":"","sources":["../../src/browser/agents-md-agent.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;AAChF,4CAAgE;AAEhE,4DAAyE;AACzE,mFAAuG;AACvG,sCAA2C;AAGpC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wCAA8B;IAA1D;;QAKH,SAAI,GAAG,UAAU,CAAC;QAClB,OAAE,GAAG,UAAU,CAAC;QAChB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAE9C,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,8CAA8C,EAC9E,+JAA+J;YAC/J,wJAAwJ;YACxJ,qIAAqI,CAAC,CAAC;QAElI,YAAO,GAAG,CAAC,kDAAsB,EAAE,oDAAwB,CAAC,CAAC;QACnD,mBAAc,GAAuB,kDAAsB,CAAC,EAAE,CAAC;QACzE,cAAS,GAAW,sBAAsB,CAAC;IACxD,CAAC;CAAA,CAAA;AArBY,sCAAa;AAGM;IAD3B,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,sBAAsB,CAAC;;6CACH;wBAHnC,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAqBzB"}
1
+ {"version":3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.defineProperty(exports, "__esModule", { value: true });
3
- exports.AiAllowAllModeChatBanner = void 0;
4
- const tslib_1 = require("tslib");
5
- const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
6
- const inversify_1 = require("@theia/core/shared/inversify");
7
- const browser_1 = require("@theia/core/lib/browser");
8
- const core_1 = require("@theia/core");
9
- const nls_1 = require("@theia/core/lib/common/nls");
10
- const common_1 = require("@theia/core/lib/common");
11
- const chat_tool_preferences_1 = require("@theia/ai-chat/lib/common/chat-tool-preferences");
1
+ import { __decorate } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "@theia/core/shared/react/jsx-runtime";
3
+ import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
4
+ import { codicon } from '@theia/core/lib/browser';
5
+ import { DisposableCollection, Emitter } from '@theia/core';
6
+ import { nls } from '@theia/core/lib/common/nls';
7
+ import { PreferenceService } from '@theia/core/lib/common';
8
+ import { DEFAULT_TOOL_CONFIRMATION_PREFERENCE, TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
12
9
  /**
13
10
  * Persistent strip rendered above the chat content whenever an AI tool confirmation
14
11
  * preference (`ai-features.chat.defaultToolConfirmation` or `ai-features.chat.toolConfirmation`)
@@ -23,8 +20,8 @@ const chat_tool_preferences_1 = require("@theia/ai-chat/lib/common/chat-tool-pre
23
20
  let AiAllowAllModeChatBanner = class AiAllowAllModeChatBanner {
24
21
  constructor() {
25
22
  this.priority = 1000;
26
- this.toDispose = new core_1.DisposableCollection();
27
- this.onDidChangeEmitter = new core_1.Emitter();
23
+ this.toDispose = new DisposableCollection();
24
+ this.onDidChangeEmitter = new Emitter();
28
25
  this.onDidChange = this.onDidChangeEmitter.event;
29
26
  /**
30
27
  * Only tool confirmation preferences are watched here. Other AI session overrides
@@ -32,8 +29,8 @@ let AiAllowAllModeChatBanner = class AiAllowAllModeChatBanner {
32
29
  * Session Preferences status bar item to keep the banner from duplicating the list.
33
30
  */
34
31
  this.watchedKeys = [
35
- chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE,
36
- chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE
32
+ DEFAULT_TOOL_CONFIRMATION_PREFERENCE,
33
+ TOOL_CONFIRMATION_PREFERENCE
37
34
  ];
38
35
  /**
39
36
  * Process-lifetime dismissal flag. Reset on the next launch so the user is
@@ -88,18 +85,18 @@ let AiAllowAllModeChatBanner = class AiAllowAllModeChatBanner {
88
85
  const isAllowAll = overrides.some(override => override.bypass);
89
86
  const className = `theia-ai-allow-all-mode-strip ${isAllowAll ? 'is-allow-all' : 'is-overrides'}`;
90
87
  const title = isAllowAll
91
- ? nls_1.nls.localize('theia/ai/ide/allowAllMode/title', 'Theia AI Allow-All Mode')
92
- : nls_1.nls.localize('theia/ai/ide/toolConfirmationOverrides/title', 'AI Tool Confirmation Overrides');
88
+ ? nls.localize('theia/ai/ide/allowAllMode/title', 'Theia AI Allow-All Mode')
89
+ : nls.localize('theia/ai/ide/toolConfirmationOverrides/title', 'AI Tool Confirmation Overrides');
93
90
  const tooltipLines = [
94
91
  isAllowAll
95
- ? nls_1.nls.localize('theia/ai/ide/allowAllMode/stripTooltip', 'AI tool calls run without confirmation in this session. Only enable in environments you trust.')
96
- : nls_1.nls.localize('theia/ai/ide/toolConfirmationOverrides/stripTooltip', 'One or more AI tools are auto-approved for this session via command-line flags.'),
92
+ ? nls.localize('theia/ai/ide/allowAllMode/stripTooltip', 'AI tool calls run without confirmation in this session. Only enable in environments you trust.')
93
+ : nls.localize('theia/ai/ide/toolConfirmationOverrides/stripTooltip', 'One or more AI tools are auto-approved for this session via command-line flags.'),
97
94
  '',
98
95
  ...overrides.map(override => `• ${override.label}`),
99
96
  '',
100
- nls_1.nls.localize('theia/ai/ide/allowAllMode/stripTooltipFooter', 'Set via --session-preference. Restart without the flag to restore your saved settings.')
97
+ nls.localize('theia/ai/ide/allowAllMode/stripTooltipFooter', 'Set via --session-preference. Restart without the flag to restore your saved settings.')
101
98
  ];
102
- return (0, jsx_runtime_1.jsxs)("div", { className: className, title: tooltipLines.join('\n'), role: 'status', "aria-live": 'polite', children: [(0, jsx_runtime_1.jsx)("span", { className: `theia-ai-allow-all-mode-strip-icon ${(0, browser_1.codicon)('warning')}` }), (0, jsx_runtime_1.jsx)("span", { className: 'theia-ai-allow-all-mode-strip-title', children: title }), (0, jsx_runtime_1.jsx)("button", { type: 'button', className: `theia-ai-allow-all-mode-strip-dismiss ${(0, browser_1.codicon)('close')}`, title: nls_1.nls.localize('theia/ai/ide/allowAllMode/hideForThisSession', 'Hide for this session'), "aria-label": nls_1.nls.localize('theia/ai/ide/allowAllMode/hideForThisSession', 'Hide for this session'), onClick: this.handleDismiss })] });
99
+ return _jsxs("div", { className: className, title: tooltipLines.join('\n'), role: 'status', "aria-live": 'polite', children: [_jsx("span", { className: `theia-ai-allow-all-mode-strip-icon ${codicon('warning')}` }), _jsx("span", { className: 'theia-ai-allow-all-mode-strip-title', children: title }), _jsx("button", { type: 'button', className: `theia-ai-allow-all-mode-strip-dismiss ${codicon('close')}`, title: nls.localize('theia/ai/ide/allowAllMode/hideForThisSession', 'Hide for this session'), "aria-label": nls.localize('theia/ai/ide/allowAllMode/hideForThisSession', 'Hide for this session'), onClick: this.handleDismiss })] });
103
100
  }
104
101
  /** AI-relevant preferences currently coming from the session scope. */
105
102
  collectOverrides() {
@@ -123,23 +120,23 @@ let AiAllowAllModeChatBanner = class AiAllowAllModeChatBanner {
123
120
  * the whole strip to the red "Allow-All Mode" treatment.
124
121
  */
125
122
  isBypassValue(key, value) {
126
- if (key === chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE) {
127
- return value === chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW;
123
+ if (key === DEFAULT_TOOL_CONFIRMATION_PREFERENCE) {
124
+ return value === ToolConfirmationMode.ALWAYS_ALLOW;
128
125
  }
129
126
  return false;
130
127
  }
131
128
  describe(key, value) {
132
129
  switch (key) {
133
- case chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE:
134
- return nls_1.nls.localize('theia/ai/ide/sessionOverride/defaultToolConfirmation', 'Default tool confirmation: {0}', String(value));
135
- case chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE: {
130
+ case DEFAULT_TOOL_CONFIRMATION_PREFERENCE:
131
+ return nls.localize('theia/ai/ide/sessionOverride/defaultToolConfirmation', 'Default tool confirmation: {0}', String(value));
132
+ case TOOL_CONFIRMATION_PREFERENCE: {
136
133
  if (value && typeof value === 'object') {
137
134
  const entries = Object.entries(value)
138
135
  .map(([tool, mode]) => `${tool}=${mode}`)
139
136
  .join(', ');
140
- return nls_1.nls.localize('theia/ai/ide/sessionOverride/toolConfirmation', 'Per-tool confirmation overrides: {0}', entries);
137
+ return nls.localize('theia/ai/ide/sessionOverride/toolConfirmation', 'Per-tool confirmation overrides: {0}', entries);
141
138
  }
142
- return nls_1.nls.localize('theia/ai/ide/sessionOverride/toolConfirmationGeneric', 'Per-tool confirmation overrides set');
139
+ return nls.localize('theia/ai/ide/sessionOverride/toolConfirmationGeneric', 'Per-tool confirmation overrides set');
143
140
  }
144
141
  default:
145
142
  return `${key} = ${JSON.stringify(value)}`;
@@ -149,18 +146,14 @@ let AiAllowAllModeChatBanner = class AiAllowAllModeChatBanner {
149
146
  this.toDispose.dispose();
150
147
  }
151
148
  };
152
- exports.AiAllowAllModeChatBanner = AiAllowAllModeChatBanner;
153
- tslib_1.__decorate([
154
- (0, inversify_1.inject)(common_1.PreferenceService),
155
- tslib_1.__metadata("design:type", Object)
149
+ __decorate([
150
+ inject(PreferenceService)
156
151
  ], AiAllowAllModeChatBanner.prototype, "preferenceService", void 0);
157
- tslib_1.__decorate([
158
- (0, inversify_1.postConstruct)(),
159
- tslib_1.__metadata("design:type", Function),
160
- tslib_1.__metadata("design:paramtypes", []),
161
- tslib_1.__metadata("design:returntype", void 0)
152
+ __decorate([
153
+ postConstruct()
162
154
  ], AiAllowAllModeChatBanner.prototype, "init", null);
163
- exports.AiAllowAllModeChatBanner = AiAllowAllModeChatBanner = tslib_1.__decorate([
164
- (0, inversify_1.injectable)()
155
+ AiAllowAllModeChatBanner = __decorate([
156
+ injectable()
165
157
  ], AiAllowAllModeChatBanner);
158
+ export { AiAllowAllModeChatBanner };
166
159
  //# sourceMappingURL=ai-allow-all-mode-chat-banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-allow-all-mode-chat-banner.js","sourceRoot":"","sources":["../../src/browser/ai-allow-all-mode-chat-banner.tsx"],"names":[],"mappings":";;;;;AAiBA,4DAAiF;AACjF,qDAAkD;AAClD,sCAAmE;AACnE,oDAAiD;AACjD,mDAA2D;AAE3D,2FAIyD;AASzD;;;;;;;;;;GAUG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAA9B;QAEM,aAAQ,GAAG,IAAI,CAAC;QAKN,cAAS,GAAG,IAAI,2BAAoB,EAAE,CAAC;QACvC,uBAAkB,GAAG,IAAI,cAAO,EAAQ,CAAC;QACnD,gBAAW,GAAgB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC;QAElE;;;;WAIG;QACgB,gBAAW,GAA0B;YACpD,4DAAoC;YACpC,oDAA4B;SAC/B,CAAC;QAEF;;;;;WAKG;QACO,cAAS,GAAG,KAAK,CAAC;QAiIlB,kBAAa,GAAG,CAAC,CAAsC,EAAE,EAAE;YACjE,CAAC,CAAC,eAAe,EAAE,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;YACtB,gFAAgF;YAChF,8EAA8E;YAC9E,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACnD,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC;QACnC,CAAC,CAAC;IAKN,CAAC;IApIa,IAAI;QACV,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CA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AK,CAAC,CAAC,CAAC;YACzD,KAAK,4BAA4B,CAAC,CAAC,CAAC;gBAChC,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;oBACrC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAgC,CAAC;yBAC3D,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,IAAI,IAAI,EAAE,CAAC;yBACxC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAChB,OAAO,GAAG,CAAC,QAAQ,CAAC,+CAA+C,EAC/D,sCAAsC,EAAE,OAAO,CAAC,CAAC;gBACzD,CAAC;gBACD,OAAO,GAAG,CAAC,QAAQ,CAAC,sDAAsD,EACtE,qCAAqC,CAAC,CAAC;YAC/C,CAAC;YACD;gBACI,OAAO,GAAG,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;QACnD,CAAC;IACL,CAAC;IAWD,OAAO;QACH,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AAnKsB;IADlB,MAAM,CAAC,iBAAiB,CAAC;mEAC8B;AA+B9C;IADT,aAAa,EAAE;oDAgBf;AAnDQ,wBAAwB;IADpC,UAAU,EAAE;GACA,wBAAwB,CAwKpC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // *****************************************************************************
3
2
  // Copyright (C) 2026 EclipseSource and others.
4
3
  //
@@ -14,15 +13,14 @@
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 chat_tool_preferences_1 = require("@theia/ai-chat/lib/common/chat-tool-preferences");
25
- const ai_allow_all_mode_chat_banner_1 = require("./ai-allow-all-mode-chat-banner");
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 { Emitter } from '@theia/core';
22
+ import { DEFAULT_TOOL_CONFIRMATION_PREFERENCE, TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
23
+ import { AiAllowAllModeChatBanner } from './ai-allow-all-mode-chat-banner.js';
26
24
  disableJSDOM();
27
25
  /**
28
26
  * Test double for the subset of `PreferenceService` the banner actually uses.
@@ -32,7 +30,7 @@ disableJSDOM();
32
30
  class FakePreferenceService {
33
31
  constructor() {
34
32
  this.sessionValues = new Map();
35
- this.changeEmitter = new core_1.Emitter();
33
+ this.changeEmitter = new Emitter();
36
34
  this.onPreferenceChanged = this.changeEmitter.event;
37
35
  }
38
36
  inspect(key) {
@@ -54,14 +52,14 @@ class FakePreferenceService {
54
52
  }
55
53
  describe('AiAllowAllModeChatBanner', () => {
56
54
  before(() => {
57
- disableJSDOM = (0, jsdom_1.enableJSDOM)();
55
+ disableJSDOM = enableJSDOM();
58
56
  });
59
57
  after(() => {
60
58
  disableJSDOM();
61
59
  });
62
60
  function createBanner(prefService) {
63
61
  const prefs = prefService ?? new FakePreferenceService();
64
- const banner = new ai_allow_all_mode_chat_banner_1.AiAllowAllModeChatBanner();
62
+ const banner = new AiAllowAllModeChatBanner();
65
63
  // Wire the fake preference service into the private inject site, then run the
66
64
  // `@postConstruct` init manually. Doing this without a full DI container keeps the
67
65
  // test focused on the banner's own logic.
@@ -72,98 +70,98 @@ describe('AiAllowAllModeChatBanner', () => {
72
70
  describe('isBypassValue', () => {
73
71
  it('flags Allow-All only when the global default is forced to ALWAYS_ALLOW', () => {
74
72
  const { banner } = createBanner();
75
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW)).to.be.true;
76
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.CONFIRM)).to.be.false;
77
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.DISABLED)).to.be.false;
73
+ expect(banner.isBypassValue(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.ALWAYS_ALLOW)).to.be.true;
74
+ expect(banner.isBypassValue(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.CONFIRM)).to.be.false;
75
+ expect(banner.isBypassValue(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.DISABLED)).to.be.false;
78
76
  });
79
77
  it('does not flag Allow-All for per-tool ALWAYS_ALLOW entries', () => {
80
78
  // Per-tool overrides are scoped exceptions and stay informational rather than
81
79
  // escalating the strip to the red Allow-All treatment.
82
80
  const { banner } = createBanner();
83
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW })).to.be.false;
84
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, {
85
- shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW,
86
- writeFile: chat_tool_preferences_1.ToolConfirmationMode.CONFIRM
81
+ expect(banner.isBypassValue(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW })).to.be.false;
82
+ expect(banner.isBypassValue(TOOL_CONFIRMATION_PREFERENCE, {
83
+ shellExecute: ToolConfirmationMode.ALWAYS_ALLOW,
84
+ writeFile: ToolConfirmationMode.CONFIRM
87
85
  })).to.be.false;
88
- (0, chai_1.expect)(banner.isBypassValue(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, {})).to.be.false;
86
+ expect(banner.isBypassValue(TOOL_CONFIRMATION_PREFERENCE, {})).to.be.false;
89
87
  });
90
88
  it('returns false for unrelated keys', () => {
91
89
  const { banner } = createBanner();
92
- (0, chai_1.expect)(banner.isBypassValue('ai-features.AiEnable.enableAI', true)).to.be.false;
93
- (0, chai_1.expect)(banner.isBypassValue('ai-features.agentMode.enabled', true)).to.be.false;
94
- (0, chai_1.expect)(banner.isBypassValue('ai-features.chat.defaultChatAgent', 'Coder')).to.be.false;
90
+ expect(banner.isBypassValue('ai-features.AiEnable.enableAI', true)).to.be.false;
91
+ expect(banner.isBypassValue('ai-features.agentMode.enabled', true)).to.be.false;
92
+ expect(banner.isBypassValue('ai-features.chat.defaultChatAgent', 'Coder')).to.be.false;
95
93
  });
96
94
  });
97
95
  describe('collectOverrides', () => {
98
96
  it('is empty when no watched preference has a session value', () => {
99
97
  const { banner } = createBanner();
100
- (0, chai_1.expect)(banner.collectOverrides()).to.deep.equal([]);
98
+ expect(banner.collectOverrides()).to.deep.equal([]);
101
99
  });
102
100
  it('reports the default tool confirmation with bypass=true when forced to ALWAYS_ALLOW', () => {
103
101
  const { banner, prefs } = createBanner();
104
- prefs.setSession(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW);
102
+ prefs.setSession(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.ALWAYS_ALLOW);
105
103
  const overrides = banner.collectOverrides();
106
- (0, chai_1.expect)(overrides).to.have.lengthOf(1);
107
- (0, chai_1.expect)(overrides[0].bypass).to.be.true;
108
- (0, chai_1.expect)(overrides[0].label).to.contain(chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW);
104
+ expect(overrides).to.have.lengthOf(1);
105
+ expect(overrides[0].bypass).to.be.true;
106
+ expect(overrides[0].label).to.contain(ToolConfirmationMode.ALWAYS_ALLOW);
109
107
  });
110
108
  it('reports per-tool entries with bypass=false', () => {
111
109
  const { banner, prefs } = createBanner();
112
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW });
110
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW });
113
111
  const overrides = banner.collectOverrides();
114
- (0, chai_1.expect)(overrides).to.have.lengthOf(1);
115
- (0, chai_1.expect)(overrides[0].bypass).to.be.false;
116
- (0, chai_1.expect)(overrides[0].label).to.contain('shellExecute');
112
+ expect(overrides).to.have.lengthOf(1);
113
+ expect(overrides[0].bypass).to.be.false;
114
+ expect(overrides[0].label).to.contain('shellExecute');
117
115
  });
118
116
  });
119
117
  describe('renderBanner', () => {
120
118
  it('returns undefined when there are no overrides', () => {
121
119
  const { banner } = createBanner();
122
- (0, chai_1.expect)(banner.renderBanner()).to.equal(undefined);
120
+ expect(banner.renderBanner()).to.equal(undefined);
123
121
  });
124
122
  it('returns undefined once the strip has been dismissed', () => {
125
123
  const { banner, prefs } = createBanner();
126
- prefs.setSession(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW);
127
- (0, chai_1.expect)(banner.renderBanner()).to.not.equal(undefined);
124
+ prefs.setSession(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.ALWAYS_ALLOW);
125
+ expect(banner.renderBanner()).to.not.equal(undefined);
128
126
  banner.dismissed = true;
129
- (0, chai_1.expect)(banner.renderBanner()).to.equal(undefined);
127
+ expect(banner.renderBanner()).to.equal(undefined);
130
128
  });
131
129
  it('returns a rendered node when at least one override is active', () => {
132
130
  const { banner, prefs } = createBanner();
133
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW });
134
- (0, chai_1.expect)(banner.renderBanner()).to.not.equal(undefined);
131
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW });
132
+ expect(banner.renderBanner()).to.not.equal(undefined);
135
133
  });
136
134
  });
137
135
  describe('dismissal reset', () => {
138
136
  it('un-dismisses the strip when the override set escalates into a bypass state', () => {
139
137
  const { banner, prefs } = createBanner();
140
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW });
138
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW });
141
139
  banner.dismissed = true;
142
140
  banner.dismissedSignature = banner.overrideSignature();
143
- prefs.setSession(chat_tool_preferences_1.DEFAULT_TOOL_CONFIRMATION_PREFERENCE, chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW);
144
- (0, chai_1.expect)(banner.dismissed).to.be.false;
145
- (0, chai_1.expect)(banner.dismissedSignature).to.equal(undefined);
141
+ prefs.setSession(DEFAULT_TOOL_CONFIRMATION_PREFERENCE, ToolConfirmationMode.ALWAYS_ALLOW);
142
+ expect(banner.dismissed).to.be.false;
143
+ expect(banner.dismissedSignature).to.equal(undefined);
146
144
  });
147
145
  it('un-dismisses the strip when a new override is added while the strip was dismissed', () => {
148
146
  const { banner, prefs } = createBanner();
149
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW });
147
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW });
150
148
  banner.dismissed = true;
151
149
  banner.dismissedSignature = banner.overrideSignature();
152
150
  // Broaden the per-tool override set. Same key, added tool entry; the signature must differ.
153
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, {
154
- shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW,
155
- writeFile: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW
151
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, {
152
+ shellExecute: ToolConfirmationMode.ALWAYS_ALLOW,
153
+ writeFile: ToolConfirmationMode.ALWAYS_ALLOW
156
154
  });
157
- (0, chai_1.expect)(banner.dismissed).to.be.false;
155
+ expect(banner.dismissed).to.be.false;
158
156
  });
159
157
  it('leaves the dismissal alone when a change event fires with the same override set', () => {
160
158
  const { banner, prefs } = createBanner();
161
- prefs.setSession(chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE, { shellExecute: chat_tool_preferences_1.ToolConfirmationMode.ALWAYS_ALLOW });
159
+ prefs.setSession(TOOL_CONFIRMATION_PREFERENCE, { shellExecute: ToolConfirmationMode.ALWAYS_ALLOW });
162
160
  banner.dismissed = true;
163
161
  banner.dismissedSignature = banner.overrideSignature();
164
162
  // Fire a change event without actually changing the underlying value.
165
- prefs.changeEmitter.fire({ preferenceName: chat_tool_preferences_1.TOOL_CONFIRMATION_PREFERENCE });
166
- (0, chai_1.expect)(banner.dismissed).to.be.true;
163
+ prefs.changeEmitter.fire({ preferenceName: TOOL_CONFIRMATION_PREFERENCE });
164
+ expect(banner.dismissed).to.be.true;
167
165
  });
168
166
  });
169
167
  });