@theia/ai-ide 1.75.0-next.8 → 1.75.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 (509) hide show
  1. package/lib/browser/ai-allow-all-mode-chat-banner.js +2 -20
  2. package/lib/browser/ai-allow-all-mode-chat-banner.js.map +1 -1
  3. package/lib/browser/ai-configuration/agent-icon.d.ts +16 -0
  4. package/lib/browser/ai-configuration/agent-icon.d.ts.map +1 -0
  5. package/lib/browser/ai-configuration/agent-icon.js +38 -0
  6. package/lib/browser/ai-configuration/agent-icon.js.map +1 -0
  7. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts +36 -0
  8. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.d.ts.map +1 -0
  9. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js +163 -0
  10. package/lib/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.js.map +1 -0
  11. package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts +50 -0
  12. package/lib/browser/ai-configuration/ai-configuration-detail-widget.d.ts.map +1 -0
  13. package/lib/browser/ai-configuration/ai-configuration-detail-widget.js +208 -0
  14. package/lib/browser/ai-configuration/ai-configuration-detail-widget.js.map +1 -0
  15. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts +2 -0
  16. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.d.ts.map +1 -0
  17. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js +139 -0
  18. package/lib/browser/ai-configuration/ai-configuration-detail-widget.spec.js.map +1 -0
  19. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts +13 -0
  20. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.d.ts.map +1 -0
  21. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +48 -0
  22. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -0
  23. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts +22 -0
  24. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.d.ts.map +1 -0
  25. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js +72 -0
  26. package/lib/browser/ai-configuration/ai-configuration-open-preference-renderer.js.map +1 -0
  27. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts +2 -0
  28. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.d.ts.map +1 -0
  29. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js +126 -0
  30. package/lib/browser/ai-configuration/ai-configuration-preference-ownership.spec.js.map +1 -0
  31. package/lib/browser/ai-configuration/ai-configuration-resource.d.ts +10 -0
  32. package/lib/browser/ai-configuration/ai-configuration-resource.d.ts.map +1 -0
  33. package/lib/browser/ai-configuration/{components/configuration-section.js → ai-configuration-resource.js} +11 -11
  34. package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -0
  35. package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts +29 -0
  36. package/lib/browser/ai-configuration/ai-configuration-search-widget.d.ts.map +1 -0
  37. package/lib/browser/ai-configuration/ai-configuration-search-widget.js +106 -0
  38. package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -0
  39. package/lib/browser/ai-configuration/ai-configuration-search.d.ts +18 -0
  40. package/lib/browser/ai-configuration/ai-configuration-search.d.ts.map +1 -0
  41. package/lib/browser/ai-configuration/ai-configuration-search.js +45 -0
  42. package/lib/browser/ai-configuration/ai-configuration-search.js.map +1 -0
  43. package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts +2 -0
  44. package/lib/browser/ai-configuration/ai-configuration-search.spec.d.ts.map +1 -0
  45. package/lib/browser/ai-configuration/ai-configuration-search.spec.js +79 -0
  46. package/lib/browser/ai-configuration/ai-configuration-search.spec.js.map +1 -0
  47. package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts +8 -0
  48. package/lib/browser/ai-configuration/ai-configuration-tree-model.d.ts.map +1 -0
  49. package/lib/browser/ai-configuration/{base/ai-configuration-base-widget.js → ai-configuration-tree-model.js} +11 -14
  50. package/lib/browser/ai-configuration/ai-configuration-tree-model.js.map +1 -0
  51. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts +57 -0
  52. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.d.ts.map +1 -0
  53. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js +134 -0
  54. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.js.map +1 -0
  55. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts +2 -0
  56. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.d.ts.map +1 -0
  57. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js +134 -0
  58. package/lib/browser/ai-configuration/ai-configuration-tree-nodes.spec.js.map +1 -0
  59. package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts +96 -0
  60. package/lib/browser/ai-configuration/ai-configuration-tree-widget.d.ts.map +1 -0
  61. package/lib/browser/ai-configuration/ai-configuration-tree-widget.js +407 -0
  62. package/lib/browser/ai-configuration/ai-configuration-tree-widget.js.map +1 -0
  63. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +38 -4
  64. package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -1
  65. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +151 -19
  66. package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -1
  67. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +21 -23
  68. package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -1
  69. package/lib/browser/ai-configuration/ai-configuration-widget.js +102 -70
  70. package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -1
  71. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +56 -0
  72. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -0
  73. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +195 -0
  74. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -0
  75. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts +2 -0
  76. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.d.ts.map +1 -0
  77. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +140 -0
  78. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -0
  79. package/lib/browser/ai-configuration/categories/agent-chips.d.ts +15 -0
  80. package/lib/browser/ai-configuration/categories/agent-chips.d.ts.map +1 -0
  81. package/lib/browser/ai-configuration/categories/agent-chips.js +19 -0
  82. package/lib/browser/ai-configuration/categories/agent-chips.js.map +1 -0
  83. package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts +37 -0
  84. package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts.map +1 -0
  85. package/lib/browser/ai-configuration/categories/agent-detail-model.js +99 -0
  86. package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -0
  87. package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts +28 -0
  88. package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -0
  89. package/lib/browser/ai-configuration/categories/agent-detail-view.js +135 -0
  90. package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -0
  91. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +78 -0
  92. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -0
  93. package/lib/browser/ai-configuration/categories/agents-configuration-category.js +352 -0
  94. package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -0
  95. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts +2 -0
  96. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.d.ts.map +1 -0
  97. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js +99 -0
  98. package/lib/browser/ai-configuration/categories/agents-configuration-category.spec.js.map +1 -0
  99. package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts +93 -0
  100. package/lib/browser/ai-configuration/categories/general-configuration-category.d.ts.map +1 -0
  101. package/lib/browser/ai-configuration/categories/general-configuration-category.js +313 -0
  102. package/lib/browser/ai-configuration/categories/general-configuration-category.js.map +1 -0
  103. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts +2 -0
  104. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.d.ts.map +1 -0
  105. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js +213 -0
  106. package/lib/browser/ai-configuration/categories/general-configuration-category.spec.js.map +1 -0
  107. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts +53 -0
  108. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.d.ts.map +1 -0
  109. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js +241 -0
  110. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.js.map +1 -0
  111. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts +2 -0
  112. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.d.ts.map +1 -0
  113. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js +75 -0
  114. package/lib/browser/ai-configuration/categories/model-aliases-configuration-category.spec.js.map +1 -0
  115. package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts +72 -0
  116. package/lib/browser/ai-configuration/categories/models-configuration-category.d.ts.map +1 -0
  117. package/lib/browser/ai-configuration/categories/models-configuration-category.js +227 -0
  118. package/lib/browser/ai-configuration/categories/models-configuration-category.js.map +1 -0
  119. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts +2 -0
  120. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.d.ts.map +1 -0
  121. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js +145 -0
  122. package/lib/browser/ai-configuration/categories/models-configuration-category.spec.js.map +1 -0
  123. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts +114 -0
  124. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.d.ts.map +1 -0
  125. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js +341 -0
  126. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.js.map +1 -0
  127. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts +2 -0
  128. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.d.ts.map +1 -0
  129. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js +199 -0
  130. package/lib/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.js.map +1 -0
  131. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts +84 -0
  132. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.d.ts.map +1 -0
  133. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js +341 -0
  134. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.js.map +1 -0
  135. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts +2 -0
  136. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.d.ts.map +1 -0
  137. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js +184 -0
  138. package/lib/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.js.map +1 -0
  139. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts +38 -0
  140. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.d.ts.map +1 -0
  141. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +130 -0
  142. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -0
  143. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts +2 -0
  144. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.d.ts.map +1 -0
  145. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js +51 -0
  146. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.spec.js.map +1 -0
  147. package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts +60 -0
  148. package/lib/browser/ai-configuration/categories/tools-configuration-category.d.ts.map +1 -0
  149. package/lib/browser/ai-configuration/categories/tools-configuration-category.js +302 -0
  150. package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -0
  151. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts +2 -0
  152. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.d.ts.map +1 -0
  153. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js +111 -0
  154. package/lib/browser/ai-configuration/categories/tools-configuration-category.spec.js.map +1 -0
  155. package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts +72 -0
  156. package/lib/browser/ai-configuration/categories/variables-configuration-category.d.ts.map +1 -0
  157. package/lib/browser/ai-configuration/categories/variables-configuration-category.js +245 -0
  158. package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -0
  159. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts +2 -0
  160. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.d.ts.map +1 -0
  161. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js +131 -0
  162. package/lib/browser/ai-configuration/categories/variables-configuration-category.spec.js.map +1 -0
  163. package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts +6 -2
  164. package/lib/browser/ai-configuration/components/agent-notification-settings.d.ts.map +1 -1
  165. package/lib/browser/ai-configuration/components/agent-notification-settings.js +15 -21
  166. package/lib/browser/ai-configuration/components/agent-notification-settings.js.map +1 -1
  167. package/lib/browser/ai-configuration/language-model-renderer.d.ts +25 -1
  168. package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -1
  169. package/lib/browser/ai-configuration/language-model-renderer.js +159 -63
  170. package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
  171. package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts +2 -0
  172. package/lib/browser/ai-configuration/language-model-renderer.spec.d.ts.map +1 -0
  173. package/lib/browser/ai-configuration/language-model-renderer.spec.js +93 -0
  174. package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -0
  175. package/lib/browser/ai-sessions-widget.js +12 -16
  176. package/lib/browser/ai-sessions-widget.js.map +1 -1
  177. package/lib/browser/app-tester-chat-agent.d.ts +2 -0
  178. package/lib/browser/app-tester-chat-agent.d.ts.map +1 -1
  179. package/lib/browser/app-tester-chat-agent.js +5 -0
  180. package/lib/browser/app-tester-chat-agent.js.map +1 -1
  181. package/lib/browser/architect-agent.d.ts +2 -0
  182. package/lib/browser/architect-agent.d.ts.map +1 -1
  183. package/lib/browser/architect-agent.js +5 -0
  184. package/lib/browser/architect-agent.js.map +1 -1
  185. package/lib/browser/architect-prompt-template.d.ts.map +1 -1
  186. package/lib/browser/architect-prompt-template.js +7 -0
  187. package/lib/browser/architect-prompt-template.js.map +1 -1
  188. package/lib/browser/chat-session-item.d.ts.map +1 -1
  189. package/lib/browser/chat-session-item.js +17 -30
  190. package/lib/browser/chat-session-item.js.map +1 -1
  191. package/lib/browser/chat-session-list-components.js +7 -30
  192. package/lib/browser/chat-session-list-components.js.map +1 -1
  193. package/lib/browser/chat-session-list-service.d.ts +2 -1
  194. package/lib/browser/chat-session-list-service.d.ts.map +1 -1
  195. package/lib/browser/chat-session-list-service.js +6 -1
  196. package/lib/browser/chat-session-list-service.js.map +1 -1
  197. package/lib/browser/chat-sessions-welcome-message-provider.js +3 -21
  198. package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
  199. package/lib/browser/code-reviewer-agent.d.ts +2 -0
  200. package/lib/browser/code-reviewer-agent.d.ts.map +1 -1
  201. package/lib/browser/code-reviewer-agent.js +5 -0
  202. package/lib/browser/code-reviewer-agent.js.map +1 -1
  203. package/lib/browser/coder-agent.d.ts +2 -0
  204. package/lib/browser/coder-agent.d.ts.map +1 -1
  205. package/lib/browser/coder-agent.js +6 -1
  206. package/lib/browser/coder-agent.js.map +1 -1
  207. package/lib/browser/context-file-validation-service-impl.spec.js +2 -0
  208. package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
  209. package/lib/browser/create-skill-agent.d.ts +2 -0
  210. package/lib/browser/create-skill-agent.d.ts.map +1 -1
  211. package/lib/browser/create-skill-agent.js +5 -0
  212. package/lib/browser/create-skill-agent.js.map +1 -1
  213. package/lib/browser/explore-agent.d.ts +2 -0
  214. package/lib/browser/explore-agent.d.ts.map +1 -1
  215. package/lib/browser/explore-agent.js +5 -0
  216. package/lib/browser/explore-agent.js.map +1 -1
  217. package/lib/browser/file-changeset-functions.d.ts +7 -1
  218. package/lib/browser/file-changeset-functions.d.ts.map +1 -1
  219. package/lib/browser/file-changeset-functions.js +62 -20
  220. package/lib/browser/file-changeset-functions.js.map +1 -1
  221. package/lib/browser/file-changeset-functions.spec.js +130 -1
  222. package/lib/browser/file-changeset-functions.spec.js.map +1 -1
  223. package/lib/browser/frontend-module.d.ts.map +1 -1
  224. package/lib/browser/frontend-module.js +65 -59
  225. package/lib/browser/frontend-module.js.map +1 -1
  226. package/lib/browser/github-chat-agent.d.ts +2 -1
  227. package/lib/browser/github-chat-agent.d.ts.map +1 -1
  228. package/lib/browser/github-chat-agent.js +5 -0
  229. package/lib/browser/github-chat-agent.js.map +1 -1
  230. package/lib/browser/github-repo-variable-contribution.d.ts +2 -1
  231. package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -1
  232. package/lib/browser/github-repo-variable-contribution.js +6 -1
  233. package/lib/browser/github-repo-variable-contribution.js.map +1 -1
  234. package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +1 -1
  235. package/lib/browser/ide-chat-welcome-message-provider.js +31 -118
  236. package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -1
  237. package/lib/browser/memory-capability-contribution.d.ts +8 -0
  238. package/lib/browser/memory-capability-contribution.d.ts.map +1 -0
  239. package/lib/browser/memory-capability-contribution.js +88 -0
  240. package/lib/browser/memory-capability-contribution.js.map +1 -0
  241. package/lib/browser/memory-capability-contribution.spec.d.ts +2 -0
  242. package/lib/browser/memory-capability-contribution.spec.d.ts.map +1 -0
  243. package/lib/browser/memory-capability-contribution.spec.js +74 -0
  244. package/lib/browser/memory-capability-contribution.spec.js.map +1 -0
  245. package/lib/browser/memory-directory-variable-contribution.d.ts +41 -0
  246. package/lib/browser/memory-directory-variable-contribution.d.ts.map +1 -0
  247. package/lib/browser/memory-directory-variable-contribution.js +107 -0
  248. package/lib/browser/memory-directory-variable-contribution.js.map +1 -0
  249. package/lib/browser/memory-directory-variable-contribution.spec.d.ts +2 -0
  250. package/lib/browser/memory-directory-variable-contribution.spec.d.ts.map +1 -0
  251. package/lib/browser/memory-directory-variable-contribution.spec.js +98 -0
  252. package/lib/browser/memory-directory-variable-contribution.spec.js.map +1 -0
  253. package/lib/browser/open-editors-hint-contribution.d.ts +7 -0
  254. package/lib/browser/open-editors-hint-contribution.d.ts.map +1 -0
  255. package/lib/browser/open-editors-hint-contribution.js +43 -0
  256. package/lib/browser/open-editors-hint-contribution.js.map +1 -0
  257. package/lib/browser/project-info-agent.d.ts +2 -0
  258. package/lib/browser/project-info-agent.d.ts.map +1 -1
  259. package/lib/browser/project-info-agent.js +5 -0
  260. package/lib/browser/project-info-agent.js.map +1 -1
  261. package/lib/browser/review/pr-review-agent.d.ts +2 -0
  262. package/lib/browser/review/pr-review-agent.d.ts.map +1 -1
  263. package/lib/browser/review/pr-review-agent.js +5 -0
  264. package/lib/browser/review/pr-review-agent.js.map +1 -1
  265. package/lib/browser/summarize-session-command-contribution.d.ts +2 -1
  266. package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -1
  267. package/lib/browser/summarize-session-command-contribution.js +6 -1
  268. package/lib/browser/summarize-session-command-contribution.js.map +1 -1
  269. package/lib/browser/task-context-file-storage-service.d.ts.map +1 -1
  270. package/lib/browser/task-context-file-storage-service.js +1 -0
  271. package/lib/browser/task-context-file-storage-service.js.map +1 -1
  272. package/lib/browser/todo-tool-renderer.js +11 -19
  273. package/lib/browser/todo-tool-renderer.js.map +1 -1
  274. package/lib/browser/user-interaction-tool-renderer.js +39 -83
  275. package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
  276. package/lib/browser/user-interaction-tool.d.ts +2 -0
  277. package/lib/browser/user-interaction-tool.d.ts.map +1 -1
  278. package/lib/browser/user-interaction-tool.js +7 -1
  279. package/lib/browser/user-interaction-tool.js.map +1 -1
  280. package/lib/browser/user-interaction-tool.spec.js +4 -2
  281. package/lib/browser/user-interaction-tool.spec.js.map +1 -1
  282. package/lib/browser/workspace-functions.d.ts +45 -7
  283. package/lib/browser/workspace-functions.d.ts.map +1 -1
  284. package/lib/browser/workspace-functions.js +108 -70
  285. package/lib/browser/workspace-functions.js.map +1 -1
  286. package/lib/browser/workspace-functions.spec.js +139 -9
  287. package/lib/browser/workspace-functions.spec.js.map +1 -1
  288. package/lib/browser/workspace-launch-provider.spec.js +3 -0
  289. package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
  290. package/lib/browser/workspace-search-provider.d.ts.map +1 -1
  291. package/lib/browser/workspace-search-provider.js +4 -7
  292. package/lib/browser/workspace-search-provider.js.map +1 -1
  293. package/lib/browser/workspace-search-provider.spec.js +1 -2
  294. package/lib/browser/workspace-search-provider.spec.js.map +1 -1
  295. package/lib/browser/workspace-task-provider.spec.js +4 -0
  296. package/lib/browser/workspace-task-provider.spec.js.map +1 -1
  297. package/lib/common/coder-replace-prompt-template.d.ts +0 -2
  298. package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
  299. package/lib/common/coder-replace-prompt-template.js +10 -11
  300. package/lib/common/coder-replace-prompt-template.js.map +1 -1
  301. package/lib/common/command-chat-agents.d.ts +2 -1
  302. package/lib/common/command-chat-agents.d.ts.map +1 -1
  303. package/lib/common/command-chat-agents.js +6 -1
  304. package/lib/common/command-chat-agents.js.map +1 -1
  305. package/lib/common/open-editors-hint-fragment-id.d.ts +2 -0
  306. package/lib/common/open-editors-hint-fragment-id.d.ts.map +1 -0
  307. package/lib/{browser/ai-configuration/components/empty-state.js → common/open-editors-hint-fragment-id.js} +5 -11
  308. package/lib/common/open-editors-hint-fragment-id.js.map +1 -0
  309. package/lib/common/orchestrator-chat-agent.d.ts +2 -1
  310. package/lib/common/orchestrator-chat-agent.d.ts.map +1 -1
  311. package/lib/common/orchestrator-chat-agent.js +5 -0
  312. package/lib/common/orchestrator-chat-agent.js.map +1 -1
  313. package/lib/common/universal-chat-agent.d.ts +2 -0
  314. package/lib/common/universal-chat-agent.d.ts.map +1 -1
  315. package/lib/common/universal-chat-agent.js +5 -0
  316. package/lib/common/universal-chat-agent.js.map +1 -1
  317. package/lib/common/universal-prompt-template.d.ts.map +1 -1
  318. package/lib/common/universal-prompt-template.js +3 -0
  319. package/lib/common/universal-prompt-template.js.map +1 -1
  320. package/lib/common/workspace-preferences.js +2 -2
  321. package/lib/common/workspace-preferences.js.map +1 -1
  322. package/lib/common/workspace-search-provider-util.d.ts +2 -1
  323. package/lib/common/workspace-search-provider-util.d.ts.map +1 -1
  324. package/lib/common/workspace-search-provider-util.js +3 -2
  325. package/lib/common/workspace-search-provider-util.js.map +1 -1
  326. package/lib/common/workspace-search-provider-util.spec.d.ts +2 -0
  327. package/lib/common/workspace-search-provider-util.spec.d.ts.map +1 -0
  328. package/lib/common/workspace-search-provider-util.spec.js +55 -0
  329. package/lib/common/workspace-search-provider-util.spec.js.map +1 -0
  330. package/lib/node/github-repo-service-impl.d.ts +2 -0
  331. package/lib/node/github-repo-service-impl.d.ts.map +1 -1
  332. package/lib/node/github-repo-service-impl.js +7 -1
  333. package/lib/node/github-repo-service-impl.js.map +1 -1
  334. package/package.json +26 -25
  335. package/src/browser/ai-configuration/agent-icon.ts +37 -0
  336. package/src/browser/ai-configuration/ai-configuration-breadcrumbs-contribution.ts +164 -0
  337. package/src/browser/ai-configuration/ai-configuration-detail-widget.spec.ts +165 -0
  338. package/src/browser/ai-configuration/ai-configuration-detail-widget.tsx +237 -0
  339. package/src/browser/ai-configuration/ai-configuration-label-provider-contribution.ts +47 -0
  340. package/src/browser/ai-configuration/ai-configuration-open-preference-renderer.ts +64 -0
  341. package/src/browser/ai-configuration/ai-configuration-preference-ownership.spec.ts +135 -0
  342. package/src/browser/ai-configuration/{components/configuration-section.tsx → ai-configuration-resource.ts} +9 -19
  343. package/src/browser/ai-configuration/ai-configuration-search-widget.tsx +135 -0
  344. package/src/browser/ai-configuration/ai-configuration-search.spec.ts +91 -0
  345. package/src/browser/ai-configuration/ai-configuration-search.ts +43 -0
  346. package/src/browser/ai-configuration/{components/empty-state.tsx → ai-configuration-tree-model.ts} +7 -11
  347. package/src/browser/ai-configuration/ai-configuration-tree-nodes.spec.ts +150 -0
  348. package/src/browser/ai-configuration/ai-configuration-tree-nodes.ts +167 -0
  349. package/src/browser/ai-configuration/ai-configuration-tree-widget.tsx +457 -0
  350. package/src/browser/ai-configuration/ai-configuration-view-contribution.ts +156 -18
  351. package/src/browser/ai-configuration/ai-configuration-widget.tsx +107 -75
  352. package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +161 -0
  353. package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +340 -0
  354. package/src/browser/ai-configuration/categories/agent-chips.tsx +51 -0
  355. package/src/browser/ai-configuration/categories/agent-detail-model.ts +152 -0
  356. package/src/browser/ai-configuration/categories/agent-detail-view.tsx +329 -0
  357. package/src/browser/ai-configuration/categories/agents-configuration-category.spec.ts +119 -0
  358. package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +431 -0
  359. package/src/browser/ai-configuration/categories/general-configuration-category.spec.ts +225 -0
  360. package/src/browser/ai-configuration/categories/general-configuration-category.tsx +465 -0
  361. package/src/browser/ai-configuration/categories/model-aliases-configuration-category.spec.ts +87 -0
  362. package/src/browser/ai-configuration/categories/model-aliases-configuration-category.tsx +286 -0
  363. package/src/browser/ai-configuration/categories/models-configuration-category.spec.ts +167 -0
  364. package/src/browser/ai-configuration/categories/models-configuration-category.tsx +264 -0
  365. package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.spec.ts +250 -0
  366. package/src/browser/ai-configuration/categories/prompt-snippets-configuration-category.tsx +438 -0
  367. package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts +226 -0
  368. package/src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx +419 -0
  369. package/src/browser/ai-configuration/categories/token-usage-configuration-category.spec.ts +57 -0
  370. package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +185 -0
  371. package/src/browser/ai-configuration/categories/tools-configuration-category.spec.ts +130 -0
  372. package/src/browser/ai-configuration/categories/tools-configuration-category.tsx +421 -0
  373. package/src/browser/ai-configuration/categories/variables-configuration-category.spec.ts +154 -0
  374. package/src/browser/ai-configuration/categories/variables-configuration-category.tsx +322 -0
  375. package/src/browser/ai-configuration/components/agent-notification-settings.tsx +38 -33
  376. package/src/browser/ai-configuration/language-model-renderer.spec.ts +100 -0
  377. package/src/browser/ai-configuration/language-model-renderer.tsx +244 -100
  378. package/src/browser/app-tester-chat-agent.ts +5 -2
  379. package/src/browser/architect-agent.ts +5 -2
  380. package/src/browser/architect-prompt-template.ts +7 -0
  381. package/src/browser/chat-session-item.tsx +2 -4
  382. package/src/browser/chat-session-list-service.ts +6 -3
  383. package/src/browser/code-reviewer-agent.ts +5 -2
  384. package/src/browser/coder-agent.ts +7 -5
  385. package/src/browser/context-file-validation-service-impl.spec.ts +3 -2
  386. package/src/browser/create-skill-agent.ts +5 -2
  387. package/src/browser/explore-agent.ts +5 -2
  388. package/src/browser/file-changeset-functions.spec.ts +158 -5
  389. package/src/browser/file-changeset-functions.ts +61 -23
  390. package/src/browser/frontend-module.ts +76 -63
  391. package/src/browser/github-chat-agent.ts +5 -2
  392. package/src/browser/github-repo-variable-contribution.ts +6 -3
  393. package/src/browser/ide-chat-welcome-message-provider.tsx +11 -11
  394. package/src/browser/memory-capability-contribution.spec.ts +85 -0
  395. package/src/browser/memory-capability-contribution.ts +86 -0
  396. package/src/browser/memory-directory-variable-contribution.spec.ts +113 -0
  397. package/src/browser/memory-directory-variable-contribution.ts +113 -0
  398. package/src/browser/open-editors-hint-contribution.ts +38 -0
  399. package/src/browser/project-info-agent.ts +5 -2
  400. package/src/browser/review/pr-review-agent.ts +5 -2
  401. package/src/browser/style/ai-configuration-base.css +0 -6
  402. package/src/browser/style/ai-configuration-shell.css +416 -0
  403. package/src/browser/style/ai-configuration-table.css +2 -15
  404. package/src/browser/style/index.css +220 -276
  405. package/src/browser/summarize-session-command-contribution.ts +6 -3
  406. package/src/browser/task-context-file-storage-service.ts +5 -2
  407. package/src/browser/user-interaction-tool.spec.ts +5 -2
  408. package/src/browser/user-interaction-tool.ts +6 -2
  409. package/src/browser/workspace-functions.spec.ts +163 -10
  410. package/src/browser/workspace-functions.ts +121 -72
  411. package/src/browser/workspace-launch-provider.spec.ts +4 -1
  412. package/src/browser/workspace-search-provider.spec.ts +1 -2
  413. package/src/browser/workspace-search-provider.ts +4 -7
  414. package/src/browser/workspace-task-provider.spec.ts +5 -1
  415. package/src/common/coder-replace-prompt-template.ts +9 -9
  416. package/src/common/command-chat-agents.ts +6 -2
  417. package/src/{browser/ai-configuration/base/ai-configuration-base-widget.tsx → common/open-editors-hint-fragment-id.ts} +2 -22
  418. package/src/common/orchestrator-chat-agent.ts +5 -2
  419. package/src/common/universal-chat-agent.ts +5 -2
  420. package/src/common/universal-prompt-template.ts +3 -0
  421. package/src/common/workspace-preferences.ts +2 -2
  422. package/src/common/workspace-search-provider-util.spec.ts +61 -0
  423. package/src/common/workspace-search-provider-util.ts +3 -2
  424. package/src/node/github-repo-service-impl.ts +6 -2
  425. package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -72
  426. package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
  427. package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -620
  428. package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
  429. package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts +0 -2
  430. package/lib/browser/ai-configuration/agent-configuration-widget.spec.d.ts.map +0 -1
  431. package/lib/browser/ai-configuration/agent-configuration-widget.spec.js +0 -56
  432. package/lib/browser/ai-configuration/agent-configuration-widget.spec.js.map +0 -1
  433. package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts +0 -31
  434. package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.d.ts.map +0 -1
  435. package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js +0 -55
  436. package/lib/browser/ai-configuration/base/ai-card-grid-configuration-widget.js.map +0 -1
  437. package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts +0 -13
  438. package/lib/browser/ai-configuration/base/ai-configuration-base-widget.d.ts.map +0 -1
  439. package/lib/browser/ai-configuration/base/ai-configuration-base-widget.js.map +0 -1
  440. package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts +0 -23
  441. package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.d.ts.map +0 -1
  442. package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js +0 -60
  443. package/lib/browser/ai-configuration/base/ai-hierarchical-configuration-widget.js.map +0 -1
  444. package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts +0 -55
  445. package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.d.ts.map +0 -1
  446. package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js +0 -96
  447. package/lib/browser/ai-configuration/base/ai-list-detail-configuration-widget.js.map +0 -1
  448. package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts +0 -44
  449. package/lib/browser/ai-configuration/base/ai-table-configuration-widget.d.ts.map +0 -1
  450. package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js +0 -66
  451. package/lib/browser/ai-configuration/base/ai-table-configuration-widget.js.map +0 -1
  452. package/lib/browser/ai-configuration/components/configuration-section.d.ts +0 -12
  453. package/lib/browser/ai-configuration/components/configuration-section.d.ts.map +0 -1
  454. package/lib/browser/ai-configuration/components/configuration-section.js.map +0 -1
  455. package/lib/browser/ai-configuration/components/empty-state.d.ts +0 -10
  456. package/lib/browser/ai-configuration/components/empty-state.d.ts.map +0 -1
  457. package/lib/browser/ai-configuration/components/empty-state.js.map +0 -1
  458. package/lib/browser/ai-configuration/components/expandable-section.d.ts +0 -13
  459. package/lib/browser/ai-configuration/components/expandable-section.d.ts.map +0 -1
  460. package/lib/browser/ai-configuration/components/expandable-section.js +0 -31
  461. package/lib/browser/ai-configuration/components/expandable-section.js.map +0 -1
  462. package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -26
  463. package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
  464. package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -198
  465. package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
  466. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -140
  467. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
  468. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
  469. package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
  470. package/lib/browser/ai-configuration/skills-configuration-widget.d.ts +0 -29
  471. package/lib/browser/ai-configuration/skills-configuration-widget.d.ts.map +0 -1
  472. package/lib/browser/ai-configuration/skills-configuration-widget.js +0 -166
  473. package/lib/browser/ai-configuration/skills-configuration-widget.js.map +0 -1
  474. package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts +0 -2
  475. package/lib/browser/ai-configuration/skills-configuration-widget.spec.d.ts.map +0 -1
  476. package/lib/browser/ai-configuration/skills-configuration-widget.spec.js +0 -191
  477. package/lib/browser/ai-configuration/skills-configuration-widget.spec.js.map +0 -1
  478. package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -9
  479. package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
  480. package/lib/browser/ai-configuration/template-settings-renderer.js +0 -78
  481. package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
  482. package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -20
  483. package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
  484. package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -170
  485. package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
  486. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -52
  487. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
  488. package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -357
  489. package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
  490. package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -22
  491. package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
  492. package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -133
  493. package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
  494. package/src/browser/ai-configuration/agent-configuration-widget.spec.ts +0 -71
  495. package/src/browser/ai-configuration/agent-configuration-widget.tsx +0 -928
  496. package/src/browser/ai-configuration/base/ai-card-grid-configuration-widget.tsx +0 -72
  497. package/src/browser/ai-configuration/base/ai-hierarchical-configuration-widget.tsx +0 -51
  498. package/src/browser/ai-configuration/base/ai-list-detail-configuration-widget.tsx +0 -140
  499. package/src/browser/ai-configuration/base/ai-table-configuration-widget.tsx +0 -107
  500. package/src/browser/ai-configuration/components/expandable-section.tsx +0 -51
  501. package/src/browser/ai-configuration/model-aliases-configuration-widget.tsx +0 -270
  502. package/src/browser/ai-configuration/prompt-fragments-configuration-widget.tsx +0 -736
  503. package/src/browser/ai-configuration/skills-configuration-widget.spec.ts +0 -248
  504. package/src/browser/ai-configuration/skills-configuration-widget.tsx +0 -229
  505. package/src/browser/ai-configuration/template-settings-renderer.tsx +0 -125
  506. package/src/browser/ai-configuration/token-usage-configuration-widget.tsx +0 -214
  507. package/src/browser/ai-configuration/tools-configuration-widget.tsx +0 -544
  508. package/src/browser/ai-configuration/variable-configuration-widget.tsx +0 -159
  509. package/src/browser/style/ai-configuration-cards.css +0 -60
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-capabilities-settings.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-capabilities-settings.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,2BAA2B,EAE3B,oBAAoB,EACvB,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mFAAmF,CAAC;AA8BzH,MAAM,WAAW,8BAA8B;IAC3C,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACpD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,EAAE,oBAAoB,CAAC;IACzC;;;OAGG;IACH,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GAAI,uGAEvC,8BAA8B,sBA2FhC,CAAC;AAEF,MAAM,WAAW,qCAAqC;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACzD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,kBAAkB,EAAE,oBAAoB,CAAC;IACzC,iHAAiH;IACjH,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,GAAI,0FAE9C,qCAAqC,sBAgEvC,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B,sFAAsF;IACtF,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACtD,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,6FAA6F;IAC7F,kBAAkB,EAAE,oBAAoB,CAAC;CAC5C;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,oFAEtC,6BAA6B,sBAiE/B,CAAC"}
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentServerToolsSettings = exports.AgentGenericCapabilitiesSettings = exports.AgentCapabilitiesSettings = void 0;
4
+ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
5
+ // *****************************************************************************
6
+ // Copyright (C) 2026 EclipseSource and others.
7
+ //
8
+ // This program and the accompanying materials are made available under the
9
+ // terms of the Eclipse Public License v. 2.0 which is available at
10
+ // http://www.eclipse.org/legal/epl-2.0.
11
+ //
12
+ // This Source Code may also be made available under the following Secondary
13
+ // Licenses when the conditions for such availability set forth in the Eclipse
14
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
15
+ // with the GNU Classpath Exception which is available at
16
+ // https://www.gnu.org/software/classpath/license.html.
17
+ //
18
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
19
+ // *****************************************************************************
20
+ const common_1 = require("@theia/ai-core/lib/common");
21
+ const core_1 = require("@theia/core");
22
+ const browser_1 = require("@theia/core/lib/browser");
23
+ const React = require("@theia/core/shared/react");
24
+ const ai_configuration_item_row_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-item-row");
25
+ const ai_configuration_controls_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-controls");
26
+ /**
27
+ * An agent-detail subsection header with an optional trailing action, so a section-wide action (e.g. its
28
+ * reset) rides on the title line instead of taking a prominent row of its own above the list.
29
+ */
30
+ const AgentSectionHeader = ({ title, action }) => ((0, jsx_runtime_1.jsxs)("div", { className: 'settings-section-subcategory-title ai-settings-section-subcategory-title ai-agent-section-header', children: [(0, jsx_runtime_1.jsx)("span", { children: title }), action] }));
31
+ /**
32
+ * The section-wide reset: the same discard icon button the prompt variant rows use, rather than a text
33
+ * button, so it reads as a Theia reset affordance. Its tooltip says what the section-wide reset does.
34
+ */
35
+ const ResetAllButton = ({ title, disabled, onReset }) => ((0, jsx_runtime_1.jsx)("button", { className: 'ai-variant-action-button ai-agent-section-header-action', onClick: onReset, disabled: disabled, title: title, "aria-label": title, children: (0, jsx_runtime_1.jsx)("span", { "aria-hidden": 'true', className: (0, browser_1.codicon)('discard') }) }));
36
+ /**
37
+ * The "Available Capabilities" section of the agent detail page: one toggle per capability the prompt
38
+ * declares. Each toggle writes an override only when it differs from the agent's default; a per-row
39
+ * reset (gear menu) and a "Reset All to Defaults" button clear overrides back to the declared defaults.
40
+ */
41
+ const AgentCapabilitiesSettings = ({ capabilities, agentId, savedOverrides, aiSettingsService, settingsRowService, onOpenPromptSnippet }) => {
42
+ const [loading, setLoading] = React.useState(false);
43
+ const handleToggle = async (fragmentId, currentValue) => {
44
+ if (loading) {
45
+ return;
46
+ }
47
+ setLoading(true);
48
+ try {
49
+ const capability = capabilities.find(c => c.fragmentId === fragmentId);
50
+ if (!capability) {
51
+ return;
52
+ }
53
+ const newValue = !currentValue;
54
+ const newOverrides = { ...savedOverrides };
55
+ if (newValue === capability.defaultEnabled) {
56
+ delete newOverrides[fragmentId];
57
+ }
58
+ else {
59
+ newOverrides[fragmentId] = newValue;
60
+ }
61
+ await aiSettingsService.updateAgentSettings(agentId, { capabilityOverrides: newOverrides });
62
+ }
63
+ finally {
64
+ setLoading(false);
65
+ }
66
+ };
67
+ const handleResetAll = async () => {
68
+ if (loading) {
69
+ return;
70
+ }
71
+ setLoading(true);
72
+ try {
73
+ await aiSettingsService.updateAgentSettings(agentId, { capabilityOverrides: undefined });
74
+ }
75
+ finally {
76
+ setLoading(false);
77
+ }
78
+ };
79
+ // Drop a single capability's override so it falls back to the agent's default.
80
+ const resetCapability = async (fragmentId) => {
81
+ if (loading) {
82
+ return;
83
+ }
84
+ setLoading(true);
85
+ try {
86
+ const newOverrides = { ...savedOverrides };
87
+ delete newOverrides[fragmentId];
88
+ await aiSettingsService.updateAgentSettings(agentId, { capabilityOverrides: newOverrides });
89
+ }
90
+ finally {
91
+ setLoading(false);
92
+ }
93
+ };
94
+ const getCurrentValue = (capability) => savedOverrides && capability.fragmentId in savedOverrides ? savedOverrides[capability.fragmentId] : capability.defaultEnabled;
95
+ const hasOverride = (capability) => savedOverrides !== undefined && capability.fragmentId in savedOverrides;
96
+ const hasAnyOverrides = savedOverrides && Object.keys(savedOverrides).length > 0;
97
+ // Show "Name (id)" when the fragment declares a name; otherwise just the id.
98
+ const labelFor = (capability) => capability.name ? `${capability.name} (${capability.fragmentId})` : capability.fragmentId;
99
+ const snippetLinkTooltip = core_1.nls.localize('theia/ai/ide/agentConfiguration/showCapabilitySnippet', 'Show snippet');
100
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AgentSectionHeader, { title: core_1.nls.localize('theia/ai/core/agentConfiguration/availableCapabilities', 'Available Capabilities'), action: hasAnyOverrides && (0, jsx_runtime_1.jsx)(ResetAllButton, { onReset: handleResetAll, disabled: loading, title: core_1.nls.localize('theia/ai/ide/agentConfiguration/resetAllCapabilities', 'Reset all capabilities to their default values') }) }), (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-item-list', children: capabilities.map(capability => (0, jsx_runtime_1.jsx)(ai_configuration_item_row_1.AiConfigurationItemRow, { label: labelFor(capability), description: capability.description, modified: hasOverride(capability), onOpenMenu: hasOverride(capability)
101
+ ? gear => settingsRowService.openResetMenu(gear, () => resetCapability(capability.fragmentId))
102
+ : undefined, onActivateLabel: () => onOpenPromptSnippet(capability.fragmentId), labelTooltip: snippetLinkTooltip, trailing: (0, jsx_runtime_1.jsx)(ai_configuration_controls_1.AiToggleSwitch, { checked: getCurrentValue(capability), disabled: loading, ariaLabel: labelFor(capability), onChange: () => handleToggle(capability.fragmentId, getCurrentValue(capability)) }) }, capability.fragmentId)) })] });
103
+ };
104
+ exports.AgentCapabilitiesSettings = AgentCapabilitiesSettings;
105
+ /**
106
+ * The "Generic Capabilities" section of the agent detail page: one row per capability type the user has
107
+ * selected (skills, MCP functions, functions, prompt fragments, agent delegation, variables). Only
108
+ * selected types are shown; each row is an override with a per-type reset and a shared "Reset All".
109
+ */
110
+ const AgentGenericCapabilitiesSettings = ({ agentId, savedSelections, aiSettingsService, settingsRowService, onOpenPromptSnippet }) => {
111
+ const [loading, setLoading] = React.useState(false);
112
+ const handleResetAll = async () => {
113
+ if (loading) {
114
+ return;
115
+ }
116
+ setLoading(true);
117
+ try {
118
+ await aiSettingsService.updateAgentSettings(agentId, { genericCapabilitySelections: undefined });
119
+ }
120
+ finally {
121
+ setLoading(false);
122
+ }
123
+ };
124
+ // Drop a single capability type's selections.
125
+ const handleReset = async (capabilityType) => {
126
+ if (loading) {
127
+ return;
128
+ }
129
+ setLoading(true);
130
+ try {
131
+ await aiSettingsService.updateAgentSettings(agentId, { genericCapabilitySelections: { ...savedSelections, [capabilityType]: undefined } });
132
+ }
133
+ finally {
134
+ setLoading(false);
135
+ }
136
+ };
137
+ const capabilityTypes = common_1.CAPABILITY_TYPE_PROMPT_MAP.map(m => m.type);
138
+ const promptIdFor = (type) => common_1.CAPABILITY_TYPE_PROMPT_MAP.find(entry => entry.type === type).promptId;
139
+ const getDisplayName = (type) => ({
140
+ skills: core_1.nls.localizeByDefault('Skills'),
141
+ mcpFunctions: core_1.nls.localize('theia/ai/ide/agentConfiguration/genericCapabilityType/mcpFunctions', 'MCP Functions'),
142
+ functions: core_1.nls.localize('theia/ai/ide/agentConfiguration/genericCapabilityType/functions', 'Functions'),
143
+ promptFragments: core_1.nls.localize('theia/ai/ide/agentConfiguration/genericCapabilityType/promptFragments', 'Prompt Fragments'),
144
+ agentDelegation: core_1.nls.localize('theia/ai/ide/agentConfiguration/genericCapabilityType/agentDelegation', 'Agent Delegation'),
145
+ variables: core_1.nls.localizeByDefault('Variables')
146
+ }[type]);
147
+ // Only types the user has actually selected are shown; each such row is an override, so it carries the
148
+ // modified bar. A single "Reset All" clears every selection, mirroring the Available Capabilities section.
149
+ const shownTypes = capabilityTypes.filter(type => (savedSelections?.[type]?.length ?? 0) > 0);
150
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AgentSectionHeader, { title: core_1.nls.localize('theia/ai/ide/agentConfiguration/genericCapabilitiesSettings', 'Generic Capabilities'), action: shownTypes.length > 0 && (0, jsx_runtime_1.jsx)(ResetAllButton, { onReset: handleResetAll, disabled: loading, title: core_1.nls.localize('theia/ai/ide/agentConfiguration/resetAllGenericCapabilities', 'Reset all generic capability selections') }) }), (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-item-list', children: shownTypes.map(type => (0, jsx_runtime_1.jsx)(ai_configuration_item_row_1.AiConfigurationItemRow, { label: getDisplayName(type), description: (savedSelections?.[type] ?? []).join(', '), modified: true, onOpenMenu: gear => settingsRowService.openResetMenu(gear, () => handleReset(type)), onActivateLabel: () => onOpenPromptSnippet(promptIdFor(type)), labelTooltip: core_1.nls.localize('theia/ai/ide/agentConfiguration/showCapabilitySnippet', 'Show snippet') }, type)) })] });
151
+ };
152
+ exports.AgentGenericCapabilitiesSettings = AgentGenericCapabilitiesSettings;
153
+ /**
154
+ * The "Server Tools" section of the agent detail page: one toggle per tool the agent's model offers, executed
155
+ * by the provider rather than by Theia. The same per-agent setting the chat input's capabilities popup writes,
156
+ * keyed by model vendor because the tools are vendor-specific.
157
+ *
158
+ * Nothing is enabled unless it is listed, so an enabled tool is the deviation from the default and carries the
159
+ * modified indicator; "Reset All to Defaults" drops this vendor's selections, leaving other vendors' alone.
160
+ */
161
+ const AgentServerToolsSettings = ({ agentId, tools, vendor, savedSelections, aiSettingsService, settingsRowService }) => {
162
+ const [loading, setLoading] = React.useState(false);
163
+ const enabledIds = savedSelections?.[vendor] ?? [];
164
+ const update = async (ids) => {
165
+ if (loading) {
166
+ return;
167
+ }
168
+ setLoading(true);
169
+ try {
170
+ // Drop the vendor's entry entirely once nothing is enabled, rather than leaving an empty array behind.
171
+ const next = { ...savedSelections };
172
+ if (ids.length > 0) {
173
+ next[vendor] = ids;
174
+ }
175
+ else {
176
+ delete next[vendor];
177
+ }
178
+ await aiSettingsService.updateAgentSettings(agentId, {
179
+ serverToolSelections: Object.keys(next).length > 0 ? next : undefined
180
+ });
181
+ }
182
+ finally {
183
+ setLoading(false);
184
+ }
185
+ };
186
+ const handleToggle = (toolId, enabled) => update(enabled ? [...enabledIds, toolId] : enabledIds.filter(id => id !== toolId));
187
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AgentSectionHeader, { title: core_1.nls.localize('theia/ai/core/languageModelRenderer/serverTools', 'Server Tools'), action: enabledIds.length > 0 && (0, jsx_runtime_1.jsx)(ResetAllButton, { onReset: () => update([]), disabled: loading, title: core_1.nls.localize('theia/ai/ide/agentConfiguration/resetAllServerTools', 'Turn off every server tool of this provider') }) }), (0, jsx_runtime_1.jsxs)("div", { className: 'ai-agent-section-warning', children: [(0, jsx_runtime_1.jsx)("span", { "aria-hidden": 'true', className: (0, browser_1.codicon)('warning') }), (0, jsx_runtime_1.jsx)("span", { children: core_1.nls.localize('theia/ai/chat-ui/serverToolsWarning', 'These tools are auto-approved when selected. They may be executed by the model at any time.') })] }), (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-item-list', children: tools.map(tool => {
188
+ const enabled = enabledIds.includes(tool.id);
189
+ return (0, jsx_runtime_1.jsx)(ai_configuration_item_row_1.AiConfigurationItemRow, { label: tool.name, description: tool.description, modified: enabled, onOpenMenu: enabled
190
+ ? gear => settingsRowService.openResetMenu(gear, () => handleToggle(tool.id, false))
191
+ : undefined, trailing: (0, jsx_runtime_1.jsx)(ai_configuration_controls_1.AiToggleSwitch, { checked: enabled, disabled: loading, ariaLabel: tool.name, onChange: checked => handleToggle(tool.id, checked) }) }, tool.id);
192
+ }) })] });
193
+ };
194
+ exports.AgentServerToolsSettings = AgentServerToolsSettings;
195
+ //# sourceMappingURL=agent-capabilities-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-capabilities-settings.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-capabilities-settings.tsx"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,sDAMmC;AACnC,sCAAkC;AAClC,qDAAkD;AAClD,kDAAkD;AAClD,mIAA6H;AAE7H,mIAAqH;AAErH;;;GAGG;AACH,MAAM,kBAAkB,GAA0D,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CACrG,iCAAK,SAAS,EAAC,kGAAkG,aAC7G,2CAAO,KAAK,GAAQ,EACnB,MAAM,IACL,CACT,CAAC;AAEF;;;GAGG;AACH,MAAM,cAAc,GAAyE,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAC3H,mCACI,SAAS,EAAC,yDAAyD,EACnE,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,gBACA,KAAK,YAEjB,gDAAkB,MAAM,EAAC,SAAS,EAAE,IAAA,iBAAO,EAAC,S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,kDAAsB,IAE1B,KAAK,EAAE,IAAI,CAAC,IAAI,EAChB,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,OAAO;4BACf,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;4BACpF,CAAC,CAAC,SAAS,EACf,QAAQ,EAAE,uBAAC,0CAAc,IACrB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,IAAI,CAAC,IAAI,EACpB,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,GACrD,IAZG,IAAI,CAAC,EAAE,CAad,CAAC;gBACP,CAAC,CAAC,GACA,IACP,CAAC;AACR,CAAC,CAAC;AAnEW,QAAA,wBAAwB,4BAmEnC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=agent-capabilities-settings.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-capabilities-settings.spec.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts"],"names":[],"mappings":""}
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 EclipseSource 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
+ 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 React = require("@theia/core/shared/react");
24
+ const react_dom_1 = require("@theia/core/shared/react-dom");
25
+ const client_1 = require("@theia/core/shared/react-dom/client");
26
+ const agent_capabilities_settings_1 = require("./agent-capabilities-settings");
27
+ disableJSDOM();
28
+ describe('AgentServerToolsSettings', () => {
29
+ before(() => disableJSDOM = (0, jsdom_1.enableJSDOM)());
30
+ after(() => disableJSDOM());
31
+ const tools = [
32
+ { id: 'web_search', name: 'Web Search', description: 'Search the web' },
33
+ { id: 'code_execution', name: 'Code Execution' }
34
+ ];
35
+ function render(savedSelections) {
36
+ const updates = [];
37
+ const resets = [];
38
+ const aiSettingsService = {
39
+ updateAgentSettings: async (_agent, settings) => { updates.push(settings); }
40
+ };
41
+ const settingsRowService = {
42
+ openResetMenu: (_gear, reset) => { resets.push(reset); }
43
+ };
44
+ const container = document.createElement('div');
45
+ document.body.appendChild(container);
46
+ const root = (0, client_1.createRoot)(container);
47
+ (0, react_dom_1.flushSync)(() => root.render(React.createElement(agent_capabilities_settings_1.AgentServerToolsSettings, {
48
+ agentId: 'coder',
49
+ tools,
50
+ vendor: 'anthropic',
51
+ savedSelections,
52
+ aiSettingsService,
53
+ settingsRowService
54
+ })));
55
+ return { container, updates, resets, dispose: () => { (0, react_dom_1.flushSync)(() => root.unmount()); container.remove(); } };
56
+ }
57
+ it('lists one toggle per tool the model offers, checked for the enabled ones', () => {
58
+ const { container, dispose } = render({ anthropic: ['web_search'] });
59
+ try {
60
+ const checkboxes = Array.from(container.querySelectorAll('input[type=checkbox]'));
61
+ (0, chai_1.expect)(checkboxes.map(checkbox => checkbox.checked)).to.deep.equal([true, false]);
62
+ (0, chai_1.expect)(container.textContent).to.include('Web Search');
63
+ (0, chai_1.expect)(container.textContent).to.include('Search the web');
64
+ }
65
+ finally {
66
+ dispose();
67
+ }
68
+ });
69
+ it('marks an enabled tool as modified, since nothing is enabled by default', () => {
70
+ const { container, dispose } = render({ anthropic: ['web_search'] });
71
+ try {
72
+ const rows = Array.from(container.querySelectorAll('.ai-configuration-item-row'));
73
+ (0, chai_1.expect)(rows.map(row => row.classList.contains('modified'))).to.deep.equal([true, false]);
74
+ }
75
+ finally {
76
+ dispose();
77
+ }
78
+ });
79
+ it('stores the enabled ids under the model vendor when a tool is switched on', async () => {
80
+ const { container, updates, dispose } = render();
81
+ try {
82
+ (0, react_dom_1.flushSync)(() => container.querySelectorAll('input[type=checkbox]')[0].click());
83
+ await new Promise(resolve => setTimeout(resolve, 0));
84
+ (0, chai_1.expect)(updates).to.deep.equal([{ serverToolSelections: { anthropic: ['web_search'] } }]);
85
+ }
86
+ finally {
87
+ dispose();
88
+ }
89
+ });
90
+ it('drops the vendor entry instead of storing an empty list when the last tool is switched off', async () => {
91
+ const { container, updates, dispose } = render({ anthropic: ['web_search'] });
92
+ try {
93
+ (0, react_dom_1.flushSync)(() => container.querySelectorAll('input[type=checkbox]')[0].click());
94
+ await new Promise(resolve => setTimeout(resolve, 0));
95
+ // The whole setting goes when no vendor has a selection left, so no stale keys accumulate.
96
+ (0, chai_1.expect)(updates).to.deep.equal([{ serverToolSelections: undefined }]);
97
+ }
98
+ finally {
99
+ dispose();
100
+ }
101
+ });
102
+ it('offers a reset on the section header only while something is enabled, and leaves other vendors alone', async () => {
103
+ const nothingEnabled = render();
104
+ try {
105
+ (0, chai_1.expect)(Boolean(nothingEnabled.container.querySelector('.ai-agent-section-header-action'))).to.equal(false);
106
+ }
107
+ finally {
108
+ nothingEnabled.dispose();
109
+ }
110
+ const { container, updates, dispose } = render({ anthropic: ['web_search'], openai: ['code_execution'] });
111
+ try {
112
+ // On the header line, not in a row of its own above the list.
113
+ const reset = container.querySelector('.ai-agent-section-header .ai-agent-section-header-action');
114
+ (0, react_dom_1.flushSync)(() => reset.click());
115
+ await new Promise(resolve => setTimeout(resolve, 0));
116
+ (0, chai_1.expect)(updates).to.deep.equal([{ serverToolSelections: { openai: ['code_execution'] } }]);
117
+ }
118
+ finally {
119
+ dispose();
120
+ }
121
+ });
122
+ it('gives an enabled tool the same gear reset as a capability row, which switches it off', async () => {
123
+ const { container, updates, resets, dispose } = render({ anthropic: ['web_search'] });
124
+ try {
125
+ const gears = Array.from(container.querySelectorAll('.ai-configuration-item-row-actions'));
126
+ // Only the enabled row deviates from the default, so only it offers a reset.
127
+ (0, chai_1.expect)(gears).to.have.lengthOf(1);
128
+ const gear = container.querySelector('.ai-settings-row-gear');
129
+ (0, react_dom_1.flushSync)(() => gear.click());
130
+ (0, chai_1.expect)(resets).to.have.lengthOf(1);
131
+ resets[0]();
132
+ await new Promise(resolve => setTimeout(resolve, 0));
133
+ (0, chai_1.expect)(updates).to.deep.equal([{ serverToolSelections: undefined }]);
134
+ }
135
+ finally {
136
+ dispose();
137
+ }
138
+ });
139
+ });
140
+ //# sourceMappingURL=agent-capabilities-settings.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-capabilities-settings.spec.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;AAEhF,8DAAiE;AACjE,IAAI,YAAY,GAAG,IAAA,mBAAW,GAAE,CAAC;AAEjC,uHAAiH;AACjH,wEAAiC,CAAC,GAAG,C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EAAE,CAAC,CAAC,CAAC;QACzE,CAAC;gBAAS,CAAC;YACP,OAAO,EAAE,CAAC;QACd,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { Agent } from '@theia/ai-core';
2
+ import * as React from '@theia/core/shared/react';
3
+ /** A single navigable agent chip (icon + name); shared by the Variables, Skills and Slash Command surfaces. */
4
+ export declare const AgentChip: React.FC<{
5
+ agent: Agent;
6
+ onOpenAgent: (agentId: string) => void;
7
+ }>;
8
+ export interface AgentChipsProps {
9
+ readonly agents: Agent[];
10
+ /** Navigates to an agent's detail page when a chip is activated. */
11
+ readonly onOpenAgent: (agentId: string) => void;
12
+ }
13
+ /** A row of navigable {@link AgentChip}s. */
14
+ export declare const AgentChips: React.FC<AgentChipsProps>;
15
+ //# sourceMappingURL=agent-chips.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-chips.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-chips.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAGlD,+GAA+G;AAC/G,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,CAexF,CAAC;AAEF,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED,6CAA6C;AAC7C,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentChips = exports.AgentChip = void 0;
4
+ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
5
+ const core_1 = require("@theia/core");
6
+ const agent_icon_1 = require("../agent-icon");
7
+ /** A single navigable agent chip (icon + name); shared by the Variables, Skills and Slash Command surfaces. */
8
+ const AgentChip = ({ agent, onOpenAgent }) => {
9
+ const label = core_1.nls.localize('theia/ai/ide/variableConfiguration/openAgent', 'Open agent {0}', agent.name);
10
+ return (0, jsx_runtime_1.jsxs)("button", { type: 'button', className: 'agent-chip', "aria-label": label, title: label, onClick: event => {
11
+ event.stopPropagation();
12
+ onOpenAgent(agent.id);
13
+ }, children: [(0, jsx_runtime_1.jsx)("span", { "aria-hidden": 'true', className: (0, agent_icon_1.getAgentIconClass)(agent) }), agent.name] });
14
+ };
15
+ exports.AgentChip = AgentChip;
16
+ /** A row of navigable {@link AgentChip}s. */
17
+ const AgentChips = ({ agents, onOpenAgent }) => ((0, jsx_runtime_1.jsx)("div", { className: 'agent-chips-container', children: agents.map(agent => (0, jsx_runtime_1.jsx)(exports.AgentChip, { agent: agent, onOpenAgent: onOpenAgent }, agent.id)) }));
18
+ exports.AgentChips = AgentChips;
19
+ //# sourceMappingURL=agent-chips.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-chips.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-chips.tsx"],"names":[],"mappings":";;;;AAiBA,sCAAkC;AAElC,8CAAkD;AAElD,+GAA+G;AACxG,MAAM,SAAS,GAAuE,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE;IACpH,MAAM,KAAK,GAAG,UAAG,CAAC,QAAQ,CAAC,8CAA8C,EAAE,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACzG,OAAO,oCACH,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,YAAY,gBACV,KAAK,EACjB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,KAAK,CAAC,EAAE;YACb,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC1B,CAAC,aAED,gDAAkB,MAAM,EAAC,SAAS,EAAE,IAAA,8BAAiB,EAAC,KAAK,CAAC,GAAS,EACpE,KAAK,CAAC,IAAI,IACN,CAAC;AACd,CAAC,CAAC;AAfW,QAAA,SAAS,aAepB;AAQF,6CAA6C;AACtC,MAAM,UAAU,GAA8B,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAC9E,gCAAK,SAAS,EAAC,uBAAuB,YACjC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAC,iBAAS,IAAgB,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,IAAhD,KAAK,CAAC,EAAE,CAA4C,CAAC,GACxF,CACT,CAAC;AAJW,QAAA,UAAU,cAIrB"}
@@ -0,0 +1,37 @@
1
+ import { Agent, AgentService, AISettingsService, AIVariableService, FrontendLanguageModelRegistry, ParsedCapability, PromptService, NotificationType, GenericCapabilitySelections, ServerToolDescriptor, ToolInvocationRegistry } from '@theia/ai-core/lib/common';
2
+ import { CommandService } from '@theia/core/lib/common/command';
3
+ import { ILogger } from '@theia/core';
4
+ import { AiSettingsRowService } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service';
5
+ /** The services the agent detail page needs; injected into the owning category and passed down. */
6
+ export interface AgentDetailServices {
7
+ readonly agentService: AgentService;
8
+ readonly aiSettingsService: AISettingsService;
9
+ readonly variableService: AIVariableService;
10
+ readonly promptService: PromptService;
11
+ readonly languageModelRegistry: FrontendLanguageModelRegistry;
12
+ readonly toolInvocationRegistry: ToolInvocationRegistry;
13
+ readonly commandService: CommandService;
14
+ readonly settingsRowService: AiSettingsRowService;
15
+ readonly logger: ILogger;
16
+ }
17
+ export interface ParsedPrompt {
18
+ functions: string[];
19
+ globalVariables: string[];
20
+ agentSpecificVariables: string[];
21
+ capabilities: ParsedCapability[];
22
+ }
23
+ export interface AgentDetailState {
24
+ parsed: ParsedPrompt;
25
+ showInChat: boolean;
26
+ completionNotification?: NotificationType;
27
+ capabilityOverrides?: Record<string, boolean>;
28
+ genericCapabilitySelections?: GenericCapabilitySelections;
29
+ /** Server tools the agent's model offers, if it declares any; empty/absent hides that section. */
30
+ serverTools?: ServerToolDescriptor[];
31
+ /** Vendor the server tool selections are keyed by, i.e. the vendor of the model offering them. */
32
+ serverToolVendor?: string;
33
+ /** Enabled server tool ids per vendor, as stored for this agent. */
34
+ serverToolSelections?: Record<string, string[]>;
35
+ }
36
+ export declare function loadAgentDetail(agent: Agent, services: AgentDetailServices): Promise<AgentDetailState>;
37
+ //# sourceMappingURL=agent-detail-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-detail-model.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-detail-model.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,KAAK,EACL,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,6BAA6B,EAG7B,gBAAgB,EAEhB,aAAa,EACb,gBAAgB,EAChB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,mFAAmF,CAAC;AAEzH,mGAAmG;AACnG,MAAM,WAAW,mBAAmB;IAChC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,eAAe,EAAE,iBAAiB,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,qBAAqB,EAAE,6BAA6B,CAAC;IAC9D,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IACxD,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,kBAAkB,EAAE,oBAAoB,CAAC;IAClD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IACzB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,sBAAsB,EAAE,MAAM,EAAE,CAAC;IACjC,YAAY,EAAE,gBAAgB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC7B,MAAM,EAAE,YAAY,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,sBAAsB,CAAC,EAAE,gBAAgB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9C,2BAA2B,CAAC,EAAE,2BAA2B,CAAC;IAC1D,kGAAkG;IAClG,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CACnD;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAc5G"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ // *****************************************************************************
3
+ // Copyright (C) 2026 EclipseSource 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.loadAgentDetail = loadAgentDetail;
19
+ const common_1 = require("@theia/ai-core/lib/common");
20
+ async function loadAgentDetail(agent, services) {
21
+ const parsed = await parsePromptFragments(agent, services);
22
+ const agentSettings = await services.aiSettingsService.getAgentSettings(agent.id);
23
+ const serverToolModel = await resolveServerToolModel(agent, services);
24
+ return {
25
+ parsed,
26
+ showInChat: agentSettings?.showInChat ?? true,
27
+ completionNotification: agentSettings?.completionNotification,
28
+ capabilityOverrides: agentSettings?.capabilityOverrides,
29
+ genericCapabilitySelections: agentSettings?.genericCapabilitySelections,
30
+ serverTools: serverToolModel?.serverTools,
31
+ serverToolVendor: serverToolModel?.vendor,
32
+ serverToolSelections: agentSettings?.serverToolSelections ? { ...agentSettings.serverToolSelections } : undefined
33
+ };
34
+ }
35
+ /**
36
+ * The model whose provider server tools the agent can use: the first of its requirements that resolves to a
37
+ * model declaring any, mirroring how the chat input picks the model behind its capabilities popup. Server
38
+ * tools are vendor-specific, so the vendor comes from that same model.
39
+ */
40
+ async function resolveServerToolModel(agent, services) {
41
+ for (const requirement of agent.languageModelRequirements ?? []) {
42
+ try {
43
+ const model = await services.languageModelRegistry.selectLanguageModel({ agent: agent.id, ...requirement });
44
+ if (model?.serverTools && model.serverTools.length > 0) {
45
+ return { serverTools: model.serverTools, vendor: model.vendor };
46
+ }
47
+ }
48
+ catch (error) {
49
+ services.logger.warn('Failed to resolve language model for server tools:', error);
50
+ }
51
+ }
52
+ return undefined;
53
+ }
54
+ async function parsePromptFragments(agent, services) {
55
+ const { aiSettingsService, promptService, variableService } = services;
56
+ const result = { functions: [], globalVariables: [], agentSpecificVariables: [], capabilities: [] };
57
+ const agentSettings = await aiSettingsService.getAgentSettings(agent.id);
58
+ const selectedVariants = agentSettings?.selectedVariants ?? {};
59
+ for (const mainTemplate of agent.prompts) {
60
+ const promptId = selectedVariants[mainTemplate.id] ?? mainTemplate.defaultVariant?.id ?? mainTemplate.id;
61
+ const promptToAnalyze = promptService.getRawPromptFragment(promptId)?.template;
62
+ if (!promptToAnalyze) {
63
+ continue;
64
+ }
65
+ extractVariablesAndFunctions(promptToAnalyze, result, agent, variableService);
66
+ extractCapabilities(promptToAnalyze, result, promptService);
67
+ }
68
+ return result;
69
+ }
70
+ function extractCapabilities(promptContent, result, promptService) {
71
+ const capabilities = (0, common_1.parseCapabilitiesFromTemplate)(promptContent);
72
+ const existingIds = new Set(result.capabilities.map(c => c.fragmentId));
73
+ for (const capability of capabilities) {
74
+ if (!existingIds.has(capability.fragmentId)) {
75
+ const fragment = promptService.getRawPromptFragment(capability.fragmentId);
76
+ result.capabilities.push({ ...capability, name: fragment?.name, description: fragment?.description });
77
+ existingIds.add(capability.fragmentId);
78
+ }
79
+ }
80
+ }
81
+ function extractVariablesAndFunctions(promptContent, result, agent, variableService) {
82
+ const variableMatches = (0, common_1.matchVariablesRegEx)(promptContent);
83
+ variableMatches.forEach(match => {
84
+ const variableId = match[1];
85
+ if (variableId.startsWith('!--') || variableId.startsWith('capability:')) {
86
+ return;
87
+ }
88
+ const baseVariableId = variableId.split(':')[0];
89
+ if (variableService.hasVariable(baseVariableId) && agent.agentSpecificVariables.find(v => v.name === baseVariableId) === undefined) {
90
+ result.globalVariables.push(variableId);
91
+ }
92
+ else {
93
+ result.agentSpecificVariables.push(variableId);
94
+ }
95
+ });
96
+ const functionMatches = [...promptContent.matchAll(common_1.PROMPT_FUNCTION_REGEX)];
97
+ functionMatches.forEach(match => result.functions.push(match[1]));
98
+ }
99
+ //# sourceMappingURL=agent-detail-model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-detail-model.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-detail-model.ts"],"names":[],"mappings":";A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AK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,IAAI,eAAe,CAAC,WAAW,CAAC,cAAc,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,cAAc,CAAC,KAAK,SAAS,EAAE,CAAC;YACjI,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,sBAAsB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACnD,CAAC;IACL,CAAC,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,8BAAqB,CAAC,CAAC,CAAC;IAC3E,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { Agent, LanguageModel } from '@theia/ai-core/lib/common';
2
+ import { LanguageModelAlias } from '@theia/ai-core/lib/common/language-model-alias';
3
+ import * as React from '@theia/core/shared/react';
4
+ import { AgentDetailServices } from './agent-detail-model';
5
+ export interface AgentDetailViewProps {
6
+ readonly agent: Agent;
7
+ readonly services: AgentDetailServices;
8
+ /** Category-wide model/alias caches, resolved by the owning category. */
9
+ readonly languageModels: LanguageModel[] | undefined;
10
+ readonly languageModelAliases: LanguageModelAlias[];
11
+ /** Bumped by the owning category on every upstream change, to re-run the async detail load. */
12
+ readonly revision: number;
13
+ /**
14
+ * Reveals a capability's prompt fragment on the Prompt Snippets page, which owns the (global) text.
15
+ * Provided by the category, which has the navigation context.
16
+ */
17
+ readonly onOpenPromptSnippet: (fragmentId: string) => void;
18
+ /** Reveals a tool on the Tools page, where its confirmation mode is set. */
19
+ readonly onOpenTool: (toolName: string) => void;
20
+ }
21
+ /**
22
+ * The Agents item-detail page: enable/show-in-chat toggles, description, prompt
23
+ * templates, LLM requirements, used variables/functions, capabilities and
24
+ * notification settings. Owns its async state (parsed prompt parts + agent
25
+ * settings), reloading whenever {@link AgentDetailViewProps.revision} changes.
26
+ */
27
+ export declare const AgentDetailView: React.FC<AgentDetailViewProps>;
28
+ //# sourceMappingURL=agent-detail-view.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-detail-view.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/agent-detail-view.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACH,KAAK,EACL,aAAa,EAIhB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAKpF,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AASlD,OAAO,EAAE,mBAAmB,EAAqC,MAAM,sBAAsB,CAAC;AAG9F,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,yEAAyE;IACzE,QAAQ,CAAC,cAAc,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IACrD,QAAQ,CAAC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;IACpD,+FAA+F;IAC/F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,mBAAmB,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3D,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4M1D,CAAC"}