@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,103 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.AIVariableResourceResolver = exports.NO_CONTEXT_AUTHORITY = exports.AI_VARIABLE_RESOURCE_SCHEME = void 0;
19
- const tslib_1 = require("tslib");
20
- const deepEqual = require("fast-deep-equal");
21
- const inversify_1 = require("@theia/core/shared/inversify");
22
- const core_1 = require("@theia/core");
23
- const stableJsonStringify = require("fast-json-stable-stringify");
24
- const configurable_in_memory_resources_1 = require("./configurable-in-memory-resources");
25
- exports.AI_VARIABLE_RESOURCE_SCHEME = 'ai-variable';
26
- exports.NO_CONTEXT_AUTHORITY = 'context-free';
27
- let AIVariableResourceResolver = class AIVariableResourceResolver {
28
- constructor() {
29
- this.cache = new Map();
30
- }
31
- init() {
32
- this.inMemoryResources.onWillDispose(resource => this.cache.delete(resource.uri.toString()));
33
- }
34
- getOrCreate(request, context, value) {
35
- const uri = this.toUri(request, context);
36
- try {
37
- const existing = this.inMemoryResources.resolve(uri);
38
- existing.update({ contents: value });
39
- return existing;
40
- }
41
- catch { /* No-op */ }
42
- const fresh = this.inMemoryResources.add(uri, { contents: value, readOnly: true, initiallyDirty: false });
43
- const key = uri.toString();
44
- this.cache.set(key, [fresh, context]);
45
- return fresh;
46
- }
47
- toUri(request, context) {
48
- return core_1.URI.fromComponents({
49
- scheme: exports.AI_VARIABLE_RESOURCE_SCHEME,
50
- query: stableJsonStringify({ arg: request.arg, name: request.variable.name }),
51
- path: '/',
52
- authority: this.toAuthority(context),
53
- fragment: ''
54
- });
55
- }
56
- toAuthority(context) {
57
- try {
58
- if (deepEqual(context, {})) {
59
- return exports.NO_CONTEXT_AUTHORITY;
60
- }
61
- for (const [resource, cachedContext] of this.cache.values()) {
62
- if (deepEqual(context, cachedContext)) {
63
- return resource.uri.authority;
64
- }
65
- }
66
- }
67
- catch (err) {
68
- // Mostly that deep equal could overflow the stack, but it should run into === or inequality before that.
69
- console.warn('Problem evaluating context in AIVariableResourceResolver', err);
70
- }
71
- return (0, core_1.generateUuid)();
72
- }
73
- fromUri(uri) {
74
- if (uri.scheme !== exports.AI_VARIABLE_RESOURCE_SCHEME) {
75
- return undefined;
76
- }
77
- try {
78
- const { name: variableName, arg } = JSON.parse(uri.query);
79
- return variableName ? {
80
- variableName,
81
- arg,
82
- } : undefined;
83
- }
84
- catch {
85
- return undefined;
86
- }
87
- }
88
- };
89
- exports.AIVariableResourceResolver = AIVariableResourceResolver;
90
- tslib_1.__decorate([
91
- (0, inversify_1.inject)(configurable_in_memory_resources_1.ConfigurableInMemoryResources),
92
- tslib_1.__metadata("design:type", configurable_in_memory_resources_1.ConfigurableInMemoryResources)
93
- ], AIVariableResourceResolver.prototype, "inMemoryResources", void 0);
94
- tslib_1.__decorate([
95
- (0, inversify_1.postConstruct)(),
96
- tslib_1.__metadata("design:type", Function),
97
- tslib_1.__metadata("design:paramtypes", []),
98
- tslib_1.__metadata("design:returntype", void 0)
99
- ], AIVariableResourceResolver.prototype, "init", null);
100
- exports.AIVariableResourceResolver = AIVariableResourceResolver = tslib_1.__decorate([
101
- (0, inversify_1.injectable)()
102
- ], AIVariableResourceResolver);
103
- //# sourceMappingURL=ai-variable-resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-variable-resource.js","sourceRoot":"","sources":["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AC;QAAC,CAAC;QACrE,IAAI,CAAC;YACD,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC1D,OAAO,YAAY,CAAC,CAAC,CAAC;gBAClB,YAAY;gBACZ,GAAG;aACN,CAAC,CAAC,CAAC,SAAS,CAAC;QAClB,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,SAAS,CAAC;QAAC,CAAC;IACjC,CAAC;CACJ,CAAA;AA1DY,gEAA0B;AACuB;IAAzD,IAAA,kBAAM,EAAC,gEAA6B,CAAC;sCAAuC,gEAA6B;qEAAC;AAGjG;IADT,IAAA,yBAAa,GAAE;;;;sDAGf;qCANQ,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CA0DtC"}
@@ -1,47 +0,0 @@
1
- import { SyncReferenceCollection, Reference, ResourceResolver, Resource, Event, Emitter, URI } from '@theia/core';
2
- import { MarkdownString } from '@theia/core/lib/common/markdown-rendering';
3
- export declare class ConfigurableInMemoryResources implements ResourceResolver {
4
- protected readonly resources: SyncReferenceCollection<string, ConfigurableMutableResource>;
5
- get onWillDispose(): Event<ConfigurableMutableResource>;
6
- add(uri: URI, options: ResourceInitializationOptions): ConfigurableMutableReferenceResource;
7
- update(uri: URI, options: ResourceInitializationOptions): Resource;
8
- resolve(uri: URI): ConfigurableMutableReferenceResource;
9
- protected acquire(uri: string): ConfigurableMutableReferenceResource;
10
- }
11
- export type ResourceInitializationOptions = Pick<Resource, 'autosaveable' | 'initiallyDirty' | 'readOnly'> & {
12
- contents?: string | Promise<string>;
13
- onSave?: Resource['saveContents'];
14
- };
15
- export declare class ConfigurableMutableResource implements Resource {
16
- readonly uri: URI;
17
- protected options?: ResourceInitializationOptions | undefined;
18
- protected readonly onDidChangeContentsEmitter: Emitter<void>;
19
- readonly onDidChangeContents: Event<void>;
20
- protected fireDidChangeContents(): void;
21
- protected readonly onDidChangeReadonlyEmitter: Emitter<boolean | MarkdownString>;
22
- readonly onDidChangeReadOnly: Event<boolean | MarkdownString>;
23
- constructor(uri: URI, options?: ResourceInitializationOptions | undefined);
24
- get readOnly(): Resource['readOnly'];
25
- get autosaveable(): boolean;
26
- get initiallyDirty(): boolean;
27
- get contents(): string | Promise<string>;
28
- readContents(): Promise<string>;
29
- saveContents(contents: string): Promise<void>;
30
- update(options: ResourceInitializationOptions): void;
31
- dispose(): void;
32
- }
33
- export declare class ConfigurableMutableReferenceResource implements Resource {
34
- protected reference: Reference<ConfigurableMutableResource>;
35
- constructor(reference: Reference<ConfigurableMutableResource>);
36
- get uri(): URI;
37
- get onDidChangeContents(): Event<void>;
38
- dispose(): void;
39
- readContents(): Promise<string>;
40
- saveContents(contents: string): Promise<void>;
41
- update(options: ResourceInitializationOptions): void;
42
- get readOnly(): Resource['readOnly'];
43
- get initiallyDirty(): boolean;
44
- get autosaveable(): boolean;
45
- get contents(): string | Promise<string>;
46
- }
47
- //# sourceMappingURL=configurable-in-memory-resources.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurable-in-memory-resources.d.ts","sourceRoot":"","sources":["../../src/common/configurable-in-memory-resources.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClH,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,qBAEa,6BAA8B,YAAW,gBAAgB;IAElE,SAAS,CAAC,QAAQ,CAAC,SAAS,+DAA0H;IAEtJ,IAAI,aAAa,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAEtD;IAED,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,6BAA6B,GAAG,oCAAoC;IAU3F,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,6BAA6B,GAAG,QAAQ;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CAAC,2BAA2B,CAAC;IAEvE,IAAI,GAAG,IAAI,GAAG,CAEb;IAED,IAAI,mBAAmB,IAAI,KAAK,CAAC,IAAI,CAAC,CAErC;IAED,OAAO,IAAI,IAAI;IAIf,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAI/B,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7C,MAAM,CAAC,OAAO,EAAE,6BAA6B,GAAG,IAAI;IAIpD,IAAI,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC,CAEnC;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,YAAY,IAAI,OAAO,CAE1B;IAED,IAAI,QAAQ,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvC;CACJ"}
@@ -1,154 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclispeSource GmbH and others.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ConfigurableMutableReferenceResource = exports.ConfigurableMutableResource = exports.ConfigurableInMemoryResources = 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
- let ConfigurableInMemoryResources = class ConfigurableInMemoryResources {
23
- constructor() {
24
- this.resources = new core_1.SyncReferenceCollection(uri => new ConfigurableMutableResource(new core_1.URI(uri)));
25
- }
26
- get onWillDispose() {
27
- return this.resources.onWillDispose;
28
- }
29
- add(uri, options) {
30
- const resourceUri = uri.toString();
31
- if (this.resources.has(resourceUri)) {
32
- throw new Error(`Cannot add already existing in-memory resource '${resourceUri}'`);
33
- }
34
- const resource = this.acquire(resourceUri);
35
- resource.update(options);
36
- return resource;
37
- }
38
- update(uri, options) {
39
- const resourceUri = uri.toString();
40
- const resource = this.resources.get(resourceUri);
41
- if (!resource) {
42
- throw new Error(`Cannot update non-existent in-memory resource '${resourceUri}'`);
43
- }
44
- resource.update(options);
45
- return resource;
46
- }
47
- resolve(uri) {
48
- const uriString = uri.toString();
49
- if (!this.resources.has(uriString)) {
50
- throw new Error(`In memory '${uriString}' resource does not exist.`);
51
- }
52
- return this.acquire(uriString);
53
- }
54
- acquire(uri) {
55
- const reference = this.resources.acquire(uri);
56
- return new ConfigurableMutableReferenceResource(reference);
57
- }
58
- };
59
- exports.ConfigurableInMemoryResources = ConfigurableInMemoryResources;
60
- exports.ConfigurableInMemoryResources = ConfigurableInMemoryResources = tslib_1.__decorate([
61
- (0, inversify_1.injectable)()
62
- /** For creating highly configurable in-memory resources */
63
- ], ConfigurableInMemoryResources);
64
- class ConfigurableMutableResource {
65
- fireDidChangeContents() {
66
- this.onDidChangeContentsEmitter.fire();
67
- }
68
- constructor(uri, options) {
69
- this.uri = uri;
70
- this.options = options;
71
- this.onDidChangeContentsEmitter = new core_1.Emitter();
72
- this.onDidChangeContents = this.onDidChangeContentsEmitter.event;
73
- this.onDidChangeReadonlyEmitter = new core_1.Emitter();
74
- this.onDidChangeReadOnly = this.onDidChangeReadonlyEmitter.event;
75
- }
76
- get readOnly() {
77
- var _a;
78
- return (_a = this.options) === null || _a === void 0 ? void 0 : _a.readOnly;
79
- }
80
- get autosaveable() {
81
- var _a;
82
- return ((_a = this.options) === null || _a === void 0 ? void 0 : _a.autosaveable) !== false;
83
- }
84
- get initiallyDirty() {
85
- var _a;
86
- return !!((_a = this.options) === null || _a === void 0 ? void 0 : _a.initiallyDirty);
87
- }
88
- get contents() {
89
- var _a, _b;
90
- return (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.contents) !== null && _b !== void 0 ? _b : '';
91
- }
92
- readContents() {
93
- var _a, _b;
94
- return Promise.resolve((_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.contents) !== null && _b !== void 0 ? _b : '');
95
- }
96
- async saveContents(contents) {
97
- var _a, _b;
98
- await ((_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.onSave) === null || _b === void 0 ? void 0 : _b.call(_a, contents));
99
- this.update({ contents });
100
- }
101
- update(options) {
102
- var _a, _b, _c;
103
- const didContentsChange = 'contents' in options && options.contents !== ((_a = this.options) === null || _a === void 0 ? void 0 : _a.contents);
104
- const didReadOnlyChange = 'readOnly' in options && options.readOnly !== ((_b = this.options) === null || _b === void 0 ? void 0 : _b.readOnly);
105
- this.options = { ...this.options, ...options };
106
- if (didContentsChange) {
107
- this.onDidChangeContentsEmitter.fire();
108
- }
109
- if (didReadOnlyChange) {
110
- this.onDidChangeReadonlyEmitter.fire((_c = this.readOnly) !== null && _c !== void 0 ? _c : false);
111
- }
112
- }
113
- dispose() {
114
- this.onDidChangeContentsEmitter.dispose();
115
- }
116
- }
117
- exports.ConfigurableMutableResource = ConfigurableMutableResource;
118
- class ConfigurableMutableReferenceResource {
119
- constructor(reference) {
120
- this.reference = reference;
121
- }
122
- get uri() {
123
- return this.reference.object.uri;
124
- }
125
- get onDidChangeContents() {
126
- return this.reference.object.onDidChangeContents;
127
- }
128
- dispose() {
129
- this.reference.dispose();
130
- }
131
- readContents() {
132
- return this.reference.object.readContents();
133
- }
134
- saveContents(contents) {
135
- return this.reference.object.saveContents(contents);
136
- }
137
- update(options) {
138
- this.reference.object.update(options);
139
- }
140
- get readOnly() {
141
- return this.reference.object.readOnly;
142
- }
143
- get initiallyDirty() {
144
- return this.reference.object.initiallyDirty;
145
- }
146
- get autosaveable() {
147
- return this.reference.object.autosaveable;
148
- }
149
- get contents() {
150
- return this.reference.object.contents;
151
- }
152
- }
153
- exports.ConfigurableMutableReferenceResource = ConfigurableMutableReferenceResource;
154
- //# sourceMappingURL=configurable-in-memory-resources.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"configurable-in-memory-resources.js","sourceRoot":"","sources":["../../src/common/configurable-in-memory-resources.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,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,4DAA0D;AAC1D,sCAAkH;AAK3G,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAAnC;QAEgB,cAAS,GAAG,IAAI,8BAAuB,CAAsC,GAAG,CAAC,EAAE,CAAC,IAAI,2BAA2B,CAAC,IAAI,UAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAsC1J,CAAC;IApCG,IAAI,aAAa;QACb,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;IACxC,CAAC;IAED,GAAG,CAAC,GAAQ,EAAE,OAAsC;QAChD,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;QACnC,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,mDAAmD,WAAW,GAAG,CAAC,CAAC;QACvF,CAAC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC3C,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACzB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,CAAC,GAAQ,EAAE,OAAsC;QACnD,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;QACnC,MAAM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CAAC,QAAQ,CAAC;IAC1C,CAAC;CACJ;AA1CD,oFA0CC"}
@@ -1,22 +0,0 @@
1
- export * from './agent-service';
2
- export * from './agent';
3
- export * from './agents-variable-contribution';
4
- export * from './ai-core-preferences';
5
- export * from './tool-invocation-registry';
6
- export * from './language-model-delegate';
7
- export * from './language-model-util';
8
- export * from './language-model';
9
- export * from './language-model-alias';
10
- export * from './prompt-service';
11
- export * from './prompt-service-util';
12
- export * from './prompt-text';
13
- export * from './protocol';
14
- export * from './today-variable-contribution';
15
- export * from './variable-service';
16
- export * from './settings-service';
17
- export * from './language-model-service';
18
- export * from './token-usage-service';
19
- export * from './ai-variable-resource';
20
- export * from './configurable-in-memory-resources';
21
- export * from './notification-types';
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAeA,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,sBAAsB,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- // *****************************************************************************
5
- // Copyright (C) 2024 EclipseSource GmbH.
6
- //
7
- // This program and the accompanying materials are made available under the
8
- // terms of the Eclipse Public License v. 2.0 which is available at
9
- // http://www.eclipse.org/legal/epl-2.0.
10
- //
11
- // This Source Code may also be made available under the following Secondary
12
- // Licenses when the conditions for such availability set forth in the Eclipse
13
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
14
- // with the GNU Classpath Exception which is available at
15
- // https://www.gnu.org/software/classpath/license.html.
16
- //
17
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
18
- // *****************************************************************************
19
- tslib_1.__exportStar(require("./agent-service"), exports);
20
- tslib_1.__exportStar(require("./agent"), exports);
21
- tslib_1.__exportStar(require("./agents-variable-contribution"), exports);
22
- tslib_1.__exportStar(require("./ai-core-preferences"), exports);
23
- tslib_1.__exportStar(require("./tool-invocation-registry"), exports);
24
- tslib_1.__exportStar(require("./language-model-delegate"), exports);
25
- tslib_1.__exportStar(require("./language-model-util"), exports);
26
- tslib_1.__exportStar(require("./language-model"), exports);
27
- tslib_1.__exportStar(require("./language-model-alias"), exports);
28
- tslib_1.__exportStar(require("./prompt-service"), exports);
29
- tslib_1.__exportStar(require("./prompt-service-util"), exports);
30
- tslib_1.__exportStar(require("./prompt-text"), exports);
31
- tslib_1.__exportStar(require("./protocol"), exports);
32
- tslib_1.__exportStar(require("./today-variable-contribution"), exports);
33
- tslib_1.__exportStar(require("./variable-service"), exports);
34
- tslib_1.__exportStar(require("./settings-service"), exports);
35
- tslib_1.__exportStar(require("./language-model-service"), exports);
36
- tslib_1.__exportStar(require("./token-usage-service"), exports);
37
- tslib_1.__exportStar(require("./ai-variable-resource"), exports);
38
- tslib_1.__exportStar(require("./configurable-in-memory-resources"), exports);
39
- tslib_1.__exportStar(require("./notification-types"), exports);
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.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,0DAAgC;AAChC,kDAAwB;AACxB,yEAA+C;AAC/C,gEAAsC;AACtC,qEAA2C;AAC3C,oEAA0C;AAC1C,gEAAsC;AACtC,2DAAiC;AACjC,iEAAuC;AACvC,2DAAiC;AACjC,gEAAsC;AACtC,wDAA8B;AAC9B,qDAA2B;AAC3B,wEAA8C;AAC9C,6DAAmC;AACnC,6DAAmC;AACnC,mEAAyC;AACzC,gEAAsC;AACtC,iEAAuC;AACvC,6EAAmD;AACnD,+DAAqC"}
@@ -1,58 +0,0 @@
1
- import { Event } from '@theia/core';
2
- /**
3
- * Represents an alias for a language model, allowing fallback and selection.
4
- */
5
- export interface LanguageModelAlias {
6
- /**
7
- * The unique identifier for the alias.
8
- */
9
- id: string;
10
- /**
11
- * The list of default model IDs to use if no selectedModelId is set.
12
- * Ordered by priority. The first entry also serves as fallback.
13
- */
14
- defaultModelIds: string[];
15
- /**
16
- * A human-readable description of the alias.
17
- */
18
- description?: string;
19
- /**
20
- * The currently selected model ID, if any.
21
- */
22
- selectedModelId?: string;
23
- }
24
- export declare const LanguageModelAliasRegistry: unique symbol;
25
- /**
26
- * Registry for managing language model aliases.
27
- */
28
- export interface LanguageModelAliasRegistry {
29
- /**
30
- * Promise that resolves when the registry is ready for use (preferences loaded).
31
- */
32
- ready: Promise<void>;
33
- /**
34
- * Event that is fired when the alias list changes.
35
- */
36
- onDidChange: Event<void>;
37
- /**
38
- * Add a new alias or update an existing one.
39
- */
40
- addAlias(alias: LanguageModelAlias): void;
41
- /**
42
- * Remove an alias by its id.
43
- */
44
- removeAlias(id: string): void;
45
- /**
46
- * Get all aliases.
47
- */
48
- getAliases(): LanguageModelAlias[];
49
- /**
50
- * Resolve an alias or model id to a prioritized list of model ids.
51
- * If the id is not an alias, returns [id].
52
- * If the alias exists and has a selectedModelId, returns [selectedModelId].
53
- * If the alias exists and has no selectedModelId, returns defaultModelIds.
54
- * If the alias does not exist, returns undefined.
55
- */
56
- resolveAlias(id: string): string[] | undefined;
57
- }
58
- //# sourceMappingURL=language-model-alias.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-alias.d.ts","sourceRoot":"","sources":["../../src/common/language-model-alias.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAC/E;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,UAAU,IAAI,kBAAkB,EAAE,CAAC;IACnC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC;CAClD"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2024-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.LanguageModelAliasRegistry = void 0;
19
- exports.LanguageModelAliasRegistry = Symbol('LanguageModelAliasRegistry');
20
- //# sourceMappingURL=language-model-alias.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-alias.js","sourceRoot":"","sources":["../../src/common/language-model-alias.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,8CAA8C;AAC9C,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;;;AA2BnE,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import { CancellationToken } from '@theia/core';
2
- import { LanguageModelMetaData, LanguageModelParsedResponse, LanguageModelRequest, LanguageModelStreamResponsePart, LanguageModelTextResponse, ToolCallResult } from './language-model';
3
- export declare const LanguageModelDelegateClient: unique symbol;
4
- export interface LanguageModelDelegateClient {
5
- toolCall(requestId: string, toolId: string, args_string: string): Promise<ToolCallResult>;
6
- send(id: string, token: LanguageModelStreamResponsePart | undefined): void;
7
- error(id: string, error: Error): void;
8
- }
9
- export declare const LanguageModelRegistryFrontendDelegate: unique symbol;
10
- export interface LanguageModelRegistryFrontendDelegate {
11
- getLanguageModelDescriptions(): Promise<LanguageModelMetaData[]>;
12
- }
13
- export interface LanguageModelStreamResponseDelegate {
14
- streamId: string;
15
- }
16
- export declare const isLanguageModelStreamResponseDelegate: (obj: unknown) => obj is LanguageModelStreamResponseDelegate;
17
- export type LanguageModelResponseDelegate = LanguageModelTextResponse | LanguageModelParsedResponse | LanguageModelStreamResponseDelegate;
18
- export declare const LanguageModelFrontendDelegate: unique symbol;
19
- export interface LanguageModelFrontendDelegate {
20
- cancel(requestId: string): void;
21
- request(modelId: string, request: LanguageModelRequest, requestId: string, cancellationToken?: CancellationToken): Promise<LanguageModelResponseDelegate>;
22
- }
23
- export declare const languageModelRegistryDelegatePath = "/services/languageModelRegistryDelegatePath";
24
- export declare const languageModelDelegatePath = "/services/languageModelDelegatePath";
25
- //# sourceMappingURL=language-model-delegate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-delegate.d.ts","sourceRoot":"","sources":["../../src/common/language-model-delegate.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACH,qBAAqB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,+BAA+B,EACzG,yBAAyB,EAAE,cAAc,EAC5C,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,2BAA2B,eAAwC,CAAC;AACjF,MAAM,WAAW,2BAA2B;IACxC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC1F,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,+BAA+B,GAAG,SAAS,GAAG,IAAI,CAAC;IAC3E,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACzC;AACD,eAAO,MAAM,qCAAqC,eAAkD,CAAC;AACrG,MAAM,WAAW,qCAAqC;IAClD,4BAA4B,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,mCAAmC;IAChD,QAAQ,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,qCAAqC,QAAS,OAAO,+CACwD,CAAC;AAE3H,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG,2BAA2B,GAAG,mCAAmC,CAAC;AAE1I,eAAO,MAAM,6BAA6B,eAA0C,CAAC;AACrF,MAAM,WAAW,6BAA6B;IAC1C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;CAC7J;AAED,eAAO,MAAM,iCAAiC,gDAAgD,CAAC;AAC/F,eAAO,MAAM,yBAAyB,wCAAwC,CAAC"}
@@ -1,26 +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.languageModelDelegatePath = exports.languageModelRegistryDelegatePath = exports.LanguageModelFrontendDelegate = exports.isLanguageModelStreamResponseDelegate = exports.LanguageModelRegistryFrontendDelegate = exports.LanguageModelDelegateClient = void 0;
19
- exports.LanguageModelDelegateClient = Symbol('LanguageModelDelegateClient');
20
- exports.LanguageModelRegistryFrontendDelegate = Symbol('LanguageModelRegistryFrontendDelegate');
21
- const isLanguageModelStreamResponseDelegate = (obj) => !!(obj && typeof obj === 'object' && 'streamId' in obj && typeof obj.streamId === 'string');
22
- exports.isLanguageModelStreamResponseDelegate = isLanguageModelStreamResponseDelegate;
23
- exports.LanguageModelFrontendDelegate = Symbol('LanguageModelFrontendDelegate');
24
- exports.languageModelRegistryDelegatePath = '/services/languageModelRegistryDelegatePath';
25
- exports.languageModelDelegatePath = '/services/languageModelDelegatePath';
26
- //# sourceMappingURL=language-model-delegate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-delegate.js","sourceRoot":"","sources":["../../src/common/language-model-delegate.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;;;AAQnE,QAAA,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC;AAMpE,QAAA,qCAAqC,GAAG,MAAM,CAAC,uCAAuC,CAAC,CAAC;AAQ9F,MAAM,qCAAqC,GAAG,CAAC,GAAY,EAA8C,EAAE,CAC9G,CAAC,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,UAAU,IAAI,GAAG,IAAI,OAAQ,GAA6B,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC;AAD9G,QAAA,qCAAqC,yCACyE;AAI9G,QAAA,6BAA6B,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAC;AAMxE,QAAA,iCAAiC,GAAG,6CAA6C,CAAC;AAClF,QAAA,yBAAyB,GAAG,qCAAqC,CAAC"}
@@ -1,74 +0,0 @@
1
- import { LanguageModelRequest, LanguageModelResponse, LanguageModelStreamResponse, LanguageModelStreamResponsePart } from './language-model';
2
- /**
3
- * A session tracking raw exchanges with language models, organized into exchange units.
4
- */
5
- export interface LanguageModelSession {
6
- /**
7
- * Identifier of this Language Model Session. Corresponds to Chat session ids
8
- */
9
- id: string;
10
- /**
11
- * All exchange units part of this session
12
- */
13
- exchanges: LanguageModelExchange[];
14
- }
15
- /**
16
- * An exchange unit representing a logical operation which may involve multiple model requests.
17
- */
18
- export interface LanguageModelExchange {
19
- /**
20
- * Identifier of the exchange unit.
21
- */
22
- id: string;
23
- /**
24
- * All requests that constitute this exchange
25
- */
26
- requests: LanguageModelExchangeRequest[];
27
- /**
28
- * Arbitrary metadata for the exchange
29
- */
30
- metadata: {
31
- agent?: string;
32
- [key: string]: unknown;
33
- };
34
- }
35
- /**
36
- * Alternative to the LanguageModelStreamResponse, suited for inspection
37
- */
38
- export interface LanguageModelMonitoredStreamResponse {
39
- parts: LanguageModelStreamResponsePart[];
40
- }
41
- /**
42
- * Alternative to the LanguageModelResponse, suited for inspection
43
- */
44
- export type LanguageModelExchangeRequestResponse = Exclude<LanguageModelResponse, LanguageModelStreamResponse> | LanguageModelMonitoredStreamResponse;
45
- /**
46
- * Represents a request to a language model within an exchange unit, capturing the request and its response.
47
- */
48
- export interface LanguageModelExchangeRequest {
49
- /**
50
- * Identifier of the request. Might share the id with the parent exchange if there's only one request.
51
- */
52
- id: string;
53
- /**
54
- * The actual request sent to the language model
55
- */
56
- request: LanguageModelRequest;
57
- /**
58
- * Arbitrary metadata for the request. Might contain an agent id and timestamp.
59
- */
60
- metadata: {
61
- agent?: string;
62
- timestamp?: number;
63
- [key: string]: unknown;
64
- };
65
- /**
66
- * The identifier of the language model the request was sent to
67
- */
68
- languageModel: string;
69
- /**
70
- * The recorded response
71
- */
72
- response: LanguageModelExchangeRequestResponse;
73
- }
74
- //# sourceMappingURL=language-model-interaction-model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-interaction-model.d.ts","sourceRoot":"","sources":["../../src/common/language-model-interaction-model.ts"],"names":[],"mappings":"AAeA,OAAO,EACH,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,+BAA+B,EAClC,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,QAAQ,EAAE,4BAA4B,EAAE,CAAC;IACzC;;OAEG;IACH,QAAQ,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACjD,KAAK,EAAE,+BAA+B,EAAE,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,OAAO,CAAC,qBAAqB,EAAE,2BAA2B,CAAC,GAAG,oCAAoC,CAAC;AAEtJ;;GAEG;AACH,MAAM,WAAW,4BAA4B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,QAAQ,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;IACF;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,EAAE,oCAAoC,CAAC;CAClD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=language-model-interaction-model.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-model-interaction-model.js","sourceRoot":"","sources":["../../src/common/language-model-interaction-model.ts"],"names":[],"mappings":""}