@theia/ai-chat 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.
- package/README.md +1 -0
- package/package.json +9 -9
- package/lib/browser/agent-delegation-tool.d.ts +0 -25
- package/lib/browser/agent-delegation-tool.d.ts.map +0 -1
- package/lib/browser/agent-delegation-tool.js +0 -196
- package/lib/browser/agent-delegation-tool.js.map +0 -1
- package/lib/browser/ai-chat-frontend-contribution.d.ts +0 -11
- package/lib/browser/ai-chat-frontend-contribution.d.ts.map +0 -1
- package/lib/browser/ai-chat-frontend-contribution.js +0 -56
- package/lib/browser/ai-chat-frontend-contribution.js.map +0 -1
- package/lib/browser/ai-chat-frontend-module.d.ts +0 -4
- package/lib/browser/ai-chat-frontend-module.d.ts.map +0 -1
- package/lib/browser/ai-chat-frontend-module.js +0 -143
- package/lib/browser/ai-chat-frontend-module.js.map +0 -1
- package/lib/browser/change-set-decorator-service.d.ts +0 -24
- package/lib/browser/change-set-decorator-service.d.ts.map +0 -1
- package/lib/browser/change-set-decorator-service.js +0 -66
- package/lib/browser/change-set-decorator-service.js.map +0 -1
- package/lib/browser/change-set-file-element-deserializer.d.ts +0 -7
- package/lib/browser/change-set-file-element-deserializer.d.ts.map +0 -1
- package/lib/browser/change-set-file-element-deserializer.js +0 -61
- package/lib/browser/change-set-file-element-deserializer.js.map +0 -1
- package/lib/browser/change-set-file-element.d.ts +0 -122
- package/lib/browser/change-set-file-element.d.ts.map +0 -1
- package/lib/browser/change-set-file-element.js +0 -435
- package/lib/browser/change-set-file-element.js.map +0 -1
- package/lib/browser/change-set-file-resource.d.ts +0 -4
- package/lib/browser/change-set-file-resource.d.ts.map +0 -1
- package/lib/browser/change-set-file-resource.js +0 -24
- package/lib/browser/change-set-file-resource.js.map +0 -1
- package/lib/browser/change-set-file-service.d.ts +0 -32
- package/lib/browser/change-set-file-service.d.ts.map +0 -1
- package/lib/browser/change-set-file-service.js +0 -161
- package/lib/browser/change-set-file-service.js.map +0 -1
- package/lib/browser/change-set-variable.d.ts +0 -11
- package/lib/browser/change-set-variable.d.ts.map +0 -1
- package/lib/browser/change-set-variable.js +0 -64
- package/lib/browser/change-set-variable.js.map +0 -1
- package/lib/browser/chat-session-store-impl.d.ts +0 -36
- package/lib/browser/chat-session-store-impl.d.ts.map +0 -1
- package/lib/browser/chat-session-store-impl.js +0 -287
- package/lib/browser/chat-session-store-impl.js.map +0 -1
- package/lib/browser/chat-tool-preference-bindings.d.ts +0 -34
- package/lib/browser/chat-tool-preference-bindings.d.ts.map +0 -1
- package/lib/browser/chat-tool-preference-bindings.js +0 -122
- package/lib/browser/chat-tool-preference-bindings.js.map +0 -1
- package/lib/browser/chat-tool-request-service.d.ts +0 -21
- package/lib/browser/chat-tool-request-service.d.ts.map +0 -1
- package/lib/browser/chat-tool-request-service.js +0 -90
- package/lib/browser/chat-tool-request-service.js.map +0 -1
- package/lib/browser/context-file-validation-service.d.ts +0 -15
- package/lib/browser/context-file-validation-service.d.ts.map +0 -1
- package/lib/browser/context-file-validation-service.js +0 -26
- package/lib/browser/context-file-validation-service.js.map +0 -1
- package/lib/browser/context-file-variable-label-provider.d.ts +0 -14
- package/lib/browser/context-file-variable-label-provider.d.ts.map +0 -1
- package/lib/browser/context-file-variable-label-provider.js +0 -63
- package/lib/browser/context-file-variable-label-provider.js.map +0 -1
- package/lib/browser/context-variable-label-provider.d.ts +0 -9
- package/lib/browser/context-variable-label-provider.d.ts.map +0 -1
- package/lib/browser/context-variable-label-provider.js +0 -55
- package/lib/browser/context-variable-label-provider.js.map +0 -1
- package/lib/browser/custom-agent-factory.d.ts +0 -4
- package/lib/browser/custom-agent-factory.d.ts.map +0 -1
- package/lib/browser/custom-agent-factory.js +0 -20
- package/lib/browser/custom-agent-factory.js.map +0 -1
- package/lib/browser/custom-agent-frontend-application-contribution.d.ts +0 -13
- package/lib/browser/custom-agent-frontend-application-contribution.d.ts.map +0 -1
- package/lib/browser/custom-agent-frontend-application-contribution.js +0 -83
- package/lib/browser/custom-agent-frontend-application-contribution.js.map +0 -1
- package/lib/browser/delegation-response-content.d.ts +0 -20
- package/lib/browser/delegation-response-content.d.ts.map +0 -1
- package/lib/browser/delegation-response-content.js +0 -47
- package/lib/browser/delegation-response-content.js.map +0 -1
- package/lib/browser/file-chat-variable-contribution.d.ts +0 -32
- package/lib/browser/file-chat-variable-contribution.d.ts.map +0 -1
- package/lib/browser/file-chat-variable-contribution.js +0 -241
- package/lib/browser/file-chat-variable-contribution.js.map +0 -1
- package/lib/browser/frontend-chat-service.d.ts +0 -15
- package/lib/browser/frontend-chat-service.d.ts.map +0 -1
- package/lib/browser/frontend-chat-service.js +0 -72
- package/lib/browser/frontend-chat-service.js.map +0 -1
- package/lib/browser/image-context-variable-contribution.d.ts +0 -27
- package/lib/browser/image-context-variable-contribution.d.ts.map +0 -1
- package/lib/browser/image-context-variable-contribution.js +0 -149
- package/lib/browser/image-context-variable-contribution.js.map +0 -1
- package/lib/browser/task-context-service.d.ts +0 -46
- package/lib/browser/task-context-service.d.ts.map +0 -1
- package/lib/browser/task-context-service.js +0 -256
- package/lib/browser/task-context-service.js.map +0 -1
- package/lib/browser/task-context-storage-service.d.ts +0 -19
- package/lib/browser/task-context-storage-service.d.ts.map +0 -1
- package/lib/browser/task-context-storage-service.js +0 -80
- package/lib/browser/task-context-storage-service.js.map +0 -1
- package/lib/browser/task-context-variable-contribution.d.ts +0 -20
- package/lib/browser/task-context-variable-contribution.d.ts.map +0 -1
- package/lib/browser/task-context-variable-contribution.js +0 -101
- package/lib/browser/task-context-variable-contribution.js.map +0 -1
- package/lib/browser/task-context-variable-label-provider.d.ts +0 -21
- package/lib/browser/task-context-variable-label-provider.d.ts.map +0 -1
- package/lib/browser/task-context-variable-label-provider.js +0 -83
- package/lib/browser/task-context-variable-label-provider.js.map +0 -1
- package/lib/browser/task-context-variable.d.ts +0 -3
- package/lib/browser/task-context-variable.d.ts.map +0 -1
- package/lib/browser/task-context-variable.js +0 -33
- package/lib/browser/task-context-variable.js.map +0 -1
- package/lib/common/ai-chat-preferences.d.ts +0 -5
- package/lib/common/ai-chat-preferences.d.ts.map +0 -1
- package/lib/common/ai-chat-preferences.js +0 -40
- package/lib/common/ai-chat-preferences.js.map +0 -1
- package/lib/common/change-set-element-deserializer.d.ts +0 -30
- package/lib/common/change-set-element-deserializer.d.ts.map +0 -1
- package/lib/common/change-set-element-deserializer.js +0 -81
- package/lib/common/change-set-element-deserializer.js.map +0 -1
- package/lib/common/change-set.d.ts +0 -85
- package/lib/common/change-set.d.ts.map +0 -1
- package/lib/common/change-set.js +0 -133
- package/lib/common/change-set.js.map +0 -1
- package/lib/common/chat-agent-service.d.ts +0 -46
- package/lib/common/chat-agent-service.d.ts.map +0 -1
- package/lib/common/chat-agent-service.js +0 -79
- package/lib/common/chat-agent-service.js.map +0 -1
- package/lib/common/chat-agents-variable-contribution.d.ts +0 -17
- package/lib/common/chat-agents-variable-contribution.d.ts.map +0 -1
- package/lib/common/chat-agents-variable-contribution.js +0 -67
- package/lib/common/chat-agents-variable-contribution.js.map +0 -1
- package/lib/common/chat-agents.d.ts +0 -138
- package/lib/common/chat-agents.d.ts.map +0 -1
- package/lib/common/chat-agents.js +0 -428
- package/lib/common/chat-agents.js.map +0 -1
- package/lib/common/chat-auto-save.spec.d.ts +0 -2
- package/lib/common/chat-auto-save.spec.d.ts.map +0 -1
- package/lib/common/chat-auto-save.spec.js +0 -304
- package/lib/common/chat-auto-save.spec.js.map +0 -1
- package/lib/common/chat-content-deserializer.d.ts +0 -161
- package/lib/common/chat-content-deserializer.d.ts.map +0 -1
- package/lib/common/chat-content-deserializer.js +0 -166
- package/lib/common/chat-content-deserializer.js.map +0 -1
- package/lib/common/chat-content-deserializer.spec.d.ts +0 -2
- package/lib/common/chat-content-deserializer.spec.d.ts.map +0 -1
- package/lib/common/chat-content-deserializer.spec.js +0 -307
- package/lib/common/chat-content-deserializer.spec.js.map +0 -1
- package/lib/common/chat-model-serialization.d.ts +0 -110
- package/lib/common/chat-model-serialization.d.ts.map +0 -1
- package/lib/common/chat-model-serialization.js +0 -20
- package/lib/common/chat-model-serialization.js.map +0 -1
- package/lib/common/chat-model-serialization.spec.d.ts +0 -2
- package/lib/common/chat-model-serialization.spec.d.ts.map +0 -1
- package/lib/common/chat-model-serialization.spec.js +0 -278
- package/lib/common/chat-model-serialization.spec.js.map +0 -1
- package/lib/common/chat-model-util.d.ts +0 -7
- package/lib/common/chat-model-util.d.ts.map +0 -1
- package/lib/common/chat-model-util.js +0 -50
- package/lib/common/chat-model-util.js.map +0 -1
- package/lib/common/chat-model.d.ts +0 -923
- package/lib/common/chat-model.d.ts.map +0 -1
- package/lib/common/chat-model.js +0 -1791
- package/lib/common/chat-model.js.map +0 -1
- package/lib/common/chat-request-parser.d.ts +0 -38
- package/lib/common/chat-request-parser.d.ts.map +0 -1
- package/lib/common/chat-request-parser.js +0 -230
- package/lib/common/chat-request-parser.js.map +0 -1
- package/lib/common/chat-request-parser.spec.d.ts +0 -2
- package/lib/common/chat-request-parser.spec.d.ts.map +0 -1
- package/lib/common/chat-request-parser.spec.js +0 -235
- package/lib/common/chat-request-parser.spec.js.map +0 -1
- package/lib/common/chat-service-deletion.spec.d.ts +0 -2
- package/lib/common/chat-service-deletion.spec.d.ts.map +0 -1
- package/lib/common/chat-service-deletion.spec.js +0 -221
- package/lib/common/chat-service-deletion.spec.js.map +0 -1
- package/lib/common/chat-service.d.ts +0 -153
- package/lib/common/chat-service.d.ts.map +0 -1
- package/lib/common/chat-service.js +0 -474
- package/lib/common/chat-service.js.map +0 -1
- package/lib/common/chat-session-naming-prompt-template.d.ts +0 -3
- package/lib/common/chat-session-naming-prompt-template.d.ts.map +0 -1
- package/lib/common/chat-session-naming-prompt-template.js +0 -31
- package/lib/common/chat-session-naming-prompt-template.js.map +0 -1
- package/lib/common/chat-session-naming-service.d.ts +0 -26
- package/lib/common/chat-session-naming-service.d.ts.map +0 -1
- package/lib/common/chat-session-naming-service.js +0 -119
- package/lib/common/chat-session-naming-service.js.map +0 -1
- package/lib/common/chat-session-store.d.ts +0 -43
- package/lib/common/chat-session-store.d.ts.map +0 -1
- package/lib/common/chat-session-store.js +0 -20
- package/lib/common/chat-session-store.js.map +0 -1
- package/lib/common/chat-session-summary-agent-prompt.d.ts +0 -8
- package/lib/common/chat-session-summary-agent-prompt.d.ts.map +0 -1
- package/lib/common/chat-session-summary-agent-prompt.js +0 -33
- package/lib/common/chat-session-summary-agent-prompt.js.map +0 -1
- package/lib/common/chat-session-summary-agent.d.ts +0 -16
- package/lib/common/chat-session-summary-agent.d.ts.map +0 -1
- package/lib/common/chat-session-summary-agent.js +0 -48
- package/lib/common/chat-session-summary-agent.js.map +0 -1
- package/lib/common/chat-string-utils.d.ts +0 -3
- package/lib/common/chat-string-utils.d.ts.map +0 -1
- package/lib/common/chat-string-utils.js +0 -27
- package/lib/common/chat-string-utils.js.map +0 -1
- package/lib/common/chat-tool-preferences.d.ts +0 -23
- package/lib/common/chat-tool-preferences.d.ts.map +0 -1
- package/lib/common/chat-tool-preferences.js +0 -68
- package/lib/common/chat-tool-preferences.js.map +0 -1
- package/lib/common/chat-tool-request-service.d.ts +0 -18
- package/lib/common/chat-tool-request-service.d.ts.map +0 -1
- package/lib/common/chat-tool-request-service.js +0 -52
- package/lib/common/chat-tool-request-service.js.map +0 -1
- package/lib/common/context-details-variable.d.ts +0 -9
- package/lib/common/context-details-variable.d.ts.map +0 -1
- package/lib/common/context-details-variable.js +0 -57
- package/lib/common/context-details-variable.js.map +0 -1
- package/lib/common/context-summary-variable.d.ts +0 -9
- package/lib/common/context-summary-variable.d.ts.map +0 -1
- package/lib/common/context-summary-variable.js +0 -57
- package/lib/common/context-summary-variable.js.map +0 -1
- package/lib/common/context-variables.d.ts +0 -4
- package/lib/common/context-variables.d.ts.map +0 -1
- package/lib/common/context-variables.js +0 -22
- package/lib/common/context-variables.js.map +0 -1
- package/lib/common/custom-chat-agent.d.ts +0 -10
- package/lib/common/custom-chat-agent.d.ts.map +0 -1
- package/lib/common/custom-chat-agent.js +0 -40
- package/lib/common/custom-chat-agent.js.map +0 -1
- package/lib/common/image-context-variable.d.ts +0 -29
- package/lib/common/image-context-variable.d.ts.map +0 -1
- package/lib/common/image-context-variable.js +0 -114
- package/lib/common/image-context-variable.js.map +0 -1
- package/lib/common/index.d.ts +0 -13
- package/lib/common/index.d.ts.map +0 -1
- package/lib/common/index.js +0 -31
- package/lib/common/index.js.map +0 -1
- package/lib/common/parse-contents-with-incomplete-parts.spec.d.ts +0 -2
- package/lib/common/parse-contents-with-incomplete-parts.spec.d.ts.map +0 -1
- package/lib/common/parse-contents-with-incomplete-parts.spec.js +0 -103
- package/lib/common/parse-contents-with-incomplete-parts.spec.js.map +0 -1
- package/lib/common/parse-contents.d.ts +0 -12
- package/lib/common/parse-contents.d.ts.map +0 -1
- package/lib/common/parse-contents.js +0 -107
- package/lib/common/parse-contents.js.map +0 -1
- package/lib/common/parse-contents.spec.d.ts +0 -10
- package/lib/common/parse-contents.spec.d.ts.map +0 -1
- package/lib/common/parse-contents.spec.js +0 -146
- package/lib/common/parse-contents.spec.js.map +0 -1
- package/lib/common/parsed-chat-request.d.ts +0 -66
- package/lib/common/parsed-chat-request.d.ts.map +0 -1
- package/lib/common/parsed-chat-request.js +0 -83
- package/lib/common/parsed-chat-request.js.map +0 -1
- package/lib/common/response-content-matcher.d.ts +0 -69
- package/lib/common/response-content-matcher.d.ts.map +0 -1
- package/lib/common/response-content-matcher.js +0 -97
- package/lib/common/response-content-matcher.js.map +0 -1
- package/lib/node/ai-chat-backend-module.d.ts +0 -4
- package/lib/node/ai-chat-backend-module.d.ts.map +0 -1
- package/lib/node/ai-chat-backend-module.js +0 -26
- package/lib/node/ai-chat-backend-module.js.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { URI } from '@theia/core';
|
|
2
|
-
import { LabelProvider, LabelProviderContribution } from '@theia/core/lib/browser';
|
|
3
|
-
import { ChangeSetFileService } from './change-set-file-service';
|
|
4
|
-
export declare class ContextFileVariableLabelProvider implements LabelProviderContribution {
|
|
5
|
-
protected readonly labelProvider: LabelProvider;
|
|
6
|
-
protected readonly changeSetFileService: ChangeSetFileService;
|
|
7
|
-
canHandle(element: object): number;
|
|
8
|
-
getIcon(element: object): string | undefined;
|
|
9
|
-
getName(element: object): string | undefined;
|
|
10
|
-
getLongName(element: object): string | undefined;
|
|
11
|
-
getDetails(element: object): string | undefined;
|
|
12
|
-
protected getUri(element: object): URI | undefined;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=context-file-variable-label-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-file-variable-label-provider.d.ts","sourceRoot":"","sources":["../../src/browser/context-file-variable-label-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC,OAAO,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qBACa,gCAAiC,YAAW,yBAAyB;IAG9E,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAGhD,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAE9D,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOlC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI5C,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI5C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAIhD,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI/C,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS;CAOrD"}
|
|
@@ -1,63 +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.ContextFileVariableLabelProvider = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const ai_core_1 = require("@theia/ai-core");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
24
|
-
const change_set_file_service_1 = require("./change-set-file-service");
|
|
25
|
-
let ContextFileVariableLabelProvider = class ContextFileVariableLabelProvider {
|
|
26
|
-
canHandle(element) {
|
|
27
|
-
if (ai_core_1.AIVariableResolutionRequest.is(element) && element.variable.name === 'file') {
|
|
28
|
-
return 10;
|
|
29
|
-
}
|
|
30
|
-
return -1;
|
|
31
|
-
}
|
|
32
|
-
getIcon(element) {
|
|
33
|
-
return this.labelProvider.getIcon(this.getUri(element));
|
|
34
|
-
}
|
|
35
|
-
getName(element) {
|
|
36
|
-
return this.labelProvider.getName(this.getUri(element));
|
|
37
|
-
}
|
|
38
|
-
getLongName(element) {
|
|
39
|
-
return this.labelProvider.getLongName(this.getUri(element));
|
|
40
|
-
}
|
|
41
|
-
getDetails(element) {
|
|
42
|
-
return this.labelProvider.getDetails(this.getUri(element));
|
|
43
|
-
}
|
|
44
|
-
getUri(element) {
|
|
45
|
-
if (!ai_core_1.AIVariableResolutionRequest.is(element)) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
return new core_1.URI(element.arg);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.ContextFileVariableLabelProvider = ContextFileVariableLabelProvider;
|
|
52
|
-
tslib_1.__decorate([
|
|
53
|
-
(0, inversify_1.inject)(browser_1.LabelProvider),
|
|
54
|
-
tslib_1.__metadata("design:type", browser_1.LabelProvider)
|
|
55
|
-
], ContextFileVariableLabelProvider.prototype, "labelProvider", void 0);
|
|
56
|
-
tslib_1.__decorate([
|
|
57
|
-
(0, inversify_1.inject)(change_set_file_service_1.ChangeSetFileService),
|
|
58
|
-
tslib_1.__metadata("design:type", change_set_file_service_1.ChangeSetFileService)
|
|
59
|
-
], ContextFileVariableLabelProvider.prototype, "changeSetFileService", void 0);
|
|
60
|
-
exports.ContextFileVariableLabelProvider = ContextFileVariableLabelProvider = tslib_1.__decorate([
|
|
61
|
-
(0, inversify_1.injectable)()
|
|
62
|
-
], ContextFileVariableLabelProvider);
|
|
63
|
-
//# sourceMappingURL=context-file-variable-label-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-file-variable-label-provider.js","sourceRoot":"","sources":["../../src/browser/context-file-variable-label-provider.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,4CAA6D;AAC7D,sCAAkC;AAClC,4DAAkE;AAClE,qDAAmF;AACnF,uEAAiE;AAG1D,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAQzC,SAAS,CAAC,OAAe;QACrB,IAAI,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC9E,OAAO,EAAE,CAAC;QACd,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED,OAAO,CAAC,OAAe;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,CAAC,CAAC;IAC7D,CAAC;IAED,OAAO,CAAC,OAAe;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,CAAC,CAAC;IAC7D,CAAC;IAED,WAAW,CAAC,OAAe;QACvB,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,CAAC,CAAC;IACjE,CAAC;IAED,UAAU,CAAC,OAAe;QACtB,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,CAAC,CAAC;IAChE,CAAC;IAES,MAAM,CAAC,OAAe;QAC5B,IAAI,CAAC,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,IAAI,UAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;CAEJ,CAAA;AAtCY,4EAAgC;AAGtB;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCACY,uBAAa;uEAAC;AAG7B;IADlB,IAAA,kBAAM,EAAC,8CAAoB,CAAC;sCACY,8CAAoB;8EAAC;2CANrD,gCAAgC;IAD5C,IAAA,sBAAU,GAAE;GACA,gCAAgC,CAsC5C"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { LabelProviderContribution } from '@theia/core/lib/browser';
|
|
2
|
-
export declare class ContextVariableLabelProvider implements LabelProviderContribution {
|
|
3
|
-
canHandle(element: object): number;
|
|
4
|
-
getIcon(element: object): string | undefined;
|
|
5
|
-
getName(element: object): string | undefined;
|
|
6
|
-
getLongName(element: object): string | undefined;
|
|
7
|
-
getDetails(element: object): string | undefined;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=context-variable-label-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-variable-label-provider.d.ts","sourceRoot":"","sources":["../../src/browser/context-variable-label-provider.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,qBACa,4BAA6B,YAAW,yBAAyB;IAE1E,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOlC,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAI5C,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAO5C,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAOhD,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;CAOlD"}
|
|
@@ -1,55 +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.ContextVariableLabelProvider = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const ai_core_1 = require("@theia/ai-core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
let ContextVariableLabelProvider = class ContextVariableLabelProvider {
|
|
23
|
-
canHandle(element) {
|
|
24
|
-
if (ai_core_1.AIVariableResolutionRequest.is(element)) {
|
|
25
|
-
return 1;
|
|
26
|
-
}
|
|
27
|
-
return -1;
|
|
28
|
-
}
|
|
29
|
-
getIcon(element) {
|
|
30
|
-
return 'codicon codicon-variable';
|
|
31
|
-
}
|
|
32
|
-
getName(element) {
|
|
33
|
-
if (!ai_core_1.AIVariableResolutionRequest.is(element)) {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
return element.variable.name;
|
|
37
|
-
}
|
|
38
|
-
getLongName(element) {
|
|
39
|
-
if (!ai_core_1.AIVariableResolutionRequest.is(element)) {
|
|
40
|
-
return undefined;
|
|
41
|
-
}
|
|
42
|
-
return element.variable.name + (element.arg ? ':' + element.arg : '');
|
|
43
|
-
}
|
|
44
|
-
getDetails(element) {
|
|
45
|
-
if (!ai_core_1.AIVariableResolutionRequest.is(element)) {
|
|
46
|
-
return undefined;
|
|
47
|
-
}
|
|
48
|
-
return element.arg;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
exports.ContextVariableLabelProvider = ContextVariableLabelProvider;
|
|
52
|
-
exports.ContextVariableLabelProvider = ContextVariableLabelProvider = tslib_1.__decorate([
|
|
53
|
-
(0, inversify_1.injectable)()
|
|
54
|
-
], ContextVariableLabelProvider);
|
|
55
|
-
//# sourceMappingURL=context-variable-label-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-variable-label-provider.js","sourceRoot":"","sources":["../../src/browser/context-variable-label-provider.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,4CAA6D;AAE7D,4DAA0D;AAGnD,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAErC,SAAS,CAAC,OAAe;QACrB,IAAI,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;YAC1C,OAAO,CAAC,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IAED,OAAO,CAAC,OAAe;QACnB,OAAO,0BAA0B,CAAC;IACtC,CAAC;IAED,OAAO,CAAC,OAAe;QACnB,IAAI,CAAC,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC;IACjC,CAAC;IAED,WAAW,CAAC,OAAe;QACvB,IAAI,CAAC,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,UAAU,CAAC,OAAe;QACtB,IAAI,CAAC,qCAA2B,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3C,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,OAAO,OAAO,CAAC,GAAG,CAAC;IACvB,CAAC;CAEJ,CAAA;AAlCY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAkCxC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CustomChatAgent } from '../common';
|
|
2
|
-
export declare const CustomAgentFactory: unique symbol;
|
|
3
|
-
export type CustomAgentFactory = (id: string, name: string, description: string, prompt: string, defaultLLM: string) => CustomChatAgent;
|
|
4
|
-
//# sourceMappingURL=custom-agent-factory.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-agent-factory.d.ts","sourceRoot":"","sources":["../../src/browser/custom-agent-factory.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,eAAe,CAAC"}
|
|
@@ -1,20 +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.CustomAgentFactory = void 0;
|
|
19
|
-
exports.CustomAgentFactory = Symbol('CustomAgentFactory');
|
|
20
|
-
//# sourceMappingURL=custom-agent-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-agent-factory.js","sourceRoot":"","sources":["../../src/browser/custom-agent-factory.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,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PromptFragmentCustomizationService } from '@theia/ai-core';
|
|
2
|
-
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
3
|
-
import { CustomAgentFactory } from './custom-agent-factory';
|
|
4
|
-
export declare class AICustomAgentsFrontendApplicationContribution implements FrontendApplicationContribution {
|
|
5
|
-
protected readonly customAgentFactory: CustomAgentFactory;
|
|
6
|
-
protected readonly customizationService: PromptFragmentCustomizationService;
|
|
7
|
-
private readonly agentService;
|
|
8
|
-
private readonly chatAgentService;
|
|
9
|
-
private knownCustomAgents;
|
|
10
|
-
onStart(): void;
|
|
11
|
-
onStop(): void;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=custom-agent-frontend-application-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-agent-frontend-application-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/custom-agent-frontend-application-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAwC,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAC1G,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAG1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,6CAA8C,YAAW,+BAA+B;IAEjG,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,kCAAkC,CAAC;IAG5E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAe;IAG5C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAmB;IAEpD,OAAO,CAAC,iBAAiB,CAAkD;IAC3E,OAAO,IAAI,IAAI;IAiCf,MAAM,IAAI,IAAI;CAEjB"}
|
|
@@ -1,83 +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.AICustomAgentsFrontendApplicationContribution = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const ai_core_1 = require("@theia/ai-core");
|
|
21
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
-
const common_1 = require("../common");
|
|
23
|
-
const custom_agent_factory_1 = require("./custom-agent-factory");
|
|
24
|
-
let AICustomAgentsFrontendApplicationContribution = class AICustomAgentsFrontendApplicationContribution {
|
|
25
|
-
constructor() {
|
|
26
|
-
this.knownCustomAgents = new Map();
|
|
27
|
-
}
|
|
28
|
-
onStart() {
|
|
29
|
-
var _a, _b;
|
|
30
|
-
(_a = this.customizationService) === null || _a === void 0 ? void 0 : _a.getCustomAgents().then(customAgents => {
|
|
31
|
-
customAgents.forEach(agent => {
|
|
32
|
-
this.customAgentFactory(agent.id, agent.name, agent.description, agent.prompt, agent.defaultLLM);
|
|
33
|
-
this.knownCustomAgents.set(agent.id, agent);
|
|
34
|
-
});
|
|
35
|
-
}).catch(e => {
|
|
36
|
-
console.error('Failed to load custom agents', e);
|
|
37
|
-
});
|
|
38
|
-
(_b = this.customizationService) === null || _b === void 0 ? void 0 : _b.onDidChangeCustomAgents(() => {
|
|
39
|
-
var _a;
|
|
40
|
-
(_a = this.customizationService) === null || _a === void 0 ? void 0 : _a.getCustomAgents().then(customAgents => {
|
|
41
|
-
const customAgentsToAdd = customAgents.filter(agent => !this.knownCustomAgents.has(agent.id) || !ai_core_1.CustomAgentDescription.equals(this.knownCustomAgents.get(agent.id), agent));
|
|
42
|
-
const customAgentIdsToRemove = [...this.knownCustomAgents.values()].filter(agent => !customAgents.find(a => ai_core_1.CustomAgentDescription.equals(a, agent))).map(a => a.id);
|
|
43
|
-
// delete first so we don't have to deal with the case where we add and remove the same agentId
|
|
44
|
-
customAgentIdsToRemove.forEach(id => {
|
|
45
|
-
this.chatAgentService.unregisterChatAgent(id);
|
|
46
|
-
this.agentService.unregisterAgent(id);
|
|
47
|
-
this.knownCustomAgents.delete(id);
|
|
48
|
-
});
|
|
49
|
-
customAgentsToAdd
|
|
50
|
-
.forEach(agent => {
|
|
51
|
-
this.customAgentFactory(agent.id, agent.name, agent.description, agent.prompt, agent.defaultLLM);
|
|
52
|
-
this.knownCustomAgents.set(agent.id, agent);
|
|
53
|
-
});
|
|
54
|
-
}).catch(e => {
|
|
55
|
-
console.error('Failed to load custom agents', e);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
onStop() {
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.AICustomAgentsFrontendApplicationContribution = AICustomAgentsFrontendApplicationContribution;
|
|
63
|
-
tslib_1.__decorate([
|
|
64
|
-
(0, inversify_1.inject)(custom_agent_factory_1.CustomAgentFactory),
|
|
65
|
-
tslib_1.__metadata("design:type", Function)
|
|
66
|
-
], AICustomAgentsFrontendApplicationContribution.prototype, "customAgentFactory", void 0);
|
|
67
|
-
tslib_1.__decorate([
|
|
68
|
-
(0, inversify_1.inject)(ai_core_1.PromptFragmentCustomizationService),
|
|
69
|
-
(0, inversify_1.optional)(),
|
|
70
|
-
tslib_1.__metadata("design:type", Object)
|
|
71
|
-
], AICustomAgentsFrontendApplicationContribution.prototype, "customizationService", void 0);
|
|
72
|
-
tslib_1.__decorate([
|
|
73
|
-
(0, inversify_1.inject)(ai_core_1.AgentService),
|
|
74
|
-
tslib_1.__metadata("design:type", Object)
|
|
75
|
-
], AICustomAgentsFrontendApplicationContribution.prototype, "agentService", void 0);
|
|
76
|
-
tslib_1.__decorate([
|
|
77
|
-
(0, inversify_1.inject)(common_1.ChatAgentService),
|
|
78
|
-
tslib_1.__metadata("design:type", Object)
|
|
79
|
-
], AICustomAgentsFrontendApplicationContribution.prototype, "chatAgentService", void 0);
|
|
80
|
-
exports.AICustomAgentsFrontendApplicationContribution = AICustomAgentsFrontendApplicationContribution = tslib_1.__decorate([
|
|
81
|
-
(0, inversify_1.injectable)()
|
|
82
|
-
], AICustomAgentsFrontendApplicationContribution);
|
|
83
|
-
//# sourceMappingURL=custom-agent-frontend-application-contribution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-agent-frontend-application-contribution.js","sourceRoot":"","sources":["../../src/browser/custom-agent-frontend-application-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4CAA0G;AAE1G,4DAA4E;AAC5E,sCAA6C;AAC7C,iEAA4D;AAGrD,IAAM,6CAA6C,GAAnD,MAAM,6CAA6C;IAAnD;QAaK,sBAAiB,GAAwC,IAAI,GAAG,EAAE,CAAC;IAoC/E,CAAC;IAnCG,OAAO;;QACH,MAAA,IAAI,CAAC,oBAAoB,0CAAE,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE;YAC7D,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACzB,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;gBACjG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;YAChD,CAAC,CAAC,CAAC;QACP,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;YACT,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QACH,MAAA,IAAI,CAAC,oBAAoB,0CAAE,uBAAuB,CAAC,GAAG,EAAE;;YACpD,MAAA,IAAI,CAAC,oBAAoB,0CAAE,eAAe,GAAG,IAAI,CAAC,YAAY,CAAC,EAAE;gBAC7D,MAAM,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAClD,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,gCAAsB,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAE,EAAE,KAAK,CAAC,CAAC,CAAC;gBAC3H,MAAM,sBAAsB,GAAG,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC/E,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,gCAAsB,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBAErF,+FAA+F;gBAC/F,sBAAsB,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE;oBAChC,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;oBAC9C,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;oBACtC,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;gBACtC,CAAC,CAAC,CAAC;gBACH,iBAAiB;qBACZ,OAAO,CAAC,KAAK,CAAC,EAAE;oBACb,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;oBACjG,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;gBAChD,CAAC,CAAC,CAAC;YACX,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE;gBACT,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAC;YACrD,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAED,MAAM;IACN,CAAC;CACJ,CAAA;AAjDY,sGAA6C;AAEnC;IADlB,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;yFAC+B;AAGvC;IADlB,IAAA,kBAAM,EAAC,4CAAkC,CAAC;IAAE,IAAA,oBAAQ,GAAE;;2FACqB;AAG3D;IADhB,IAAA,kBAAM,EAAC,sBAAY,CAAC;;mFACuB;AAG3B;IADhB,IAAA,kBAAM,EAAC,yBAAgB,CAAC;;uFAC2B;wDAX3C,6CAA6C;IADzD,IAAA,sBAAU,GAAE;GACA,6CAA6C,CAiDzD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ChatRequestInvocation, ChatResponseContent } from '../common';
|
|
2
|
-
/**
|
|
3
|
-
* Response Content created when an Agent delegates a prompt to another agent.
|
|
4
|
-
* Contains agent id, delegated prompt, and the response.
|
|
5
|
-
*/
|
|
6
|
-
export declare class DelegationResponseContent implements ChatResponseContent {
|
|
7
|
-
agentId: string;
|
|
8
|
-
prompt: string;
|
|
9
|
-
response: ChatRequestInvocation;
|
|
10
|
-
kind: string;
|
|
11
|
-
/**
|
|
12
|
-
* @param agentId The id of the agent to whom the task was delegated
|
|
13
|
-
* @param prompt The prompt that was delegated
|
|
14
|
-
* @param response The response from the delegated agent
|
|
15
|
-
*/
|
|
16
|
-
constructor(agentId: string, prompt: string, response: ChatRequestInvocation);
|
|
17
|
-
asString(): string | undefined;
|
|
18
|
-
}
|
|
19
|
-
export declare function isDelegationResponseContent(value: unknown): value is DelegationResponseContent;
|
|
20
|
-
//# sourceMappingURL=delegation-response-content.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delegation-response-content.d.ts","sourceRoot":"","sources":["../../src/browser/delegation-response-content.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAEvE;;;GAGG;AACH,qBAAa,yBAA0B,YAAW,mBAAmB;IAStD,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,qBAAqB;IAV1C,IAAI,SAAqB;IAEzB;;;;OAIG;gBAEQ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,qBAAqB;IAG1C,QAAQ,IAAI,MAAM,GAAG,SAAS;CAIjC;AAED,wBAAgB,2BAA2B,CACvC,KAAK,EAAE,OAAO,GACf,KAAK,IAAI,yBAAyB,CAKpC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDelegationResponseContent = exports.DelegationResponseContent = void 0;
|
|
4
|
-
// *****************************************************************************
|
|
5
|
-
// Copyright (C) 2025 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
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
/**
|
|
21
|
-
* Response Content created when an Agent delegates a prompt to another agent.
|
|
22
|
-
* Contains agent id, delegated prompt, and the response.
|
|
23
|
-
*/
|
|
24
|
-
class DelegationResponseContent {
|
|
25
|
-
/**
|
|
26
|
-
* @param agentId The id of the agent to whom the task was delegated
|
|
27
|
-
* @param prompt The prompt that was delegated
|
|
28
|
-
* @param response The response from the delegated agent
|
|
29
|
-
*/
|
|
30
|
-
constructor(agentId, prompt, response) {
|
|
31
|
-
this.agentId = agentId;
|
|
32
|
-
this.prompt = prompt;
|
|
33
|
-
this.response = response;
|
|
34
|
-
this.kind = 'AgentDelegation';
|
|
35
|
-
}
|
|
36
|
-
asString() {
|
|
37
|
-
// The delegation and response is already part of a tool call and therefore does not need to be repeated
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.DelegationResponseContent = DelegationResponseContent;
|
|
42
|
-
function isDelegationResponseContent(value) {
|
|
43
|
-
return ((0, core_1.isObject)(value) &&
|
|
44
|
-
value.kind === 'AgentDelegation');
|
|
45
|
-
}
|
|
46
|
-
exports.isDelegationResponseContent = isDelegationResponseContent;
|
|
47
|
-
//# sourceMappingURL=delegation-response-content.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delegation-response-content.js","sourceRoot":"","sources":["../../src/browser/delegation-response-content.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,sCAAuC;AAGvC;;;GAGG;AACH,MAAa,yBAAyB;IAGlC;;;;OAIG;IACH,YACW,OAAe,EACf,MAAc,EACd,QAA+B;QAF/B,YAAO,GAAP,OAAO,CAAQ;QACf,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAuB;QAV1C,SAAI,GAAG,iBAAiB,CAAC;IAWrB,CAAC;IAEL,QAAQ;QACJ,wGAAwG;QACxG,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAlBD,8DAkBC;AAED,SAAgB,2BAA2B,CACvC,KAAc;IAEd,OAAO,CACH,IAAA,eAAQ,EAA4B,KAAK,CAAC;QAC1C,KAAK,CAAC,IAAI,KAAK,iBAAiB,CACnC,CAAC;AACN,CAAC;AAPD,kEAOC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { AIVariableContext } from '@theia/ai-core';
|
|
2
|
-
import { AIVariableDropResult, FrontendVariableContribution, FrontendVariableService } from '@theia/ai-core/lib/browser';
|
|
3
|
-
import { ILogger, QuickInputService, URI } from '@theia/core';
|
|
4
|
-
import * as monaco from '@theia/monaco-editor-core';
|
|
5
|
-
import { QuickFileSelectService } from '@theia/file-search/lib/browser/quick-file-select-service';
|
|
6
|
-
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
7
|
-
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
8
|
-
export declare class FileChatVariableContribution implements FrontendVariableContribution {
|
|
9
|
-
protected readonly fileService: FileService;
|
|
10
|
-
protected readonly wsService: WorkspaceService;
|
|
11
|
-
protected readonly quickInputService: QuickInputService;
|
|
12
|
-
protected readonly quickFileSelectService: QuickFileSelectService;
|
|
13
|
-
protected readonly logger: ILogger;
|
|
14
|
-
registerVariables(service: FrontendVariableService): void;
|
|
15
|
-
protected triggerArgumentPicker(): Promise<string | undefined>;
|
|
16
|
-
protected imageArgumentPicker(): Promise<string | undefined>;
|
|
17
|
-
protected provideArgumentCompletionItems(model: monaco.editor.ITextModel, position: monaco.Position, matchString?: string): Promise<monaco.languages.CompletionItem[] | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if a file is an image based on its extension.
|
|
20
|
-
*/
|
|
21
|
-
protected isImageFile(filePath: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Determines the MIME type based on file extension.
|
|
24
|
-
*/
|
|
25
|
-
protected getMimeTypeFromExtension(filePath: string): string;
|
|
26
|
-
/**
|
|
27
|
-
* Converts a file to base64 data URL.
|
|
28
|
-
*/
|
|
29
|
-
protected fileToBase64(uri: URI): Promise<string>;
|
|
30
|
-
protected handleDrop(event: DragEvent, _: AIVariableContext): Promise<AIVariableDropResult | undefined>;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=file-chat-variable-contribution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-chat-variable-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/file-chat-variable-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAA2C,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAA+B,oBAAoB,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAEtJ,OAAO,EAAqB,OAAO,EAAO,iBAAiB,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEtF,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAqB,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AACrH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAKzE,qBACa,4BAA6B,YAAW,4BAA4B;IAE7E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAG/C,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAGxD,SAAS,CAAC,QAAQ,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAGlE,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAEnC,iBAAiB,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI;cAOzC,qBAAqB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;cAuBpD,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;cAmDlD,8BAA8B,CAC1C,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,EAC/B,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,EAAE,GAAG,SAAS,CAAC;IAkCzD;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAMhD;;OAEG;IACH,SAAS,CAAC,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAc5D;;OAEG;cACa,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;cAevC,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC;CA2ChH"}
|