@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
@@ -1,508 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var AIPromptFragmentsConfigurationWidget_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.AIPromptFragmentsConfigurationWidget = void 0;
20
- const tslib_1 = require("tslib");
21
- const core_1 = require("@theia/core");
22
- const browser_1 = require("@theia/core/lib/browser");
23
- const inversify_1 = require("@theia/core/shared/inversify");
24
- const prompt_service_1 = require("@theia/ai-core/lib/common/prompt-service");
25
- const React = require("@theia/core/shared/react");
26
- const agent_service_1 = require("@theia/ai-core/lib/common/agent-service");
27
- const frontend_prompt_customization_service_1 = require("@theia/ai-core/lib/browser/frontend-prompt-customization-service");
28
- const ai_chat_1 = require("@theia/ai-chat/");
29
- /**
30
- * Widget for configuring AI prompt fragments and prompt variant sets.
31
- * Allows users to view, create, edit, and manage various types of prompt
32
- * fragments including their customizations and variants.
33
- */
34
- let AIPromptFragmentsConfigurationWidget = class AIPromptFragmentsConfigurationWidget extends browser_1.ReactWidget {
35
- constructor() {
36
- super(...arguments);
37
- /**
38
- * Stores all available prompt fragments by ID
39
- */
40
- this.promptFragmentMap = new Map();
41
- /**
42
- * Stores prompt variant sets and their variant IDs
43
- */
44
- this.promptVariantsMap = new Map();
45
- /**
46
- * Currently active prompt fragments
47
- */
48
- this.activePromptFragments = [];
49
- /**
50
- * Tracks expanded state of prompt fragment sections in the UI
51
- */
52
- this.expandedPromptFragmentIds = new Set();
53
- /**
54
- * Tracks expanded state of prompt content display
55
- */
56
- this.expandedPromptFragmentTemplates = new Set();
57
- /**
58
- * Tracks expanded state of prompt variant set sections
59
- */
60
- this.expandedPromptVariantSetIds = new Set();
61
- /**
62
- * All available agents that may use prompts
63
- */
64
- this.availableAgents = [];
65
- /**
66
- * Maps prompt variant set IDs to their resolved variant IDs
67
- */
68
- this.effectiveVariantIds = new Map();
69
- /**
70
- * Maps prompt variant set IDs to their default variant IDs
71
- */
72
- this.defaultVariantIds = new Map();
73
- /**
74
- * Maps prompt variant set IDs to their user selected variant IDs
75
- */
76
- this.userSelectedVariantIds = new Map();
77
- this.togglePromptVariantSetExpansion = (promptVariantSetId) => {
78
- if (this.expandedPromptVariantSetIds.has(promptVariantSetId)) {
79
- this.expandedPromptVariantSetIds.delete(promptVariantSetId);
80
- }
81
- else {
82
- this.expandedPromptVariantSetIds.add(promptVariantSetId);
83
- }
84
- this.update();
85
- };
86
- this.togglePromptFragmentExpansion = (promptFragmentId) => {
87
- if (this.expandedPromptFragmentIds.has(promptFragmentId)) {
88
- this.expandedPromptFragmentIds.delete(promptFragmentId);
89
- }
90
- else {
91
- this.expandedPromptFragmentIds.add(promptFragmentId);
92
- }
93
- this.update();
94
- };
95
- this.toggleTemplateExpansion = (fragmentKey, event) => {
96
- event.stopPropagation();
97
- if (this.expandedPromptFragmentTemplates.has(fragmentKey)) {
98
- this.expandedPromptFragmentTemplates.delete(fragmentKey);
99
- }
100
- else {
101
- this.expandedPromptFragmentTemplates.add(fragmentKey);
102
- }
103
- this.update();
104
- };
105
- /**
106
- * Call the edit action for the provided customized prompt fragment
107
- * @param promptFragment Fragment to edit
108
- * @param event Mouse event
109
- */
110
- this.editPromptCustomization = (promptFragment, event) => {
111
- event.stopPropagation();
112
- this.promptService.editCustomization(promptFragment.id, promptFragment.customizationId);
113
- };
114
- /**
115
- * Resets a prompt fragment to use a specific customization (with confirmation dialog)
116
- * @param customization customization to reset to
117
- * @param event Mouse event
118
- */
119
- this.resetToPromptFragment = async (customization, event) => {
120
- event.stopPropagation();
121
- if ((0, prompt_service_1.isCustomizedPromptFragment)(customization)) {
122
- // Get the customization type to show in the confirmation dialog
123
- const type = await this.promptService.getCustomizationType(customization.id, customization.customizationId);
124
- const dialog = new browser_1.ConfirmDialog({
125
- title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToCustomizationDialogTitle', 'Reset to Customization'),
126
- msg: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToCustomizationDialogMsg', 'Are you sure you want to reset the prompt fragment "{0}" to use the {1} customization? This will remove all higher-priority customizations.', customization.id, type),
127
- ok: core_1.nls.localizeByDefault('Reset'),
128
- cancel: core_1.nls.localizeByDefault('Cancel')
129
- });
130
- const shouldReset = await dialog.open();
131
- if (shouldReset) {
132
- await this.promptService.resetToCustomization(customization.id, customization.customizationId);
133
- }
134
- }
135
- else {
136
- const dialog = new browser_1.ConfirmDialog({
137
- title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToBuiltInDialogTitle', 'Reset to Built-in'),
138
- msg: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToBuiltInDialogMsg', 'Are you sure you want to reset the prompt fragment "{0}" to its built-in version? This will remove all customizations.', customization.id),
139
- ok: core_1.nls.localizeByDefault('Reset'),
140
- cancel: core_1.nls.localizeByDefault('Cancel')
141
- });
142
- const shouldReset = await dialog.open();
143
- if (shouldReset) {
144
- await this.promptService.resetToBuiltIn(customization.id);
145
- }
146
- }
147
- };
148
- /**
149
- * Creates a new customization for a built-in prompt fragment
150
- * @param promptFragment Built-in prompt fragment to customize
151
- * @param event Mouse event
152
- */
153
- this.createPromptFragmentCustomization = (promptFragment, event) => {
154
- event.stopPropagation();
155
- this.promptService.createBuiltInCustomization(promptFragment.id);
156
- };
157
- /**
158
- * Deletes a customization with confirmation dialog
159
- * @param customization Customized prompt fragment to delete
160
- * @param event Mouse event
161
- */
162
- this.deletePromptFragmentCustomization = async (customization, event) => {
163
- event.stopPropagation();
164
- // First get the customization type and description to show in the confirmation dialog
165
- const type = await this.promptService.getCustomizationType(customization.id, customization.customizationId) || '';
166
- const description = await this.promptService.getCustomizationDescription(customization.id, customization.customizationId) || '';
167
- const dialog = new browser_1.ConfirmDialog({
168
- title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/removeCustomizationDialogTitle', 'Remove Customization'),
169
- msg: description ?
170
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/removeCustomizationWithDescDialogMsg', 'Are you sure you want to remove the {0} customization for prompt fragment "{1}" ({2})?', type, customization.id, description) :
171
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/removeCustomizationDialogMsg', 'Are you sure you want to remove the {0} customization for prompt fragment "{1}"?', type, customization.id),
172
- ok: core_1.nls.localizeByDefault('Remove'),
173
- cancel: core_1.nls.localizeByDefault('Cancel')
174
- });
175
- const shouldDelete = await dialog.open();
176
- if (shouldDelete) {
177
- await this.promptService.removeCustomization(customization.id, customization.customizationId);
178
- }
179
- };
180
- /**
181
- * Removes all prompt customizations (resets to built-in versions) with confirmation
182
- */
183
- this.removeAllCustomizations = async () => {
184
- const dialog = new browser_1.ConfirmDialog({
185
- title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetAllCustomizationsDialogTitle', 'Reset All Customizations'),
186
- msg: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetAllCustomizationsDialogMsg', 'Are you sure you want to reset all prompt fragments to their built-in versions? This will remove all customizations.'),
187
- ok: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetAllButton', 'Reset All'),
188
- cancel: core_1.nls.localizeByDefault('Cancel')
189
- });
190
- const shouldReset = await dialog.open();
191
- if (shouldReset) {
192
- this.promptService.resetAllToBuiltIn();
193
- }
194
- };
195
- }
196
- static { AIPromptFragmentsConfigurationWidget_1 = this; }
197
- static { this.ID = 'ai-prompt-fragments-configuration'; }
198
- static { this.LABEL = core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/label', 'Prompt Fragments'); }
199
- init() {
200
- this.id = AIPromptFragmentsConfigurationWidget_1.ID;
201
- this.title.label = AIPromptFragmentsConfigurationWidget_1.LABEL;
202
- this.title.caption = AIPromptFragmentsConfigurationWidget_1.LABEL;
203
- this.title.closable = true;
204
- this.addClass('ai-configuration-tab-content');
205
- this.loadPromptFragments();
206
- this.loadAgents();
207
- this.toDispose.pushAll([
208
- this.promptService.onPromptsChange(() => {
209
- this.loadPromptFragments();
210
- }),
211
- this.agentService.onDidChangeAgents(() => {
212
- this.loadAgents();
213
- })
214
- ]);
215
- }
216
- /**
217
- * Loads all prompt fragments and prompt variant sets from the prompt service.
218
- * Preserves UI expansion states and updates variant information.
219
- */
220
- loadPromptFragments() {
221
- this.promptFragmentMap = this.promptService.getAllPromptFragments();
222
- this.promptVariantsMap = this.promptService.getPromptVariantSets();
223
- this.activePromptFragments = this.promptService.getActivePromptFragments();
224
- // Preserve expansion state when reloading
225
- const existingExpandedFragmentIds = new Set(this.expandedPromptFragmentIds);
226
- const existingExpandedPromptVariantIds = new Set(this.expandedPromptVariantSetIds);
227
- const existingExpandedTemplates = new Set(this.expandedPromptFragmentTemplates);
228
- if (existingExpandedFragmentIds.size > 0) {
229
- // Keep existing expansion state but remove entries for fragments that no longer exist
230
- this.expandedPromptFragmentIds = new Set(Array.from(existingExpandedFragmentIds).filter(id => this.promptFragmentMap.has(id)));
231
- }
232
- if (existingExpandedPromptVariantIds.size === 0) {
233
- // Start with variant sets collapsed by default
234
- this.expandedPromptVariantSetIds = new Set();
235
- }
236
- else {
237
- // Keep existing expansion state but remove entries for prompt variant sets that no longer exist
238
- this.expandedPromptVariantSetIds = new Set(Array.from(existingExpandedPromptVariantIds).filter(id => this.promptVariantsMap.has(id)));
239
- }
240
- // For templates, preserve existing expanded states - don't expand by default
241
- this.expandedPromptFragmentTemplates = new Set(Array.from(existingExpandedTemplates).filter(id => {
242
- const [fragmentId] = id.split('_');
243
- return this.promptFragmentMap.has(fragmentId);
244
- }));
245
- // Update variant information (selected/default/effective) for prompt variant sets
246
- for (const promptVariantSetId of this.promptVariantsMap.keys()) {
247
- const effectiveId = this.promptService.getEffectiveVariantId(promptVariantSetId);
248
- const defaultId = this.promptService.getDefaultVariantId(promptVariantSetId);
249
- const selectedId = this.promptService.getSelectedVariantId(promptVariantSetId) ?? defaultId;
250
- this.userSelectedVariantIds.set(promptVariantSetId, selectedId);
251
- this.effectiveVariantIds.set(promptVariantSetId, effectiveId);
252
- this.defaultVariantIds.set(promptVariantSetId, defaultId);
253
- }
254
- this.update();
255
- }
256
- /**
257
- * Loads all available agents from the agent service
258
- */
259
- loadAgents() {
260
- this.availableAgents = this.agentService.getAllAgents();
261
- this.update();
262
- }
263
- /**
264
- * Finds agents that use a specific prompt variant set
265
- * @param promptVariantSetId ID of the prompt variant set to match
266
- * @returns Array of agents that use the prompt variant set
267
- */
268
- getAgentsUsingPromptVariantId(promptVariantSetId) {
269
- return this.availableAgents.filter((agent) => agent.prompts.find(promptVariantSet => promptVariantSet.id === promptVariantSetId));
270
- }
271
- /**
272
- * Determines if a prompt fragment is currently the active one for its ID
273
- * @param promptFragment The prompt fragment to check
274
- * @returns True if this prompt fragment is the active customization
275
- */
276
- isActiveCustomization(promptFragment) {
277
- const activePromptFragment = this.activePromptFragments.find(activePrompt => activePrompt.id === promptFragment.id);
278
- if (!activePromptFragment) {
279
- return false;
280
- }
281
- if ((0, prompt_service_1.isCustomizedPromptFragment)(activePromptFragment) && (0, prompt_service_1.isCustomizedPromptFragment)(promptFragment)) {
282
- return (activePromptFragment.id === promptFragment.id &&
283
- activePromptFragment.template === promptFragment.template &&
284
- activePromptFragment.customizationId === promptFragment.customizationId &&
285
- activePromptFragment.priority === promptFragment.priority);
286
- }
287
- if ((0, prompt_service_1.isBasePromptFragment)(activePromptFragment) && (0, prompt_service_1.isBasePromptFragment)(promptFragment)) {
288
- return (activePromptFragment.id === promptFragment.id &&
289
- activePromptFragment.template === promptFragment.template);
290
- }
291
- return false;
292
- }
293
- /**
294
- * Main render method for the widget
295
- * @returns Complete UI for the configuration widget
296
- */
297
- render() {
298
- const nonSystemPromptFragments = this.getNonPromptVariantSetFragments();
299
- return (React.createElement("div", { className: 'ai-prompt-fragments-configuration' },
300
- React.createElement("div", { className: "prompt-fragments-header" },
301
- React.createElement("h2", null, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/headerTitle', 'Prompt Fragments')),
302
- React.createElement("div", { className: "global-actions" },
303
- React.createElement("button", { className: "global-action-button", onClick: this.removeAllCustomizations, title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetAllCustomizationsTitle', 'Reset all customizations') },
304
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetAllPromptFragments', 'Reset all prompt fragments'),
305
- " ",
306
- React.createElement("span", { className: (0, browser_1.codicon)('clear-all') })))),
307
- React.createElement("div", { className: "prompt-variants-container" },
308
- React.createElement("h3", { className: "section-header" }, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/promptVariantsHeader', 'Prompt Variant Sets')),
309
- Array.from(this.promptVariantsMap.entries()).sort((a, b) => a[0].localeCompare(b[0])).map(([promptVariantSetId, variantIds]) => this.renderPromptVariantSet(promptVariantSetId, variantIds))),
310
- nonSystemPromptFragments.size > 0 && React.createElement("div", { className: "prompt-fragments-container" },
311
- React.createElement("h3", { className: "section-header" }, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/otherPromptFragmentsHeader', 'Other Prompt Fragments')),
312
- Array.from(nonSystemPromptFragments.entries()).sort((a, b) => a[0].localeCompare(b[0])).map(([promptFragmentId, fragments]) => this.renderPromptFragment(promptFragmentId, fragments))),
313
- this.promptFragmentMap.size === 0 && (React.createElement("div", { className: "no-fragments" },
314
- React.createElement("p", null, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/noFragmentsAvailable', 'No prompt fragments available.'))))));
315
- }
316
- /**
317
- * Renders a prompt variant set with its variants
318
- * @param promptVariantSetId ID of the prompt variant set
319
- * @param variantIds Array of variant IDs
320
- * @returns React node for the prompt variant set group
321
- */
322
- renderPromptVariantSet(promptVariantSetId, variantIds) {
323
- const isSectionExpanded = this.expandedPromptVariantSetIds.has(promptVariantSetId);
324
- // Get selected, effective, and default variant IDs from our class properties
325
- const selectedVariantId = this.userSelectedVariantIds.get(promptVariantSetId);
326
- const effectiveVariantId = this.effectiveVariantIds.get(promptVariantSetId);
327
- const defaultVariantId = this.defaultVariantIds.get(promptVariantSetId);
328
- // Get variant fragments grouped by ID
329
- const variantGroups = new Map();
330
- // First, collect all actual fragments for each variant ID
331
- for (const variantId of variantIds) {
332
- if (this.promptFragmentMap.has(variantId)) {
333
- variantGroups.set(variantId, this.promptFragmentMap.get(variantId));
334
- }
335
- }
336
- const relatedAgents = this.getAgentsUsingPromptVariantId(promptVariantSetId);
337
- // Determine warning/error state
338
- let variantSetMessage = undefined;
339
- if (effectiveVariantId === undefined) {
340
- // Error: effectiveId is undefined, so nothing works
341
- variantSetMessage = (React.createElement("div", { className: "prompt-variant-error" },
342
- React.createElement("span", { className: "codicon codicon-error" }),
343
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/variantSetError', 'The selected variant does not exist and no default could be found. Please check your configuration.')));
344
- }
345
- else {
346
- const needsWarning = selectedVariantId ? effectiveVariantId !== selectedVariantId : effectiveVariantId !== defaultVariantId;
347
- if (needsWarning) {
348
- // Warning: selectedId is set but does not exist, so default is used
349
- variantSetMessage = (React.createElement("div", { className: "prompt-variant-warning" },
350
- React.createElement("span", { className: "codicon codicon-warning" }),
351
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/variantSetWarning', 'The selected variant does not exist. The default variant is being used instead.')));
352
- }
353
- }
354
- return (React.createElement("div", { className: "prompt-fragment-section", key: `variant-${promptVariantSetId}` },
355
- React.createElement("div", { className: `prompt-fragment-header ${isSectionExpanded ? 'expanded' : ''}`, onClick: () => this.togglePromptVariantSetExpansion(promptVariantSetId) },
356
- React.createElement("div", { className: "prompt-fragment-title" },
357
- React.createElement("span", { className: "expansion-icon" }, isSectionExpanded ? '▼' : '▶'),
358
- React.createElement("h2", null, promptVariantSetId)),
359
- relatedAgents.length > 0 && (React.createElement("div", { className: "agent-chips-container" }, relatedAgents.map(agent => (React.createElement("span", { key: agent.id, className: "agent-chip", title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/usedByAgentTitle', 'Used by agent: {0}', agent.name), onClick: e => e.stopPropagation() },
360
- React.createElement("span", { className: ((0, ai_chat_1.isChatAgent)(agent) && agent.iconClass) ? agent.iconClass : (0, browser_1.codicon)('copilot') }),
361
- agent.name)))))),
362
- isSectionExpanded && (React.createElement("div", { className: "prompt-fragment-body" },
363
- variantSetMessage,
364
- React.createElement("div", { className: "prompt-fragment-description" },
365
- React.createElement("p", null, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/variantsOfSystemPrompt', 'Variants of this prompt variant set:'))),
366
- Array.from(variantGroups.entries()).map(([variantId, fragments]) => {
367
- const isVariantExpanded = this.expandedPromptFragmentIds.has(variantId);
368
- return (React.createElement("div", { key: variantId, className: `prompt-fragment-section ${selectedVariantId === variantId ? 'selected-variant' : ''}` },
369
- React.createElement("div", { className: `prompt-fragment-header ${isVariantExpanded ? 'expanded' : ''}`, onClick: () => this.togglePromptFragmentExpansion(variantId) },
370
- React.createElement("div", { className: "prompt-fragment-title" },
371
- React.createElement("span", { className: "expansion-icon" }, isVariantExpanded ? '▼' : '▶'),
372
- React.createElement("h4", null, variantId),
373
- defaultVariantId === variantId && (React.createElement("span", { className: "badge default-variant", title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/defaultVariantTitle', 'Default variant') }, core_1.nls.localizeByDefault('Default'))),
374
- selectedVariantId === variantId && (React.createElement("span", { className: "selected-indicator", title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/selectedVariantTitle', 'Selected variant') }, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/selectedVariantLabel', 'Selected'))))),
375
- isVariantExpanded && (React.createElement("div", { className: 'prompt-fragment-body' }, fragments.map(fragment => this.renderPromptFragmentCustomization(fragment))))));
376
- })))));
377
- }
378
- /**
379
- * Gets fragments that aren't part of any prompt variant set
380
- * @returns Map of fragment IDs to their customizations
381
- */
382
- getNonPromptVariantSetFragments() {
383
- const nonSystemPromptFragments = new Map();
384
- const allVariantIds = new Set();
385
- // Collect all variant IDs from prompt variant sets
386
- this.promptVariantsMap.forEach((variants, _) => {
387
- variants.forEach(variantId => allVariantIds.add(variantId));
388
- });
389
- // Add prompt variant set main IDs
390
- this.promptVariantsMap.forEach((_, promptVariantSetId) => {
391
- allVariantIds.add(promptVariantSetId);
392
- });
393
- // Filter the fragment map to only include non-prompt variant set fragments
394
- this.promptFragmentMap.forEach((fragments, promptFragmentId) => {
395
- if (!allVariantIds.has(promptFragmentId)) {
396
- nonSystemPromptFragments.set(promptFragmentId, fragments);
397
- }
398
- });
399
- return nonSystemPromptFragments;
400
- }
401
- /**
402
- * Renders a prompt fragment with all of its customizations
403
- * @param promptFragmentId ID of the prompt fragment
404
- * @param customizations Array of the customizations
405
- * @returns React node for the prompt fragment
406
- */
407
- renderPromptFragment(promptFragmentId, customizations) {
408
- const isSectionExpanded = this.expandedPromptFragmentIds.has(promptFragmentId);
409
- return (React.createElement("div", { className: 'prompt-fragment-group', key: promptFragmentId },
410
- React.createElement("div", { className: `prompt-fragment-header ${isSectionExpanded ? 'expanded' : ''}`, onClick: () => this.togglePromptFragmentExpansion(promptFragmentId) },
411
- React.createElement("div", { className: "prompt-fragment-title" },
412
- React.createElement("span", { className: "expansion-icon" }, isSectionExpanded ? '▼' : '▶'),
413
- promptFragmentId)),
414
- isSectionExpanded && (React.createElement("div", { className: "prompt-fragment-body" }, customizations.map(fragment => this.renderPromptFragmentCustomization(fragment))))));
415
- }
416
- /**
417
- * Renders a single prompt fragment customization with its controls and content
418
- * @param promptFragment The prompt fragment to render
419
- * @returns React node for the prompt fragment
420
- */
421
- renderPromptFragmentCustomization(promptFragment) {
422
- const isCustomized = (0, prompt_service_1.isCustomizedPromptFragment)(promptFragment);
423
- const isActive = this.isActiveCustomization(promptFragment);
424
- // Create a unique key for this fragment to track expansion state
425
- const fragmentKey = `${promptFragment.id}_${isCustomized ? promptFragment.customizationId : 'built-in'}`;
426
- const isTemplateExpanded = this.expandedPromptFragmentTemplates.has(fragmentKey);
427
- const hasCustomizedBuiltIn = this.promptFragmentMap.get(promptFragment.id)?.some(fragment => (0, prompt_service_1.isCustomizedPromptFragment)(fragment) && fragment.priority === frontend_prompt_customization_service_1.CustomizationSource.CUSTOMIZED);
428
- return (React.createElement("div", { className: `prompt-customization ${isActive ? 'active-customization' : ''}`, key: fragmentKey },
429
- React.createElement("div", { className: "prompt-customization-header" },
430
- React.createElement("div", { className: "prompt-customization-title" },
431
- React.createElement(React.Suspense, { fallback: React.createElement("div", null, "Loading...") },
432
- React.createElement(CustomizationTypeBadge, { promptFragment: promptFragment, promptService: this.promptService })),
433
- isActive && (React.createElement("span", { className: "active-indicator", title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/activeCustomizationTitle', 'Active customization') }, core_1.nls.localizeByDefault('Active')))),
434
- React.createElement("div", { className: "prompt-customization-actions" },
435
- !isCustomized && !hasCustomizedBuiltIn && (React.createElement("button", { className: "template-action-button config-button", onClick: e => this.createPromptFragmentCustomization(promptFragment, e), title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/createCustomizationTitle', 'Create Customization') },
436
- React.createElement("span", { className: (0, browser_1.codicon)('add') }))),
437
- isCustomized && (React.createElement("button", { className: "source-uri-button", onClick: e => this.editPromptCustomization(promptFragment, e), title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/editTemplateTitle', 'Edit template') },
438
- React.createElement("span", { className: (0, browser_1.codicon)('edit') }))),
439
- !isActive && (React.createElement("button", { className: "template-action-button reset-button", onClick: e => this.resetToPromptFragment(promptFragment, e), title: !isCustomized ?
440
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToBuiltInTitle', 'Reset to this built-in') :
441
- core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/resetToCustomizationTitle', 'Reset to this customization') },
442
- React.createElement("span", { className: (0, browser_1.codicon)('discard') }))),
443
- isCustomized && (React.createElement("button", { className: "template-action-button delete-button", onClick: e => this.deletePromptFragmentCustomization(promptFragment, e), title: core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/deleteCustomizationTitle', 'Delete Customization') },
444
- React.createElement("span", { className: (0, browser_1.codicon)('trash') }))))),
445
- isCustomized && (React.createElement(React.Suspense, { fallback: React.createElement("div", null, "Loading...") },
446
- React.createElement(DescriptionBadge, { promptFragment: promptFragment, promptService: this.promptService }))),
447
- React.createElement("div", { className: "template-content-container" },
448
- React.createElement("div", { className: "template-toggle-button", onClick: e => this.toggleTemplateExpansion(fragmentKey, e) },
449
- React.createElement("span", { className: "template-expansion-icon" }, isTemplateExpanded ? '▼' : '▶'),
450
- React.createElement("span", null, core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/promptTemplateText', 'Prompt Template Text'))),
451
- isTemplateExpanded && (React.createElement("div", { className: "template-content" },
452
- React.createElement("pre", null, promptFragment.template))))));
453
- }
454
- };
455
- exports.AIPromptFragmentsConfigurationWidget = AIPromptFragmentsConfigurationWidget;
456
- tslib_1.__decorate([
457
- (0, inversify_1.inject)(prompt_service_1.PromptService),
458
- tslib_1.__metadata("design:type", Object)
459
- ], AIPromptFragmentsConfigurationWidget.prototype, "promptService", void 0);
460
- tslib_1.__decorate([
461
- (0, inversify_1.inject)(agent_service_1.AgentService),
462
- tslib_1.__metadata("design:type", Object)
463
- ], AIPromptFragmentsConfigurationWidget.prototype, "agentService", void 0);
464
- tslib_1.__decorate([
465
- (0, inversify_1.postConstruct)(),
466
- tslib_1.__metadata("design:type", Function),
467
- tslib_1.__metadata("design:paramtypes", []),
468
- tslib_1.__metadata("design:returntype", void 0)
469
- ], AIPromptFragmentsConfigurationWidget.prototype, "init", null);
470
- exports.AIPromptFragmentsConfigurationWidget = AIPromptFragmentsConfigurationWidget = AIPromptFragmentsConfigurationWidget_1 = tslib_1.__decorate([
471
- (0, inversify_1.injectable)()
472
- ], AIPromptFragmentsConfigurationWidget);
473
- /**
474
- * Displays a badge indicating the type of a prompt fragment customization (built-in, user, workspace)
475
- */
476
- const CustomizationTypeBadge = ({ promptFragment, promptService }) => {
477
- const [typeLabel, setTypeLabel] = React.useState('unknown');
478
- React.useEffect(() => {
479
- const fetchCustomizationType = async () => {
480
- if ((0, prompt_service_1.isCustomizedPromptFragment)(promptFragment)) {
481
- const customizationType = await promptService.getCustomizationType(promptFragment.id, promptFragment.customizationId);
482
- setTypeLabel(`${customizationType ?
483
- customizationType + ' ' + core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/customization', 'customization')
484
- : core_1.nls.localize('theia/ai/core/promptFragmentsConfiguration/customizationLabel', 'Customization')}`);
485
- }
486
- else {
487
- setTypeLabel(core_1.nls.localizeByDefault('Built-in'));
488
- }
489
- };
490
- fetchCustomizationType();
491
- }, [promptFragment, promptService]);
492
- return React.createElement("span", null, typeLabel);
493
- };
494
- /**
495
- * Displays the description of a customized prompt fragment if available
496
- */
497
- const DescriptionBadge = ({ promptFragment, promptService }) => {
498
- const [description, setDescription] = React.useState('');
499
- React.useEffect(() => {
500
- const fetchDescription = async () => {
501
- const customizationDescription = await promptService.getCustomizationDescription(promptFragment.id, promptFragment.customizationId);
502
- setDescription(customizationDescription || '');
503
- };
504
- fetchDescription();
505
- }, [promptFragment.id, promptFragment.customizationId, promptService]);
506
- return React.createElement("span", { className: "prompt-customization-description" }, description);
507
- };
508
- //# sourceMappingURL=prompt-fragments-configuration-widget.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt-fragments-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/prompt-fragments-configuration-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAEhF,sCAAkC;AAClC,qDAA8E;AAC9E,4DAAiF;AACjF,6EAOkD;AAClD,kDAAkD;AAClD,2EAAuE;AAEvE,4HAAuG;AACvG,6CAA8C;AAE9C;;;;GAIG;AAEI,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,qBAAW;IAA9D;;QAKH;;WAEG;QACO,sBAAiB,GAAkC,IAAI,GAAG,EAA4B,CAAC;QAEjG;;WAEG;QACO,sBAAiB,GAA0B,IAAI,GAAG,EAAoB,CAAC;QAEjF;;WAEG;QACO,0BAAqB,GAAqB,EAAE,CAAC;QAEvD;;WAEG;QACO,8BAAyB,GAAgB,IAAI,GAAG,EAAE,CAAC;QAE7D;;WAEG;QACO,oCAA+B,GAAgB,IAAI,GAAG,EAAE,CAAC;QAEnE;;WAEG;QACO,gCAA2B,GAAgB,IAAI,GAAG,EAAE,CAAC;QAE/D;;WAEG;QACO,oBAAe,GAAY,EAAE,CAAC;QAExC;;WAEG;QACO,wBAAmB,GAAoC,IAAI,GAAG,EAAE,CAAC;QAE3E;;WAEG;QACO,sBAAiB,GAAoC,IAAI,GAAG,EAAE,CAAC;QAEzE;;WAEG;QACO,2BAAsB,GAAoC,IAAI,GAAG,EAAE,CAAC;QAgGpE,oCAA+B,GAAG,CAAC,kBAA0B,EAAQ,EAAE;YAC7E,IAAI,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,CAAC;gBAC3D,IAAI,CAAC,2BA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,EAAE,EACjB,cAAc,CAAC,eAAe,CACjC,CAAC;YACF,cAAc,CAAC,wBAAwB,IAAI,EAAE,CAAC,CAAC;QACnD,CAAC,CAAC;QAEF,gBAAgB,EAAE,CAAC;IACvB,CAAC,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,cAAc,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC;IAEvE,OAAO,8BAAM,SAAS,EAAC,kCAAkC,IAAE,WAAW,CAAQ,CAAC;AACnF,CAAC,CAAC"}
@@ -1,29 +0,0 @@
1
- import { OpenerService, ReactWidget } from '@theia/core/lib/browser';
2
- import * as React from '@theia/core/shared/react';
3
- import { Skill } from '@theia/ai-core/lib/common/skill';
4
- import { SkillService } from '@theia/ai-core/lib/browser/skill-service';
5
- import { PromptFragment, PromptService } from '@theia/ai-core/lib/common/prompt-service';
6
- import { Agent, AgentService } from '@theia/ai-core';
7
- export declare class AISkillsConfigurationWidget extends ReactWidget {
8
- static readonly ID = "ai-skills-configuration-widget";
9
- static readonly LABEL: string;
10
- protected readonly skillService: SkillService;
11
- protected readonly openerService: OpenerService;
12
- protected readonly promptService: PromptService;
13
- protected readonly agentService: AgentService;
14
- protected skills: Skill[];
15
- protected slashCommands: PromptFragment[];
16
- protected agents: Agent[];
17
- protected init(): void;
18
- protected loadSkills(): void;
19
- protected loadSlashCommands(): void;
20
- protected loadAgents(): void;
21
- protected getAgentsForCommand(command: PromptFragment): Agent[];
22
- protected openSkill: (skill: Skill) => void;
23
- protected render(): React.ReactNode;
24
- protected renderSkillsSection(): React.ReactNode;
25
- protected renderSkillRow(skill: Skill): React.ReactNode;
26
- protected renderSlashCommandsSection(): React.ReactNode;
27
- protected renderSlashCommandRow(command: PromptFragment): React.ReactNode;
28
- }
29
- //# sourceMappingURL=skills-configuration-widget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skills-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/skills-configuration-widget.tsx"],"names":[],"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