@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,435 +0,0 @@
1
- "use strict";
2
- // *****************************************************************************
3
- // Copyright (C) 2025 EclipseSource GmbH.
4
- //
5
- // This program and the accompanying materials are made available under the
6
- // terms of the Eclipse Public License v. 2.0 which is available at
7
- // http://www.eclipse.org/legal/epl-2.0.
8
- //
9
- // This Source Code may also be made available under the following Secondary
10
- // Licenses when the conditions for such availability set forth in the Eclipse
11
- // Public License v. 2.0 are satisfied: GNU General Public License, version 2
12
- // with the GNU Classpath Exception which is available at
13
- // https://www.gnu.org/software/classpath/license.html.
14
- //
15
- // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
16
- // *****************************************************************************
17
- var ChangeSetFileElement_1;
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.ChangeSetFileElement = exports.ChangeSetElementArgs = exports.ChangeSetFileElementFactory = void 0;
20
- const tslib_1 = require("tslib");
21
- const ai_core_1 = require("@theia/ai-core");
22
- const core_1 = require("@theia/core");
23
- const browser_1 = require("@theia/core/lib/browser");
24
- const inversify_1 = require("@theia/core/shared/inversify");
25
- const editor_preferences_1 = require("@theia/editor/lib/common/editor-preferences");
26
- const common_1 = require("@theia/filesystem/lib/common");
27
- const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
28
- const trimTrailingWhitespaceCommand_1 = require("@theia/monaco-editor-core/esm/vs/editor/common/commands/trimTrailingWhitespaceCommand");
29
- const selection_1 = require("@theia/monaco-editor-core/esm/vs/editor/common/core/selection");
30
- const cursor_1 = require("@theia/monaco-editor-core/esm/vs/editor/common/cursor/cursor");
31
- const format_1 = require("@theia/monaco-editor-core/esm/vs/editor/contrib/format/browser/format");
32
- const standaloneServices_1 = require("@theia/monaco-editor-core/esm/vs/editor/standalone/browser/standaloneServices");
33
- const instantiation_1 = require("@theia/monaco-editor-core/esm/vs/platform/instantiation/common/instantiation");
34
- const monaco_text_model_service_1 = require("@theia/monaco/lib/browser/monaco-text-model-service");
35
- const monaco_utilities_1 = require("@theia/monaco/lib/browser/monaco-utilities");
36
- const change_set_file_resource_1 = require("./change-set-file-resource");
37
- const change_set_file_service_1 = require("./change-set-file-service");
38
- const promise_util_1 = require("@theia/core/lib/common/promise-util");
39
- const browser_2 = require("@theia/monaco/lib/browser");
40
- exports.ChangeSetFileElementFactory = Symbol('ChangeSetFileElementFactory');
41
- exports.ChangeSetElementArgs = Symbol('ChangeSetElementArgs');
42
- ;
43
- let ChangeSetFileElement = ChangeSetFileElement_1 = class ChangeSetFileElement {
44
- constructor() {
45
- this.toDispose = new core_1.DisposableCollection();
46
- this._initialized = false;
47
- this.onDidChangeEmitter = new core_1.Emitter();
48
- this.onDidChange = this.onDidChangeEmitter.event;
49
- }
50
- static toReadOnlyUri(baseUri, sessionId) {
51
- return baseUri.withScheme('change-set-immutable').withAuthority(sessionId);
52
- }
53
- init() {
54
- this._initializationPromise = this.initializeAsync();
55
- this.toDispose.push(this.onDidChangeEmitter);
56
- }
57
- async initializeAsync() {
58
- await this.obtainOriginalContent();
59
- this.listenForOriginalFileChanges();
60
- this._initialized = true;
61
- }
62
- /**
63
- * Ensures that the element is fully initialized before proceeding.
64
- * This includes loading the original content from the file system.
65
- */
66
- async ensureInitialized() {
67
- await this._initializationPromise;
68
- }
69
- /**
70
- * Returns true if the element has been fully initialized.
71
- */
72
- get isInitialized() {
73
- return this._initialized;
74
- }
75
- async obtainOriginalContent() {
76
- var _a, _b;
77
- this._originalContent = (_a = this.elementProps.originalState) !== null && _a !== void 0 ? _a : await this.changeSetFileService.read(this.uri);
78
- if (this._readOnlyResource) {
79
- this.readOnlyResource.update({ contents: (_b = this._originalContent) !== null && _b !== void 0 ? _b : '' });
80
- }
81
- }
82
- getInMemoryUri(uri) {
83
- try {
84
- return this.inMemoryResources.resolve(uri);
85
- }
86
- catch {
87
- return this.inMemoryResources.add(uri, { contents: '' });
88
- }
89
- }
90
- listenForOriginalFileChanges() {
91
- if (this.elementProps.originalState) {
92
- // if we have an original state, we are not interested in the original file on disk but always use `originalState`
93
- return;
94
- }
95
- this.toDispose.push(this.fileService.onDidFilesChange(async (event) => {
96
- if (!event.contains(this.uri)) {
97
- return;
98
- }
99
- if (!this._initialized && this._initializationPromise) {
100
- // make sure we are initialized
101
- await this._initializationPromise;
102
- }
103
- // If we are applied, the tricky thing becomes the question what to revert to; otherwise, what to apply.
104
- const newContent = await this.changeSetFileService.read(this.uri).catch(() => '');
105
- this.readOnlyResource.update({ contents: newContent });
106
- if (newContent === this._originalContent) {
107
- this.state = 'pending';
108
- }
109
- else if (newContent === this.targetState) {
110
- this.state = 'applied';
111
- }
112
- else {
113
- this.state = 'stale';
114
- }
115
- }));
116
- }
117
- get uri() {
118
- return this.elementProps.uri;
119
- }
120
- get readOnlyResource() {
121
- var _a, _b;
122
- if (!this._readOnlyResource) {
123
- this._readOnlyResource = this.getInMemoryUri(ChangeSetFileElement_1.toReadOnlyUri(this.uri, this.elementProps.chatSessionId));
124
- this._readOnlyResource.update({
125
- autosaveable: false,
126
- readOnly: true,
127
- contents: (_a = this._originalContent) !== null && _a !== void 0 ? _a : ''
128
- });
129
- this.toDispose.push(this._readOnlyResource);
130
- // If not yet initialized, update the resource once initialization completes
131
- if (!this._initialized) {
132
- (_b = this._initializationPromise) === null || _b === void 0 ? void 0 : _b.then(() => {
133
- var _a, _b;
134
- (_a = this._readOnlyResource) === null || _a === void 0 ? void 0 : _a.update({ contents: (_b = this._originalContent) !== null && _b !== void 0 ? _b : '' });
135
- });
136
- }
137
- }
138
- return this._readOnlyResource;
139
- }
140
- get readOnlyUri() {
141
- return this.readOnlyResource.uri;
142
- }
143
- get changeResource() {
144
- if (!this._changeResource) {
145
- this._changeResource = this.getInMemoryUri((0, change_set_file_resource_1.createChangeSetFileUri)(this.elementProps.chatSessionId, this.uri));
146
- this._changeResource.update({ autosaveable: false, contents: this.targetState });
147
- this.applyCodeActionsToTargetState();
148
- this.toDispose.push(this._changeResource);
149
- }
150
- return this._changeResource;
151
- }
152
- get changedUri() {
153
- return this.changeResource.uri;
154
- }
155
- get name() {
156
- var _a;
157
- return (_a = this.elementProps.name) !== null && _a !== void 0 ? _a : this.changeSetFileService.getName(this.uri);
158
- }
159
- get icon() {
160
- var _a;
161
- return (_a = this.elementProps.icon) !== null && _a !== void 0 ? _a : this.changeSetFileService.getIcon(this.uri);
162
- }
163
- get additionalInfo() {
164
- return this.changeSetFileService.getAdditionalInfo(this.uri);
165
- }
166
- get state() {
167
- var _a;
168
- return (_a = this._state) !== null && _a !== void 0 ? _a : this.elementProps.state;
169
- }
170
- set state(value) {
171
- if (this._state !== value) {
172
- this._state = value;
173
- this.onDidChangeEmitter.fire();
174
- }
175
- }
176
- get replacements() {
177
- return this.elementProps.replacements;
178
- }
179
- get type() {
180
- return this.elementProps.type;
181
- }
182
- get data() {
183
- return this.elementProps.data;
184
- }
185
- ;
186
- get originalContent() {
187
- if (!this._initialized && this._initializationPromise) {
188
- console.warn('Accessing originalContent before initialization is complete. Consider using async methods.');
189
- }
190
- return this._originalContent;
191
- }
192
- /**
193
- * Gets the original content of the file asynchronously.
194
- * Ensures initialization is complete before returning the content.
195
- */
196
- async getOriginalContent() {
197
- await this.ensureInitialized();
198
- return this._originalContent;
199
- }
200
- get targetState() {
201
- var _a, _b;
202
- return (_b = (_a = this._targetStateWithCodeActions) !== null && _a !== void 0 ? _a : this.elementProps.targetState) !== null && _b !== void 0 ? _b : '';
203
- }
204
- get originalTargetState() {
205
- var _a;
206
- return (_a = this.elementProps.targetState) !== null && _a !== void 0 ? _a : '';
207
- }
208
- async open() {
209
- await this.ensureInitialized();
210
- this.changeSetFileService.open(this);
211
- }
212
- async openChange() {
213
- await this.ensureInitialized();
214
- this.changeSetFileService.openDiff(this.readOnlyUri, this.changedUri);
215
- }
216
- async apply(contents) {
217
- await this.ensureInitialized();
218
- if (!await this.confirm('Apply')) {
219
- return;
220
- }
221
- if (this.type === 'delete') {
222
- await this.changeSetFileService.delete(this.uri);
223
- this.state = 'applied';
224
- this.changeSetFileService.closeDiff(this.readOnlyUri);
225
- return;
226
- }
227
- // Load Monaco model for the base file URI and apply changes
228
- await this.applyChangesWithMonaco(contents);
229
- this.changeSetFileService.closeDiff(this.readOnlyUri);
230
- }
231
- async writeChanges(contents) {
232
- await this.changeSetFileService.writeFrom(this.changedUri, this.uri, contents !== null && contents !== void 0 ? contents : this.targetState);
233
- this.state = 'applied';
234
- }
235
- /**
236
- * Applies changes using Monaco utilities, including loading the model for the base file URI,
237
- * setting the value to the intended state, and running code actions on save.
238
- */
239
- async applyChangesWithMonaco(contents) {
240
- let modelReference;
241
- try {
242
- modelReference = await this.monacoTextModelService.createModelReference(this.uri);
243
- const model = modelReference.object;
244
- const targetContent = contents !== null && contents !== void 0 ? contents : this.targetState;
245
- model.textEditorModel.setValue(targetContent);
246
- const languageId = model.languageId;
247
- const uriStr = this.uri.toString();
248
- await this.codeActionService.applyOnSaveCodeActions(model.textEditorModel, languageId, uriStr, core_1.CancellationToken.None);
249
- await this.applyFormatting(model, languageId, uriStr);
250
- await model.save();
251
- this.state = 'applied';
252
- }
253
- catch (error) {
254
- console.error('Failed to apply changes with Monaco:', error);
255
- await this.writeChanges(contents);
256
- }
257
- finally {
258
- modelReference === null || modelReference === void 0 ? void 0 : modelReference.dispose();
259
- }
260
- }
261
- applyCodeActionsToTargetState() {
262
- if (!this.codeActionDeferred) {
263
- this.codeActionDeferred = new promise_util_1.Deferred();
264
- this.codeActionDeferred.resolve(this.doApplyCodeActionsToTargetState());
265
- }
266
- return this.codeActionDeferred.promise;
267
- }
268
- async doApplyCodeActionsToTargetState() {
269
- var _a, _b;
270
- const targetState = this.originalTargetState;
271
- if (!targetState) {
272
- this._targetStateWithCodeActions = '';
273
- return this._targetStateWithCodeActions;
274
- }
275
- let tempResource;
276
- let tempModel;
277
- try {
278
- // Create a temporary model to apply code actions
279
- const tempUri = core_1.URI.fromComponents({
280
- scheme: 'untitled',
281
- path: this.uri.path.toString(),
282
- authority: `changeset-${this.elementProps.chatSessionId}`,
283
- query: '',
284
- fragment: ''
285
- });
286
- tempResource = this.getInMemoryUri(tempUri);
287
- tempResource.update({ contents: this.targetState });
288
- tempModel = await this.monacoTextModelService.createModelReference(tempUri);
289
- tempModel.object.suppressOpenEditorWhenDirty = true;
290
- tempModel.object.textEditorModel.setValue(this.targetState);
291
- const languageId = tempModel.object.languageId;
292
- const uriStr = this.uri.toString();
293
- await this.codeActionService.applyOnSaveCodeActions(tempModel.object.textEditorModel, languageId, uriStr, core_1.CancellationToken.None);
294
- // Apply formatting and other editor preferences
295
- await this.applyFormatting(tempModel.object, languageId, uriStr);
296
- this._targetStateWithCodeActions = tempModel.object.textEditorModel.getValue();
297
- if (((_a = this._changeResource) === null || _a === void 0 ? void 0 : _a.contents) === this.elementProps.targetState) {
298
- (_b = this._changeResource) === null || _b === void 0 ? void 0 : _b.update({ contents: this.targetState });
299
- }
300
- }
301
- catch (error) {
302
- console.warn('Failed to apply code actions to target state:', error);
303
- this._targetStateWithCodeActions = targetState;
304
- }
305
- finally {
306
- tempModel === null || tempModel === void 0 ? void 0 : tempModel.dispose();
307
- tempResource === null || tempResource === void 0 ? void 0 : tempResource.dispose();
308
- }
309
- return this.targetState;
310
- }
311
- /**
312
- * Applies formatting preferences like format on save, trim trailing whitespace, and insert final newline.
313
- */
314
- async applyFormatting(model, languageId, uriStr) {
315
- try {
316
- const formatOnSave = this.editorPreferences.get({ preferenceName: 'editor.formatOnSave', overrideIdentifier: languageId }, undefined, uriStr);
317
- if (formatOnSave) {
318
- const instantiation = standaloneServices_1.StandaloneServices.get(instantiation_1.IInstantiationService);
319
- await instantiation.invokeFunction(format_1.formatDocumentWithSelectedProvider, model.textEditorModel, 1 /* FormattingMode.Explicit */, { report() { } }, core_1.CancellationToken.None, true);
320
- }
321
- const trimTrailingWhitespace = this.fileSystemPreferences.get({ preferenceName: 'files.trimTrailingWhitespace', overrideIdentifier: languageId }, undefined, uriStr);
322
- if (trimTrailingWhitespace) {
323
- const ttws = new trimTrailingWhitespaceCommand_1.TrimTrailingWhitespaceCommand(new selection_1.Selection(1, 1, 1, 1), [], false);
324
- cursor_1.CommandExecutor.executeCommands(model.textEditorModel, [], [ttws]);
325
- }
326
- const shouldInsertFinalNewline = this.fileSystemPreferences.get({ preferenceName: 'files.insertFinalNewline', overrideIdentifier: languageId }, undefined, uriStr);
327
- if (shouldInsertFinalNewline) {
328
- (0, monaco_utilities_1.insertFinalNewline)(model);
329
- }
330
- }
331
- catch (error) {
332
- console.warn('Failed to apply formatting:', error);
333
- }
334
- }
335
- onShow() {
336
- this.changeResource.update({
337
- contents: this.targetState,
338
- onSave: async (content) => {
339
- // Use Monaco utilities when saving from the change resource
340
- await this.applyChangesWithMonaco(content);
341
- }
342
- });
343
- }
344
- async revert() {
345
- await this.ensureInitialized();
346
- if (!await this.confirm('Revert')) {
347
- return;
348
- }
349
- this.state = 'pending';
350
- if (this.type === 'add') {
351
- await this.changeSetFileService.delete(this.uri);
352
- }
353
- else if (this._originalContent) {
354
- await this.changeSetFileService.write(this.uri, this._originalContent);
355
- }
356
- }
357
- async confirm(verb) {
358
- if (this._state !== 'stale') {
359
- return true;
360
- }
361
- await this.openChange();
362
- const answer = await new browser_1.ConfirmDialog({
363
- title: verb === 'Apply'
364
- ? core_1.nls.localize('theia/ai/chat/applySuggestion', 'Apply suggestion')
365
- : core_1.nls.localize('theia/ai/chat/revertSuggestion', 'Revert suggestion'),
366
- msg: verb === 'Apply'
367
- ? core_1.nls.localize('theia/ai/chat/confirmApplySuggestion', 'The file {0} has changed since this suggestion was created. Are you certain you wish to apply the change?', this.uri.path.toString())
368
- : core_1.nls.localize('theia/ai/chat/confirmRevertSuggestion', 'The file {0} has changed since this suggestion was created. Are you certain you wish to revert the change?', this.uri.path.toString())
369
- }).open(true);
370
- return !!answer;
371
- }
372
- toSerializable() {
373
- return {
374
- kind: 'file',
375
- uri: this.uri.toString(),
376
- name: this.name,
377
- icon: this.icon,
378
- additionalInfo: this.additionalInfo,
379
- state: this.state,
380
- type: this.type,
381
- data: {
382
- ...this.data,
383
- targetState: this.elementProps.targetState,
384
- originalState: this._originalContent,
385
- replacements: this.replacements
386
- }
387
- };
388
- }
389
- dispose() {
390
- this.toDispose.dispose();
391
- }
392
- };
393
- exports.ChangeSetFileElement = ChangeSetFileElement;
394
- tslib_1.__decorate([
395
- (0, inversify_1.inject)(exports.ChangeSetElementArgs),
396
- tslib_1.__metadata("design:type", Object)
397
- ], ChangeSetFileElement.prototype, "elementProps", void 0);
398
- tslib_1.__decorate([
399
- (0, inversify_1.inject)(change_set_file_service_1.ChangeSetFileService),
400
- tslib_1.__metadata("design:type", change_set_file_service_1.ChangeSetFileService)
401
- ], ChangeSetFileElement.prototype, "changeSetFileService", void 0);
402
- tslib_1.__decorate([
403
- (0, inversify_1.inject)(file_service_1.FileService),
404
- tslib_1.__metadata("design:type", file_service_1.FileService)
405
- ], ChangeSetFileElement.prototype, "fileService", void 0);
406
- tslib_1.__decorate([
407
- (0, inversify_1.inject)(ai_core_1.ConfigurableInMemoryResources),
408
- tslib_1.__metadata("design:type", ai_core_1.ConfigurableInMemoryResources)
409
- ], ChangeSetFileElement.prototype, "inMemoryResources", void 0);
410
- tslib_1.__decorate([
411
- (0, inversify_1.inject)(monaco_text_model_service_1.MonacoTextModelService),
412
- tslib_1.__metadata("design:type", monaco_text_model_service_1.MonacoTextModelService)
413
- ], ChangeSetFileElement.prototype, "monacoTextModelService", void 0);
414
- tslib_1.__decorate([
415
- (0, inversify_1.inject)(editor_preferences_1.EditorPreferences),
416
- tslib_1.__metadata("design:type", Object)
417
- ], ChangeSetFileElement.prototype, "editorPreferences", void 0);
418
- tslib_1.__decorate([
419
- (0, inversify_1.inject)(common_1.FileSystemPreferences),
420
- tslib_1.__metadata("design:type", Object)
421
- ], ChangeSetFileElement.prototype, "fileSystemPreferences", void 0);
422
- tslib_1.__decorate([
423
- (0, inversify_1.inject)(browser_2.MonacoCodeActionService),
424
- tslib_1.__metadata("design:type", Object)
425
- ], ChangeSetFileElement.prototype, "codeActionService", void 0);
426
- tslib_1.__decorate([
427
- (0, inversify_1.postConstruct)(),
428
- tslib_1.__metadata("design:type", Function),
429
- tslib_1.__metadata("design:paramtypes", []),
430
- tslib_1.__metadata("design:returntype", void 0)
431
- ], ChangeSetFileElement.prototype, "init", null);
432
- exports.ChangeSetFileElement = ChangeSetFileElement = ChangeSetFileElement_1 = tslib_1.__decorate([
433
- (0, inversify_1.injectable)()
434
- ], ChangeSetFileElement);
435
- //# sourceMappingURL=change-set-file-element.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"change-set-file-element.js","sourceRoot":"","sources":["../../src/browser/change-set-file-element.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,4CAAqG;AACrG,sCAAyF;AACzF,qDAAwD;AAExD,4DAAiF;AACjF,oFAAgF;AAChF,yDAAqE;AACrE,6EAAyE;AAEzE,yIAAsI;AACtI,6FAA0F;AAC1F,yFAA+F;AAC/F,kGAA2I;AAC3I,sHAAmH;AACnH,gHAAqH;AACrH,mGAA6F;AAC7F,iFAAgF;AAIhF,yEAAoE;AACpE,uEAAiE;AACj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AAC,KAAK;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE;gBACF,GAAG,IAAI,CAAC,IAAI;gBACZ,WAAW,EAAE,IAAI,CAAC,YAAY,CAAC,WAAW;gBAC1C,aAAa,EAAE,IAAI,CAAC,gBAAgB;gBACpC,YAAY,EAAE,IAAI,CAAC,YAAY;aAClC;SACJ,CAAC;IACN,CAAC;IAED,OAAO;QACH,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC;IAC7B,CAAC;CACJ,CAAA;AAhaY,oDAAoB;AAOV;IADlB,IAAA,kBAAM,EAAC,4BAAoB,CAAC;;0DACyB;AAGnC;IADlB,IAAA,kBAAM,EAAC,8CAAoB,CAAC;sCACY,8CAAoB;kEAAC;AAG3C;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACY,0BAAW;yDAAC;AAGzB;IADlB,IAAA,kBAAM,EAAC,uCAA6B,CAAC;sCACA,uCAA6B;+DAAC;AAGjD;IADlB,IAAA,kBAAM,EAAC,kDAAsB,CAAC;sCACY,kDAAsB;oEAAC;AAG/C;IADlB,IAAA,kBAAM,EAAC,sCAAiB,CAAC;;+DAC8B;AAGrC;IADlB,IAAA,kBAAM,EAAC,8BAAqB,CAAC;;mEACkC;AAG7C;IADlB,IAAA,kBAAM,EAAC,iCAAuB,CAAC;;+DAC8B;AAiB9D;IADC,IAAA,yBAAa,GAAE;;;;gDAIf;+BAhDQ,oBAAoB;IADhC,IAAA,sBAAU,GAAE;GACA,oBAAoB,CAgahC"}
@@ -1,4 +0,0 @@
1
- import { URI } from '@theia/core';
2
- export declare const CHANGE_SET_FILE_RESOURCE_SCHEME = "changeset-file";
3
- export declare function createChangeSetFileUri(chatSessionId: string, elementUri: URI): URI;
4
- //# sourceMappingURL=change-set-file-resource.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"change-set-file-resource.d.ts","sourceRoot":"","sources":["../../src/browser/change-set-file-resource.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,eAAO,MAAM,+BAA+B,mBAAmB,CAAC;AAEhE,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,GAAG,GAAG,CAElF"}
@@ -1,24 +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.createChangeSetFileUri = exports.CHANGE_SET_FILE_RESOURCE_SCHEME = void 0;
19
- exports.CHANGE_SET_FILE_RESOURCE_SCHEME = 'changeset-file';
20
- function createChangeSetFileUri(chatSessionId, elementUri) {
21
- return elementUri.withScheme(exports.CHANGE_SET_FILE_RESOURCE_SCHEME).withAuthority(chatSessionId);
22
- }
23
- exports.createChangeSetFileUri = createChangeSetFileUri;
24
- //# sourceMappingURL=change-set-file-resource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"change-set-file-resource.js","sourceRoot":"","sources":["../../src/browser/change-set-file-resource.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,+BAA+B,GAAG,gBAAgB,CAAC;AAEhE,SAAgB,sBAAsB,CAAC,aAAqB,EAAE,UAAe;IACzE,OAAO,UAAU,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;AAC/F,CAAC;AAFD,wDAEC"}
@@ -1,32 +0,0 @@
1
- import { ILogger, URI } from '@theia/core';
2
- import { ApplicationShell, LabelProvider, OpenerService } from '@theia/core/lib/browser';
3
- import { EditorManager } from '@theia/editor/lib/browser';
4
- import { FileService } from '@theia/filesystem/lib/browser/file-service';
5
- import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';
6
- import { WorkspaceService } from '@theia/workspace/lib/browser/workspace-service';
7
- import { ChangeSetFileElement } from './change-set-file-element';
8
- export declare class ChangeSetFileService {
9
- protected readonly logger: ILogger;
10
- protected readonly wsService: WorkspaceService;
11
- protected readonly labelProvider: LabelProvider;
12
- protected readonly openerService: OpenerService;
13
- protected readonly editorManager: EditorManager;
14
- protected readonly shell: ApplicationShell;
15
- protected readonly monacoWorkspace: MonacoWorkspace;
16
- protected readonly fileService: FileService;
17
- read(uri: URI): Promise<string | undefined>;
18
- getName(uri: URI): string;
19
- getIcon(uri: URI): string | undefined;
20
- getAdditionalInfo(uri: URI): string | undefined;
21
- open(element: ChangeSetFileElement): Promise<void>;
22
- openDiff(originalUri: URI, suggestedUri: URI): Promise<void>;
23
- protected getDiffUri(originalUri: URI, suggestedUri: URI): URI;
24
- delete(uri: URI): Promise<void>;
25
- /** Returns true if there was a document available to save for the specified URI. */
26
- trySave(suggestedUri: URI): Promise<boolean>;
27
- writeFrom(from: URI, to: URI, fallbackContent: string): Promise<void>;
28
- write(uri: URI, text: string): Promise<void>;
29
- closeDiffsForSession(sessionId: string, except?: URI[]): void;
30
- closeDiff(uri: URI): void;
31
- }
32
- //# sourceMappingURL=change-set-file-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"change-set-file-service.d.ts","sourceR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