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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +1 -0
  2. package/package.json +9 -9
  3. package/{lib/common/context-variables.js → src/browser/context-file-validation-service.ts} +19 -7
  4. package/lib/browser/agent-delegation-tool.d.ts +0 -25
  5. package/lib/browser/agent-delegation-tool.d.ts.map +0 -1
  6. package/lib/browser/agent-delegation-tool.js +0 -196
  7. package/lib/browser/agent-delegation-tool.js.map +0 -1
  8. package/lib/browser/ai-chat-frontend-contribution.d.ts +0 -11
  9. package/lib/browser/ai-chat-frontend-contribution.d.ts.map +0 -1
  10. package/lib/browser/ai-chat-frontend-contribution.js +0 -56
  11. package/lib/browser/ai-chat-frontend-contribution.js.map +0 -1
  12. package/lib/browser/ai-chat-frontend-module.d.ts +0 -4
  13. package/lib/browser/ai-chat-frontend-module.d.ts.map +0 -1
  14. package/lib/browser/ai-chat-frontend-module.js +0 -143
  15. package/lib/browser/ai-chat-frontend-module.js.map +0 -1
  16. package/lib/browser/change-set-decorator-service.d.ts +0 -24
  17. package/lib/browser/change-set-decorator-service.d.ts.map +0 -1
  18. package/lib/browser/change-set-decorator-service.js +0 -66
  19. package/lib/browser/change-set-decorator-service.js.map +0 -1
  20. package/lib/browser/change-set-file-element-deserializer.d.ts +0 -7
  21. package/lib/browser/change-set-file-element-deserializer.d.ts.map +0 -1
  22. package/lib/browser/change-set-file-element-deserializer.js +0 -61
  23. package/lib/browser/change-set-file-element-deserializer.js.map +0 -1
  24. package/lib/browser/change-set-file-element.d.ts +0 -122
  25. package/lib/browser/change-set-file-element.d.ts.map +0 -1
  26. package/lib/browser/change-set-file-element.js +0 -435
  27. package/lib/browser/change-set-file-element.js.map +0 -1
  28. package/lib/browser/change-set-file-resource.d.ts +0 -4
  29. package/lib/browser/change-set-file-resource.d.ts.map +0 -1
  30. package/lib/browser/change-set-file-resource.js +0 -24
  31. package/lib/browser/change-set-file-resource.js.map +0 -1
  32. package/lib/browser/change-set-file-service.d.ts +0 -32
  33. package/lib/browser/change-set-file-service.d.ts.map +0 -1
  34. package/lib/browser/change-set-file-service.js +0 -161
  35. package/lib/browser/change-set-file-service.js.map +0 -1
  36. package/lib/browser/change-set-variable.d.ts +0 -11
  37. package/lib/browser/change-set-variable.d.ts.map +0 -1
  38. package/lib/browser/change-set-variable.js +0 -64
  39. package/lib/browser/change-set-variable.js.map +0 -1
  40. package/lib/browser/chat-session-store-impl.d.ts +0 -36
  41. package/lib/browser/chat-session-store-impl.d.ts.map +0 -1
  42. package/lib/browser/chat-session-store-impl.js +0 -287
  43. package/lib/browser/chat-session-store-impl.js.map +0 -1
  44. package/lib/browser/chat-tool-preference-bindings.d.ts +0 -34
  45. package/lib/browser/chat-tool-preference-bindings.d.ts.map +0 -1
  46. package/lib/browser/chat-tool-preference-bindings.js +0 -122
  47. package/lib/browser/chat-tool-preference-bindings.js.map +0 -1
  48. package/lib/browser/chat-tool-request-service.d.ts +0 -21
  49. package/lib/browser/chat-tool-request-service.d.ts.map +0 -1
  50. package/lib/browser/chat-tool-request-service.js +0 -90
  51. package/lib/browser/chat-tool-request-service.js.map +0 -1
  52. package/lib/browser/context-file-variable-label-provider.d.ts +0 -14
  53. package/lib/browser/context-file-variable-label-provider.d.ts.map +0 -1
  54. package/lib/browser/context-file-variable-label-provider.js +0 -63
  55. package/lib/browser/context-file-variable-label-provider.js.map +0 -1
  56. package/lib/browser/context-variable-label-provider.d.ts +0 -9
  57. package/lib/browser/context-variable-label-provider.d.ts.map +0 -1
  58. package/lib/browser/context-variable-label-provider.js +0 -55
  59. package/lib/browser/context-variable-label-provider.js.map +0 -1
  60. package/lib/browser/custom-agent-factory.d.ts +0 -4
  61. package/lib/browser/custom-agent-factory.d.ts.map +0 -1
  62. package/lib/browser/custom-agent-factory.js +0 -20
  63. package/lib/browser/custom-agent-factory.js.map +0 -1
  64. package/lib/browser/custom-agent-frontend-application-contribution.d.ts +0 -13
  65. package/lib/browser/custom-agent-frontend-application-contribution.d.ts.map +0 -1
  66. package/lib/browser/custom-agent-frontend-application-contribution.js +0 -83
  67. package/lib/browser/custom-agent-frontend-application-contribution.js.map +0 -1
  68. package/lib/browser/delegation-response-content.d.ts +0 -20
  69. package/lib/browser/delegation-response-content.d.ts.map +0 -1
  70. package/lib/browser/delegation-response-content.js +0 -47
  71. package/lib/browser/delegation-response-content.js.map +0 -1
  72. package/lib/browser/file-chat-variable-contribution.d.ts +0 -32
  73. package/lib/browser/file-chat-variable-contribution.d.ts.map +0 -1
  74. package/lib/browser/file-chat-variable-contribution.js +0 -241
  75. package/lib/browser/file-chat-variable-contribution.js.map +0 -1
  76. package/lib/browser/frontend-chat-service.d.ts +0 -15
  77. package/lib/browser/frontend-chat-service.d.ts.map +0 -1
  78. package/lib/browser/frontend-chat-service.js +0 -72
  79. package/lib/browser/frontend-chat-service.js.map +0 -1
  80. package/lib/browser/image-context-variable-contribution.d.ts +0 -27
  81. package/lib/browser/image-context-variable-contribution.d.ts.map +0 -1
  82. package/lib/browser/image-context-variable-contribution.js +0 -149
  83. package/lib/browser/image-context-variable-contribution.js.map +0 -1
  84. package/lib/browser/task-context-service.d.ts +0 -46
  85. package/lib/browser/task-context-service.d.ts.map +0 -1
  86. package/lib/browser/task-context-service.js +0 -256
  87. package/lib/browser/task-context-service.js.map +0 -1
  88. package/lib/browser/task-context-storage-service.d.ts +0 -19
  89. package/lib/browser/task-context-storage-service.d.ts.map +0 -1
  90. package/lib/browser/task-context-storage-service.js +0 -80
  91. package/lib/browser/task-context-storage-service.js.map +0 -1
  92. package/lib/browser/task-context-variable-contribution.d.ts +0 -20
  93. package/lib/browser/task-context-variable-contribution.d.ts.map +0 -1
  94. package/lib/browser/task-context-variable-contribution.js +0 -101
  95. package/lib/browser/task-context-variable-contribution.js.map +0 -1
  96. package/lib/browser/task-context-variable-label-provider.d.ts +0 -21
  97. package/lib/browser/task-context-variable-label-provider.d.ts.map +0 -1
  98. package/lib/browser/task-context-variable-label-provider.js +0 -83
  99. package/lib/browser/task-context-variable-label-provider.js.map +0 -1
  100. package/lib/browser/task-context-variable.d.ts +0 -3
  101. package/lib/browser/task-context-variable.d.ts.map +0 -1
  102. package/lib/browser/task-context-variable.js +0 -33
  103. package/lib/browser/task-context-variable.js.map +0 -1
  104. package/lib/common/ai-chat-preferences.d.ts +0 -5
  105. package/lib/common/ai-chat-preferences.d.ts.map +0 -1
  106. package/lib/common/ai-chat-preferences.js +0 -40
  107. package/lib/common/ai-chat-preferences.js.map +0 -1
  108. package/lib/common/change-set-element-deserializer.d.ts +0 -30
  109. package/lib/common/change-set-element-deserializer.d.ts.map +0 -1
  110. package/lib/common/change-set-element-deserializer.js +0 -81
  111. package/lib/common/change-set-element-deserializer.js.map +0 -1
  112. package/lib/common/change-set.d.ts +0 -85
  113. package/lib/common/change-set.d.ts.map +0 -1
  114. package/lib/common/change-set.js +0 -133
  115. package/lib/common/change-set.js.map +0 -1
  116. package/lib/common/chat-agent-service.d.ts +0 -46
  117. package/lib/common/chat-agent-service.d.ts.map +0 -1
  118. package/lib/common/chat-agent-service.js +0 -79
  119. package/lib/common/chat-agent-service.js.map +0 -1
  120. package/lib/common/chat-agents-variable-contribution.d.ts +0 -17
  121. package/lib/common/chat-agents-variable-contribution.d.ts.map +0 -1
  122. package/lib/common/chat-agents-variable-contribution.js +0 -67
  123. package/lib/common/chat-agents-variable-contribution.js.map +0 -1
  124. package/lib/common/chat-agents.d.ts +0 -138
  125. package/lib/common/chat-agents.d.ts.map +0 -1
  126. package/lib/common/chat-agents.js +0 -428
  127. package/lib/common/chat-agents.js.map +0 -1
  128. package/lib/common/chat-auto-save.spec.d.ts +0 -2
  129. package/lib/common/chat-auto-save.spec.d.ts.map +0 -1
  130. package/lib/common/chat-auto-save.spec.js +0 -304
  131. package/lib/common/chat-auto-save.spec.js.map +0 -1
  132. package/lib/common/chat-content-deserializer.d.ts +0 -161
  133. package/lib/common/chat-content-deserializer.d.ts.map +0 -1
  134. package/lib/common/chat-content-deserializer.js +0 -166
  135. package/lib/common/chat-content-deserializer.js.map +0 -1
  136. package/lib/common/chat-content-deserializer.spec.d.ts +0 -2
  137. package/lib/common/chat-content-deserializer.spec.d.ts.map +0 -1
  138. package/lib/common/chat-content-deserializer.spec.js +0 -307
  139. package/lib/common/chat-content-deserializer.spec.js.map +0 -1
  140. package/lib/common/chat-model-serialization.d.ts +0 -110
  141. package/lib/common/chat-model-serialization.d.ts.map +0 -1
  142. package/lib/common/chat-model-serialization.js +0 -20
  143. package/lib/common/chat-model-serialization.js.map +0 -1
  144. package/lib/common/chat-model-serialization.spec.d.ts +0 -2
  145. package/lib/common/chat-model-serialization.spec.d.ts.map +0 -1
  146. package/lib/common/chat-model-serialization.spec.js +0 -278
  147. package/lib/common/chat-model-serialization.spec.js.map +0 -1
  148. package/lib/common/chat-model-util.d.ts +0 -7
  149. package/lib/common/chat-model-util.d.ts.map +0 -1
  150. package/lib/common/chat-model-util.js +0 -50
  151. package/lib/common/chat-model-util.js.map +0 -1
  152. package/lib/common/chat-model.d.ts +0 -923
  153. package/lib/common/chat-model.d.ts.map +0 -1
  154. package/lib/common/chat-model.js +0 -1791
  155. package/lib/common/chat-model.js.map +0 -1
  156. package/lib/common/chat-request-parser.d.ts +0 -38
  157. package/lib/common/chat-request-parser.d.ts.map +0 -1
  158. package/lib/common/chat-request-parser.js +0 -230
  159. package/lib/common/chat-request-parser.js.map +0 -1
  160. package/lib/common/chat-request-parser.spec.d.ts +0 -2
  161. package/lib/common/chat-request-parser.spec.d.ts.map +0 -1
  162. package/lib/common/chat-request-parser.spec.js +0 -235
  163. package/lib/common/chat-request-parser.spec.js.map +0 -1
  164. package/lib/common/chat-service-deletion.spec.d.ts +0 -2
  165. package/lib/common/chat-service-deletion.spec.d.ts.map +0 -1
  166. package/lib/common/chat-service-deletion.spec.js +0 -221
  167. package/lib/common/chat-service-deletion.spec.js.map +0 -1
  168. package/lib/common/chat-service.d.ts +0 -153
  169. package/lib/common/chat-service.d.ts.map +0 -1
  170. package/lib/common/chat-service.js +0 -474
  171. package/lib/common/chat-service.js.map +0 -1
  172. package/lib/common/chat-session-naming-prompt-template.d.ts +0 -3
  173. package/lib/common/chat-session-naming-prompt-template.d.ts.map +0 -1
  174. package/lib/common/chat-session-naming-prompt-template.js +0 -31
  175. package/lib/common/chat-session-naming-prompt-template.js.map +0 -1
  176. package/lib/common/chat-session-naming-service.d.ts +0 -26
  177. package/lib/common/chat-session-naming-service.d.ts.map +0 -1
  178. package/lib/common/chat-session-naming-service.js +0 -119
  179. package/lib/common/chat-session-naming-service.js.map +0 -1
  180. package/lib/common/chat-session-store.d.ts +0 -43
  181. package/lib/common/chat-session-store.d.ts.map +0 -1
  182. package/lib/common/chat-session-store.js +0 -20
  183. package/lib/common/chat-session-store.js.map +0 -1
  184. package/lib/common/chat-session-summary-agent-prompt.d.ts +0 -8
  185. package/lib/common/chat-session-summary-agent-prompt.d.ts.map +0 -1
  186. package/lib/common/chat-session-summary-agent-prompt.js +0 -33
  187. package/lib/common/chat-session-summary-agent-prompt.js.map +0 -1
  188. package/lib/common/chat-session-summary-agent.d.ts +0 -16
  189. package/lib/common/chat-session-summary-agent.d.ts.map +0 -1
  190. package/lib/common/chat-session-summary-agent.js +0 -48
  191. package/lib/common/chat-session-summary-agent.js.map +0 -1
  192. package/lib/common/chat-string-utils.d.ts +0 -3
  193. package/lib/common/chat-string-utils.d.ts.map +0 -1
  194. package/lib/common/chat-string-utils.js +0 -27
  195. package/lib/common/chat-string-utils.js.map +0 -1
  196. package/lib/common/chat-tool-preferences.d.ts +0 -23
  197. package/lib/common/chat-tool-preferences.d.ts.map +0 -1
  198. package/lib/common/chat-tool-preferences.js +0 -68
  199. package/lib/common/chat-tool-preferences.js.map +0 -1
  200. package/lib/common/chat-tool-request-service.d.ts +0 -18
  201. package/lib/common/chat-tool-request-service.d.ts.map +0 -1
  202. package/lib/common/chat-tool-request-service.js +0 -52
  203. package/lib/common/chat-tool-request-service.js.map +0 -1
  204. package/lib/common/context-details-variable.d.ts +0 -9
  205. package/lib/common/context-details-variable.d.ts.map +0 -1
  206. package/lib/common/context-details-variable.js +0 -57
  207. package/lib/common/context-details-variable.js.map +0 -1
  208. package/lib/common/context-summary-variable.d.ts +0 -9
  209. package/lib/common/context-summary-variable.d.ts.map +0 -1
  210. package/lib/common/context-summary-variable.js +0 -57
  211. package/lib/common/context-summary-variable.js.map +0 -1
  212. package/lib/common/context-variables.d.ts +0 -4
  213. package/lib/common/context-variables.d.ts.map +0 -1
  214. package/lib/common/context-variables.js.map +0 -1
  215. package/lib/common/custom-chat-agent.d.ts +0 -10
  216. package/lib/common/custom-chat-agent.d.ts.map +0 -1
  217. package/lib/common/custom-chat-agent.js +0 -40
  218. package/lib/common/custom-chat-agent.js.map +0 -1
  219. package/lib/common/image-context-variable.d.ts +0 -29
  220. package/lib/common/image-context-variable.d.ts.map +0 -1
  221. package/lib/common/image-context-variable.js +0 -114
  222. package/lib/common/image-context-variable.js.map +0 -1
  223. package/lib/common/index.d.ts +0 -13
  224. package/lib/common/index.d.ts.map +0 -1
  225. package/lib/common/index.js +0 -31
  226. package/lib/common/index.js.map +0 -1
  227. package/lib/common/parse-contents-with-incomplete-parts.spec.d.ts +0 -2
  228. package/lib/common/parse-contents-with-incomplete-parts.spec.d.ts.map +0 -1
  229. package/lib/common/parse-contents-with-incomplete-parts.spec.js +0 -103
  230. package/lib/common/parse-contents-with-incomplete-parts.spec.js.map +0 -1
  231. package/lib/common/parse-contents.d.ts +0 -12
  232. package/lib/common/parse-contents.d.ts.map +0 -1
  233. package/lib/common/parse-contents.js +0 -107
  234. package/lib/common/parse-contents.js.map +0 -1
  235. package/lib/common/parse-contents.spec.d.ts +0 -10
  236. package/lib/common/parse-contents.spec.d.ts.map +0 -1
  237. package/lib/common/parse-contents.spec.js +0 -146
  238. package/lib/common/parse-contents.spec.js.map +0 -1
  239. package/lib/common/parsed-chat-request.d.ts +0 -66
  240. package/lib/common/parsed-chat-request.d.ts.map +0 -1
  241. package/lib/common/parsed-chat-request.js +0 -83
  242. package/lib/common/parsed-chat-request.js.map +0 -1
  243. package/lib/common/response-content-matcher.d.ts +0 -69
  244. package/lib/common/response-content-matcher.d.ts.map +0 -1
  245. package/lib/common/response-content-matcher.js +0 -97
  246. package/lib/common/response-content-matcher.js.map +0 -1
  247. package/lib/node/ai-chat-backend-module.d.ts +0 -4
  248. package/lib/node/ai-chat-backend-module.d.ts.map +0 -1
  249. package/lib/node/ai-chat-backend-module.js +0 -26
  250. package/lib/node/ai-chat-backend-module.js.map +0 -1
@@ -1,79 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2024 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- /*---------------------------------------------------------------------------------------------
18
- * Copyright (c) Microsoft Corporation. All rights reserved.
19
- * Licensed under the MIT License. See License.txt in the project root for license information.
20
- *--------------------------------------------------------------------------------------------*/
21
- // Partially copied from https://github.com/microsoft/vscode/blob/a2cab7255c0df424027be05d58e1b7b941f4ea60/src/vs/workbench/contrib/chat/common/chatAgents.ts
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.ChatAgentServiceImpl = exports.ChatAgentServiceFactory = exports.ChatAgentService = void 0;
24
- const tslib_1 = require("tslib");
25
- const core_1 = require("@theia/core");
26
- const inversify_1 = require("@theia/core/shared/inversify");
27
- const chat_agents_1 = require("./chat-agents");
28
- const ai_core_1 = require("@theia/ai-core");
29
- exports.ChatAgentService = Symbol('ChatAgentService');
30
- exports.ChatAgentServiceFactory = Symbol('ChatAgentServiceFactory');
31
- let ChatAgentServiceImpl = class ChatAgentServiceImpl {
32
- constructor() {
33
- this._agents = [];
34
- }
35
- get agents() {
36
- // We can't collect the contributions at @postConstruct because this will lead to a circular dependency
37
- // with chat agents reusing the chat agent service (e.g. orchestrator)
38
- return [...this.agentContributions.getContributions(), ...this._agents];
39
- }
40
- registerChatAgent(agent) {
41
- this._agents.push(agent);
42
- }
43
- unregisterChatAgent(agentId) {
44
- this._agents = this._agents.filter(a => a.id !== agentId);
45
- }
46
- getAgent(id) {
47
- if (!this._agentIsEnabled(id)) {
48
- return undefined;
49
- }
50
- return this.getAgents().find(agent => agent.id === id);
51
- }
52
- getAgents() {
53
- return this.agents.filter(a => this._agentIsEnabled(a.id));
54
- }
55
- getAllAgents() {
56
- return this.agents;
57
- }
58
- _agentIsEnabled(id) {
59
- return this.agentService.isEnabled(id);
60
- }
61
- };
62
- exports.ChatAgentServiceImpl = ChatAgentServiceImpl;
63
- tslib_1.__decorate([
64
- (0, inversify_1.inject)(core_1.ContributionProvider),
65
- (0, inversify_1.named)(chat_agents_1.ChatAgent),
66
- tslib_1.__metadata("design:type", Object)
67
- ], ChatAgentServiceImpl.prototype, "agentContributions", void 0);
68
- tslib_1.__decorate([
69
- (0, inversify_1.inject)(core_1.ILogger),
70
- tslib_1.__metadata("design:type", Object)
71
- ], ChatAgentServiceImpl.prototype, "logger", void 0);
72
- tslib_1.__decorate([
73
- (0, inversify_1.inject)(ai_core_1.AgentService),
74
- tslib_1.__metadata("design:type", Object)
75
- ], ChatAgentServiceImpl.prototype, "agentService", void 0);
76
- exports.ChatAgentServiceImpl = ChatAgentServiceImpl = tslib_1.__decorate([
77
- (0, inversify_1.injectable)()
78
- ], ChatAgentServiceImpl);
79
- //# sourceMappingURL=chat-agent-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-agent-service.js","sourceRoot":"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K,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,SAAS;QACL,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC;IACD,YAAY;QACR,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEO,eAAe,CAAC,EAAU;QAC9B,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IAC3C,CAAC;CACJ,CAAA;AA1CY,oDAAoB;AAGV;IADlB,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAAE,IAAA,iBAAK,EAAC,uBAAS,CAAC;;gEACwB;AAG7D;IADT,IAAA,kBAAM,EAAC,cAAO,CAAC;;oDACU;AAGhB;IADT,IAAA,kBAAM,EAAC,sBAAY,CAAC;;0DACgB;+BAT5B,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CA0ChC"}
@@ -1,17 +0,0 @@
1
- import { MaybePromise } from '@theia/core';
2
- import { AIVariable, AIVariableContext, AIVariableContribution, AIVariableResolutionRequest, AIVariableResolver, AIVariableService, ResolvedAIVariable } from '@theia/ai-core';
3
- import { ChatAgentService } from './chat-agent-service';
4
- export declare const CHAT_AGENTS_VARIABLE: AIVariable;
5
- export interface ChatAgentDescriptor {
6
- id: string;
7
- name: string;
8
- description: string;
9
- }
10
- export declare class ChatAgentsVariableContribution implements AIVariableContribution, AIVariableResolver {
11
- protected readonly agents: ChatAgentService;
12
- registerVariables(service: AIVariableService): void;
13
- canResolve(request: AIVariableResolutionRequest, _context: AIVariableContext): MaybePromise<number>;
14
- resolve(request: AIVariableResolutionRequest, context: AIVariableContext): Promise<ResolvedAIVariable | undefined>;
15
- resolveAgentsVariable(_request: AIVariableResolutionRequest): ResolvedAIVariable;
16
- }
17
- //# sourceMappingURL=chat-agents-variable-contribution.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-agents-variable-contribution.d.ts","sourceRoot":"","sources":["../../src/common/chat-agents-variable-contribution.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAO,MAAM,aAAa,CAAC;AAEhD,OAAO,EACH,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,2BAA2B,EAC3B,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,eAAO,MAAM,oBAAoB,EAAE,UAIlC,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,8BAA+B,YAAW,sBAAsB,EAAE,kBAAkB;IAG7F,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAE5C,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAInD,UAAU,CAAC,OAAO,EAAE,2BAA2B,EAAE,QAAQ,EAAE,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAO7F,OAAO,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;IAMxH,qBAAqB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,kBAAkB;CASnF"}
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatAgentsVariableContribution = exports.CHAT_AGENTS_VARIABLE = void 0;
4
- const tslib_1 = require("tslib");
5
- // *****************************************************************************
6
- // Copyright (C) 2024 EclipseSource GmbH.
7
- //
8
- // This program and the accompanying materials are made available under the
9
- // terms of the Eclipse Public License v. 2.0 which is available at
10
- // http://www.eclipse.org/legal/epl-2.0.
11
- //
12
- // This Source Code may also be made available under the following Secondary
13
- // Licenses when the conditions for such availability set forth in the Eclipse
14
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
15
- // with the GNU Classpath Exception which is available at
16
- // https://www.gnu.org/software/classpath/license.html.
17
- //
18
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
19
- // *****************************************************************************
20
- const core_1 = require("@theia/core");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const chat_agent_service_1 = require("./chat-agent-service");
23
- exports.CHAT_AGENTS_VARIABLE = {
24
- id: 'chatAgents',
25
- name: 'chatAgents',
26
- description: core_1.nls.localize('theia/ai/chat/chatAgentsVariable/description', 'Returns the list of chat agents available in the system')
27
- };
28
- let ChatAgentsVariableContribution = class ChatAgentsVariableContribution {
29
- registerVariables(service) {
30
- service.registerResolver(exports.CHAT_AGENTS_VARIABLE, this);
31
- }
32
- canResolve(request, _context) {
33
- if (request.variable.name === exports.CHAT_AGENTS_VARIABLE.name) {
34
- return 1;
35
- }
36
- return -1;
37
- }
38
- async resolve(request, context) {
39
- if (request.variable.name === exports.CHAT_AGENTS_VARIABLE.name) {
40
- return this.resolveAgentsVariable(request);
41
- }
42
- }
43
- resolveAgentsVariable(_request) {
44
- const agents = this.agents.getAgents().map(agent => ({
45
- id: agent.id,
46
- name: agent.name,
47
- description: agent.description
48
- }));
49
- const value = agents.map(agent => prettyPrintInMd(agent)).join('\n');
50
- return { variable: exports.CHAT_AGENTS_VARIABLE, value };
51
- }
52
- };
53
- exports.ChatAgentsVariableContribution = ChatAgentsVariableContribution;
54
- tslib_1.__decorate([
55
- (0, inversify_1.inject)(chat_agent_service_1.ChatAgentService),
56
- tslib_1.__metadata("design:type", Object)
57
- ], ChatAgentsVariableContribution.prototype, "agents", void 0);
58
- exports.ChatAgentsVariableContribution = ChatAgentsVariableContribution = tslib_1.__decorate([
59
- (0, inversify_1.injectable)()
60
- ], ChatAgentsVariableContribution);
61
- function prettyPrintInMd(agent) {
62
- return `- ${agent.id}
63
- - *ID*: ${agent.id}
64
- - *Name*: ${agent.name}
65
- - *Description*: ${agent.description.replace(/\n/g, ' ')}`;
66
- }
67
- //# sourceMappingURL=chat-agents-variable-contribution.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-agents-variable-contribution.js","sourceRoot":"","sources":["../../src/common/chat-agents-variable-contribution.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,sCAAgD;AAChD,4DAAkE;AAUlE,6DAAwD;AAE3C,QAAA,oBAAoB,GAAe;IAC5C,EAAE,EAAE,YAAY;IAChB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,8CAA8C,EAAE,yDAAyD,CAAC;CACvI,CAAC;AASK,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAKvC,iBAAiB,CAAC,OAA0B;QACxC,OAAO,CAAC,gBAAgB,CAAC,4BAAoB,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,UAAU,CAAC,OAAoC,EAAE,QAA2B;QACxE,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,4BAAoB,CAAC,IAAI,EAAE,CAAC;YACtD,OAAO,CAAC,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,OAAoC,EAAE,OAA0B;QAC1E,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,4BAAoB,CAAC,IAAI,EAAE,CAAC;YACtD,OAAO,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;IAED,qBAAqB,CAAC,QAAqC;QACvD,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;YACjD,EAAE,EAAE,KAAK,CAAC,EAAE;YACZ,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,WAAW,EAAE,KAAK,CAAC,WAAW;SACjC,CAAC,CAAC,CAAC;QACJ,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,OAAO,EAAE,QAAQ,EAAE,4BAAoB,EAAE,KAAK,EAAE,CAAC;IACrD,CAAC;CACJ,CAAA;AA/BY,wEAA8B;AAGpB;IADlB,IAAA,kBAAM,EAAC,qCAAgB,CAAC;;8DACmB;yCAHnC,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CA+B1C;AAED,SAAS,eAAe,CAAC,KAAyD;IAC9E,OAAO,KAAK,KAAK,CAAC,EAAE;YACZ,KAAK,CAAC,EAAE;cACN,KAAK,CAAC,IAAI;qBACH,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;AAC7D,CAAC"}
@@ -1,138 +0,0 @@
1
- import { AgentSpecificVariables, AIVariableContext, AIVariableResolutionRequest, LanguageModel, LanguageModelMessage, LanguageModelRequirement, LanguageModelResponse, LanguageModelService, LanguageModelStreamResponse, PromptService, ResolvedPromptFragment, PromptVariantSet, ToolCall, ToolRequest } from '@theia/ai-core';
2
- import { Agent, LanguageModelRegistry, LanguageModelStreamResponsePart } from '@theia/ai-core/lib/common';
3
- import { ContributionProvider, ILogger } from '@theia/core';
4
- import { ChatAgentService } from './chat-agent-service';
5
- import { ChatModel, ChatRequestModel, ChatResponseContent, MutableChatRequestModel } from './chat-model';
6
- import { ChatToolRequest, ChatToolRequestService } from './chat-tool-request-service';
7
- import { DefaultResponseContentFactory, ResponseContentMatcher, ResponseContentMatcherProvider } from './response-content-matcher';
8
- /**
9
- * System message content, enriched with function descriptions.
10
- */
11
- export interface SystemMessageDescription {
12
- text: string;
13
- /** All functions references in the system message. */
14
- functionDescriptions?: Map<string, ToolRequest>;
15
- }
16
- export declare namespace SystemMessageDescription {
17
- function fromResolvedPromptFragment(resolvedPrompt: ResolvedPromptFragment): SystemMessageDescription;
18
- }
19
- export interface ChatSessionContext extends AIVariableContext {
20
- request?: ChatRequestModel;
21
- model: ChatModel;
22
- }
23
- export declare namespace ChatSessionContext {
24
- function is(candidate: unknown): candidate is ChatSessionContext;
25
- function getVariables(context: ChatSessionContext): readonly AIVariableResolutionRequest[];
26
- }
27
- /**
28
- * The location from where an chat agent may be invoked.
29
- * Based on the location, a different context may be available.
30
- */
31
- export declare enum ChatAgentLocation {
32
- Panel = "panel",
33
- Terminal = "terminal",
34
- Notebook = "notebook",
35
- Editor = "editor"
36
- }
37
- export declare namespace ChatAgentLocation {
38
- const ALL: ChatAgentLocation[];
39
- function fromRaw(value: string): ChatAgentLocation;
40
- }
41
- /**
42
- * Represents a mode that a chat agent can operate in.
43
- */
44
- export interface ChatMode {
45
- readonly id: string;
46
- readonly name: string;
47
- }
48
- export declare const ChatAgent: unique symbol;
49
- /**
50
- * A chat agent is a specialized agent with a common interface for its invocation.
51
- */
52
- export interface ChatAgent extends Agent {
53
- locations: ChatAgentLocation[];
54
- iconClass?: string;
55
- modes?: ChatMode[];
56
- invoke(request: MutableChatRequestModel, chatAgentService?: ChatAgentService): Promise<void>;
57
- }
58
- export declare abstract class AbstractChatAgent implements ChatAgent {
59
- protected languageModelRegistry: LanguageModelRegistry;
60
- protected logger: ILogger;
61
- protected chatToolRequestService: ChatToolRequestService;
62
- protected languageModelService: LanguageModelService;
63
- protected promptService: PromptService;
64
- protected contentMatcherProviders: ContributionProvider<ResponseContentMatcherProvider>;
65
- protected defaultContentFactory: DefaultResponseContentFactory;
66
- readonly abstract id: string;
67
- readonly abstract name: string;
68
- readonly abstract languageModelRequirements: LanguageModelRequirement[];
69
- iconClass: string;
70
- locations: ChatAgentLocation[];
71
- tags: string[];
72
- description: string;
73
- variables: string[];
74
- prompts: PromptVariantSet[];
75
- agentSpecificVariables: AgentSpecificVariables[];
76
- functions: string[];
77
- protected readonly abstract defaultLanguageModelPurpose: string;
78
- protected systemPromptId: string | undefined;
79
- protected additionalToolRequests: ToolRequest[];
80
- protected contentMatchers: ResponseContentMatcher[];
81
- init(): void;
82
- protected initializeContentMatchers(): void;
83
- invoke(request: MutableChatRequestModel): Promise<void>;
84
- protected parseContents(text: string, request: MutableChatRequestModel): ChatResponseContent[];
85
- protected handleError(request: MutableChatRequestModel, error: Error): void;
86
- protected getLanguageModelSelector(languageModelPurpose: string): LanguageModelRequirement;
87
- protected getLanguageModel(languageModelPurpose: string): Promise<LanguageModel>;
88
- protected selectLanguageModel(selector: LanguageModelRequirement): Promise<LanguageModel>;
89
- protected getSystemMessageDescription(context: AIVariableContext): Promise<SystemMessageDescription | undefined>;
90
- protected getMessages(model: ChatModel, includeResponseInProgress?: boolean): Promise<LanguageModelMessage[]>;
91
- /**
92
- * Deduplicate tools by name (falling back to id) while preserving the first occurrence and order.
93
- */
94
- protected deduplicateTools(toolRequests: ChatToolRequest[]): ChatToolRequest[];
95
- protected sendLlmRequest(request: MutableChatRequestModel, messages: LanguageModelMessage[], toolRequests: ChatToolRequest[], languageModel: LanguageModel): Promise<LanguageModelResponse>;
96
- /**
97
- * @returns the settings, such as `temperature`, to be used in all language model requests. Returns `undefined` by default.
98
- */
99
- protected getLlmSettings(): {
100
- [key: string]: unknown;
101
- } | undefined;
102
- /**
103
- * Invoked after the response by the LLM completed successfully.
104
- *
105
- * The default implementation sets the state of the response to `complete`.
106
- * Subclasses may override this method to perform additional actions or keep the response open for processing further requests.
107
- */
108
- protected onResponseComplete(request: MutableChatRequestModel): Promise<void>;
109
- protected abstract addContentsToResponse(languageModelResponse: LanguageModelResponse, request: MutableChatRequestModel): Promise<void>;
110
- }
111
- export declare abstract class AbstractTextToModelParsingChatAgent<T> extends AbstractChatAgent {
112
- protected addContentsToResponse(languageModelResponse: LanguageModelResponse, request: MutableChatRequestModel): Promise<void>;
113
- protected abstract parseTextResponse(text: string): Promise<T>;
114
- protected abstract createResponseContent(parsedModel: T, request: MutableChatRequestModel): ChatResponseContent;
115
- }
116
- /**
117
- * Factory for creating ToolCallChatResponseContent instances.
118
- */
119
- export declare class ToolCallChatResponseContentFactory {
120
- create(toolCall: ToolCall): ChatResponseContent;
121
- }
122
- export declare abstract class AbstractStreamParsingChatAgent extends AbstractChatAgent {
123
- protected toolCallResponseContentFactory: ToolCallChatResponseContentFactory;
124
- protected addContentsToResponse(languageModelResponse: LanguageModelResponse, request: MutableChatRequestModel): Promise<void>;
125
- protected addStreamResponse(languageModelResponse: LanguageModelStreamResponse, request: MutableChatRequestModel): Promise<void>;
126
- protected parse(token: LanguageModelStreamResponsePart, request: MutableChatRequestModel): ChatResponseContent | ChatResponseContent[];
127
- /**
128
- * Creates a ToolCallChatResponseContent instance from the provided tool call data.
129
- *
130
- * This method is called when parsing stream response tokens that contain tool call data.
131
- * Subclasses can override this method to customize the creation of tool call response contents.
132
- *
133
- * @param toolCall The ToolCall.
134
- * @returns A ChatResponseContent representing the tool call.
135
- */
136
- protected createToolCallResponseContent(toolCall: ToolCall): ChatResponseContent;
137
- }
138
- //# sourceMappingURL=chat-agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chat-agents.d.ts","sourceRoot":"","sources":["../../src/common/chat-agents.ts"],"names":[],"mappings":"AAqBA,OAAO,EACH,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAO3B,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,2BAA2B,EAC3B,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAEhB,QAAQ,EACR,WAAW,EACd,MAAM,gBAA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