@theia/ai-core 1.67.0-next.13 → 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 (246) hide show
  1. package/README.md +1 -0
  2. package/data/prompttemplate.tmLanguage.json +3 -0
  3. package/package.json +9 -9
  4. package/src/browser/frontend-language-model-alias-registry.ts +11 -11
  5. package/src/common/agent-service.ts +6 -6
  6. package/src/common/prompt-service.ts +6 -2
  7. package/lib/browser/agent-completion-notification-service.d.ts +0 -69
  8. package/lib/browser/agent-completion-notification-service.d.ts.map +0 -1
  9. package/lib/browser/agent-completion-notification-service.js +0 -187
  10. package/lib/browser/agent-completion-notification-service.js.map +0 -1
  11. package/lib/browser/ai-activation-service.d.ts +0 -31
  12. package/lib/browser/ai-activation-service.d.ts.map +0 -1
  13. package/lib/browser/ai-activation-service.js +0 -56
  14. package/lib/browser/ai-activation-service.js.map +0 -1
  15. package/lib/browser/ai-command-handler-factory.d.ts +0 -4
  16. package/lib/browser/ai-command-handler-factory.d.ts.map +0 -1
  17. package/lib/browser/ai-command-handler-factory.js +0 -20
  18. package/lib/browser/ai-command-handler-factory.js.map +0 -1
  19. package/lib/browser/ai-core-command-contribution.d.ts +0 -8
  20. package/lib/browser/ai-core-command-contribution.d.ts.map +0 -1
  21. package/lib/browser/ai-core-command-contribution.js +0 -44
  22. package/lib/browser/ai-core-command-contribution.js.map +0 -1
  23. package/lib/browser/ai-core-frontend-application-contribution.d.ts +0 -10
  24. package/lib/browser/ai-core-frontend-application-contribution.d.ts.map +0 -1
  25. package/lib/browser/ai-core-frontend-application-contribution.js +0 -46
  26. package/lib/browser/ai-core-frontend-application-contribution.js.map +0 -1
  27. package/lib/browser/ai-core-frontend-module.d.ts +0 -4
  28. package/lib/browser/ai-core-frontend-module.d.ts.map +0 -1
  29. package/lib/browser/ai-core-frontend-module.js +0 -137
  30. package/lib/browser/ai-core-frontend-module.js.map +0 -1
  31. package/lib/browser/ai-settings-service.d.ts +0 -16
  32. package/lib/browser/ai-settings-service.d.ts.map +0 -1
  33. package/lib/browser/ai-settings-service.js +0 -78
  34. package/lib/browser/ai-settings-service.js.map +0 -1
  35. package/lib/browser/ai-variable-uri-label-provider.d.ts +0 -17
  36. package/lib/browser/ai-variable-uri-label-provider.d.ts.map +0 -1
  37. package/lib/browser/ai-variable-uri-label-provider.js +0 -85
  38. package/lib/browser/ai-variable-uri-label-provider.js.map +0 -1
  39. package/lib/browser/ai-view-contribution.d.ts +0 -14
  40. package/lib/browser/ai-view-contribution.d.ts.map +0 -1
  41. package/lib/browser/ai-view-contribution.js +0 -87
  42. package/lib/browser/ai-view-contribution.js.map +0 -1
  43. package/lib/browser/file-variable-contribution.d.ts +0 -23
  44. package/lib/browser/file-variable-contribution.d.ts.map +0 -1
  45. package/lib/browser/file-variable-contribution.js +0 -114
  46. package/lib/browser/file-variable-contribution.js.map +0 -1
  47. package/lib/browser/frontend-language-model-alias-registry.d.ts +0 -31
  48. package/lib/browser/frontend-language-model-alias-registry.d.ts.map +0 -1
  49. package/lib/browser/frontend-language-model-alias-registry.js +0 -170
  50. package/lib/browser/frontend-language-model-alias-registry.js.map +0 -1
  51. package/lib/browser/frontend-language-model-registry.d.ts +0 -49
  52. package/lib/browser/frontend-language-model-registry.d.ts.map +0 -1
  53. package/lib/browser/frontend-language-model-registry.js +0 -387
  54. package/lib/browser/frontend-language-model-registry.js.map +0 -1
  55. package/lib/browser/frontend-language-model-registry.spec.d.ts +0 -2
  56. package/lib/browser/frontend-language-model-registry.spec.d.ts.map +0 -1
  57. package/lib/browser/frontend-language-model-registry.spec.js +0 -248
  58. package/lib/browser/frontend-language-model-registry.spec.js.map +0 -1
  59. package/lib/browser/frontend-language-model-service.d.ts +0 -10
  60. package/lib/browser/frontend-language-model-service.d.ts.map +0 -1
  61. package/lib/browser/frontend-language-model-service.js +0 -66
  62. package/lib/browser/frontend-language-model-service.js.map +0 -1
  63. package/lib/browser/frontend-prompt-customization-service.d.ts +0 -271
  64. package/lib/browser/frontend-prompt-customization-service.d.ts.map +0 -1
  65. package/lib/browser/frontend-prompt-customization-service.js +0 -869
  66. package/lib/browser/frontend-prompt-customization-service.js.map +0 -1
  67. package/lib/browser/frontend-prompt-customization-service.spec.d.ts +0 -2
  68. package/lib/browser/frontend-prompt-customization-service.spec.d.ts.map +0 -1
  69. package/lib/browser/frontend-prompt-customization-service.spec.js +0 -127
  70. package/lib/browser/frontend-prompt-customization-service.spec.js.map +0 -1
  71. package/lib/browser/frontend-variable-service.d.ts +0 -61
  72. package/lib/browser/frontend-variable-service.d.ts.map +0 -1
  73. package/lib/browser/frontend-variable-service.js +0 -165
  74. package/lib/browser/frontend-variable-service.js.map +0 -1
  75. package/lib/browser/index.d.ts +0 -20
  76. package/lib/browser/index.d.ts.map +0 -1
  77. package/lib/browser/index.js +0 -38
  78. package/lib/browser/index.js.map +0 -1
  79. package/lib/browser/open-editors-variable-contribution.d.ts +0 -17
  80. package/lib/browser/open-editors-variable-contribution.d.ts.map +0 -1
  81. package/lib/browser/open-editors-variable-contribution.js +0 -84
  82. package/lib/browser/open-editors-variable-contribution.js.map +0 -1
  83. package/lib/browser/os-notification-service.d.ts +0 -96
  84. package/lib/browser/os-notification-service.d.ts.map +0 -1
  85. package/lib/browser/os-notification-service.js +0 -222
  86. package/lib/browser/os-notification-service.js.map +0 -1
  87. package/lib/browser/prompttemplate-contribution.d.ts +0 -29
  88. package/lib/browser/prompttemplate-contribution.d.ts.map +0 -1
  89. package/lib/browser/prompttemplate-contribution.js +0 -243
  90. package/lib/browser/prompttemplate-contribution.js.map +0 -1
  91. package/lib/browser/prompttemplate-parser.d.ts +0 -36
  92. package/lib/browser/prompttemplate-parser.d.ts.map +0 -1
  93. package/lib/browser/prompttemplate-parser.js +0 -94
  94. package/lib/browser/prompttemplate-parser.js.map +0 -1
  95. package/lib/browser/theia-variable-contribution.d.ts +0 -26
  96. package/lib/browser/theia-variable-contribution.d.ts.map +0 -1
  97. package/lib/browser/theia-variable-contribution.js +0 -146
  98. package/lib/browser/theia-variable-contribution.js.map +0 -1
  99. package/lib/browser/token-usage-frontend-service-impl.d.ts +0 -25
  100. package/lib/browser/token-usage-frontend-service-impl.d.ts.map +0 -1
  101. package/lib/browser/token-usage-frontend-service-impl.js +0 -138
  102. package/lib/browser/token-usage-frontend-service-impl.js.map +0 -1
  103. package/lib/browser/token-usage-frontend-service.d.ts +0 -33
  104. package/lib/browser/token-usage-frontend-service.d.ts.map +0 -1
  105. package/lib/browser/token-usage-frontend-service.js +0 -23
  106. package/lib/browser/token-usage-frontend-service.js.map +0 -1
  107. package/lib/browser/window-blink-service.d.ts +0 -41
  108. package/lib/browser/window-blink-service.d.ts.map +0 -1
  109. package/lib/browser/window-blink-service.js +0 -174
  110. package/lib/browser/window-blink-service.js.map +0 -1
  111. package/lib/common/agent-preferences.d.ts +0 -4
  112. package/lib/common/agent-preferences.d.ts.map +0 -1
  113. package/lib/common/agent-preferences.js +0 -84
  114. package/lib/common/agent-preferences.js.map +0 -1
  115. package/lib/common/agent-service.d.ts +0 -66
  116. package/lib/common/agent-service.d.ts.map +0 -1
  117. package/lib/common/agent-service.js +0 -104
  118. package/lib/common/agent-service.js.map +0 -1
  119. package/lib/common/agent.d.ts +0 -72
  120. package/lib/common/agent.d.ts.map +0 -1
  121. package/lib/common/agent.js +0 -20
  122. package/lib/common/agent.js.map +0 -1
  123. package/lib/common/agents-variable-contribution.d.ts +0 -19
  124. package/lib/common/agents-variable-contribution.d.ts.map +0 -1
  125. package/lib/common/agents-variable-contribution.js +0 -57
  126. package/lib/common/agents-variable-contribution.js.map +0 -1
  127. package/lib/common/ai-core-preferences.d.ts +0 -48
  128. package/lib/common/ai-core-preferences.d.ts.map +0 -1
  129. package/lib/common/ai-core-preferences.js +0 -204
  130. package/lib/common/ai-core-preferences.js.map +0 -1
  131. package/lib/common/ai-variable-resource.d.ts +0 -18
  132. package/lib/common/ai-variable-resource.d.ts.map +0 -1
  133. package/lib/common/ai-variable-resource.js +0 -103
  134. package/lib/common/ai-variable-resource.js.map +0 -1
  135. package/lib/common/configurable-in-memory-resources.d.ts +0 -47
  136. package/lib/common/configurable-in-memory-resources.d.ts.map +0 -1
  137. package/lib/common/configurable-in-memory-resources.js +0 -154
  138. package/lib/common/configurable-in-memory-resources.js.map +0 -1
  139. package/lib/common/index.d.ts +0 -22
  140. package/lib/common/index.d.ts.map +0 -1
  141. package/lib/common/index.js +0 -40
  142. package/lib/common/index.js.map +0 -1
  143. package/lib/common/language-model-alias.d.ts +0 -58
  144. package/lib/common/language-model-alias.d.ts.map +0 -1
  145. package/lib/common/language-model-alias.js +0 -20
  146. package/lib/common/language-model-alias.js.map +0 -1
  147. package/lib/common/language-model-delegate.d.ts +0 -25
  148. package/lib/common/language-model-delegate.d.ts.map +0 -1
  149. package/lib/common/language-model-delegate.js +0 -26
  150. package/lib/common/language-model-delegate.js.map +0 -1
  151. package/lib/common/language-model-interaction-model.d.ts +0 -74
  152. package/lib/common/language-model-interaction-model.d.ts.map +0 -1
  153. package/lib/common/language-model-interaction-model.js +0 -3
  154. package/lib/common/language-model-interaction-model.js.map +0 -1
  155. package/lib/common/language-model-service.d.ts +0 -38
  156. package/lib/common/language-model-service.d.ts.map +0 -1
  157. package/lib/common/language-model-service.js +0 -128
  158. package/lib/common/language-model-service.js.map +0 -1
  159. package/lib/common/language-model-util.d.ts +0 -17
  160. package/lib/common/language-model-util.d.ts.map +0 -1
  161. package/lib/common/language-model-util.js +0 -82
  162. package/lib/common/language-model-util.js.map +0 -1
  163. package/lib/common/language-model.d.ts +0 -285
  164. package/lib/common/language-model.d.ts.map +0 -1
  165. package/lib/common/language-model.js +0 -248
  166. package/lib/common/language-model.js.map +0 -1
  167. package/lib/common/language-model.spec.d.ts +0 -2
  168. package/lib/common/language-model.spec.d.ts.map +0 -1
  169. package/lib/common/language-model.spec.js +0 -62
  170. package/lib/common/language-model.spec.js.map +0 -1
  171. package/lib/common/notification-types.d.ts +0 -7
  172. package/lib/common/notification-types.d.ts.map +0 -1
  173. package/lib/common/notification-types.js +0 -29
  174. package/lib/common/notification-types.js.map +0 -1
  175. package/lib/common/prompt-service-util.d.ts +0 -8
  176. package/lib/common/prompt-service-util.d.ts.map +0 -1
  177. package/lib/common/prompt-service-util.js +0 -34
  178. package/lib/common/prompt-service-util.js.map +0 -1
  179. package/lib/common/prompt-service.d.ts +0 -466
  180. package/lib/common/prompt-service.d.ts.map +0 -1
  181. package/lib/common/prompt-service.js +0 -653
  182. package/lib/common/prompt-service.js.map +0 -1
  183. package/lib/common/prompt-service.spec.d.ts +0 -2
  184. package/lib/common/prompt-service.spec.d.ts.map +0 -1
  185. package/lib/common/prompt-service.spec.js +0 -431
  186. package/lib/common/prompt-service.spec.js.map +0 -1
  187. package/lib/common/prompt-text.d.ts +0 -8
  188. package/lib/common/prompt-text.d.ts.map +0 -1
  189. package/lib/common/prompt-text.js +0 -27
  190. package/lib/common/prompt-text.js.map +0 -1
  191. package/lib/common/prompt-variable-contribution.d.ts +0 -18
  192. package/lib/common/prompt-variable-contribution.d.ts.map +0 -1
  193. package/lib/common/prompt-variable-contribution.js +0 -207
  194. package/lib/common/prompt-variable-contribution.js.map +0 -1
  195. package/lib/common/prompt-variable-contribution.spec.d.ts +0 -2
  196. package/lib/common/prompt-variable-contribution.spec.d.ts.map +0 -1
  197. package/lib/common/prompt-variable-contribution.spec.js +0 -163
  198. package/lib/common/prompt-variable-contribution.spec.js.map +0 -1
  199. package/lib/common/protocol.d.ts +0 -25
  200. package/lib/common/protocol.d.ts.map +0 -1
  201. package/lib/common/protocol.js +0 -22
  202. package/lib/common/protocol.js.map +0 -1
  203. package/lib/common/settings-service.d.ts +0 -29
  204. package/lib/common/settings-service.d.ts.map +0 -1
  205. package/lib/common/settings-service.js +0 -5
  206. package/lib/common/settings-service.js.map +0 -1
  207. package/lib/common/today-variable-contribution.d.ts +0 -17
  208. package/lib/common/today-variable-contribution.d.ts.map +0 -1
  209. package/lib/common/today-variable-contribution.js +0 -68
  210. package/lib/common/today-variable-contribution.js.map +0 -1
  211. package/lib/common/token-usage-service.d.ts +0 -43
  212. package/lib/common/token-usage-service.d.ts.map +0 -1
  213. package/lib/common/token-usage-service.js +0 -20
  214. package/lib/common/token-usage-service.js.map +0 -1
  215. package/lib/common/tool-invocation-registry.d.ts +0 -66
  216. package/lib/common/tool-invocation-registry.d.ts.map +0 -1
  217. package/lib/common/tool-invocation-registry.js +0 -101
  218. package/lib/common/tool-invocation-registry.js.map +0 -1
  219. package/lib/common/variable-service.d.ts +0 -172
  220. package/lib/common/variable-service.d.ts.map +0 -1
  221. package/lib/common/variable-service.js +0 -287
  222. package/lib/common/variable-service.js.map +0 -1
  223. package/lib/common/variable-service.spec.d.ts +0 -2
  224. package/lib/common/variable-service.spec.d.ts.map +0 -1
  225. package/lib/common/variable-service.spec.js +0 -237
  226. package/lib/common/variable-service.spec.js.map +0 -1
  227. package/lib/node/ai-core-backend-module.d.ts +0 -4
  228. package/lib/node/ai-core-backend-module.d.ts.map +0 -1
  229. package/lib/node/ai-core-backend-module.js +0 -65
  230. package/lib/node/ai-core-backend-module.js.map +0 -1
  231. package/lib/node/backend-language-model-registry.d.ts +0 -13
  232. package/lib/node/backend-language-model-registry.d.ts.map +0 -1
  233. package/lib/node/backend-language-model-registry.js +0 -68
  234. package/lib/node/backend-language-model-registry.js.map +0 -1
  235. package/lib/node/language-model-frontend-delegate.d.ts +0 -18
  236. package/lib/node/language-model-frontend-delegate.d.ts.map +0 -1
  237. package/lib/node/language-model-frontend-delegate.js +0 -109
  238. package/lib/node/language-model-frontend-delegate.js.map +0 -1
  239. package/lib/node/token-usage-service-impl.d.ts +0 -23
  240. package/lib/node/token-usage-service-impl.d.ts.map +0 -1
  241. package/lib/node/token-usage-service-impl.js +0 -78
  242. package/lib/node/token-usage-service-impl.js.map +0 -1
  243. package/lib/node/tool-request-parameters.spec.d.ts +0 -2
  244. package/lib/node/tool-request-parameters.spec.d.ts.map +0 -1
  245. package/lib/node/tool-request-parameters.spec.js +0 -116
  246. package/lib/node/tool-request-parameters.spec.js.map +0 -1
@@ -1,43 +0,0 @@
1
- import { TokenUsageServiceClient } from './protocol';
2
- export declare const TokenUsageService: unique symbol;
3
- export interface TokenUsage {
4
- /** The input token count */
5
- inputTokens: number;
6
- /** The output token count */
7
- outputTokens: number;
8
- /** Input tokens written to cache */
9
- cachedInputTokens?: number;
10
- /** Input tokens read from cache */
11
- readCachedInputTokens?: number;
12
- /** The model identifier */
13
- model: string;
14
- /** The timestamp of when the tokens were used */
15
- timestamp: Date;
16
- /** Request identifier */
17
- requestId: string;
18
- }
19
- export interface TokenUsageParams {
20
- /** The input token count */
21
- inputTokens: number;
22
- /** The output token count */
23
- outputTokens: number;
24
- /** Input tokens placed in cache */
25
- cachedInputTokens?: number;
26
- /** Input tokens read from cache */
27
- readCachedInputTokens?: number;
28
- /** Request identifier */
29
- requestId: string;
30
- }
31
- export interface TokenUsageService {
32
- /**
33
- * Records token usage for a model interaction.
34
- *
35
- * @param model The identifier of the model that was used
36
- * @param params Object containing token usage information
37
- * @returns A promise that resolves when the token usage has been recorded
38
- */
39
- recordTokenUsage(model: string, params: TokenUsageParams): Promise<void>;
40
- getTokenUsages(): Promise<TokenUsage[]>;
41
- setClient(tokenUsageClient: TokenUsageServiceClient): void;
42
- }
43
- //# sourceMappingURL=token-usage-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-usage-service.d.ts","sourceRoot":"","sources":["../../src/common/token-usage-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErD,eAAO,MAAM,iBAAiB,eAA8B,CAAC;AAE7D,MAAM,WAAW,UAAU;IACvB,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mCAAmC;IACnC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,SAAS,EAAE,IAAI,CAAC;IAChB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC7B,4BAA4B;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,mCAAmC;IACnC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mCAAmC;IACnC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,iBAAiB;IAC9B;;;;;;OAMG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzE,cAAc,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;IAExC,SAAS,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,IAAI,CAAC;CAC9D"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.TokenUsageService = void 0;
19
- exports.TokenUsageService = Symbol('TokenUsageService');
20
- //# sourceMappingURL=token-usage-service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"token-usage-service.js","sourceRoot":"","sources":["../../src/common/token-usage-service.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;;;AAInE,QAAA,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC"}
@@ -1,66 +0,0 @@
1
- import { interfaces } from '@theia/core/shared/inversify';
2
- import { ToolRequest } from './language-model';
3
- import { Event } from '@theia/core';
4
- export declare const ToolInvocationRegistry: unique symbol;
5
- /**
6
- * Registry for all the function calls available to Agents.
7
- */
8
- export interface ToolInvocationRegistry {
9
- /**
10
- * Registers a tool into the registry.
11
- *
12
- * @param tool - The `ToolRequest` object representing the tool to be registered.
13
- */
14
- registerTool(tool: ToolRequest): void;
15
- /**
16
- * Retrieves a specific `ToolRequest` from the registry.
17
- *
18
- * @param toolId - The unique identifier of the tool to retrieve.
19
- * @returns The `ToolRequest` object corresponding to the provided tool ID,
20
- * or `undefined` if the tool is not found in the registry.
21
- */
22
- getFunction(toolId: string): ToolRequest | undefined;
23
- /**
24
- * Retrieves multiple `ToolRequest`s from the registry.
25
- *
26
- * @param toolIds - A list of tool IDs to retrieve.
27
- * @returns An array of `ToolRequest` objects for the specified tool IDs.
28
- * If a tool ID is not found, it is skipped in the returned array.
29
- */
30
- getFunctions(...toolIds: string[]): ToolRequest[];
31
- /**
32
- * Retrieves all `ToolRequest`s currently registered in the registry.
33
- *
34
- * @returns An array of all `ToolRequest` objects in the registry.
35
- */
36
- getAllFunctions(): ToolRequest[];
37
- /**
38
- * Unregisters all tools provided by a specific tool provider.
39
- *
40
- * @param providerName - The name of the tool provider whose tools should be removed (as specificed in the `ToolRequest`).
41
- */
42
- unregisterAllTools(providerName: string): void;
43
- /**
44
- * Event that is fired whenever the registry changes (tool registered or unregistered).
45
- */
46
- onDidChange: Event<void>;
47
- }
48
- export declare const ToolProvider: unique symbol;
49
- export interface ToolProvider {
50
- getTool(): ToolRequest;
51
- }
52
- /** Binds the identifier to self in singleton scope and then binds `ToolProvider` to that service. */
53
- export declare function bindToolProvider(identifier: interfaces.Newable<ToolProvider>, bind: interfaces.Bind): void;
54
- export declare class ToolInvocationRegistryImpl implements ToolInvocationRegistry {
55
- private tools;
56
- private readonly onDidChangeEmitter;
57
- readonly onDidChange: Event<void>;
58
- private providers;
59
- init(): void;
60
- unregisterAllTools(providerName: string): void;
61
- getAllFunctions(): ToolRequest[];
62
- registerTool(tool: ToolRequest): void;
63
- getFunction(toolId: string): ToolRequest | undefined;
64
- getFunctions(...toolIds: string[]): ToolRequest[];
65
- }
66
- //# sourceMappingURL=tool-invocation-registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-invocation-registry.d.ts","sourceRoot":"","sources":["../../src/common/tool-invocation-registry.ts"],"names":[],"mappings":"AAgBA,OAAO,EAA4C,UAAU,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAiC,KAAK,EAAE,MAAM,aAAa,CAAC;AAEnE,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IAEtC;;;;;;OAMG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;IAErD;;;;;;OAMG;IACH,YAAY,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAElD;;;;OAIG;IACH,eAAe,IAAI,WAAW,EAAE,CAAC;IAEjC;;;;OAIG;IACH,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY,eAAyB,CAAC;AACnD,MAAM,WAAW,YAAY;IACzB,OAAO,IAAI,WAAW,CAAC;CAC1B;AAED,qGAAqG;AACrG,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,GAAG,IAAI,CAG1G;AAED,qBACa,0BAA2B,YAAW,sBAAsB;IAErE,OAAO,CAAC,KAAK,CAA4D;IAEzE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAuB;IAC1D,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAiC;IAIlE,OAAO,CAAC,SAAS,CAAqC;IAGtD,IAAI,IAAI,IAAI;IAMZ,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI;IAiB9C,eAAe,IAAI,WAAW,EAAE;IAIhC,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IASrC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS;IAIpD,YAAY,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE;CAWpD"}
@@ -1,101 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2024 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ToolInvocationRegistryImpl = exports.bindToolProvider = exports.ToolProvider = exports.ToolInvocationRegistry = void 0;
19
- const tslib_1 = require("tslib");
20
- const inversify_1 = require("@theia/core/shared/inversify");
21
- const core_1 = require("@theia/core");
22
- exports.ToolInvocationRegistry = Symbol('ToolInvocationRegistry');
23
- exports.ToolProvider = Symbol('ToolProvider');
24
- /** Binds the identifier to self in singleton scope and then binds `ToolProvider` to that service. */
25
- function bindToolProvider(identifier, bind) {
26
- bind(identifier).toSelf().inSingletonScope();
27
- bind(exports.ToolProvider).toService(identifier);
28
- }
29
- exports.bindToolProvider = bindToolProvider;
30
- let ToolInvocationRegistryImpl = class ToolInvocationRegistryImpl {
31
- constructor() {
32
- this.tools = new Map();
33
- this.onDidChangeEmitter = new core_1.Emitter();
34
- this.onDidChange = this.onDidChangeEmitter.event;
35
- }
36
- init() {
37
- this.providers.getContributions().forEach(provider => {
38
- this.registerTool(provider.getTool());
39
- });
40
- }
41
- unregisterAllTools(providerName) {
42
- const toolsToRemove = [];
43
- for (const [id, tool] of this.tools.entries()) {
44
- if (tool.providerName === providerName) {
45
- toolsToRemove.push(id);
46
- }
47
- }
48
- let changed = false;
49
- toolsToRemove.forEach(id => {
50
- if (this.tools.delete(id)) {
51
- changed = true;
52
- }
53
- });
54
- if (changed) {
55
- this.onDidChangeEmitter.fire();
56
- }
57
- }
58
- getAllFunctions() {
59
- return Array.from(this.tools.values());
60
- }
61
- registerTool(tool) {
62
- if (this.tools.has(tool.id)) {
63
- console.warn(`Function with id ${tool.id} is already registered.`);
64
- }
65
- else {
66
- this.tools.set(tool.id, tool);
67
- this.onDidChangeEmitter.fire();
68
- }
69
- }
70
- getFunction(toolId) {
71
- return this.tools.get(toolId);
72
- }
73
- getFunctions(...toolIds) {
74
- const tools = toolIds.map(toolId => {
75
- const tool = this.tools.get(toolId);
76
- if (tool) {
77
- return tool;
78
- }
79
- else {
80
- throw new Error(`Function with id ${toolId} does not exist.`);
81
- }
82
- });
83
- return tools;
84
- }
85
- };
86
- exports.ToolInvocationRegistryImpl = ToolInvocationRegistryImpl;
87
- tslib_1.__decorate([
88
- (0, inversify_1.inject)(core_1.ContributionProvider),
89
- (0, inversify_1.named)(exports.ToolProvider),
90
- tslib_1.__metadata("design:type", Object)
91
- ], ToolInvocationRegistryImpl.prototype, "providers", void 0);
92
- tslib_1.__decorate([
93
- (0, inversify_1.postConstruct)(),
94
- tslib_1.__metadata("design:type", Function),
95
- tslib_1.__metadata("design:paramtypes", []),
96
- tslib_1.__metadata("design:returntype", void 0)
97
- ], ToolInvocationRegistryImpl.prototype, "init", null);
98
- exports.ToolInvocationRegistryImpl = ToolInvocationRegistryImpl = tslib_1.__decorate([
99
- (0, inversify_1.injectable)()
100
- ], ToolInvocationRegistryImpl);
101
- //# sourceMappingURL=tool-invocation-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-invocation-registry.js","sourceRoot":"","sources":["../../src/common/tool-invocation-registry.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAAoG;AAEpG,sCAAmE;AAEtD,QAAA,sBAAsB,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAmD1D,QAAA,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAKnD,qGAAqG;AACrG,SAAgB,gBAAgB,CAAC,UAA4C,EAAE,IAAqB;IAChG,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC7C,IAAI,CAAC,oBAAY,CAAC,CAAC,SAAS,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,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;YAC1B,OAAO,CAAC,IAAI,CAAC,oBAAoB,IAAI,CAAC,EAAE,yBAAyB,CAAC,CAAC;QACvE,CAAC;aAAM,CAAC;YACJ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;YAC9B,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC;QACnC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,MAAc;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,GAAG,OAAiB;QAC7B,MAAM,KAAK,GAAkB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACpC,IAAI,IAAI,EAAE,CAAC;gBACP,OAAO,IAAI,CAAC;YAChB,CAAC;iBAAM,CAAC;gBACJ,MAAM,IAAI,KAAK,CAAC,oBAAoB,MAAM,kBAAkB,CAAC,CAAC;YAClE,CAAC;QACL,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AA/DY,gEAA0B;AAS3B;IAFP,IAAA,kBAAM,EAAC,2BAAoB,CAAC;IAC5B,IAAA,iBAAK,EAAC,oBAAY,CAAC;;6DACkC;AAGtD;IADC,IAAA,yBAAa,GAAE;;;;sDAKf;qCAhBQ,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA+DtC"}
@@ -1,172 +0,0 @@
1
- import { ContributionProvider, Disposable, Emitter, ILogger, MaybePromise, Event } from '@theia/core';
2
- import * as monaco from '@theia/monaco-editor-core';
3
- /**
4
- * A variable is a short string that is used to reference a value that is resolved and replaced in the user prompt at request-time.
5
- */
6
- export interface AIVariable {
7
- /** provider id */
8
- id: string;
9
- /** variable name, used for referencing variables in the chat */
10
- name: string;
11
- /** variable description */
12
- description: string;
13
- /** optional label, used for showing the variable in the UI. If not provided, the variable name is used */
14
- label?: string;
15
- /** optional icon classes, used for showing the variable in the UI. */
16
- iconClasses?: string[];
17
- /** specifies whether this variable contributes to the context -- @see ResolvedAIContextVariable */
18
- isContextVariable?: boolean;
19
- /** optional arguments for resolving the variable into a value */
20
- args?: AIVariableDescription[];
21
- }
22
- export declare namespace AIVariable {
23
- function is(arg: unknown): arg is AIVariable;
24
- }
25
- export interface AIContextVariable extends AIVariable {
26
- label: string;
27
- isContextVariable: true;
28
- }
29
- export declare namespace AIContextVariable {
30
- function is(arg: unknown): arg is AIContextVariable;
31
- }
32
- export interface AIVariableDescription {
33
- name: string;
34
- description: string;
35
- enum?: string[];
36
- isOptional?: boolean;
37
- }
38
- export interface ResolvedAIVariable {
39
- variable: AIVariable;
40
- arg?: string;
41
- /** value that is inserted into the prompt at the position of the variable usage */
42
- value: string;
43
- /** Flat list of all variables that have been (recursively) resolved while resolving this variable. */
44
- allResolvedDependencies?: ResolvedAIVariable[];
45
- }
46
- export declare namespace ResolvedAIVariable {
47
- function is(arg: unknown): arg is ResolvedAIVariable;
48
- }
49
- /**
50
- * A context variable is a variable that also contributes to the context of a chat request.
51
- *
52
- * In contrast to a plain variable, it can also be attached to a request and is resolved into a context value.
53
- * The context value is put into the `ChatRequestModel.context`, available to the processing chat agent for further
54
- * processing by the chat agent, or invoked tool functions.
55
- */
56
- export interface ResolvedAIContextVariable extends ResolvedAIVariable {
57
- contextValue: string;
58
- }
59
- export declare namespace ResolvedAIContextVariable {
60
- function is(arg: unknown): arg is ResolvedAIContextVariable;
61
- }
62
- export interface AIVariableResolutionRequest {
63
- variable: AIVariable;
64
- arg?: string;
65
- }
66
- export declare namespace AIVariableResolutionRequest {
67
- function is(arg: unknown): arg is AIVariableResolutionRequest;
68
- function fromResolved(arg: ResolvedAIContextVariable): AIVariableResolutionRequest;
69
- }
70
- export interface AIVariableContext {
71
- }
72
- export type AIVariableArg = string | {
73
- variable: string;
74
- arg?: string;
75
- } | AIVariableResolutionRequest;
76
- export type AIVariableArgPicker = (context: AIVariableContext) => MaybePromise<string | undefined>;
77
- export type AIVariableArgCompletionProvider = (model: monaco.editor.ITextModel, position: monaco.Position, matchString?: string) => MaybePromise<monaco.languages.CompletionItem[] | undefined>;
78
- export interface AIVariableResolver {
79
- canResolve(request: AIVariableResolutionRequest, context: AIVariableContext): MaybePromise<number>;
80
- resolve(request: AIVariableResolutionRequest, context: AIVariableContext): Promise<ResolvedAIVariable | undefined>;
81
- }
82
- export interface AIVariableOpener {
83
- canOpen(request: AIVariableResolutionRequest, context: AIVariableContext): MaybePromise<number>;
84
- open(request: AIVariableResolutionRequest, context: AIVariableContext): Promise<void>;
85
- }
86
- export interface AIVariableResolverWithVariableDependencies extends AIVariableResolver {
87
- resolve(request: AIVariableResolutionRequest, context: AIVariableContext): Promise<ResolvedAIVariable | undefined>;
88
- /**
89
- * Resolve the given AI variable resolution request. When resolving dependencies with `resolveDependency`,
90
- * add the resolved dependencies to the result's `allResolvedDependencies` list
91
- * to enable consumers of the resolved variable to inspect dependencies.
92
- */
93
- resolve(request: AIVariableResolutionRequest, context: AIVariableContext, resolveDependency: (variable: AIVariableArg) => Promise<ResolvedAIVariable | undefined>): Promise<ResolvedAIVariable | undefined>;
94
- }
95
- export declare const AIVariableService: unique symbol;
96
- export interface AIVariableService {
97
- hasVariable(name: string): boolean;
98
- getVariable(name: string): Readonly<AIVariable> | undefined;
99
- getVariables(): Readonly<AIVariable>[];
100
- getContextVariables(): Readonly<AIContextVariable>[];
101
- registerVariable(variable: AIVariable): Disposable;
102
- unregisterVariable(name: string): void;
103
- readonly onDidChangeVariables: Event<void>;
104
- registerResolver(variable: AIVariable, resolver: AIVariableResolver): Disposable;
105
- unregisterResolver(variable: AIVariable, resolver: AIVariableResolver): void;
106
- getResolver(name: string, arg: string | undefined, context: AIVariableContext): Promise<AIVariableResolver | undefined>;
107
- resolveVariable(variable: AIVariableArg, context: AIVariableContext, cache?: Map<string, ResolveAIVariableCacheEntry>): Promise<ResolvedAIVariable | undefined>;
108
- registerArgumentPicker(variable: AIVariable, argPicker: AIVariableArgPicker): Disposable;
109
- unregisterArgumentPicker(variable: AIVariable, argPicker: AIVariableArgPicker): void;
110
- getArgumentPicker(name: string, context: AIVariableContext): Promise<AIVariableArgPicker | undefined>;
111
- registerArgumentCompletionProvider(variable: AIVariable, argPicker: AIVariableArgCompletionProvider): Disposable;
112
- unregisterArgumentCompletionProvider(variable: AIVariable, argPicker: AIVariableArgCompletionProvider): void;
113
- getArgumentCompletionProvider(name: string): Promise<AIVariableArgCompletionProvider | undefined>;
114
- }
115
- /** Contributions on the frontend can optionally implement `FrontendVariableContribution`. */
116
- export declare const AIVariableContribution: unique symbol;
117
- export interface AIVariableContribution {
118
- registerVariables(service: AIVariableService): void;
119
- }
120
- export interface ResolveAIVariableCacheEntry {
121
- promise: Promise<ResolvedAIVariable | undefined>;
122
- inProgress: boolean;
123
- }
124
- export type ResolveAIVariableCache = Map<string, ResolveAIVariableCacheEntry>;
125
- /**
126
- * Creates a new, empty cache for AI variable resolution to hand into `AIVariableService.resolveVariable`.
127
- */
128
- export declare function createAIResolveVariableCache(): Map<string, ResolveAIVariableCacheEntry>;
129
- /** Utility function to get all resolved AI variables from a {@link ResolveAIVariableCache} */
130
- export declare function getAllResolvedAIVariables(cache: ResolveAIVariableCache): Promise<ResolvedAIVariable[]>;
131
- export declare class DefaultAIVariableService implements AIVariableService {
132
- protected readonly contributionProvider: ContributionProvider<AIVariableContribution>;
133
- protected readonly logger: ILogger;
134
- protected variables: Map<string, AIVariable>;
135
- protected resolvers: Map<string, AIVariableResolver[]>;
136
- protected argPickers: Map<string, AIVariableArgPicker>;
137
- protected openers: Map<string, AIVariableOpener[]>;
138
- protected argCompletionProviders: Map<string, AIVariableArgCompletionProvider>;
139
- protected readonly onDidChangeVariablesEmitter: Emitter<void>;
140
- readonly onDidChangeVariables: Event<void>;
141
- constructor(contributionProvider: ContributionProvider<AIVariableContribution>, logger: ILogger);
142
- protected initContributions(): void;
143
- protected getKey(name: string): string;
144
- getResolver(name: string, arg: string | undefined, context: AIVariableContext): Promise<AIVariableResolver | undefined>;
145
- protected getResolvers(name: string): AIVariableResolver[];
146
- protected prioritize(name: string, arg: string | undefined, context: AIVariableContext): Promise<AIVariableResolver[]>;
147
- hasVariable(name: string): boolean;
148
- getVariable(name: string): Readonly<AIVariable> | undefined;
149
- getVariables(): Readonly<AIVariable>[];
150
- getContextVariables(): Readonly<AIContextVariable>[];
151
- registerVariable(variable: AIVariable): Disposable;
152
- registerResolver(variable: AIVariable, resolver: AIVariableResolver): Disposable;
153
- unregisterResolver(variable: AIVariable, resolver: AIVariableResolver): void;
154
- unregisterVariable(name: string): void;
155
- registerArgumentPicker(variable: AIVariable, argPicker: AIVariableArgPicker): Disposable;
156
- unregisterArgumentPicker(variable: AIVariable, argPicker: AIVariableArgPicker): void;
157
- getArgumentPicker(name: string): Promise<AIVariableArgPicker | undefined>;
158
- registerArgumentCompletionProvider(variable: AIVariable, completionProvider: AIVariableArgCompletionProvider): Disposable;
159
- unregisterArgumentCompletionProvider(variable: AIVariable, completionProvider: AIVariableArgCompletionProvider): void;
160
- getArgumentCompletionProvider(name: string): Promise<AIVariableArgCompletionProvider | undefined>;
161
- protected parseRequest(request: AIVariableArg): {
162
- variableName: string;
163
- arg: string | undefined;
164
- };
165
- resolveVariable(request: AIVariableArg, context: AIVariableContext, cache?: ResolveAIVariableCache): Promise<ResolvedAIVariable | undefined>;
166
- /**
167
- * Asynchronously resolves a variable, handling its dependencies while preventing cyclical resolution.
168
- * Selects the appropriate resolver and resolution strategy based on whether nested dependency resolution is supported.
169
- */
170
- protected doResolve(variableName: string, arg: string | undefined, context: AIVariableContext, cache: ResolveAIVariableCache): Promise<ResolvedAIVariable | undefined>;
171
- }
172
- //# sourceMappingURL=variable-service.d.ts.map
@@ -1 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