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

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.
package/README.md CHANGED
@@ -17,6 +17,7 @@ It serves as the basis for `@theia/ai-chat-ui` to provide the Chat UI.
17
17
 
18
18
  ## Additional Information
19
19
 
20
+ - [API documentation for `@theia/ai-chat`](https://eclipse-theia.github.io/theia/docs/next/modules/_theia_ai-chat.html)
20
21
  - [Theia - GitHub](https://github.com/eclipse-theia/theia)
21
22
  - [Theia - Website](https://theia-ide.org/)
22
23
 
@@ -0,0 +1,15 @@
1
+ import { URI } from '@theia/core';
2
+ export declare enum FileValidationState {
3
+ VALID = "valid",
4
+ INVALID_SECONDARY = "invalid-secondary",
5
+ INVALID_NOT_FOUND = "invalid-not-found"
6
+ }
7
+ export interface FileValidationResult {
8
+ state: FileValidationState;
9
+ message?: string;
10
+ }
11
+ export interface ContextFileValidationService {
12
+ validateFile(pathOrUri: string | URI): Promise<FileValidationResult>;
13
+ }
14
+ export declare const ContextFileValidationService: unique symbol;
15
+ //# sourceMappingURL=context-file-validation-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-validation-service.d.ts","sourceRoot":"","sources":["../../src/browser/context-file-validation-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,oBAAY,mBAAmB;IAC3B,KAAK,UAAU;IACf,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;CAC1C;AAED,MAAM,WAAW,oBAAoB;IACjC,KAAK,EAAE,mBAAmB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IACzC,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CACxE;AAED,eAAO,MAAM,4BAA4B,eAAyC,CAAC"}
@@ -0,0 +1,26 @@
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.ContextFileValidationService = exports.FileValidationState = void 0;
19
+ var FileValidationState;
20
+ (function (FileValidationState) {
21
+ FileValidationState["VALID"] = "valid";
22
+ FileValidationState["INVALID_SECONDARY"] = "invalid-secondary";
23
+ FileValidationState["INVALID_NOT_FOUND"] = "invalid-not-found";
24
+ })(FileValidationState || (exports.FileValidationState = FileValidationState = {}));
25
+ exports.ContextFileValidationService = Symbol('ContextFileValidationService');
26
+ //# sourceMappingURL=context-file-validation-service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-file-validation-service.js","sourceRoot":"","sources":["../../src/browser/context-file-validation-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;;;AAIhF,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,8DAAuC,CAAA;IACvC,8DAAuC,CAAA;AAC3C,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B;AAWY,QAAA,4BAA4B,GAAG,MAAM,CAAC,8BAA8B,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@theia/ai-chat",
3
- "version": "1.67.0-next.3+7946ca874",
3
+ "version": "1.67.0-next.59+3f14297ea",
4
4
  "description": "Theia - AI Chat Extension",
5
5
  "dependencies": {
6
- "@theia/ai-core": "1.67.0-next.3+7946ca874",
7
- "@theia/core": "1.67.0-next.3+7946ca874",
8
- "@theia/editor": "1.67.0-next.3+7946ca874",
9
- "@theia/file-search": "1.67.0-next.3+7946ca874",
10
- "@theia/filesystem": "1.67.0-next.3+7946ca874",
11
- "@theia/monaco": "1.67.0-next.3+7946ca874",
6
+ "@theia/ai-core": "1.67.0-next.59+3f14297ea",
7
+ "@theia/core": "1.67.0-next.59+3f14297ea",
8
+ "@theia/editor": "1.67.0-next.59+3f14297ea",
9
+ "@theia/file-search": "1.67.0-next.59+3f14297ea",
10
+ "@theia/filesystem": "1.67.0-next.59+3f14297ea",
11
+ "@theia/monaco": "1.67.0-next.59+3f14297ea",
12
12
  "@theia/monaco-editor-core": "1.96.302",
13
- "@theia/workspace": "1.67.0-next.3+7946ca874",
13
+ "@theia/workspace": "1.67.0-next.59+3f14297ea",
14
14
  "js-yaml": "^4.1.0",
15
15
  "tslib": "^2.6.2"
16
16
  },
@@ -54,5 +54,5 @@
54
54
  "nyc": {
55
55
  "extends": "../../configs/nyc.json"
56
56
  },
57
- "gitHead": "7946ca874b04e6249d883e9a586f193194df1365"
57
+ "gitHead": "3f14297ea2edcdb1fffd74afee0613e70b43e125"
58
58
  }
@@ -0,0 +1,34 @@
1
+ // *****************************************************************************
2
+ // Copyright (C) 2025 EclipseSource GmbH.
3
+ //
4
+ // This program and the accompanying materials are made available under the
5
+ // terms of the Eclipse Public License v. 2.0 which is available at
6
+ // http://www.eclipse.org/legal/epl-2.0.
7
+ //
8
+ // This Source Code may also be made available under the following Secondary
9
+ // Licenses when the conditions for such availability set forth in the Eclipse
10
+ // Public License v. 2.0 are satisfied: GNU General Public License, version 2
11
+ // with the GNU Classpath Exception which is available at
12
+ // https://www.gnu.org/software/classpath/license.html.
13
+ //
14
+ // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
+ // *****************************************************************************
16
+
17
+ import { URI } from '@theia/core';
18
+
19
+ export enum FileValidationState {
20
+ VALID = 'valid',
21
+ INVALID_SECONDARY = 'invalid-secondary',
22
+ INVALID_NOT_FOUND = 'invalid-not-found'
23
+ }
24
+
25
+ export interface FileValidationResult {
26
+ state: FileValidationState;
27
+ message?: string;
28
+ }
29
+
30
+ export interface ContextFileValidationService {
31
+ validateFile(pathOrUri: string | URI): Promise<FileValidationResult>;
32
+ }
33
+
34
+ export const ContextFileValidationService = Symbol('ContextFileValidationService');