@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,84 @@
1
+ import { Agent, AgentService } from '@theia/ai-core';
2
+ import { SkillService } from '@theia/ai-core/lib/browser/skill-service';
3
+ import { AgentPluginUiBridge, InstalledAgentPluginInfo } from '@theia/ai-core/lib/browser/agent-plugin-ui-bridge';
4
+ import { SkillRegistryUiBridge } from '@theia/ai-core/lib/browser/skill-registry-ui-bridge';
5
+ import { Skill } from '@theia/ai-core/lib/common/skill';
6
+ import { PromptFragment, PromptService } from '@theia/ai-core/lib/common/prompt-service';
7
+ import { Emitter, Event, ILogger } from '@theia/core';
8
+ import { OpenerService } from '@theia/core/lib/browser';
9
+ import { ClipboardService } from '@theia/core/lib/browser/clipboard-service';
10
+ import { DisposableCollection } from '@theia/core/lib/common';
11
+ import * as React from '@theia/core/shared/react';
12
+ import { AiConfigurationCategory, AiConfigurationRenderContext, AiConfigurationSearchItem, AiConfigurationSearchProvider } from '@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category';
13
+ import { SinglePageCategoryRenderer } from '@theia/ai-core-ui/lib/browser/ai-configuration/renderers/single-page-category-renderer';
14
+ import { AiSettingsRowService } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service';
15
+ import { CollapsibleRow } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/collapsible-list';
16
+ import { AiConfigurationOrigin } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-origin-badge';
17
+ /**
18
+ * The "Skills & Slash Commands" category: a `single-page` category that lists skills (file-based
19
+ * `SKILL.md` units) and slash commands (prompt fragments with command metadata) as filterable,
20
+ * expandable rows. A skill row opens its `SKILL.md`; a slash command row opens its template in the
21
+ * editor. Prompt variant sets live in the agent detail, so they are not listed here.
22
+ */
23
+ export declare class PromptsAndSkillsConfigurationCategory extends SinglePageCategoryRenderer implements AiConfigurationCategory, AiConfigurationSearchProvider {
24
+ readonly id = "prompts-and-skills";
25
+ readonly label: string;
26
+ readonly description: string;
27
+ readonly iconClass: string;
28
+ readonly order = 500;
29
+ readonly kind: "single-page";
30
+ protected readonly promptService: PromptService;
31
+ protected readonly agentService: AgentService;
32
+ protected readonly skillService: SkillService;
33
+ protected readonly openerService: OpenerService;
34
+ protected readonly settingsRowService: AiSettingsRowService;
35
+ protected readonly clipboardService: ClipboardService;
36
+ protected readonly logger: ILogger;
37
+ protected readonly agentPluginUiBridge?: AgentPluginUiBridge;
38
+ protected readonly skillRegistryUiBridge?: SkillRegistryUiBridge;
39
+ protected readonly onDidChangeEmitter: Emitter<void>;
40
+ readonly onDidChange: Event<void>;
41
+ protected readonly toDispose: DisposableCollection;
42
+ protected availableAgents: Agent[];
43
+ protected skills: Skill[];
44
+ protected slashCommands: PromptFragment[];
45
+ get renderer(): this;
46
+ getOwnedPreferenceIds(): string[];
47
+ get search(): AiConfigurationSearchProvider;
48
+ protected init(): void;
49
+ dispose(): void;
50
+ protected loadAgents(): void;
51
+ protected loadSkills(): void;
52
+ protected loadSlashCommands(): void;
53
+ /** Stable identity so the value rows do not re-render on every page update. */
54
+ protected copyValue: (value: string) => void;
55
+ protected getAgentsForCommand(command: PromptFragment): Agent[];
56
+ protected renderSections(ctx: AiConfigurationRenderContext): React.ReactNode;
57
+ protected buildSkillRow(skill: Skill): CollapsibleRow;
58
+ protected buildCommandRow(command: PromptFragment, onOpenAgent: (agentId: string) => void): CollapsibleRow;
59
+ /** Opens the slash command's backing template: its customization if one exists, otherwise the built-in. */
60
+ protected editCommand(command: PromptFragment): void;
61
+ /**
62
+ * Agents that surface skills, i.e. whose effective system prompt references the `{{skills}}`
63
+ * variable or the skills capability (following `{{prompt:...}}` references). Skills are the same
64
+ * for every agent, so this list is not skill-specific.
65
+ */
66
+ protected getSkillCapableAgents(): Agent[];
67
+ protected templateSurfacesSkills(fragmentId: string, visited: Set<string>): boolean;
68
+ protected openSkill(skill: Skill): void;
69
+ /**
70
+ * The registry entry a skill was installed from, or the Agent Plugin that contributed it - never
71
+ * both: the registry installs a skill into a root of its own, a plugin ships it inside the plugin.
72
+ * Empty for a workspace or configured skill, which is the common case, and always empty without
73
+ * `@theia/ai-registry`, which binds both bridges.
74
+ */
75
+ protected getSkillOrigins(skill: Skill): AiConfigurationOrigin[] | undefined;
76
+ /**
77
+ * The Agent Plugin a skill was contributed by, or `undefined` for a skill from a built-in root - the
78
+ * common case - and for a qualifier belonging to no installed plugin: a bare qualifier is worth neither
79
+ * a label nor a reveal action. Always `undefined` without `@theia/ai-registry`, which binds the bridge.
80
+ */
81
+ protected getOwningPlugin(skill: Skill): InstalledAgentPluginInfo | undefined;
82
+ getSearchItems(): AiConfigurationSearchItem[];
83
+ }
84
+ //# sourceMappingURL=prompts-and-skills-configuration-category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-and-skills-configuration-category.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAClH,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxD,OAAO,EAA8B,cAAc,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrH,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAY,MAAM,aAAa,CAAC;AAChE,OAAO,EAAiB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AA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AC,GAAG,OAAO;IAuBnF,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIvC;;;;;OAKG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,qBAAqB,EAAE,GAAG,SAAS;IAY5E;;;;OAIG;IACH,SAAS,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,wBAAwB,GAAG,SAAS;IAK7E,cAAc,IAAI,yBAAyB,EAAE;CAyBhD"}
@@ -0,0 +1,341 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PromptsAndSkillsConfigurationCategory = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const jsx_runtime_1 = require("@theia/core/shared/react/jsx-runtime");
6
+ // *****************************************************************************
7
+ // Copyright (C) 2026 EclipseSource and others.
8
+ //
9
+ // This program and the accompanying materials are made available under the
10
+ // terms of the Eclipse Public License v. 2.0 which is available at
11
+ // http://www.eclipse.org/legal/epl-2.0.
12
+ //
13
+ // This Source Code may also be made available under the following Secondary
14
+ // Licenses when the conditions for such availability set forth in the Eclipse
15
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
16
+ // with the GNU Classpath Exception which is available at
17
+ // https://www.gnu.org/software/classpath/license.html.
18
+ //
19
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
20
+ // *****************************************************************************
21
+ const ai_core_1 = require("@theia/ai-core");
22
+ const common_1 = require("@theia/ai-core/lib/common");
23
+ const ai_core_preferences_1 = require("@theia/ai-core/lib/common/ai-core-preferences");
24
+ const skill_service_1 = require("@theia/ai-core/lib/browser/skill-service");
25
+ const agent_plugin_ui_bridge_1 = require("@theia/ai-core/lib/browser/agent-plugin-ui-bridge");
26
+ const skill_registry_ui_bridge_1 = require("@theia/ai-core/lib/browser/skill-registry-ui-bridge");
27
+ const skill_1 = require("@theia/ai-core/lib/common/skill");
28
+ const prompt_service_1 = require("@theia/ai-core/lib/common/prompt-service");
29
+ const core_1 = require("@theia/core");
30
+ const browser_1 = require("@theia/core/lib/browser");
31
+ const clipboard_service_1 = require("@theia/core/lib/browser/clipboard-service");
32
+ const common_2 = require("@theia/core/lib/common");
33
+ const inversify_1 = require("@theia/core/shared/inversify");
34
+ const ai_configuration_category_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/ai-configuration-category");
35
+ const single_page_category_renderer_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/renderers/single-page-category-renderer");
36
+ const ai_configuration_primitives_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-primitives");
37
+ const ai_settings_row_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row");
38
+ const ai_settings_row_service_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service");
39
+ const collapsible_list_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/collapsible-list");
40
+ const ai_configuration_origin_badge_1 = require("@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-configuration-origin-badge");
41
+ const agent_chips_1 = require("./agent-chips");
42
+ const SKILL_ROW_PREFIX = 'skill:';
43
+ const COMMAND_ROW_PREFIX = 'cmd:';
44
+ /**
45
+ * The "Skills & Slash Commands" category: a `single-page` category that lists skills (file-based
46
+ * `SKILL.md` units) and slash commands (prompt fragments with command metadata) as filterable,
47
+ * expandable rows. A skill row opens its `SKILL.md`; a slash command row opens its template in the
48
+ * editor. Prompt variant sets live in the agent detail, so they are not listed here.
49
+ */
50
+ let PromptsAndSkillsConfigurationCategory = class PromptsAndSkillsConfigurationCategory extends single_page_category_renderer_1.SinglePageCategoryRenderer {
51
+ constructor() {
52
+ super(...arguments);
53
+ this.id = ai_configuration_category_1.AiConfigurationCategoryId.PROMPTS_AND_SKILLS;
54
+ this.label = core_1.nls.localize('theia/ai/ide/promptsAndSkillsConfiguration/label', 'Skills & Slash Commands');
55
+ this.description = core_1.nls.localize('theia/ai/ide/promptsAndSkillsConfiguration/pageSubtitle', 'Skills the model can use and slash commands you invoke with /. Open a skill to edit its SKILL.md, or edit a slash command’s template.');
56
+ this.iconClass = (0, browser_1.codicon)('mortar-board');
57
+ this.order = ai_configuration_category_1.AiConfigurationCategoryOrder.PROMPTS_AND_SKILLS;
58
+ this.kind = 'single-page';
59
+ this.onDidChangeEmitter = new core_1.Emitter();
60
+ this.onDidChange = this.onDidChangeEmitter.event;
61
+ this.toDispose = new common_2.DisposableCollection(this.onDidChangeEmitter);
62
+ this.availableAgents = [];
63
+ this.skills = [];
64
+ this.slashCommands = [];
65
+ /** Stable identity so the value rows do not re-render on every page update. */
66
+ this.copyValue = (value) => {
67
+ // `writeText` may be async depending on the platform; nothing here depends on its completion.
68
+ Promise.resolve(this.clipboardService.writeText(value)).catch(error => this.logger.error(`Failed to copy "${value}" to the clipboard`, error));
69
+ };
70
+ }
71
+ get renderer() {
72
+ return this;
73
+ }
74
+ getOwnedPreferenceIds() {
75
+ return [ai_core_preferences_1.PREFERENCE_NAME_SKILL_DIRECTORIES];
76
+ }
77
+ get search() {
78
+ return this;
79
+ }
80
+ init() {
81
+ this.loadAgents();
82
+ this.loadSkills();
83
+ this.loadSlashCommands();
84
+ this.toDispose.pushAll([
85
+ this.promptService.onPromptsChange(() => {
86
+ this.loadSlashCommands();
87
+ this.onDidChangeEmitter.fire();
88
+ }),
89
+ this.agentService.onDidChangeAgents(() => {
90
+ this.loadAgents();
91
+ this.onDidChangeEmitter.fire();
92
+ }),
93
+ this.skillService.onSkillsChanged(() => {
94
+ this.loadSkills();
95
+ this.onDidChangeEmitter.fire();
96
+ }),
97
+ this.settingsRowService.onPreferenceChanged(() => this.onDidChangeEmitter.fire())
98
+ ]);
99
+ if (this.agentPluginUiBridge) {
100
+ // The plugin names come from the bridge, so installing one changes this page even when the skills do not.
101
+ this.toDispose.push(this.agentPluginUiBridge.onDidChange(() => this.onDidChangeEmitter.fire()));
102
+ }
103
+ if (this.skillRegistryUiBridge) {
104
+ // Likewise: linking or unlinking a skill folder changes its provenance, not the skill itself.
105
+ this.toDispose.push(this.skillRegistryUiBridge.onDidChange(() => this.onDidChangeEmitter.fire()));
106
+ }
107
+ }
108
+ dispose() {
109
+ this.toDispose.dispose();
110
+ }
111
+ loadAgents() {
112
+ this.availableAgents = this.agentService.getAllAgents();
113
+ }
114
+ loadSkills() {
115
+ // Sorted and keyed by the qualified name: it is what the model addresses and the only name unique across roots.
116
+ this.skills = this.skillService.getSkills().sort((a, b) => a.qualifiedName.localeCompare(b.qualifiedName));
117
+ }
118
+ loadSlashCommands() {
119
+ // Skills are surfaced as synthetic `skill-command-*` fragments; they are shown as skills, not duplicated here.
120
+ this.slashCommands = this.promptService.getCommands()
121
+ .filter(command => !command.id.startsWith('skill-command-'))
122
+ .sort((a, b) => (a.commandName ?? a.id).localeCompare(b.commandName ?? b.id));
123
+ }
124
+ getAgentsForCommand(command) {
125
+ if (!command.commandAgents || command.commandAgents.length === 0) {
126
+ return [];
127
+ }
128
+ return this.availableAgents.filter(agent => command.commandAgents.includes(agent.id));
129
+ }
130
+ renderSections(ctx) {
131
+ const onOpenAgent = (agentId) => ctx.navigate({ categoryId: ai_configuration_category_1.AiConfigurationCategoryId.AGENTS, itemId: agentId });
132
+ const skillAgents = this.getSkillCapableAgents();
133
+ const groups = [
134
+ {
135
+ id: 'skills',
136
+ title: core_1.nls.localizeByDefault('Skills'),
137
+ description: skillAgents.length === 0
138
+ ? core_1.nls.localize('theia/ai/ide/skillsConfiguration/noSkillAgents', 'No agent currently surfaces skills, so none of these are reached: a skill needs the {{skills}} variable '
139
+ + 'or the skill usage capability in an agent\'s prompt.')
140
+ : core_1.nls.localize('theia/ai/ide/skillsConfiguration/skillsGroupDescription', 'File-based SKILL.md units the model can choose to follow, surfaced via the {{skills}} variable and the skill usage capability.'),
141
+ rows: this.skills.map(skill => this.buildSkillRow(skill))
142
+ },
143
+ {
144
+ id: 'slash-commands',
145
+ title: core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommandsSectionHeader', 'Slash Commands'),
146
+ description: core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommandsGroupDescription', 'Prompt fragments you invoke by typing /name in chat, available to one or more agents.'),
147
+ rows: this.slashCommands.map(command => this.buildCommandRow(command, onOpenAgent))
148
+ }
149
+ ];
150
+ return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationSection, { title: core_1.nls.localizeByDefault('Settings'), children: (0, jsx_runtime_1.jsx)(ai_settings_row_1.AiSettingsRow, { service: this.settingsRowService, preferenceId: ai_core_preferences_1.PREFERENCE_NAME_SKILL_DIRECTORIES, scope: ctx.scope, control: this.settingsRowService.controlFor(ai_core_preferences_1.PREFERENCE_NAME_SKILL_DIRECTORIES), onDidChange: ctx.update }) }), (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleList, { groups: groups, filterPlaceholder: core_1.nls.localize('theia/ai/ide/skillsConfiguration/filterPlaceholder', 'Filter skills and slash commands by name or description'), emptyMessage: core_1.nls.localize('theia/ai/ide/skillsConfiguration/empty', 'No skills or slash commands are available.'), filterEmptyMessage: query => core_1.nls.localize('theia/ai/ide/skillsConfiguration/noMatches', 'No skills or slash commands match "{0}".', query) })] });
151
+ }
152
+ buildSkillRow(skill) {
153
+ const tools = skill.allowedTools ?? [];
154
+ const metadata = skill.metadata ? Object.entries(skill.metadata) : [];
155
+ const plugin = this.getOwningPlugin(skill);
156
+ const origins = this.getSkillOrigins(skill);
157
+ const pills = [];
158
+ if (tools.length > 0) {
159
+ pills.push(core_1.nls.localizeByDefault('{0} tools', tools.length));
160
+ }
161
+ return {
162
+ id: SKILL_ROW_PREFIX + skill.qualifiedName,
163
+ title: skill.qualifiedName,
164
+ description: skill.description,
165
+ pills,
166
+ origins,
167
+ filterText: `${skill.qualifiedName} ${skill.description ?? ''} ${plugin?.name ?? ''}`.toLocaleLowerCase(),
168
+ actions: (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleRowAction, { iconClass: (0, browser_1.codicon)('edit'), label: core_1.nls.localize('theia/ai/ide/skillsConfiguration/openSkillFile', 'Open SKILL.md'), onActivate: () => this.openSkill(skill) }),
169
+ body: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationValueRow, { label: core_1.nls.localizeByDefault('Location'), value: skill.location, onCopy: this.copyValue }), (skill.license || skill.compatibility || metadata.length > 0) && (0, jsx_runtime_1.jsxs)("div", { className: 'ai-variable-section', children: [(0, jsx_runtime_1.jsx)("div", { className: 'ai-variable-section-label', children: core_1.nls.localize('theia/ai/ide/skillsConfiguration/frontmatter', 'Frontmatter') }), skill.license && (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationValueRow, { label: core_1.nls.localizeByDefault('License'), value: skill.license, onCopy: this.copyValue }), skill.compatibility && (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationValueRow, { label: core_1.nls.localize('theia/ai/ide/skillsConfiguration/compatibility', 'Compatibility'), value: skill.compatibility, onCopy: this.copyValue }), metadata.map(([key, value]) => (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationValueRow, { label: key, value: value, onCopy: this.copyValue }, key))] }), (0, jsx_runtime_1.jsxs)("div", { className: 'ai-variable-section', children: [(0, jsx_runtime_1.jsx)("div", { className: 'ai-variable-section-label', children: core_1.nls.localizeByDefault('Allowed tools') }), tools.length === 0
170
+ ? (0, jsx_runtime_1.jsx)("div", { className: 'ai-variable-section-note', children: core_1.nls.localize('theia/ai/ide/skillsConfiguration/noAllowedTools', 'No allowed tools declared. The skill may use any tool the agent already has.') })
171
+ : (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-chip-row', children: tools.map(tool => (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationKindBadge, { label: tool, variant: 'outline' }, tool)) })] })] })
172
+ };
173
+ }
174
+ buildCommandRow(command, onOpenAgent) {
175
+ const commandName = command.commandName ?? command.id;
176
+ const agents = this.getAgentsForCommand(command);
177
+ const isGlobal = !command.commandAgents || command.commandAgents.length === 0;
178
+ const example = `/${commandName}${command.commandArgumentHint ? ' ' + command.commandArgumentHint : ''}`;
179
+ const pills = [isGlobal
180
+ ? core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommand/allAgents', 'All agents')
181
+ : (agents.length === 1 ? core_1.nls.localizeByDefault('1 agent') : core_1.nls.localizeByDefault('{0} agents', agents.length))];
182
+ return {
183
+ id: COMMAND_ROW_PREFIX + command.id,
184
+ title: '/' + commandName,
185
+ description: command.commandDescription,
186
+ pills,
187
+ filterText: `${commandName} ${command.id} ${command.commandDescription ?? ''}`.toLocaleLowerCase(),
188
+ actions: (0, jsx_runtime_1.jsx)(collapsible_list_1.CollapsibleRowAction, { iconClass: (0, browser_1.codicon)('edit'), label: core_1.nls.localize('theia/ai/ide/skillsConfiguration/editCommandTemplate', 'Edit prompt template'), onActivate: () => this.editCommand(command) }),
189
+ body: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationValueRow, { label: core_1.nls.localizeByDefault('Command'), value: example, onCopy: this.copyValue }), (0, jsx_runtime_1.jsxs)("div", { className: 'ai-variable-section', children: [(0, jsx_runtime_1.jsx)("div", { className: 'ai-variable-section-label', children: core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommand/availableForAgents', 'Available for agents') }), isGlobal
190
+ ? (0, jsx_runtime_1.jsx)("div", { className: 'ai-configuration-chip-row', children: (0, jsx_runtime_1.jsx)(ai_configuration_primitives_1.AiConfigurationKindBadge, { label: core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommand/allAgents', 'All agents'), variant: 'outline', title: core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommand/allAgentsTooltip', 'This command declares no agents, so it is available to every agent.') }) })
191
+ : (0, jsx_runtime_1.jsx)(agent_chips_1.AgentChips, { agents: agents, onOpenAgent: onOpenAgent })] })] })
192
+ };
193
+ }
194
+ /** Opens the slash command's backing template: its customization if one exists, otherwise the built-in. */
195
+ editCommand(command) {
196
+ const fragment = this.promptService.getRawPromptFragment(command.id);
197
+ if (fragment && (0, prompt_service_1.isCustomizedPromptFragment)(fragment)) {
198
+ this.promptService.editCustomization(fragment.id, fragment.customizationId);
199
+ }
200
+ else {
201
+ this.promptService.editBuiltInCustomization(command.id);
202
+ }
203
+ }
204
+ /**
205
+ * Agents that surface skills, i.e. whose effective system prompt references the `{{skills}}`
206
+ * variable or the skills capability (following `{{prompt:...}}` references). Skills are the same
207
+ * for every agent, so this list is not skill-specific.
208
+ */
209
+ getSkillCapableAgents() {
210
+ return this.availableAgents.filter(agent => agent.prompts.some(prompt => {
211
+ const effectiveId = this.promptService.getEffectiveVariantId(prompt.id) ?? prompt.id;
212
+ return this.templateSurfacesSkills(effectiveId, new Set());
213
+ }));
214
+ }
215
+ templateSurfacesSkills(fragmentId, visited) {
216
+ if (visited.has(fragmentId)) {
217
+ return false;
218
+ }
219
+ visited.add(fragmentId);
220
+ const template = this.promptService.getRawPromptFragment(fragmentId)?.template;
221
+ if (!template) {
222
+ return false;
223
+ }
224
+ const variableTokens = (0, common_1.matchVariablesRegEx)(template).map(match => match[1].trim());
225
+ if (variableTokens.some(token => {
226
+ const base = token.split(':')[0].trim();
227
+ return base === 'skills' || base === 'skill';
228
+ })) {
229
+ return true;
230
+ }
231
+ if ((0, common_1.parseCapabilitiesFromTemplate)(template).some(capability => capability.fragmentId === common_1.GENERIC_CAPABILITIES_SKILLS_PROMPT_ID)) {
232
+ return true;
233
+ }
234
+ return variableTokens.some(token => token.startsWith('prompt:')
235
+ && this.templateSurfacesSkills(token.slice('prompt:'.length).trim().split('|')[0].trim(), visited));
236
+ }
237
+ openSkill(skill) {
238
+ (0, browser_1.open)(this.openerService, core_1.URI.fromFilePath(skill.location));
239
+ }
240
+ /**
241
+ * The registry entry a skill was installed from, or the Agent Plugin that contributed it - never
242
+ * both: the registry installs a skill into a root of its own, a plugin ships it inside the plugin.
243
+ * Empty for a workspace or configured skill, which is the common case, and always empty without
244
+ * `@theia/ai-registry`, which binds both bridges.
245
+ */
246
+ getSkillOrigins(skill) {
247
+ const plugin = this.getOwningPlugin(skill);
248
+ if (plugin) {
249
+ return [ai_configuration_origin_badge_1.AiConfigurationOrigin.agentPlugin(plugin, () => this.agentPluginUiBridge?.revealPlugin(plugin.pluginId))];
250
+ }
251
+ const entryId = this.skillRegistryUiBridge?.getRegistryEntryId(skill);
252
+ if (entryId) {
253
+ return [ai_configuration_origin_badge_1.AiConfigurationOrigin.registry(entryId, () => this.skillRegistryUiBridge?.revealSkill(entryId))];
254
+ }
255
+ return undefined;
256
+ }
257
+ /**
258
+ * The Agent Plugin a skill was contributed by, or `undefined` for a skill from a built-in root - the
259
+ * common case - and for a qualifier belonging to no installed plugin: a bare qualifier is worth neither
260
+ * a label nor a reveal action. Always `undefined` without `@theia/ai-registry`, which binds the bridge.
261
+ */
262
+ getOwningPlugin(skill) {
263
+ const qualifier = skill_1.Skill.qualifierOf(skill);
264
+ return qualifier ? this.agentPluginUiBridge?.getPluginByQualifier(qualifier) : undefined;
265
+ }
266
+ getSearchItems() {
267
+ const items = [];
268
+ const skillLabel = core_1.nls.localizeByDefault('Skill');
269
+ const slashCommandLabel = core_1.nls.localize('theia/ai/ide/skillsConfiguration/slashCommandsSectionHeader', 'Slash Commands');
270
+ for (const skill of this.skills) {
271
+ items.push({
272
+ label: skill.qualifiedName,
273
+ typeLabel: skillLabel,
274
+ categoryId: this.id,
275
+ target: { categoryId: this.id, highlight: { rowId: SKILL_ROW_PREFIX + skill.qualifiedName } },
276
+ // The unqualified name too: a skill contributed by a plugin is still looked up by the name in its SKILL.md.
277
+ keywords: `${skill.name} ${skill.description ?? ''}`
278
+ });
279
+ }
280
+ for (const command of this.slashCommands) {
281
+ items.push({
282
+ label: '/' + (command.commandName ?? command.id),
283
+ typeLabel: slashCommandLabel,
284
+ categoryId: this.id,
285
+ target: { categoryId: this.id, highlight: { rowId: COMMAND_ROW_PREFIX + command.id } },
286
+ keywords: `${command.id} ${command.commandDescription ?? ''}`
287
+ });
288
+ }
289
+ return items;
290
+ }
291
+ };
292
+ exports.PromptsAndSkillsConfigurationCategory = PromptsAndSkillsConfigurationCategory;
293
+ tslib_1.__decorate([
294
+ (0, inversify_1.inject)(prompt_service_1.PromptService),
295
+ tslib_1.__metadata("design:type", Object)
296
+ ], PromptsAndSkillsConfigurationCategory.prototype, "promptService", void 0);
297
+ tslib_1.__decorate([
298
+ (0, inversify_1.inject)(ai_core_1.AgentService),
299
+ tslib_1.__metadata("design:type", Object)
300
+ ], PromptsAndSkillsConfigurationCategory.prototype, "agentService", void 0);
301
+ tslib_1.__decorate([
302
+ (0, inversify_1.inject)(skill_service_1.SkillService),
303
+ tslib_1.__metadata("design:type", Object)
304
+ ], PromptsAndSkillsConfigurationCategory.prototype, "skillService", void 0);
305
+ tslib_1.__decorate([
306
+ (0, inversify_1.inject)(browser_1.OpenerService),
307
+ tslib_1.__metadata("design:type", Object)
308
+ ], PromptsAndSkillsConfigurationCategory.prototype, "openerService", void 0);
309
+ tslib_1.__decorate([
310
+ (0, inversify_1.inject)(ai_settings_row_service_1.AiSettingsRowService),
311
+ tslib_1.__metadata("design:type", ai_settings_row_service_1.AiSettingsRowService)
312
+ ], PromptsAndSkillsConfigurationCategory.prototype, "settingsRowService", void 0);
313
+ tslib_1.__decorate([
314
+ (0, inversify_1.inject)(clipboard_service_1.ClipboardService),
315
+ tslib_1.__metadata("design:type", Object)
316
+ ], PromptsAndSkillsConfigurationCategory.prototype, "clipboardService", void 0);
317
+ tslib_1.__decorate([
318
+ (0, inversify_1.inject)(core_1.ILogger),
319
+ (0, inversify_1.named)('ai-ide:PromptsAndSkillsConfigurationCategory'),
320
+ tslib_1.__metadata("design:type", Object)
321
+ ], PromptsAndSkillsConfigurationCategory.prototype, "logger", void 0);
322
+ tslib_1.__decorate([
323
+ (0, inversify_1.inject)(agent_plugin_ui_bridge_1.AgentPluginUiBridge),
324
+ (0, inversify_1.optional)(),
325
+ tslib_1.__metadata("design:type", Object)
326
+ ], PromptsAndSkillsConfigurationCategory.prototype, "agentPluginUiBridge", void 0);
327
+ tslib_1.__decorate([
328
+ (0, inversify_1.inject)(skill_registry_ui_bridge_1.SkillRegistryUiBridge),
329
+ (0, inversify_1.optional)(),
330
+ tslib_1.__metadata("design:type", Object)
331
+ ], PromptsAndSkillsConfigurationCategory.prototype, "skillRegistryUiBridge", void 0);
332
+ tslib_1.__decorate([
333
+ (0, inversify_1.postConstruct)(),
334
+ tslib_1.__metadata("design:type", Function),
335
+ tslib_1.__metadata("design:paramtypes", []),
336
+ tslib_1.__metadata("design:returntype", void 0)
337
+ ], PromptsAndSkillsConfigurationCategory.prototype, "init", null);
338
+ exports.PromptsAndSkillsConfigurationCategory = PromptsAndSkillsConfigurationCategory = tslib_1.__decorate([
339
+ (0, inversify_1.injectable)()
340
+ ], PromptsAndSkillsConfigurationCategory);
341
+ //# sourceMappingURL=prompts-and-skills-configuration-category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-and-skills-configuration-category.js","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.tsx"],"names":[],"mappings":";;;;;AAAA,gFAAgF;AAChF,+CAA+C;AAC/C,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAEhF,4CAAqD;AACrD,sDAAsI;AACtI,uFAAkG;AAClG,4EAAwE;AACxE,8FAAkH;AAClH,kGAA4F;AAC5F,2DAAwD;AACxD,6EAAqH;AACrH,sCAAgE;AAChE,qDAAuE;AACvE,iFAA6E;AAC7E,mD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E,IAAA,oBAAQ,GAAE;;kFACqB;AAG1C;IADlB,IAAA,kBAAM,EAAC,gDAAqB,CAAC;IAAE,IAAA,oBAAQ,GAAE;;oFACuB;AAuBvD;IADT,IAAA,yBAAa,GAAE;;;;iEA4Bf;gDArFQ,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAgWjD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=prompts-and-skills-configuration-category.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompts-and-skills-configuration-category.spec.d.ts","sourceRoot":"","sources":["../../../../src/browser/ai-configuration/categories/prompts-and-skills-configuration-category.spec.ts"],"names":[],"mappings":""}