@theia/ai-ide 1.67.0-next.3 → 1.67.0-next.56

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 (306) hide show
  1. package/README.md +1 -0
  2. package/package.json +21 -21
  3. package/src/browser/ai-configuration/agent-configuration-widget.tsx +3 -3
  4. package/src/browser/context-file-validation-service-impl.spec.ts +405 -0
  5. package/src/browser/context-file-validation-service-impl.ts +120 -0
  6. package/src/browser/context-functions.spec.ts +155 -1
  7. package/src/browser/context-functions.ts +40 -6
  8. package/src/browser/file-changeset-functions.spec.ts +13 -13
  9. package/src/browser/file-changeset-functions.ts +9 -9
  10. package/src/browser/frontend-module.ts +12 -4
  11. package/src/browser/ide-chat-welcome-message-provider.tsx +64 -70
  12. package/src/browser/remember-command-contribution.ts +105 -0
  13. package/src/browser/workspace-functions.ts +68 -1
  14. package/src/common/ai-ide-preferences.ts +1 -1
  15. package/src/common/coder-replace-prompt-template.ts +8 -9
  16. package/src/common/command-prompt-template.ts +5 -5
  17. package/src/common/file-changeset-function-ids.ts +15 -1
  18. package/src/common/orchestrator-chat-agent.ts +2 -2
  19. package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -41
  20. package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
  21. package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -333
  22. package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
  23. package/lib/browser/ai-configuration/ai-configuration-service.d.ts +0 -18
  24. package/lib/browser/ai-configuration/ai-configuration-service.d.ts.map +0 -1
  25. package/lib/browser/ai-configuration/ai-configuration-service.js +0 -53
  26. package/lib/browser/ai-configuration/ai-configuration-service.js.map +0 -1
  27. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +0 -14
  28. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +0 -1
  29. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +0 -67
  30. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +0 -1
  31. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +0 -29
  32. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +0 -1
  33. package/lib/browser/ai-configuration/ai-configuration-widget.js +0 -118
  34. package/lib/browser/ai-configuration/ai-configuration-widget.js.map +0 -1
  35. package/lib/browser/ai-configuration/language-model-renderer.d.ts +0 -13
  36. package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +0 -1
  37. package/lib/browser/ai-configuration/language-model-renderer.js +0 -104
  38. package/lib/browser/ai-configuration/language-model-renderer.js.map +0 -1
  39. package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts +0 -43
  40. package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts.map +0 -1
  41. package/lib/browser/ai-configuration/mcp-configuration-widget.js +0 -302
  42. package/lib/browser/ai-configuration/mcp-configuration-widget.js.map +0 -1
  43. package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -41
  44. package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
  45. package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -226
  46. package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
  47. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -141
  48. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
  49. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
  50. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
  51. package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -10
  52. package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
  53. package/lib/browser/ai-configuration/template-settings-renderer.js +0 -48
  54. package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
  55. package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -22
  56. package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
  57. package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -156
  58. package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
  59. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -30
  60. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
  61. package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -150
  62. package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
  63. package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -19
  64. package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
  65. package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -99
  66. package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
  67. package/lib/browser/ai-ide-activation-service.d.ts +0 -18
  68. package/lib/browser/ai-ide-activation-service.d.ts.map +0 -1
  69. package/lib/browser/ai-ide-activation-service.js +0 -71
  70. package/lib/browser/ai-ide-activation-service.js.map +0 -1
  71. package/lib/browser/ai-terminal-functions.d.ts +0 -13
  72. package/lib/browser/ai-terminal-functions.d.ts.map +0 -1
  73. package/lib/browser/ai-terminal-functions.js +0 -114
  74. package/lib/browser/ai-terminal-functions.js.map +0 -1
  75. package/lib/browser/app-tester-chat-agent.d.ts +0 -35
  76. package/lib/browser/app-tester-chat-agent.d.ts.map +0 -1
  77. package/lib/browser/app-tester-chat-agent.js +0 -142
  78. package/lib/browser/app-tester-chat-agent.js.map +0 -1
  79. package/lib/browser/app-tester-chat-functions.d.ts +0 -25
  80. package/lib/browser/app-tester-chat-functions.d.ts.map +0 -1
  81. package/lib/browser/app-tester-chat-functions.js +0 -170
  82. package/lib/browser/app-tester-chat-functions.js.map +0 -1
  83. package/lib/browser/app-tester-prompt-template.d.ts +0 -6
  84. package/lib/browser/app-tester-prompt-template.d.ts.map +0 -1
  85. package/lib/browser/app-tester-prompt-template.js +0 -83
  86. package/lib/browser/app-tester-prompt-template.js.map +0 -1
  87. package/lib/browser/architect-agent.d.ts +0 -15
  88. package/lib/browser/architect-agent.d.ts.map +0 -1
  89. package/lib/browser/architect-agent.js +0 -68
  90. package/lib/browser/architect-agent.js.map +0 -1
  91. package/lib/browser/coder-agent.d.ts +0 -15
  92. package/lib/browser/coder-agent.d.ts.map +0 -1
  93. package/lib/browser/coder-agent.js +0 -81
  94. package/lib/browser/coder-agent.js.map +0 -1
  95. package/lib/browser/context-functions.d.ts +0 -14
  96. package/lib/browser/context-functions.d.ts.map +0 -1
  97. package/lib/browser/context-functions.js +0 -130
  98. package/lib/browser/context-functions.js.map +0 -1
  99. package/lib/browser/context-functions.spec.d.ts +0 -2
  100. package/lib/browser/context-functions.spec.d.ts.map +0 -1
  101. package/lib/browser/context-functions.spec.js +0 -93
  102. package/lib/browser/context-functions.spec.js.map +0 -1
  103. package/lib/browser/file-changeset-function.spec.d.ts +0 -2
  104. package/lib/browser/file-changeset-function.spec.d.ts.map +0 -1
  105. package/lib/browser/file-changeset-function.spec.js +0 -45
  106. package/lib/browser/file-changeset-function.spec.js.map +0 -1
  107. package/lib/browser/file-changeset-functions.d.ts +0 -87
  108. package/lib/browser/file-changeset-functions.d.ts.map +0 -1
  109. package/lib/browser/file-changeset-functions.js +0 -645
  110. package/lib/browser/file-changeset-functions.js.map +0 -1
  111. package/lib/browser/file-changeset-functions.spec.d.ts +0 -2
  112. package/lib/browser/file-changeset-functions.spec.d.ts.map +0 -1
  113. package/lib/browser/file-changeset-functions.spec.js +0 -179
  114. package/lib/browser/file-changeset-functions.spec.js.map +0 -1
  115. package/lib/browser/frontend-module.d.ts +0 -5
  116. package/lib/browser/frontend-module.d.ts.map +0 -1
  117. package/lib/browser/frontend-module.js +0 -214
  118. package/lib/browser/frontend-module.js.map +0 -1
  119. package/lib/browser/github-chat-agent.d.ts +0 -48
  120. package/lib/browser/github-chat-agent.d.ts.map +0 -1
  121. package/lib/browser/github-chat-agent.js +0 -222
  122. package/lib/browser/github-chat-agent.js.map +0 -1
  123. package/lib/browser/github-prompt-template.d.ts +0 -6
  124. package/lib/browser/github-prompt-template.d.ts.map +0 -1
  125. package/lib/browser/github-prompt-template.js +0 -53
  126. package/lib/browser/github-prompt-template.js.map +0 -1
  127. package/lib/browser/github-repo-variable-contribution.d.ts +0 -15
  128. package/lib/browser/github-repo-variable-contribution.d.ts.map +0 -1
  129. package/lib/browser/github-repo-variable-contribution.js +0 -82
  130. package/lib/browser/github-repo-variable-contribution.js.map +0 -1
  131. package/lib/browser/ide-chat-welcome-message-provider.d.ts +0 -11
  132. package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +0 -1
  133. package/lib/browser/ide-chat-welcome-message-provider.js +0 -142
  134. package/lib/browser/ide-chat-welcome-message-provider.js.map +0 -1
  135. package/lib/browser/project-info-agent.d.ts +0 -13
  136. package/lib/browser/project-info-agent.d.ts.map +0 -1
  137. package/lib/browser/project-info-agent.js +0 -45
  138. package/lib/browser/project-info-agent.js.map +0 -1
  139. package/lib/browser/summarize-session-command-contribution.d.ts +0 -19
  140. package/lib/browser/summarize-session-command-contribution.d.ts.map +0 -1
  141. package/lib/browser/summarize-session-command-contribution.js +0 -118
  142. package/lib/browser/summarize-session-command-contribution.js.map +0 -1
  143. package/lib/browser/task-background-summary-variable.d.ts +0 -9
  144. package/lib/browser/task-background-summary-variable.d.ts.map +0 -1
  145. package/lib/browser/task-background-summary-variable.js +0 -60
  146. package/lib/browser/task-background-summary-variable.js.map +0 -1
  147. package/lib/browser/task-context-agent.d.ts +0 -13
  148. package/lib/browser/task-context-agent.d.ts.map +0 -1
  149. package/lib/browser/task-context-agent.js +0 -45
  150. package/lib/browser/task-context-agent.js.map +0 -1
  151. package/lib/browser/task-context-file-storage-service.d.ts +0 -40
  152. package/lib/browser/task-context-file-storage-service.d.ts.map +0 -1
  153. package/lib/browser/task-context-file-storage-service.js +0 -232
  154. package/lib/browser/task-context-file-storage-service.js.map +0 -1
  155. package/lib/browser/template-preference-contribution.d.ts +0 -17
  156. package/lib/browser/template-preference-contribution.d.ts.map +0 -1
  157. package/lib/browser/template-preference-contribution.js +0 -94
  158. package/lib/browser/template-preference-contribution.js.map +0 -1
  159. package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts +0 -2
  160. package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts.map +0 -1
  161. package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +0 -52
  162. package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +0 -1
  163. package/lib/browser/workspace-functions.d.ts +0 -75
  164. package/lib/browser/workspace-functions.d.ts.map +0 -1
  165. package/lib/browser/workspace-functions.js +0 -641
  166. package/lib/browser/workspace-functions.js.map +0 -1
  167. package/lib/browser/workspace-functions.spec.d.ts +0 -2
  168. package/lib/browser/workspace-functions.spec.d.ts.map +0 -1
  169. package/lib/browser/workspace-functions.spec.js +0 -161
  170. package/lib/browser/workspace-functions.spec.js.map +0 -1
  171. package/lib/browser/workspace-launch-provider.d.ts +0 -24
  172. package/lib/browser/workspace-launch-provider.d.ts.map +0 -1
  173. package/lib/browser/workspace-launch-provider.js +0 -216
  174. package/lib/browser/workspace-launch-provider.js.map +0 -1
  175. package/lib/browser/workspace-launch-provider.spec.d.ts +0 -2
  176. package/lib/browser/workspace-launch-provider.spec.d.ts.map +0 -1
  177. package/lib/browser/workspace-launch-provider.spec.js +0 -245
  178. package/lib/browser/workspace-launch-provider.spec.js.map +0 -1
  179. package/lib/browser/workspace-search-provider.d.ts +0 -15
  180. package/lib/browser/workspace-search-provider.d.ts.map +0 -1
  181. package/lib/browser/workspace-search-provider.js +0 -204
  182. package/lib/browser/workspace-search-provider.js.map +0 -1
  183. package/lib/browser/workspace-search-provider.spec.d.ts +0 -2
  184. package/lib/browser/workspace-search-provider.spec.d.ts.map +0 -1
  185. package/lib/browser/workspace-search-provider.spec.js +0 -82
  186. package/lib/browser/workspace-search-provider.spec.js.map +0 -1
  187. package/lib/browser/workspace-task-provider.d.ts +0 -15
  188. package/lib/browser/workspace-task-provider.d.ts.map +0 -1
  189. package/lib/browser/workspace-task-provider.js +0 -138
  190. package/lib/browser/workspace-task-provider.js.map +0 -1
  191. package/lib/browser/workspace-task-provider.spec.d.ts +0 -2
  192. package/lib/browser/workspace-task-provider.spec.d.ts.map +0 -1
  193. package/lib/browser/workspace-task-provider.spec.js +0 -109
  194. package/lib/browser/workspace-task-provider.spec.js.map +0 -1
  195. package/lib/common/ai-configuration-preferences.d.ts +0 -8
  196. package/lib/common/ai-configuration-preferences.d.ts.map +0 -1
  197. package/lib/common/ai-configuration-preferences.js +0 -41
  198. package/lib/common/ai-configuration-preferences.js.map +0 -1
  199. package/lib/common/ai-ide-preferences.d.ts +0 -5
  200. package/lib/common/ai-ide-preferences.d.ts.map +0 -1
  201. package/lib/common/ai-ide-preferences.js +0 -53
  202. package/lib/common/ai-ide-preferences.js.map +0 -1
  203. package/lib/common/ai-terminal-functions.d.ts +0 -2
  204. package/lib/common/ai-terminal-functions.d.ts.map +0 -1
  205. package/lib/common/ai-terminal-functions.js +0 -20
  206. package/lib/common/ai-terminal-functions.js.map +0 -1
  207. package/lib/common/app-tester-chat-functions.d.ts +0 -5
  208. package/lib/common/app-tester-chat-functions.d.ts.map +0 -1
  209. package/lib/common/app-tester-chat-functions.js +0 -23
  210. package/lib/common/app-tester-chat-functions.js.map +0 -1
  211. package/lib/common/architect-prompt-template.d.ts +0 -3
  212. package/lib/common/architect-prompt-template.d.ts.map +0 -1
  213. package/lib/common/architect-prompt-template.js +0 -81
  214. package/lib/common/architect-prompt-template.js.map +0 -1
  215. package/lib/common/browser-automation-protocol.d.ts +0 -15
  216. package/lib/common/browser-automation-protocol.d.ts.map +0 -1
  217. package/lib/common/browser-automation-protocol.js +0 -22
  218. package/lib/common/browser-automation-protocol.js.map +0 -1
  219. package/lib/common/coder-replace-prompt-template.d.ts +0 -11
  220. package/lib/common/coder-replace-prompt-template.d.ts.map +0 -1
  221. package/lib/common/coder-replace-prompt-template.js +0 -295
  222. package/lib/common/coder-replace-prompt-template.js.map +0 -1
  223. package/lib/common/command-chat-agents.d.ts +0 -36
  224. package/lib/common/command-chat-agents.d.ts.map +0 -1
  225. package/lib/common/command-chat-agents.js +0 -122
  226. package/lib/common/command-chat-agents.js.map +0 -1
  227. package/lib/common/command-prompt-template.d.ts +0 -3
  228. package/lib/common/command-prompt-template.d.ts.map +0 -1
  229. package/lib/common/command-prompt-template.js +0 -226
  230. package/lib/common/command-prompt-template.js.map +0 -1
  231. package/lib/common/context-files-variable.d.ts +0 -9
  232. package/lib/common/context-files-variable.d.ts.map +0 -1
  233. package/lib/common/context-files-variable.js +0 -52
  234. package/lib/common/context-files-variable.js.map +0 -1
  235. package/lib/common/context-functions.d.ts +0 -4
  236. package/lib/common/context-functions.d.ts.map +0 -1
  237. package/lib/common/context-functions.js +0 -22
  238. package/lib/common/context-functions.js.map +0 -1
  239. package/lib/common/context-variables.d.ts +0 -3
  240. package/lib/common/context-variables.d.ts.map +0 -1
  241. package/lib/common/context-variables.js +0 -21
  242. package/lib/common/context-variables.js.map +0 -1
  243. package/lib/common/file-changeset-function-ids.d.ts +0 -8
  244. package/lib/common/file-changeset-function-ids.d.ts.map +0 -1
  245. package/lib/common/file-changeset-function-ids.js +0 -26
  246. package/lib/common/file-changeset-function-ids.js.map +0 -1
  247. package/lib/common/github-repo-protocol.d.ts +0 -15
  248. package/lib/common/github-repo-protocol.d.ts.map +0 -1
  249. package/lib/common/github-repo-protocol.js +0 -21
  250. package/lib/common/github-repo-protocol.js.map +0 -1
  251. package/lib/common/orchestrator-chat-agent.d.ts +0 -36
  252. package/lib/common/orchestrator-chat-agent.d.ts.map +0 -1
  253. package/lib/common/orchestrator-chat-agent.js +0 -167
  254. package/lib/common/orchestrator-chat-agent.js.map +0 -1
  255. package/lib/common/orchestrator-prompt-template.d.ts +0 -3
  256. package/lib/common/orchestrator-prompt-template.d.ts.map +0 -1
  257. package/lib/common/orchestrator-prompt-template.js +0 -55
  258. package/lib/common/orchestrator-prompt-template.js.map +0 -1
  259. package/lib/common/project-info-prompt-template.d.ts +0 -6
  260. package/lib/common/project-info-prompt-template.d.ts.map +0 -1
  261. package/lib/common/project-info-prompt-template.js +0 -145
  262. package/lib/common/project-info-prompt-template.js.map +0 -1
  263. package/lib/common/summarize-session-commands.d.ts +0 -4
  264. package/lib/common/summarize-session-commands.d.ts.map +0 -1
  265. package/lib/common/summarize-session-commands.js +0 -28
  266. package/lib/common/summarize-session-commands.js.map +0 -1
  267. package/lib/common/task-context-prompt-template.d.ts +0 -8
  268. package/lib/common/task-context-prompt-template.d.ts.map +0 -1
  269. package/lib/common/task-context-prompt-template.js +0 -217
  270. package/lib/common/task-context-prompt-template.js.map +0 -1
  271. package/lib/common/universal-chat-agent.d.ts +0 -17
  272. package/lib/common/universal-chat-agent.d.ts.map +0 -1
  273. package/lib/common/universal-chat-agent.js +0 -47
  274. package/lib/common/universal-chat-agent.js.map +0 -1
  275. package/lib/common/universal-prompt-template.d.ts +0 -4
  276. package/lib/common/universal-prompt-template.d.ts.map +0 -1
  277. package/lib/common/universal-prompt-template.js +0 -32
  278. package/lib/common/universal-prompt-template.js.map +0 -1
  279. package/lib/common/workspace-functions.d.ts +0 -12
  280. package/lib/common/workspace-functions.d.ts.map +0 -1
  281. package/lib/common/workspace-functions.js +0 -30
  282. package/lib/common/workspace-functions.js.map +0 -1
  283. package/lib/common/workspace-preferences.d.ts +0 -10
  284. package/lib/common/workspace-preferences.d.ts.map +0 -1
  285. package/lib/common/workspace-preferences.js +0 -89
  286. package/lib/common/workspace-preferences.js.map +0 -1
  287. package/lib/common/workspace-search-provider-util.d.ts +0 -17
  288. package/lib/common/workspace-search-provider-util.d.ts.map +0 -1
  289. package/lib/common/workspace-search-provider-util.js +0 -51
  290. package/lib/common/workspace-search-provider-util.js.map +0 -1
  291. package/lib/node/app-tester-agent/browser-automation-impl.d.ts +0 -18
  292. package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +0 -1
  293. package/lib/node/app-tester-agent/browser-automation-impl.js +0 -96
  294. package/lib/node/app-tester-agent/browser-automation-impl.js.map +0 -1
  295. package/lib/node/backend-module.d.ts +0 -4
  296. package/lib/node/backend-module.d.ts.map +0 -1
  297. package/lib/node/backend-module.js +0 -45
  298. package/lib/node/backend-module.js.map +0 -1
  299. package/lib/node/github-repo-service-impl.d.ts +0 -7
  300. package/lib/node/github-repo-service-impl.d.ts.map +0 -1
  301. package/lib/node/github-repo-service-impl.js +0 -86
  302. package/lib/node/github-repo-service-impl.js.map +0 -1
  303. package/lib/package.spec.d.ts +0 -1
  304. package/lib/package.spec.d.ts.map +0 -1
  305. package/lib/package.spec.js +0 -26
  306. package/lib/package.spec.js.map +0 -1
@@ -1,138 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2024 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.TaskRunnerProvider = exports.TaskListProvider = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const task_service_1 = require("@theia/task/lib/browser/task-service");
22
- const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
23
- const workspace_functions_1 = require("../common/workspace-functions");
24
- let TaskListProvider = class TaskListProvider {
25
- getTool() {
26
- return {
27
- id: workspace_functions_1.LIST_TASKS_FUNCTION_ID,
28
- name: workspace_functions_1.LIST_TASKS_FUNCTION_ID,
29
- description: 'Lists available tool tasks in the workspace, such as build, run, test. Tasks can be filtered by name.',
30
- parameters: {
31
- type: 'object',
32
- properties: {
33
- filter: {
34
- type: 'string',
35
- description: 'Filter to apply on task names (empty string to retrieve all tasks).'
36
- }
37
- },
38
- required: ['filter']
39
- },
40
- handler: async (argString, ctx) => {
41
- var _a, _b;
42
- if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.response) === null || _a === void 0 ? void 0 : _a.cancellationToken) === null || _b === void 0 ? void 0 : _b.isCancellationRequested) {
43
- return JSON.stringify({ error: 'Operation cancelled by user' });
44
- }
45
- const filterArgs = JSON.parse(argString);
46
- const tasks = await this.getAvailableTasks(filterArgs.filter);
47
- const taskString = JSON.stringify(tasks);
48
- return taskString;
49
- }
50
- };
51
- }
52
- async getAvailableTasks(filter = '') {
53
- const userActionToken = this.taskService.startUserAction();
54
- const tasks = await this.taskService.getTasks(userActionToken);
55
- const filteredTasks = tasks.filter(task => task.label.toLowerCase().includes(filter.toLowerCase()));
56
- return filteredTasks.map(task => task.label);
57
- }
58
- };
59
- exports.TaskListProvider = TaskListProvider;
60
- tslib_1.__decorate([
61
- (0, inversify_1.inject)(task_service_1.TaskService),
62
- tslib_1.__metadata("design:type", task_service_1.TaskService)
63
- ], TaskListProvider.prototype, "taskService", void 0);
64
- exports.TaskListProvider = TaskListProvider = tslib_1.__decorate([
65
- (0, inversify_1.injectable)()
66
- ], TaskListProvider);
67
- let TaskRunnerProvider = class TaskRunnerProvider {
68
- getTool() {
69
- return {
70
- id: workspace_functions_1.RUN_TASK_FUNCTION_ID,
71
- name: workspace_functions_1.RUN_TASK_FUNCTION_ID,
72
- description: 'Executes a specified task.',
73
- parameters: {
74
- type: 'object',
75
- properties: {
76
- taskName: {
77
- type: 'string',
78
- description: 'The name of the task to execute.'
79
- }
80
- },
81
- required: ['taskName']
82
- },
83
- handler: async (argString, ctx) => { var _a; return this.handleRunTask(argString, (_a = ctx === null || ctx === void 0 ? void 0 : ctx.response) === null || _a === void 0 ? void 0 : _a.cancellationToken); }
84
- };
85
- }
86
- async handleRunTask(argString, cancellationToken) {
87
- var _a, _b;
88
- try {
89
- const args = JSON.parse(argString);
90
- const token = this.taskService.startUserAction();
91
- const taskInfo = await this.taskService.runTaskByLabel(token, args.taskName);
92
- if (!taskInfo) {
93
- return `Did not find a task for the label: '${args.taskName}'`;
94
- }
95
- cancellationToken === null || cancellationToken === void 0 ? void 0 : cancellationToken.onCancellationRequested(() => {
96
- this.taskService.terminateTask(taskInfo);
97
- });
98
- if (cancellationToken === null || cancellationToken === void 0 ? void 0 : cancellationToken.isCancellationRequested) {
99
- return JSON.stringify({ error: 'Operation cancelled by user' });
100
- }
101
- const signal = await this.taskService.getTerminateSignal(taskInfo.taskId);
102
- if (taskInfo.terminalId) {
103
- const terminal = this.terminalService.getByTerminalId(taskInfo.terminalId);
104
- const length = (_a = terminal === null || terminal === void 0 ? void 0 : terminal.buffer.length) !== null && _a !== void 0 ? _a : 0;
105
- const numberOfLines = Math.min(length, 50);
106
- const result = [];
107
- const allLines = (_b = terminal === null || terminal === void 0 ? void 0 : terminal.buffer.getLines(0, length).reverse()) !== null && _b !== void 0 ? _b : [];
108
- // collect the first 50 lines:
109
- const firstLines = allLines.slice(0, numberOfLines);
110
- result.push(...firstLines);
111
- // collect the last 50 lines:
112
- if (length > numberOfLines) {
113
- const lastLines = allLines.slice(length - numberOfLines);
114
- result.push(...lastLines);
115
- }
116
- terminal === null || terminal === void 0 ? void 0 : terminal.clearOutput();
117
- return result.join('\n');
118
- }
119
- return `No terminal output available. The terminate signal was :${signal}.`;
120
- }
121
- catch (error) {
122
- return JSON.stringify({ success: false, message: error.message || 'Failed to run task' });
123
- }
124
- }
125
- };
126
- exports.TaskRunnerProvider = TaskRunnerProvider;
127
- tslib_1.__decorate([
128
- (0, inversify_1.inject)(task_service_1.TaskService),
129
- tslib_1.__metadata("design:type", task_service_1.TaskService)
130
- ], TaskRunnerProvider.prototype, "taskService", void 0);
131
- tslib_1.__decorate([
132
- (0, inversify_1.inject)(terminal_service_1.TerminalService),
133
- tslib_1.__metadata("design:type", Object)
134
- ], TaskRunnerProvider.prototype, "terminalService", void 0);
135
- exports.TaskRunnerProvider = TaskRunnerProvider = tslib_1.__decorate([
136
- (0, inversify_1.injectable)()
137
- ], TaskRunnerProvider);
138
- //# sourceMappingURL=workspace-task-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-task-provider.js","sourceRoot":"","sources":["../../src/browser/workspace-task-provider.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,uEAAmE;AACnE,wFAAoF;AAGpF,uEAA6F;AAGtF,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAKzB,OAAO;QACH,OAAO;YACH,EAAE,EAAE,4CAAsB;YAC1B,IAAI,EAAE,4CAAsB;YAC5B,WAAW,EAAE,uGAAuG;YACpH,UAAU,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qEAAqE;qBACrF;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;YACD,OAAO,EAAE,KAAK,EAAE,SAAiB,EAAE,GAA4B,EAAE,EAAE;;gBAC/D,IAAI,MAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,iBAAiB,0CAAE,uBAAuB,EAAE,CAAC;oBAC5D,OAAO,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,6BAA6B,EAAE,CAAC,CAAC;gBACpE,CAAC;gBACD,MAAM,UAAU,GAAuB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;gB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,GAAE;GACA,kBAAkB,CAsE9B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=workspace-task-provider.spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-task-provider.spec.d.ts","sourceRoot":"","sources":["../../src/browser/workspace-task-provider.spec.ts"],"names":[],"mappings":""}
@@ -1,109 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- const chai_1 = require("chai");
19
- const core_1 = require("@theia/core");
20
- const workspace_task_provider_1 = require("./workspace-task-provider");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const task_service_1 = require("@theia/task/lib/browser/task-service");
23
- const terminal_service_1 = require("@theia/terminal/lib/browser/base/terminal-service");
24
- describe('Workspace Task Provider Cancellation Tests', () => {
25
- let cancellationTokenSource;
26
- let mockCtx;
27
- let container;
28
- let mockTaskService;
29
- let mockTerminalService;
30
- beforeEach(() => {
31
- cancellationTokenSource = new core_1.CancellationTokenSource();
32
- // Setup mock context
33
- mockCtx = {
34
- response: {
35
- cancellationToken: cancellationTokenSource.token
36
- }
37
- };
38
- // Create a new container for each test
39
- container = new inversify_1.Container();
40
- // Mock dependencies
41
- mockTaskService = {
42
- startUserAction: () => 123,
43
- getTasks: async (token) => [
44
- {
45
- label: 'build',
46
- _scope: 'workspace',
47
- type: 'shell'
48
- },
49
- {
50
- label: 'test',
51
- _scope: 'workspace',
52
- type: 'shell'
53
- }
54
- ],
55
- runTaskByLabel: async (token, taskLabel) => {
56
- if (taskLabel === 'build' || taskLabel === 'test') {
57
- return {
58
- taskId: 0,
59
- terminalId: 0,
60
- config: {
61
- label: taskLabel,
62
- _scope: 'workspace',
63
- type: 'shell'
64
- }
65
- };
66
- }
67
- return undefined;
68
- },
69
- terminateTask: async (activeTaskInfo) => {
70
- // Track termination
71
- },
72
- getTerminateSignal: async () => 'SIGTERM'
73
- };
74
- mockTerminalService = {
75
- getByTerminalId: () => ({
76
- buffer: {
77
- length: 10,
78
- getLines: () => ['line1', 'line2', 'line3'],
79
- },
80
- clearOutput: () => { }
81
- })
82
- };
83
- // Register mocks in the container
84
- container.bind(task_service_1.TaskService).toConstantValue(mockTaskService);
85
- container.bind(terminal_service_1.TerminalService).toConstantValue(mockTerminalService);
86
- container.bind(workspace_task_provider_1.TaskListProvider).toSelf();
87
- container.bind(workspace_task_provider_1.TaskRunnerProvider).toSelf();
88
- });
89
- afterEach(() => {
90
- cancellationTokenSource.dispose();
91
- });
92
- it('TaskListProvider should respect cancellation token', async () => {
93
- const taskListProvider = container.get(workspace_task_provider_1.TaskListProvider);
94
- cancellationTokenSource.cancel();
95
- const handler = taskListProvider.getTool().handler;
96
- const result = await handler(JSON.stringify({ filter: '' }), mockCtx);
97
- const jsonResponse = JSON.parse(result);
98
- (0, chai_1.expect)(jsonResponse.error).to.equal('Operation cancelled by user');
99
- });
100
- it('TaskRunnerProvider should respect cancellation token at the beginning', async () => {
101
- const taskRunnerProvider = container.get(workspace_task_provider_1.TaskRunnerProvider);
102
- cancellationTokenSource.cancel();
103
- const handler = taskRunnerProvider.getTool().handler;
104
- const result = await handler(JSON.stringify({ taskName: 'build' }), mockCtx);
105
- const jsonResponse = JSON.parse(result);
106
- (0, chai_1.expect)(jsonResponse.error).to.equal('Operation cancelled by user');
107
- });
108
- });
109
- //# sourceMappingURL=workspace-task-provider.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"workspace-task-provider.spec.js","sourceRoot":"","sources":["../../src/browser/workspace-task-provider.spec.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,+BAA8B;AAC9B,sCAAsD;AACtD,uEAAiF;AAEjF,4DAAyD;AACzD,uEAAmE;AACnE,wFAAoF;AAIpF,QAAQ,CAAC,4CAA4C,EAAE,GAAG,EAAE;IACxD,IAAI,uBAAgD,CAAC;IACrD,IAAI,OAAyC,CAAC;IAC9C,IAAI,SAAoB,CAAC;IACzB,IAAI,eAA4B,CAAC;IACjC,IAAI,mBAAoC,CAAC;IAEzC,UAAU,CAAC,GAAG,EAAE;QACZ,uBAAuB,GAAG,IAAI,8BAAuB,EAAE,CAAC;QAExD,qBAAqB;QACrB,OAAO,GAAG;YACN,QAAQ,EAAE;gBACN,iBAAiB,EAAE,uBAAuB,CAAC,KAAK;aACvB;SAChC,CAAC;QAEF,uCAAuC;QACvC,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;QAE5B,oBAAoB;QACpB,eAAe,GAAG;YACd,eAAe,EAAE,GAAG,EAAE,CAAC,GAAG;YAC1B,QAAQ,EAAE,KAAK,EAAE,KAAa,EAAE,EAAE,CAAC;gBAC/B;oBACI,KAAK,EAAE,OAAO;oBACd,MAAM,EAAE,WAAW;oBACnB,IAAI,EAAE,OAAO;iBACK;gBACtB;oBACI,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,WAAW;oBACnB,IAAI,EAAE,OAAO;iBACK;aACzB;YACD,cAAc,EAAE,KAAK,EAAE,KAAa,EAAE,SAAiB,EAAE,EAAE;gBACvD,IAAI,SAAS,KAAK,OAAO,I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,MAAM,EAAE,CAAC;QAEjC,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACnD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,EAAE,OAAkC,CAAC,CAAC;QAEjG,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC;QAClD,IAAA,aAAM,EAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,uEAAuE,EAAE,KAAK,IAAI,EAAE;QACnF,MAAM,kBAAkB,GAAG,SAAS,CAAC,GAAG,CAAC,4CAAkB,CAAC,CAAC;QAC7D,uBAAuB,CAAC,MAAM,EAAE,CAAC;QAEjC,MAAM,OAAO,GAAG,kBAAkB,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC;QACrD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE,OAAkC,CAAC,CAAC;QAExG,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,MAAgB,CAAC,CAAC;QAClD,IAAA,aAAM,EAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { PreferenceSchema } from '@theia/core/lib/common';
2
- /**
3
- * These preferences are not intended to reflect real settings.
4
- * They are placeholders to redirect users to the appropriate widget
5
- * in case the user looks in the preferences editor UI to find the configuration.
6
- */
7
- export declare const AiConfigurationPreferences: PreferenceSchema;
8
- //# sourceMappingURL=ai-configuration-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-configuration-preferences.d.ts","sourceRoot":"","sources":["../../src/common/ai-configuration-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAwBxC,CAAC"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.AiConfigurationPreferences = void 0;
19
- const core_1 = require("@theia/core");
20
- /**
21
- * These preferences are not intended to reflect real settings.
22
- * They are placeholders to redirect users to the appropriate widget
23
- * in case the user looks in the preferences editor UI to find the configuration.
24
- */
25
- exports.AiConfigurationPreferences = {
26
- properties: {
27
- 'ai-features.agentSettings.details': {
28
- type: 'null',
29
- markdownDescription: core_1.nls.localize('theia/ai/ide/agent-description', 'Configure AI agent settings including enablement, LLM selection, prompt template customization, and custom agent creation in the [AI Configuration View]({0}).', 'command:aiConfiguration:open')
30
- },
31
- 'ai-features.promptTemplates.details': {
32
- type: 'null',
33
- markdownDescription: core_1.nls.localize('theia/ai/ide/prompt-template-description', 'Select prompt variants and customize prompt templates for AI agents in the [AI Configuration View]({0}).', 'command:aiConfiguration:open')
34
- },
35
- 'ai-features.modelSelection.details': {
36
- type: 'null',
37
- markdownDescription: core_1.nls.localize('theia/ai/ide/model-selection-description', 'Choose which Large Language Models (LLMs) are used by each AI agent in the [AI Configuration View]({0}).', 'command:aiConfiguration:open')
38
- }
39
- }
40
- };
41
- //# sourceMappingURL=ai-configuration-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-configuration-preferences.js","sourceRoot":"","sources":["../../src/common/ai-configuration-preferences.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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;AAGlC;;;;GAIG;AACU,QAAA,0BAA0B,GAAqB;IACxD,UAAU,EAAE;QACR,mCAAmC,EAAE;YACjC,IAAI,EAAE,MAAM;YACZ,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,gCAAgC,EAC9D,gKAAgK,EAChK,8BAA8B,CACjC;SACJ;QACD,qCAAqC,EAAE;YACnC,IAAI,EAAE,MAAM;YACZ,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EACxE,0GAA0G,EAC1G,8BAA8B,CACjC;SACJ;QACD,oCAAoC,EAAE;YAClC,IAAI,EAAE,MAAM;YACZ,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EACxE,0GAA0G,EAC1G,8BAA8B,CACjC;SACJ;KACJ;CACJ,CAAC"}
@@ -1,5 +0,0 @@
1
- import { PreferenceSchema } from '@theia/core';
2
- export declare const PREFERENCE_NAME_ENABLE_AI = "ai-features.AiEnable.enableAI";
3
- export declare const PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST = "ai-features.orchestrator.excludedAgents";
4
- export declare const aiIdePreferenceSchema: PreferenceSchema;
5
- //# sourceMappingURL=ai-ide-preferences.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-ide-preferences.d.ts","sourceRoot":"","sources":["../../src/common/ai-ide-preferences.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAO,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGpD,eAAO,MAAM,yBAAyB,kCAAkC,CAAC;AACzE,eAAO,MAAM,2CAA2C,4CAA4C,CAAC;AAErG,eAAO,MAAM,qBAAqB,EAAE,gBA8BnC,CAAC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.aiIdePreferenceSchema = exports.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST = exports.PREFERENCE_NAME_ENABLE_AI = void 0;
19
- const common_1 = require("@theia/ai-core/lib/common");
20
- const core_1 = require("@theia/core");
21
- // We reuse the context key for the preference name
22
- exports.PREFERENCE_NAME_ENABLE_AI = 'ai-features.AiEnable.enableAI';
23
- exports.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST = 'ai-features.orchestrator.excludedAgents';
24
- exports.aiIdePreferenceSchema = {
25
- properties: {
26
- [exports.PREFERENCE_NAME_ENABLE_AI]: {
27
- title: common_1.AI_CORE_PREFERENCES_TITLE,
28
- markdownDescription: core_1.nls.localize('theia/ai/ide/enableAI/mdDescription', '❗ This setting allows you to access the latest AI capabilities (Beta version).\
29
- \n\
30
- Please note that these features are in a beta phase, which means they may \
31
- undergo changes and will be further improved. It is important to be aware that these features may generate\
32
- continuous requests to the language models (LLMs) you provide access to. This might incur costs that you\
33
- need to monitor closely. By enabling this option, you acknowledge these risks.\
34
- \n\
35
- **Please note! The settings below in this section will only take effect\n\
36
- once the main feature setting is enabled. After enabling the feature, you need to configure at least one\
37
- LLM provider below. Also see [the documentation](https://theia-ide.org/docs/user_ai/)**.'),
38
- type: 'boolean',
39
- default: false,
40
- },
41
- [exports.PREFERENCE_NAME_ORCHESTRATOR_EXCLUSION_LIST]: {
42
- title: common_1.AI_CORE_PREFERENCES_TITLE,
43
- markdownDescription: core_1.nls.localize('theia/ai/ide/orchestrator/excludedAgents/mdDescription', 'List of agent IDs that the orchestrator is not allowed to delegate to. ' +
44
- 'These agents will not be visible to the orchestrator when selecting an agent to handle a request.'),
45
- type: 'array',
46
- items: {
47
- type: 'string'
48
- },
49
- default: ['ClaudeCode'],
50
- }
51
- }
52
- };
53
- //# sourceMappingURL=ai-ide-preferences.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-ide-preferences.js","sourceRoot":"","sources":["../../src/common/ai-ide-preferences.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,sDAAsE;AACtE,sCAAoD;AAEpD,mDAAmD;AACtC,QAAA,yBAAyB,GAAG,+BAA+B,CAAC;AAC5D,QAAA,2CAA2C,GAAG,yCAAyC,CAAC;AAExF,QAAA,qBAAqB,GAAqB;IACnD,UAAU,EAAE;QACR,CAAC,iCAAyB,CAAC,EAAE;YACzB,KAAK,EAAE,kCAAyB;YAChC,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,qCAAqC,EACnE;;;;;;;;;qGASqF,CAAC;YAC1F,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACjB;QACD,CAAC,mDAA2C,CAAC,EAAE;YAC3C,KAAK,EAAE,kCAAyB;YAChC,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAAC,wDAAwD,EACtF,yEAAyE;gBACzE,mGAAmG,CAAC;YACxG,IAAI,EAAE,OAAO;YACb,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;YACD,OAAO,EAAE,CAAC,YAAY,CAAC;SAC1B;KACJ;CACJ,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const SUGGEST_TERMINAL_COMMAND_ID = "suggestTerminalCommand";
2
- //# sourceMappingURL=ai-terminal-functions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-terminal-functions.d.ts","sourceRoot":"","sources":["../../src/common/ai-terminal-functions.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,2BAA2B,2BAA2B,CAAC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.SUGGEST_TERMINAL_COMMAND_ID = void 0;
19
- exports.SUGGEST_TERMINAL_COMMAND_ID = 'suggestTerminalCommand';
20
- //# sourceMappingURL=ai-terminal-functions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-terminal-functions.js","sourceRoot":"","sources":["../../src/common/ai-terminal-functions.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;;;AAEnE,QAAA,2BAA2B,GAAG,wBAAwB,CAAC"}
@@ -1,5 +0,0 @@
1
- export declare const LAUNCH_BROWSER_FUNCTION_ID = "launchBrowser";
2
- export declare const IS_BROWSER_RUNNING_FUNCTION_ID = "isBrowserRunning";
3
- export declare const CLOSE_BROWSER_FUNCTION_ID = "closeBrowser";
4
- export declare const QUERY_DOM_FUNCTION_ID = "queryDom";
5
- //# sourceMappingURL=app-tester-chat-functions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-tester-chat-functions.d.ts","sourceRoot":"","sources":["../../src/common/app-tester-chat-functions.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,0BAA0B,kBAAkB,CAAC;AAC1D,eAAO,MAAM,8BAA8B,qBAAqB,CAAC;AACjE,eAAO,MAAM,yBAAyB,iBAAiB,CAAC;AACxD,eAAO,MAAM,qBAAqB,aAAa,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.QUERY_DOM_FUNCTION_ID = exports.CLOSE_BROWSER_FUNCTION_ID = exports.IS_BROWSER_RUNNING_FUNCTION_ID = exports.LAUNCH_BROWSER_FUNCTION_ID = void 0;
19
- exports.LAUNCH_BROWSER_FUNCTION_ID = 'launchBrowser';
20
- exports.IS_BROWSER_RUNNING_FUNCTION_ID = 'isBrowserRunning';
21
- exports.CLOSE_BROWSER_FUNCTION_ID = 'closeBrowser';
22
- exports.QUERY_DOM_FUNCTION_ID = 'queryDom';
23
- //# sourceMappingURL=app-tester-chat-functions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-tester-chat-functions.js","sourceRoot":"","sources":["../../src/common/app-tester-chat-functions.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;;;AAEnE,QAAA,0BAA0B,GAAG,eAAe,CAAC;AAC7C,QAAA,8BAA8B,GAAG,kBAAkB,CAAC;AACpD,QAAA,yBAAyB,GAAG,cAAc,CAAC;AAC3C,QAAA,qBAAqB,GAAG,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- import { PromptVariantSet } from '@theia/ai-core/lib/common';
2
- export declare const architectSystemVariants: PromptVariantSet;
3
- //# sourceMappingURL=architect-prompt-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"architect-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAQ7D,eAAO,MAAM,uBAAuB,kBAwEnC,CAAC"}
@@ -1,81 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.architectSystemVariants = void 0;
4
- const workspace_functions_1 = require("./workspace-functions");
5
- const context_variables_1 = require("./context-variables");
6
- const context_functions_1 = require("./context-functions");
7
- exports.architectSystemVariants = {
8
- id: 'architect-system',
9
- defaultVariant: {
10
- id: 'architect-system-default',
11
- template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
12
- Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
13
- https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
14
- # Instructions
15
-
16
- You are an AI assistant integrated into Theia IDE, designed to assist software developers. You can only change the files added to the context, but you can navigate and read the
17
- users workspace using the provided functions.\
18
- Therefore describe and explain the details or procedures necessary to achieve the desired outcome. If file changes are necessary to help the user, be \
19
- aware that there is another agent called 'Coder' that can suggest file changes. In this case you can create a description on what to do and tell the user to ask '@Coder' to \
20
- implement the change plan. If you refer to files, always mention the workspace-relative path.\
21
-
22
- ## Context Retrieval
23
- Use the following functions to interact with the workspace files if you require context:
24
- - **~{${workspace_functions_1.GET_WORKSPACE_FILE_LIST_FUNCTION_ID}}**
25
- - **~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}}**
26
- - **~{${workspace_functions_1.FIND_FILES_BY_PATTERN_FUNCTION_ID}}** (find files by glob patterns like '**/*.ts')
27
- - **~{${workspace_functions_1.SEARCH_IN_WORKSPACE_FUNCTION_ID}}**
28
-
29
- If you cannot find good search terms, navigate the directory structure.
30
- **Confirm Paths**: Always verify paths by listing directories or files as you navigate. Avoid assumptions based on user input alone.
31
- **Navigate Step-by-Step**: Move into subdirectories only as needed, confirming each directory level.
32
- Remember file locations that are relevant for completing your tasks using **~{${context_functions_1.UPDATE_CONTEXT_FILES_FUNCTION_ID}}**
33
- Only add files that are really relevant to look at later. Only add files that are really relevant to look at later.
34
-
35
- ## File Validation
36
- Use the following function to retrieve a list of problems in a file if the user requests fixes in a given file: **~{${workspace_functions_1.GET_FILE_DIAGNOSTICS_ID}}**
37
- ## Additional Context
38
- The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
39
- Always look at the relevant files to understand your task using the function ~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}}
40
- {{${context_variables_1.CONTEXT_FILES_VARIABLE_ID}}}
41
-
42
- {{prompt:project-info}}
43
-
44
- {{${context_variables_1.TASK_CONTEXT_SUMMARY_VARIABLE_ID}}}
45
- `
46
- },
47
- variants: [
48
- {
49
- id: 'architect-system-simple',
50
- template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
51
- Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
52
- https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
53
- # Instructions
54
-
55
- You are an AI assistant integrated into Theia IDE, designed to assist software developers. You can't change any files, but you can navigate and read the users workspace using \
56
- the provided functions. Therefore describe and explain the details or procedures necessary to achieve the desired outcome. If file changes are necessary to help the user, be \
57
- aware that there is another agent called 'Coder' that can suggest file changes. In this case you can create a description on what to do and tell the user to ask '@Coder' to \
58
- implement the change plan. If you refer to files, always mention the workspace-relative path.\
59
-
60
- Use the following functions to interact with the workspace files as needed:
61
- - **~{${workspace_functions_1.GET_WORKSPACE_FILE_LIST_FUNCTION_ID}}**: Lists files and directories in a specific directory.
62
- - **~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}}**: Retrieves the content of a specific file.
63
- - **~{${workspace_functions_1.FIND_FILES_BY_PATTERN_FUNCTION_ID}}**: Find files by glob patterns like '**/*.ts'.
64
-
65
- ### Workspace Navigation Guidelines
66
-
67
- 1. **Start at the Root**: For general questions (e.g., "How to build the project"), check root-level documentation files or setup files before browsing subdirectories.
68
- 2. **Confirm Paths**: Always verify paths by listing directories or files as you navigate. Avoid assumptions based on user input alone.
69
- 3. **Navigate Step-by-Step**: Move into subdirectories only as needed, confirming each directory level.
70
-
71
- ## Additional Context
72
- The following files have been provided for additional context. Some of them may also be referred to by the user (e.g. "this file" or "the attachment"). \
73
- Always look at the relevant files to understand your task using the function ~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}}
74
- {{${context_variables_1.CONTEXT_FILES_VARIABLE_ID}}}
75
-
76
- {{prompt:project-info}}
77
- `
78
- }
79
- ]
80
- };
81
- //# sourceMappingURL=architect-prompt-template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"architect-prompt-template.js","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":";;;AAgBA,+DAG+B;AAC/B,2DAAkG;AAClG,2DAAuE;AAE1D,QAAA,uBAAuB,GAAqB;IACrD,EAAE,EAAE,kBAAkB;IACtB,cAAc,EAAE;QACZ,EAAE,EAAE,0BAA0B;QAC9B,QAAQ,EAAE;;;;;;;;;;;;;QAaV,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;;;;gFAKyC,oDAAgC;;;;sHAIM,6CAAuB;;;iFAG5D,8CAAwB;IACrG,6CAAyB;;;;IAIzB,oDAAgC;CACnC;KACI;IACD,QAAQ,EAAE;QACN;YACI,EAAE,EAAE,yBAAyB;YAC7B,QAAQ,EAAE;;;;;;;;;;;QAWd,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;;;;;;;;;;iFAUwC,8CAAwB;IACrG,6CAAyB;;;CAG5B;SACQ;KAAC;CACT,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const browserAutomationPath = "/services/automation/browser";
2
- export declare const BrowserAutomation: unique symbol;
3
- export interface BrowserAutomation {
4
- launch(remoteDebuggingPort: number): Promise<LaunchResult | undefined>;
5
- isRunning(): Promise<boolean>;
6
- queryDom(selector?: string): Promise<string>;
7
- close(): Promise<void>;
8
- }
9
- export interface LaunchResult {
10
- remoteDebuggingPort: number;
11
- }
12
- export declare const BrowserAutomationClient: unique symbol;
13
- export interface BrowserAutomationClient {
14
- }
15
- //# sourceMappingURL=browser-automation-protocol.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-automation-protocol.d.ts","sourceRoot":"","sources":["../../src/common/browser-automation-protocol.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,qBAAqB,iCAAiC,CAAC;AACpE,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAC7D,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IACvE,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7C,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,YAAY;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,uBAAuB,eAAoC,CAAC;AACzE,MAAM,WAAW,uBAAuB;CACvC"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.BrowserAutomationClient = exports.BrowserAutomation = exports.browserAutomationPath = void 0;
19
- exports.browserAutomationPath = '/services/automation/browser';
20
- exports.BrowserAutomation = Symbol('BrowserAutomation');
21
- exports.BrowserAutomationClient = Symbol('BrowserAutomationClient');
22
- //# sourceMappingURL=browser-automation-protocol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"browser-automation-protocol.js","sourceRoot":"","sources":["../../src/common/browser-automation-protocol.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;;;AAEnE,QAAA,qBAAqB,GAAG,8BAA8B,CAAC;AACvD,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAYhD,QAAA,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC"}