@theia/ai-ide 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 +21 -21
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +3 -3
- package/src/browser/file-changeset-functions.spec.ts +13 -13
- package/src/browser/file-changeset-functions.ts +9 -9
- package/src/browser/frontend-module.ts +7 -4
- package/src/browser/ide-chat-welcome-message-provider.tsx +64 -70
- package/src/browser/remember-command-contribution.ts +105 -0
- package/src/common/ai-ide-preferences.ts +1 -1
- package/src/common/coder-replace-prompt-template.ts +8 -9
- package/src/common/command-prompt-template.ts +5 -5
- package/src/common/file-changeset-function-ids.ts +15 -1
- package/src/common/orchestrator-chat-agent.ts +2 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -41
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -333
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts +0 -18
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-service.js +0 -53
- package/lib/browser/ai-configuration/ai-configuration-service.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +0 -14
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +0 -67
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +0 -29
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +0 -118
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts +0 -13
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +0 -104
- package/lib/browser/ai-configuration/language-model-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts +0 -43
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/mcp-configuration-widget.js +0 -302
- package/lib/browser/ai-configuration/mcp-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -41
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -226
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -141
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -10
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js +0 -48
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -22
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -156
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -30
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -150
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -19
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -99
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
- package/lib/browser/ai-ide-activation-service.d.ts +0 -18
- package/lib/browser/ai-ide-activation-service.d.ts.map +0 -1
- package/lib/browser/ai-ide-activation-service.js +0 -71
- package/lib/browser/ai-ide-activation-service.js.map +0 -1
- package/lib/browser/ai-terminal-functions.d.ts +0 -13
- package/lib/browser/ai-terminal-functions.d.ts.map +0 -1
- package/lib/browser/ai-terminal-functions.js +0 -114
- package/lib/browser/ai-terminal-functions.js.map +0 -1
- package/lib/browser/app-tester-chat-agent.d.ts +0 -35
- package/lib/browser/app-tester-chat-agent.d.ts.map +0 -1
- package/lib/browser/app-tester-chat-agent.js +0 -142
- package/lib/browser/app-tester-chat-agent.js.map +0 -1
- package/lib/browser/app-tester-chat-functions.d.ts +0 -25
- package/lib/browser/app-tester-chat-functions.d.ts.map +0 -1
- package/lib/browser/app-tester-chat-functions.js +0 -170
- package/lib/browser/app-tester-chat-functions.js.map +0 -1
- package/lib/browser/app-tester-prompt-template.d.ts +0 -6
- package/lib/browser/app-tester-prompt-template.d.ts.map +0 -1
- package/lib/browser/app-tester-prompt-template.js +0 -83
- package/lib/browser/app-tester-prompt-template.js.map +0 -1
- package/lib/browser/architect-agent.d.ts +0 -15
- package/lib/browser/architect-agent.d.ts.map +0 -1
- package/lib/browser/architect-agent.js +0 -68
- package/lib/browser/architect-agent.js.map +0 -1
- package/lib/browser/coder-agent.d.ts +0 -15
- package/lib/browser/coder-agent.d.ts.map +0 -1
- package/lib/browser/coder-agent.js +0 -81
- package/lib/browser/coder-agent.js.map +0 -1
- package/lib/browser/context-file-validation-service-impl.d.ts +0 -13
- package/lib/browser/context-file-validation-service-impl.d.ts.map +0 -1
- package/lib/browser/context-file-validation-service-impl.js +0 -123
- package/lib/browser/context-file-validation-service-impl.js.map +0 -1
- package/lib/browser/context-file-validation-service-impl.spec.d.ts +0 -2
- package/lib/browser/context-file-validation-service-impl.spec.d.ts.map +0 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +0 -340
- package/lib/browser/context-file-validation-service-impl.spec.js.map +0 -1
- package/lib/browser/context-functions.d.ts +0 -16
- package/lib/browser/context-functions.d.ts.map +0 -1
- package/lib/browser/context-functions.js +0 -166
- package/lib/browser/context-functions.js.map +0 -1
- package/lib/browser/context-functions.spec.d.ts +0 -2
- package/lib/browser/context-functions.spec.d.ts.map +0 -1
- package/lib/browser/context-functions.spec.js +0 -213
- package/lib/browser/context-functions.spec.js.map +0 -1
- package/lib/browser/file-changeset-function.spec.d.ts +0 -2
- package/lib/browser/file-changeset-function.spec.d.ts.map +0 -1
- package/lib/browser/file-changeset-function.spec.js +0 -45
- package/lib/browser/file-changeset-function.spec.js.map +0 -1
- package/lib/browser/file-changeset-functions.d.ts +0 -87
- package/lib/browser/file-changeset-functions.d.ts.map +0 -1
- package/lib/browser/file-changeset-functions.js +0 -645
- package/lib/browser/file-changeset-functions.js.map +0 -1
- package/lib/browser/file-changeset-functions.spec.d.ts +0 -2
- package/lib/browser/file-changeset-functions.spec.d.ts.map +0 -1
- package/lib/browser/file-changeset-functions.spec.js +0 -179
- package/lib/browser/file-changeset-functions.spec.js.map +0 -1
- package/lib/browser/frontend-module.d.ts +0 -5
- package/lib/browser/frontend-module.d.ts.map +0 -1
- package/lib/browser/frontend-module.js +0 -218
- package/lib/browser/frontend-module.js.map +0 -1
- package/lib/browser/github-chat-agent.d.ts +0 -48
- package/lib/browser/github-chat-agent.d.ts.map +0 -1
- package/lib/browser/github-chat-agent.js +0 -222
- package/lib/browser/github-chat-agent.js.map +0 -1
- package/lib/browser/github-prompt-template.d.ts +0 -6
- package/lib/browser/github-prompt-template.d.ts.map +0 -1
- package/lib/browser/github-prompt-template.js +0 -53
- package/lib/browser/github-prompt-template.js.map +0 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +0 -15
- package/lib/browser/github-repo-variable-contribution.d.ts.map +0 -1
- package/lib/browser/github-repo-variable-contribution.js +0 -82
- package/lib/browser/github-repo-variable-contribution.js.map +0 -1
- package/lib/browser/ide-chat-welcome-message-provider.d.ts +0 -11
- package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +0 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +0 -142
- package/lib/browser/ide-chat-welcome-message-provider.js.map +0 -1
- package/lib/browser/project-info-agent.d.ts +0 -13
- package/lib/browser/project-info-agent.d.ts.map +0 -1
- package/lib/browser/project-info-agent.js +0 -45
- package/lib/browser/project-info-agent.js.map +0 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +0 -19
- package/lib/browser/summarize-session-command-contribution.d.ts.map +0 -1
- package/lib/browser/summarize-session-command-contribution.js +0 -118
- package/lib/browser/summarize-session-command-contribution.js.map +0 -1
- package/lib/browser/task-background-summary-variable.d.ts +0 -9
- package/lib/browser/task-background-summary-variable.d.ts.map +0 -1
- package/lib/browser/task-background-summary-variable.js +0 -60
- package/lib/browser/task-background-summary-variable.js.map +0 -1
- package/lib/browser/task-context-agent.d.ts +0 -13
- package/lib/browser/task-context-agent.d.ts.map +0 -1
- package/lib/browser/task-context-agent.js +0 -45
- package/lib/browser/task-context-agent.js.map +0 -1
- package/lib/browser/task-context-file-storage-service.d.ts +0 -40
- package/lib/browser/task-context-file-storage-service.d.ts.map +0 -1
- package/lib/browser/task-context-file-storage-service.js +0 -232
- package/lib/browser/task-context-file-storage-service.js.map +0 -1
- package/lib/browser/template-preference-contribution.d.ts +0 -17
- package/lib/browser/template-preference-contribution.d.ts.map +0 -1
- package/lib/browser/template-preference-contribution.js +0 -94
- package/lib/browser/template-preference-contribution.js.map +0 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts +0 -2
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts.map +0 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +0 -52
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +0 -1
- package/lib/browser/workspace-functions.d.ts +0 -78
- package/lib/browser/workspace-functions.d.ts.map +0 -1
- package/lib/browser/workspace-functions.js +0 -697
- package/lib/browser/workspace-functions.js.map +0 -1
- package/lib/browser/workspace-functions.spec.d.ts +0 -2
- package/lib/browser/workspace-functions.spec.d.ts.map +0 -1
- package/lib/browser/workspace-functions.spec.js +0 -161
- package/lib/browser/workspace-functions.spec.js.map +0 -1
- package/lib/browser/workspace-launch-provider.d.ts +0 -24
- package/lib/browser/workspace-launch-provider.d.ts.map +0 -1
- package/lib/browser/workspace-launch-provider.js +0 -216
- package/lib/browser/workspace-launch-provider.js.map +0 -1
- package/lib/browser/workspace-launch-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-launch-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-launch-provider.spec.js +0 -245
- package/lib/browser/workspace-launch-provider.spec.js.map +0 -1
- package/lib/browser/workspace-search-provider.d.ts +0 -15
- package/lib/browser/workspace-search-provider.d.ts.map +0 -1
- package/lib/browser/workspace-search-provider.js +0 -204
- package/lib/browser/workspace-search-provider.js.map +0 -1
- package/lib/browser/workspace-search-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-search-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-search-provider.spec.js +0 -82
- package/lib/browser/workspace-search-provider.spec.js.map +0 -1
- package/lib/browser/workspace-task-provider.d.ts +0 -15
- package/lib/browser/workspace-task-provider.d.ts.map +0 -1
- package/lib/browser/workspace-task-provider.js +0 -138
- package/lib/browser/workspace-task-provider.js.map +0 -1
- package/lib/browser/workspace-task-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-task-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-task-provider.spec.js +0 -109
- package/lib/browser/workspace-task-provider.spec.js.map +0 -1
- package/lib/common/ai-configuration-preferences.d.ts +0 -8
- package/lib/common/ai-configuration-preferences.d.ts.map +0 -1
- package/lib/common/ai-configuration-preferences.js +0 -41
- package/lib/common/ai-configuration-preferences.js.map +0 -1
- package/lib/common/ai-ide-preferences.d.ts +0 -5
- package/lib/common/ai-ide-preferences.d.ts.map +0 -1
- package/lib/common/ai-ide-preferences.js +0 -53
- package/lib/common/ai-ide-preferences.js.map +0 -1
- package/lib/common/ai-terminal-functions.d.ts +0 -2
- package/lib/common/ai-terminal-functions.d.ts.map +0 -1
- package/lib/common/ai-terminal-functions.js +0 -20
- package/lib/common/ai-terminal-functions.js.map +0 -1
- package/lib/common/app-tester-chat-functions.d.ts +0 -5
- package/lib/common/app-tester-chat-functions.d.ts.map +0 -1
- package/lib/common/app-tester-chat-functions.js +0 -23
- package/lib/common/app-tester-chat-functions.js.map +0 -1
- package/lib/common/architect-prompt-template.d.ts +0 -3
- package/lib/common/architect-prompt-template.d.ts.map +0 -1
- package/lib/common/architect-prompt-template.js +0 -81
- package/lib/common/architect-prompt-template.js.map +0 -1
- package/lib/common/browser-automation-protocol.d.ts +0 -15
- package/lib/common/browser-automation-protocol.d.ts.map +0 -1
- package/lib/common/browser-automation-protocol.js +0 -22
- package/lib/common/browser-automation-protocol.js.map +0 -1
- package/lib/common/coder-replace-prompt-template.d.ts +0 -11
- package/lib/common/coder-replace-prompt-template.d.ts.map +0 -1
- package/lib/common/coder-replace-prompt-template.js +0 -295
- package/lib/common/coder-replace-prompt-template.js.map +0 -1
- package/lib/common/command-chat-agents.d.ts +0 -36
- package/lib/common/command-chat-agents.d.ts.map +0 -1
- package/lib/common/command-chat-agents.js +0 -122
- package/lib/common/command-chat-agents.js.map +0 -1
- package/lib/common/command-prompt-template.d.ts +0 -3
- package/lib/common/command-prompt-template.d.ts.map +0 -1
- package/lib/common/command-prompt-template.js +0 -226
- package/lib/common/command-prompt-template.js.map +0 -1
- package/lib/common/context-files-variable.d.ts +0 -9
- package/lib/common/context-files-variable.d.ts.map +0 -1
- package/lib/common/context-files-variable.js +0 -52
- package/lib/common/context-files-variable.js.map +0 -1
- package/lib/common/context-functions.d.ts +0 -4
- package/lib/common/context-functions.d.ts.map +0 -1
- package/lib/common/context-functions.js +0 -22
- package/lib/common/context-functions.js.map +0 -1
- package/lib/common/context-variables.d.ts +0 -3
- package/lib/common/context-variables.d.ts.map +0 -1
- package/lib/common/context-variables.js +0 -21
- package/lib/common/context-variables.js.map +0 -1
- package/lib/common/file-changeset-function-ids.d.ts +0 -8
- package/lib/common/file-changeset-function-ids.d.ts.map +0 -1
- package/lib/common/file-changeset-function-ids.js +0 -26
- package/lib/common/file-changeset-function-ids.js.map +0 -1
- package/lib/common/github-repo-protocol.d.ts +0 -15
- package/lib/common/github-repo-protocol.d.ts.map +0 -1
- package/lib/common/github-repo-protocol.js +0 -21
- package/lib/common/github-repo-protocol.js.map +0 -1
- package/lib/common/orchestrator-chat-agent.d.ts +0 -36
- package/lib/common/orchestrator-chat-agent.d.ts.map +0 -1
- package/lib/common/orchestrator-chat-agent.js +0 -167
- package/lib/common/orchestrator-chat-agent.js.map +0 -1
- package/lib/common/orchestrator-prompt-template.d.ts +0 -3
- package/lib/common/orchestrator-prompt-template.d.ts.map +0 -1
- package/lib/common/orchestrator-prompt-template.js +0 -55
- package/lib/common/orchestrator-prompt-template.js.map +0 -1
- package/lib/common/project-info-prompt-template.d.ts +0 -6
- package/lib/common/project-info-prompt-template.d.ts.map +0 -1
- package/lib/common/project-info-prompt-template.js +0 -145
- package/lib/common/project-info-prompt-template.js.map +0 -1
- package/lib/common/summarize-session-commands.d.ts +0 -4
- package/lib/common/summarize-session-commands.d.ts.map +0 -1
- package/lib/common/summarize-session-commands.js +0 -28
- package/lib/common/summarize-session-commands.js.map +0 -1
- package/lib/common/task-context-prompt-template.d.ts +0 -8
- package/lib/common/task-context-prompt-template.d.ts.map +0 -1
- package/lib/common/task-context-prompt-template.js +0 -217
- package/lib/common/task-context-prompt-template.js.map +0 -1
- package/lib/common/universal-chat-agent.d.ts +0 -17
- package/lib/common/universal-chat-agent.d.ts.map +0 -1
- package/lib/common/universal-chat-agent.js +0 -47
- package/lib/common/universal-chat-agent.js.map +0 -1
- package/lib/common/universal-prompt-template.d.ts +0 -4
- package/lib/common/universal-prompt-template.d.ts.map +0 -1
- package/lib/common/universal-prompt-template.js +0 -32
- package/lib/common/universal-prompt-template.js.map +0 -1
- package/lib/common/workspace-functions.d.ts +0 -12
- package/lib/common/workspace-functions.d.ts.map +0 -1
- package/lib/common/workspace-functions.js +0 -30
- package/lib/common/workspace-functions.js.map +0 -1
- package/lib/common/workspace-preferences.d.ts +0 -10
- package/lib/common/workspace-preferences.d.ts.map +0 -1
- package/lib/common/workspace-preferences.js +0 -89
- package/lib/common/workspace-preferences.js.map +0 -1
- package/lib/common/workspace-search-provider-util.d.ts +0 -17
- package/lib/common/workspace-search-provider-util.d.ts.map +0 -1
- package/lib/common/workspace-search-provider-util.js +0 -51
- package/lib/common/workspace-search-provider-util.js.map +0 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts +0 -18
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +0 -1
- package/lib/node/app-tester-agent/browser-automation-impl.js +0 -96
- package/lib/node/app-tester-agent/browser-automation-impl.js.map +0 -1
- package/lib/node/backend-module.d.ts +0 -4
- package/lib/node/backend-module.d.ts.map +0 -1
- package/lib/node/backend-module.js +0 -45
- package/lib/node/backend-module.js.map +0 -1
- package/lib/node/github-repo-service-impl.d.ts +0 -7
- package/lib/node/github-repo-service-impl.d.ts.map +0 -1
- package/lib/node/github-repo-service-impl.js +0 -86
- package/lib/node/github-repo-service-impl.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,302 +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 AIMCPConfigurationWidget_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.AIMCPConfigurationWidget = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
-
const React = require("@theia/core/shared/react");
|
|
24
|
-
const hover_service_1 = require("@theia/core/lib/browser/hover-service");
|
|
25
|
-
const mcp_server_manager_1 = require("@theia/ai-mcp/lib/common/mcp-server-manager");
|
|
26
|
-
const core_1 = require("@theia/core");
|
|
27
|
-
const prompt_variable_contribution_1 = require("@theia/ai-core/lib/common/prompt-variable-contribution");
|
|
28
|
-
let AIMCPConfigurationWidget = AIMCPConfigurationWidget_1 = class AIMCPConfigurationWidget extends browser_1.ReactWidget {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.servers = [];
|
|
32
|
-
this.expandedTools = {};
|
|
33
|
-
}
|
|
34
|
-
init() {
|
|
35
|
-
this.id = AIMCPConfigurationWidget_1.ID;
|
|
36
|
-
this.title.label = AIMCPConfigurationWidget_1.LABEL;
|
|
37
|
-
this.title.closable = false;
|
|
38
|
-
this.toDispose.push(this.mcpFrontendNotificationService.onDidUpdateMCPServers(async () => {
|
|
39
|
-
this.loadServers();
|
|
40
|
-
}));
|
|
41
|
-
this.loadServers();
|
|
42
|
-
}
|
|
43
|
-
async loadServers() {
|
|
44
|
-
const serverNames = await this.mcpFrontendService.getServerNames();
|
|
45
|
-
const descriptions = await Promise.all(serverNames.map(name => this.mcpFrontendService.getServerDescription(name)));
|
|
46
|
-
this.servers = descriptions.filter((desc) => desc !== undefined);
|
|
47
|
-
this.update();
|
|
48
|
-
}
|
|
49
|
-
getStatusColor(status) {
|
|
50
|
-
if (!status) {
|
|
51
|
-
return { bg: 'var(--theia-descriptionForeground)', fg: 'white' };
|
|
52
|
-
}
|
|
53
|
-
switch (status) {
|
|
54
|
-
case mcp_server_manager_1.MCPServerStatus.Running:
|
|
55
|
-
case mcp_server_manager_1.MCPServerStatus.Connected:
|
|
56
|
-
return { bg: 'var(--theia-successBackground)', fg: 'var(--theia-successForeground)' };
|
|
57
|
-
case mcp_server_manager_1.MCPServerStatus.Starting:
|
|
58
|
-
case mcp_server_manager_1.MCPServerStatus.Connecting:
|
|
59
|
-
return { bg: 'var(--theia-warningBackground)', fg: 'var(--theia-warningForeground)' };
|
|
60
|
-
case mcp_server_manager_1.MCPServerStatus.Errored:
|
|
61
|
-
return { bg: 'var(--theia-errorBackground)', fg: 'var(--theia-errorForeground)' };
|
|
62
|
-
case mcp_server_manager_1.MCPServerStatus.NotRunning:
|
|
63
|
-
case mcp_server_manager_1.MCPServerStatus.NotConnected:
|
|
64
|
-
default:
|
|
65
|
-
return { bg: 'var(--theia-inputValidation-infoBackground)', fg: 'var(--theia-inputValidation-infoForeground)' };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
showErrorHover(spanRef, error) {
|
|
69
|
-
this.hoverService.requestHover({ content: error, target: spanRef.current, position: 'left' });
|
|
70
|
-
}
|
|
71
|
-
hideErrorHover() {
|
|
72
|
-
this.hoverService.cancelHover();
|
|
73
|
-
}
|
|
74
|
-
async handleStartServer(serverName) {
|
|
75
|
-
await this.mcpFrontendService.startServer(serverName);
|
|
76
|
-
}
|
|
77
|
-
async handleStopServer(serverName) {
|
|
78
|
-
await this.mcpFrontendService.stopServer(serverName);
|
|
79
|
-
}
|
|
80
|
-
renderButton(text, title, onClick, className, style) {
|
|
81
|
-
return (React.createElement("button", { className: className, title: title, onClick: onClick, style: style }, text));
|
|
82
|
-
}
|
|
83
|
-
renderStatusBadge(server) {
|
|
84
|
-
const colors = this.getStatusColor(server.status);
|
|
85
|
-
let displayStatus = server.status;
|
|
86
|
-
if (!displayStatus) {
|
|
87
|
-
displayStatus = (0, mcp_server_manager_1.isRemoteMCPServerDescription)(server) ? mcp_server_manager_1.MCPServerStatus.NotConnected : mcp_server_manager_1.MCPServerStatus.NotRunning;
|
|
88
|
-
}
|
|
89
|
-
const spanRef = React.createRef();
|
|
90
|
-
const error = server.error;
|
|
91
|
-
return (React.createElement("div", { className: "mcp-status-container" },
|
|
92
|
-
React.createElement("span", { className: "mcp-status-badge", style: {
|
|
93
|
-
backgroundColor: colors.bg,
|
|
94
|
-
color: colors.fg
|
|
95
|
-
} }, displayStatus),
|
|
96
|
-
error && (React.createElement("span", { onMouseEnter: () => this.showErrorHover(spanRef, error), onMouseLeave: () => this.hideErrorHover(), ref: spanRef, className: "mcp-error-indicator" }, "?"))));
|
|
97
|
-
}
|
|
98
|
-
renderServerHeader(server) {
|
|
99
|
-
return (React.createElement("div", { className: "mcp-server-header" },
|
|
100
|
-
React.createElement("div", { className: "mcp-server-name" }, server.name),
|
|
101
|
-
this.renderStatusBadge(server)));
|
|
102
|
-
}
|
|
103
|
-
renderCommandSection(server) {
|
|
104
|
-
if (!(0, mcp_server_manager_1.isLocalMCPServerDescription)(server)) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
108
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/command', 'Command: ')),
|
|
109
|
-
React.createElement("code", { className: "mcp-code-block" }, server.command)));
|
|
110
|
-
}
|
|
111
|
-
renderArgumentsSection(server) {
|
|
112
|
-
if (!(0, mcp_server_manager_1.isLocalMCPServerDescription)(server) || !server.args || server.args.length === 0) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
116
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/arguments', 'Arguments: ')),
|
|
117
|
-
React.createElement("code", { className: "mcp-code-block" }, server.args.join(' '))));
|
|
118
|
-
}
|
|
119
|
-
renderEnvironmentSection(server) {
|
|
120
|
-
if (!(0, mcp_server_manager_1.isLocalMCPServerDescription)(server) || !server.env || Object.keys(server.env).length === 0) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
124
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/environmentVariables', 'Environment Variables: ')),
|
|
125
|
-
React.createElement("div", { className: "mcp-env-block" }, Object.entries(server.env).map(([key, value]) => (React.createElement("div", { key: key },
|
|
126
|
-
key,
|
|
127
|
-
"=",
|
|
128
|
-
key.toLowerCase().includes('token') ? '******' : String(value)))))));
|
|
129
|
-
}
|
|
130
|
-
renderServerUrlSection(server) {
|
|
131
|
-
if (!(0, mcp_server_manager_1.isRemoteMCPServerDescription)(server)) {
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
135
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/serverUrl', 'Server URL: ')),
|
|
136
|
-
React.createElement("code", { className: "mcp-code-block" }, server.serverUrl)));
|
|
137
|
-
}
|
|
138
|
-
renderServerAuthTokenHeaderSection(server) {
|
|
139
|
-
if (!(0, mcp_server_manager_1.isRemoteMCPServerDescription)(server) || !server.serverAuthTokenHeader) {
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
143
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/serverAuthTokenHeader', 'Authentication Header Name: ')),
|
|
144
|
-
React.createElement("code", { className: "mcp-code-block" }, server.serverAuthTokenHeader)));
|
|
145
|
-
}
|
|
146
|
-
renderServerAuthTokenSection(server) {
|
|
147
|
-
if (!(0, mcp_server_manager_1.isRemoteMCPServerDescription)(server) || !server.serverAuthToken) {
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
151
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/serverAuthToken', 'Authentication Token: ')),
|
|
152
|
-
React.createElement("code", { className: "mcp-code-block" }, "******")));
|
|
153
|
-
}
|
|
154
|
-
renderServerHeadersSection(server) {
|
|
155
|
-
if (!(0, mcp_server_manager_1.isRemoteMCPServerDescription)(server) || !server.headers) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
159
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/headers', 'Headers: ')),
|
|
160
|
-
React.createElement("div", { className: "mcp-env-block" }, Object.entries(server.headers).map(([key, value]) => (React.createElement("div", { key: key },
|
|
161
|
-
key,
|
|
162
|
-
"=",
|
|
163
|
-
(key.toLowerCase().includes('token') || key.toLowerCase().includes('authorization')) ? '******' : String(value)))))));
|
|
164
|
-
}
|
|
165
|
-
renderAutostartSection(server) {
|
|
166
|
-
return (React.createElement("div", { className: "mcp-server-section" },
|
|
167
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/autostart', 'Autostart: ')),
|
|
168
|
-
React.createElement("span", { className: "mcp-autostart-badge", style: {
|
|
169
|
-
backgroundColor: server.autostart ? 'var(--theia-successBackground)' : 'var(--theia-errorBackground)',
|
|
170
|
-
color: server.autostart ? 'var(--theia-successForeground)' : 'var(--theia-errorForeground)',
|
|
171
|
-
} }, server.autostart ? core_1.nls.localize('theia/ai/mcpConfiguration/enabled', 'Enabled') : core_1.nls.localize('theia/ai/mcpConfiguration/disabled', 'Disabled'))));
|
|
172
|
-
}
|
|
173
|
-
renderToolsSection(server) {
|
|
174
|
-
if (!server.tools || server.tools.length === 0) {
|
|
175
|
-
return;
|
|
176
|
-
}
|
|
177
|
-
const isToolsExpanded = this.expandedTools[server.name] || false;
|
|
178
|
-
return (React.createElement("div", { className: "mcp-tools-section" },
|
|
179
|
-
React.createElement("div", { style: { display: 'flex', alignItems: 'center' }, onClick: () => this.toggleTools(server.name) },
|
|
180
|
-
React.createElement("div", { className: "mcp-toggle-indicator", style: { display: 'flex' } },
|
|
181
|
-
React.createElement("span", { style: {
|
|
182
|
-
display: 'inline-block',
|
|
183
|
-
transition: 'transform 0.2s ease',
|
|
184
|
-
fontSize: '12px'
|
|
185
|
-
} }, isToolsExpanded ? '▼' : '►')),
|
|
186
|
-
React.createElement("div", { style: { flexGrow: 1 } },
|
|
187
|
-
React.createElement("span", { className: "mcp-section-label" }, core_1.nls.localize('theia/ai/mcpConfiguration/tools', 'Tools: '))),
|
|
188
|
-
React.createElement("div", { style: { display: 'flex', gap: '4px' } },
|
|
189
|
-
this.renderButton(React.createElement("i", { className: "codicon codicon-versions" }), core_1.nls.localize('theia/ai/mcpConfiguration/copyAllList', 'Copy all (list of all tools)'), e => {
|
|
190
|
-
e.stopPropagation();
|
|
191
|
-
if (server.tools) {
|
|
192
|
-
const toolNames = server.tools.map(tool => `~{mcp_${server.name}_${tool.name}}`).join('\n');
|
|
193
|
-
navigator.clipboard.writeText(toolNames);
|
|
194
|
-
this.messageService.info(core_1.nls.localize('theia/ai/mcpConfiguration/copiedAllList', 'Copied all tools to clipboard (list of all tools)'));
|
|
195
|
-
}
|
|
196
|
-
}, 'mcp-copy-tool-button'),
|
|
197
|
-
this.renderButton(React.createElement("i", { className: "codicon codicon-bracket" }), core_1.nls.localize('theia/ai/mcpConfiguration/copyForPromptTemplate', 'Copy all for prompt template (single prompt fragment with all tools)'), e => {
|
|
198
|
-
e.stopPropagation();
|
|
199
|
-
navigator.clipboard.writeText(`{{${prompt_variable_contribution_1.PROMPT_VARIABLE.name}:${this.mcpFrontendService.getPromptTemplateId(server.name)}}}`);
|
|
200
|
-
this.messageService.info(core_1.nls.localize('theia/ai/mcpConfiguration/copiedForPromptTemplate', 'Copied all tools to clipboard for prompt template \
|
|
201
|
-
(single prompt fragment with all tools)'));
|
|
202
|
-
}, 'mcp-copy-tool-button'),
|
|
203
|
-
this.renderButton(React.createElement("i", { className: "codicon codicon-copy" }), core_1.nls.localize('theia/ai/mcpConfiguration/copyAllSingle', 'Copy all for chat (single prompt fragment with all tools)'), e => {
|
|
204
|
-
e.stopPropagation();
|
|
205
|
-
navigator.clipboard.writeText(`#${prompt_variable_contribution_1.PROMPT_VARIABLE.name}:${this.mcpFrontendService.getPromptTemplateId(server.name)}`);
|
|
206
|
-
this.messageService.info(core_1.nls.localize('theia/ai/mcpConfiguration/copiedAllSingle', 'Copied all tools to clipboard (single prompt fragment with \
|
|
207
|
-
all tools)'));
|
|
208
|
-
}, 'mcp-copy-tool-button'))),
|
|
209
|
-
isToolsExpanded && (React.createElement("div", { className: "mcp-tools-list" }, server.tools.map(tool => (React.createElement("div", { key: tool.name, style: { display: 'flex', alignItems: 'center' } },
|
|
210
|
-
React.createElement("div", { style: { flexGrow: 1 } },
|
|
211
|
-
React.createElement("strong", null,
|
|
212
|
-
tool.name,
|
|
213
|
-
":"),
|
|
214
|
-
" ",
|
|
215
|
-
tool.description),
|
|
216
|
-
React.createElement("div", { style: { display: 'flex', gap: '4px' } }, this.renderButton(React.createElement("i", { className: "codicon codicon-copy" }), core_1.nls.localize('theia/ai/mcpConfiguration/copyForPrompt', 'Copy tool (for chat or prompt template)'), e => {
|
|
217
|
-
e.stopPropagation();
|
|
218
|
-
const copied = `~{mcp_${server.name}_${tool.name}}`;
|
|
219
|
-
navigator.clipboard.writeText(copied);
|
|
220
|
-
this.messageService.info(`Copied ${copied} to clipboard (for chat or prompt template)`);
|
|
221
|
-
}, 'mcp-copy-tool-button')))))))));
|
|
222
|
-
}
|
|
223
|
-
toggleTools(serverName) {
|
|
224
|
-
this.expandedTools[serverName] = !this.expandedTools[serverName];
|
|
225
|
-
this.update();
|
|
226
|
-
}
|
|
227
|
-
renderServerControls(server) {
|
|
228
|
-
const isStoppable = server.status === mcp_server_manager_1.MCPServerStatus.Running
|
|
229
|
-
|| server.status === mcp_server_manager_1.MCPServerStatus.Connected
|
|
230
|
-
|| server.status === mcp_server_manager_1.MCPServerStatus.Starting
|
|
231
|
-
|| server.status === mcp_server_manager_1.MCPServerStatus.Connecting;
|
|
232
|
-
const isStartable = server.status === mcp_server_manager_1.MCPServerStatus.NotRunning
|
|
233
|
-
|| server.status === mcp_server_manager_1.MCPServerStatus.NotConnected
|
|
234
|
-
|| server.status === mcp_server_manager_1.MCPServerStatus.Errored;
|
|
235
|
-
const startLabel = (0, mcp_server_manager_1.isRemoteMCPServerDescription)(server)
|
|
236
|
-
? core_1.nls.localize('theia/ai/mcpConfiguration/connectServer', 'Connnect')
|
|
237
|
-
: core_1.nls.localize('theia/ai/mcpConfiguration/startServer', 'Start Server');
|
|
238
|
-
const stopLabel = (0, mcp_server_manager_1.isRemoteMCPServerDescription)(server)
|
|
239
|
-
? core_1.nls.localize('theia/ai/mcpConfiguration/disconnectServer', 'Disconnnect')
|
|
240
|
-
: core_1.nls.localize('theia/ai/mcpConfiguration/stopServer', 'Stop Server');
|
|
241
|
-
return (React.createElement("div", { className: "mcp-server-controls" },
|
|
242
|
-
isStartable && this.renderButton(React.createElement(React.Fragment, null,
|
|
243
|
-
React.createElement("i", { className: "codicon codicon-play" }),
|
|
244
|
-
" ",
|
|
245
|
-
startLabel), startLabel, () => this.handleStartServer(server.name), 'mcp-server-button play-button'),
|
|
246
|
-
isStoppable && this.renderButton(React.createElement(React.Fragment, null,
|
|
247
|
-
React.createElement("i", { className: "codicon codicon-close" }),
|
|
248
|
-
" ",
|
|
249
|
-
stopLabel), stopLabel, () => this.handleStopServer(server.name), 'mcp-server-button stop-button')));
|
|
250
|
-
}
|
|
251
|
-
renderServerCard(server) {
|
|
252
|
-
return (React.createElement("div", { key: server.name, className: "mcp-server-card" },
|
|
253
|
-
this.renderServerHeader(server),
|
|
254
|
-
this.renderCommandSection(server),
|
|
255
|
-
this.renderArgumentsSection(server),
|
|
256
|
-
this.renderEnvironmentSection(server),
|
|
257
|
-
this.renderServerUrlSection(server),
|
|
258
|
-
this.renderServerAuthTokenHeaderSection(server),
|
|
259
|
-
this.renderServerAuthTokenSection(server),
|
|
260
|
-
this.renderServerHeadersSection(server),
|
|
261
|
-
this.renderAutostartSection(server),
|
|
262
|
-
this.renderToolsSection(server),
|
|
263
|
-
this.renderServerControls(server)));
|
|
264
|
-
}
|
|
265
|
-
render() {
|
|
266
|
-
if (this.servers.length === 0) {
|
|
267
|
-
return (React.createElement("div", { className: "mcp-no-servers" }, core_1.nls.localize('theia/ai/mcpConfiguration/noServers', 'No MCP servers configured')));
|
|
268
|
-
}
|
|
269
|
-
return (React.createElement("div", { className: "mcp-configuration-container" },
|
|
270
|
-
React.createElement("h2", { className: "mcp-configuration-title" }, core_1.nls.localize('theia/ai/mcpConfiguration/serverConfigurations', 'MCP Server Configurations')),
|
|
271
|
-
this.servers.map(server => this.renderServerCard(server))));
|
|
272
|
-
}
|
|
273
|
-
};
|
|
274
|
-
exports.AIMCPConfigurationWidget = AIMCPConfigurationWidget;
|
|
275
|
-
AIMCPConfigurationWidget.ID = 'ai-mcp-configuration-container-widget';
|
|
276
|
-
AIMCPConfigurationWidget.LABEL = core_1.nls.localize('theia/ai/mcpConfiguration/widgetLabel', 'MCP Servers');
|
|
277
|
-
tslib_1.__decorate([
|
|
278
|
-
(0, inversify_1.inject)(mcp_server_manager_1.MCPFrontendService),
|
|
279
|
-
tslib_1.__metadata("design:type", Object)
|
|
280
|
-
], AIMCPConfigurationWidget.prototype, "mcpFrontendService", void 0);
|
|
281
|
-
tslib_1.__decorate([
|
|
282
|
-
(0, inversify_1.inject)(mcp_server_manager_1.MCPFrontendNotificationService),
|
|
283
|
-
tslib_1.__metadata("design:type", Object)
|
|
284
|
-
], AIMCPConfigurationWidget.prototype, "mcpFrontendNotificationService", void 0);
|
|
285
|
-
tslib_1.__decorate([
|
|
286
|
-
(0, inversify_1.inject)(hover_service_1.HoverService),
|
|
287
|
-
tslib_1.__metadata("design:type", hover_service_1.HoverService)
|
|
288
|
-
], AIMCPConfigurationWidget.prototype, "hoverService", void 0);
|
|
289
|
-
tslib_1.__decorate([
|
|
290
|
-
(0, inversify_1.inject)(core_1.MessageService),
|
|
291
|
-
tslib_1.__metadata("design:type", core_1.MessageService)
|
|
292
|
-
], AIMCPConfigurationWidget.prototype, "messageService", void 0);
|
|
293
|
-
tslib_1.__decorate([
|
|
294
|
-
(0, inversify_1.postConstruct)(),
|
|
295
|
-
tslib_1.__metadata("design:type", Function),
|
|
296
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
297
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
298
|
-
], AIMCPConfigurationWidget.prototype, "init", null);
|
|
299
|
-
exports.AIMCPConfigurationWidget = AIMCPConfigurationWidget = AIMCPConfigurationWidget_1 = tslib_1.__decorate([
|
|
300
|
-
(0, inversify_1.injectable)()
|
|
301
|
-
], AIMCPConfigurationWidget);
|
|
302
|
-
//# sourceMappingURL=mcp-configuration-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/mcp-configuration-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;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CAAqC,EAAE,2BAA2B,CAAC,CAC/E,CACT,CAAC;QACN,CAAC;QAED,OAAO,CACH,6BAAK,SAAS,EAAC,6BAA6B;YACxC,4BAAI,SAAS,EAAC,yBAAyB,IAAE,UAAG,CAAC,QAAQ,CAAC,gDAAgD,EAAE,2BAA2B,CAAC,CAAM;YACzI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CACxD,CACT,CAAC;IACN,CAAC;;AAzYQ,4DAAwB;AAEjB,2BAAE,GAAG,uCAAuC,AAA1C,CAA2C;AAC7C,8BAAK,GAAG,UAAG,CAAC,QAAQ,CAAC,uCAAuC,EAAE,aAAa,CAAC,AAAvE,CAAwE;AAM1E;IADlB,IAAA,kBAAM,EAAC,uCAAkB,CAAC;;oEAC+B;AAGvC;IADlB,IAAA,kBAAM,EAAC,mDAA8B,CAAC;;gFAC2C;AAG/D;IADlB,IAAA,kBAAM,EAAC,4BAAY,CAAC;sCACY,4BAAY;8DAAC;AAG3B;IADlB,IAAA,kBAAM,EAAC,qBAAc,CAAC;sCACY,qBAAc;gEAAC;AAGxC;IADT,IAAA,yBAAa,GAAE;;;;oDASf;mCA7BQ,wBAAwB;IADpC,IAAA,sBAAU,GAAE;GACA,wBAAwB,CA0YpC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { ReactWidget } from '@theia/core/lib/browser/widgets/react-widget';
|
|
4
|
-
import { LanguageModelAliasRegistry, LanguageModelAlias } from '@theia/ai-core/lib/common/language-model-alias';
|
|
5
|
-
import { FrontendLanguageModelRegistry, LanguageModel, LanguageModelRegistry } from '@theia/ai-core/lib/common/language-model';
|
|
6
|
-
import { AIConfigurationSelectionService } from './ai-configuration-service';
|
|
7
|
-
import { AgentService, AISettingsService } from '@theia/ai-core';
|
|
8
|
-
export interface ModelAliasesConfigurationProps {
|
|
9
|
-
languageModelAliasRegistry: LanguageModelAliasRegistry;
|
|
10
|
-
languageModelRegistry: LanguageModelRegistry;
|
|
11
|
-
}
|
|
12
|
-
export declare class ModelAliasesConfigurationWidget extends ReactWidget {
|
|
13
|
-
static readonly ID = "ai-model-aliases-configuration-widget";
|
|
14
|
-
static readonly LABEL: string;
|
|
15
|
-
protected readonly languageModelAliasRegistry: LanguageModelAliasRegistry;
|
|
16
|
-
protected readonly languageModelRegistry: FrontendLanguageModelRegistry;
|
|
17
|
-
protected readonly aiConfigurationSelectionService: AIConfigurationSelectionService;
|
|
18
|
-
protected readonly aiSettingsService: AISettingsService;
|
|
19
|
-
protected readonly agentService: AgentService;
|
|
20
|
-
protected aliases: LanguageModelAlias[];
|
|
21
|
-
protected languageModels: LanguageModel[];
|
|
22
|
-
/**
|
|
23
|
-
* Map from alias ID to a list of agent IDs that have a language model requirement for that alias.
|
|
24
|
-
*/
|
|
25
|
-
protected matchingAgentIdsForAliasMap: Map<string, string[]>;
|
|
26
|
-
/**
|
|
27
|
-
* Map from alias ID to the resolved LanguageModel (what the alias currently evaluates to).
|
|
28
|
-
*/
|
|
29
|
-
protected resolvedModelForAlias: Map<string, LanguageModel | undefined>;
|
|
30
|
-
protected init(): void;
|
|
31
|
-
protected loadAliases(): Promise<void>;
|
|
32
|
-
protected loadLanguageModels(): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Loads a map from alias ID to a list of agent IDs that have a language model requirement for that alias.
|
|
35
|
-
*/
|
|
36
|
-
protected loadMatchingAgentIdsForAllAliases(): Promise<void>;
|
|
37
|
-
protected handleAliasSelectedModelIdChange: (alias: LanguageModelAlias, event: React.ChangeEvent<HTMLSelectElement>) => void;
|
|
38
|
-
render(): React.ReactNode;
|
|
39
|
-
protected renderAliasDetail(alias: LanguageModelAlias, languageModels: LanguageModel[]): React.ReactNode;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=model-aliases-configuration-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-aliases-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/model-aliases-configuration-widget.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,qBAAqB,EAA4B,MAAM,0CAA0C,CAAC;AAEzJ,OAAO,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjE,MAAM,WAAW,8BAA8B;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,qBACa,+BAAgC,SAAQ,WAAW;IAC5D,MAAM,CAAC,QAAQ,CAAC,EAAE,2CAA2C;IAC7D,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAkF;IAGvG,SAAS,CAAC,QAAQ,CAAC,0BAA0B,EAAE,0BAA0B,CAAC;IAE1E,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,6BAA6B,CAAC;IAExE,SAAS,CAAC,QAAQ,CAAC,+BAA+B,EAAE,+BAA+B,CAAC;IAEpF,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAExD,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAE9C,SAAS,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAM;IAC7C,SAAS,CAAC,cAAc,EAAE,aAAa,EAAE,CAAM;IAC/C;;OAEG;IACH,SAAS,CAAC,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAa;IACzE;;OAEG;IACH,SAAS,CAAC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,CAAC,CAAa;IAGpF,SAAS,CAAC,IAAI,IAAI,IAAI;cA+BN,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;cAgB5B,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAInD;;OAEG;cACa,iCAAiC,IAAI,OAAO,CAAC,IAAI,CAAC;IAwBlE,SAAS,CAAC,gCAAgC,UAAW,kBAAkB,SAAS,MAAM,WAAW,CAAC,iBAAiB,CAAC,KAAG,IAAI,CASzH;IAEF,MAAM,IAAI,KAAK,CAAC,SAAS;IA6BzB,SAAS,CAAC,iBAAiB,CAAC,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,SAAS;CA2G3G"}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var ModelAliasesConfigurationWidget_1;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ModelAliasesConfigurationWidget = void 0;
|
|
5
|
-
const tslib_1 = require("tslib");
|
|
6
|
-
// *****************************************************************************
|
|
7
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
8
|
-
//
|
|
9
|
-
// This program and the accompanying materials are made available under the
|
|
10
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
11
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
12
|
-
//
|
|
13
|
-
// This Source Code may also be made available under the following Secondary
|
|
14
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
15
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
16
|
-
// with the GNU Classpath Exception which is available at
|
|
17
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
18
|
-
//
|
|
19
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
20
|
-
// *****************************************************************************
|
|
21
|
-
const React = require("@theia/core/shared/react");
|
|
22
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
-
const react_widget_1 = require("@theia/core/lib/browser/widgets/react-widget");
|
|
24
|
-
const language_model_alias_1 = require("@theia/ai-core/lib/common/language-model-alias");
|
|
25
|
-
const language_model_1 = require("@theia/ai-core/lib/common/language-model");
|
|
26
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
27
|
-
const ai_configuration_service_1 = require("./ai-configuration-service");
|
|
28
|
-
const ai_core_1 = require("@theia/ai-core");
|
|
29
|
-
let ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget_1 = class ModelAliasesConfigurationWidget extends react_widget_1.ReactWidget {
|
|
30
|
-
constructor() {
|
|
31
|
-
super(...arguments);
|
|
32
|
-
this.aliases = [];
|
|
33
|
-
this.languageModels = [];
|
|
34
|
-
/**
|
|
35
|
-
* Map from alias ID to a list of agent IDs that have a language model requirement for that alias.
|
|
36
|
-
*/
|
|
37
|
-
this.matchingAgentIdsForAliasMap = new Map();
|
|
38
|
-
/**
|
|
39
|
-
* Map from alias ID to the resolved LanguageModel (what the alias currently evaluates to).
|
|
40
|
-
*/
|
|
41
|
-
this.resolvedModelForAlias = new Map();
|
|
42
|
-
this.handleAliasSelectedModelIdChange = (alias, event) => {
|
|
43
|
-
const newModelId = event.target.value || undefined;
|
|
44
|
-
const updatedAlias = {
|
|
45
|
-
...alias,
|
|
46
|
-
selectedModelId: newModelId
|
|
47
|
-
};
|
|
48
|
-
this.languageModelAliasRegistry.ready.then(() => {
|
|
49
|
-
this.languageModelAliasRegistry.addAlias(updatedAlias);
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
init() {
|
|
54
|
-
this.id = ModelAliasesConfigurationWidget_1.ID;
|
|
55
|
-
this.title.label = ModelAliasesConfigurationWidget_1.LABEL;
|
|
56
|
-
this.title.closable = false;
|
|
57
|
-
const aliasesPromise = this.loadAliases();
|
|
58
|
-
const languageModelsPromise = this.loadLanguageModels();
|
|
59
|
-
const matchingAgentsPromise = this.loadMatchingAgentIdsForAllAliases();
|
|
60
|
-
Promise.all([aliasesPromise, languageModelsPromise, matchingAgentsPromise]).then(() => this.update());
|
|
61
|
-
this.languageModelAliasRegistry.ready.then(() => this.toDispose.push(this.languageModelAliasRegistry.onDidChange(async () => {
|
|
62
|
-
await this.loadAliases();
|
|
63
|
-
this.update();
|
|
64
|
-
})));
|
|
65
|
-
this.toDispose.pushAll([
|
|
66
|
-
this.languageModelRegistry.onChange(async () => {
|
|
67
|
-
await this.loadAliases();
|
|
68
|
-
await this.loadLanguageModels();
|
|
69
|
-
this.update();
|
|
70
|
-
}),
|
|
71
|
-
this.aiSettingsService.onDidChange(async () => {
|
|
72
|
-
await this.loadMatchingAgentIdsForAllAliases();
|
|
73
|
-
this.update();
|
|
74
|
-
}),
|
|
75
|
-
this.aiConfigurationSelectionService.onDidAliasChange(() => this.update())
|
|
76
|
-
]);
|
|
77
|
-
}
|
|
78
|
-
async loadAliases() {
|
|
79
|
-
await this.languageModelAliasRegistry.ready;
|
|
80
|
-
this.aliases = this.languageModelAliasRegistry.getAliases();
|
|
81
|
-
// Set the initial selection if not set
|
|
82
|
-
if (this.aliases.length > 0 && !this.aiConfigurationSelectionService.getSelectedAliasId()) {
|
|
83
|
-
this.aiConfigurationSelectionService.setSelectedAliasId(this.aliases[0].id);
|
|
84
|
-
}
|
|
85
|
-
await this.loadMatchingAgentIdsForAllAliases();
|
|
86
|
-
// Resolve evaluated models for each alias
|
|
87
|
-
this.resolvedModelForAlias = new Map();
|
|
88
|
-
for (const alias of this.aliases) {
|
|
89
|
-
const model = await this.languageModelRegistry.getReadyLanguageModel(alias.id);
|
|
90
|
-
this.resolvedModelForAlias.set(alias.id, model);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
async loadLanguageModels() {
|
|
94
|
-
this.languageModels = await this.languageModelRegistry.getLanguageModels();
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Loads a map from alias ID to a list of agent IDs that have a language model requirement for that alias.
|
|
98
|
-
*/
|
|
99
|
-
async loadMatchingAgentIdsForAllAliases() {
|
|
100
|
-
var _a;
|
|
101
|
-
const agents = this.agentService.getAllAgents();
|
|
102
|
-
const aliasMap = new Map();
|
|
103
|
-
for (const alias of this.aliases) {
|
|
104
|
-
const matchingAgentIds = [];
|
|
105
|
-
for (const agent of agents) {
|
|
106
|
-
const requirementSetting = await this.aiSettingsService.getAgentSettings(agent.id);
|
|
107
|
-
if (requirementSetting === null || requirementSetting === void 0 ? void 0 : requirementSetting.languageModelRequirements) {
|
|
108
|
-
// requirement is set via settings, check if it is this alias
|
|
109
|
-
if ((_a = requirementSetting === null || requirementSetting === void 0 ? void 0 : requirementSetting.languageModelRequirements) === null || _a === void 0 ? void 0 : _a.find(e => e.identifier === alias.id)) {
|
|
110
|
-
matchingAgentIds.push(agent.id);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
// requirement is NOT set via settings, check if this alias is the default for this agent
|
|
115
|
-
if (agent.languageModelRequirements.some((req) => req.identifier === alias.id)) {
|
|
116
|
-
matchingAgentIds.push(agent.id);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
aliasMap.set(alias.id, matchingAgentIds);
|
|
121
|
-
}
|
|
122
|
-
this.matchingAgentIdsForAliasMap = aliasMap;
|
|
123
|
-
}
|
|
124
|
-
render() {
|
|
125
|
-
const selectedAliasId = this.aiConfigurationSelectionService.getSelectedAliasId();
|
|
126
|
-
const selectedAlias = this.aliases.find(alias => alias.id === selectedAliasId);
|
|
127
|
-
return (React.createElement("div", { className: "model-alias-configuration-main" },
|
|
128
|
-
React.createElement("div", { className: "model-alias-configuration-list preferences-tree-widget theia-TreeContainer ai-model-alias-list" },
|
|
129
|
-
React.createElement("ul", null, this.aliases.map(alias => (React.createElement("li", { key: alias.id, className: `theia-TreeNode theia-CompositeTreeNode${alias.id === selectedAliasId ? ' theia-mod-selected' : ''}`, onClick: () => this.aiConfigurationSelectionService.setSelectedAliasId(alias.id) },
|
|
130
|
-
React.createElement("span", null, alias.id)))))),
|
|
131
|
-
React.createElement("div", { className: "model-alias-configuration-panel preferences-editor-widget" }, selectedAlias ? this.renderAliasDetail(selectedAlias, this.languageModels) : (React.createElement("div", null, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/selectAlias', 'Please select a Model Alias.'))))));
|
|
132
|
-
}
|
|
133
|
-
renderAliasDetail(alias, languageModels) {
|
|
134
|
-
var _a, _b, _c;
|
|
135
|
-
const availableModelIds = languageModels.map(m => m.id);
|
|
136
|
-
const selectedModelId = (_a = alias.selectedModelId) !== null && _a !== void 0 ? _a : '';
|
|
137
|
-
const isInvalidModel = !!selectedModelId && !availableModelIds.includes((_b = alias.selectedModelId) !== null && _b !== void 0 ? _b : '');
|
|
138
|
-
const agentIds = this.matchingAgentIdsForAliasMap.get(alias.id) || [];
|
|
139
|
-
const agents = this.agentService.getAllAgents().filter(agent => agentIds.includes(agent.id));
|
|
140
|
-
const resolvedModel = this.resolvedModelForAlias.get(alias.id);
|
|
141
|
-
return (React.createElement("div", null,
|
|
142
|
-
React.createElement("div", { className: "settings-section-title settings-section-category-title ai-alias-detail-title" },
|
|
143
|
-
React.createElement("span", null, alias.id)),
|
|
144
|
-
alias.description && React.createElement("div", { className: "ai-alias-detail-description" }, alias.description),
|
|
145
|
-
React.createElement("div", { className: "ai-alias-detail-selected-model" },
|
|
146
|
-
React.createElement("label", null,
|
|
147
|
-
nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/selectedModelId', 'Selected Model'),
|
|
148
|
-
": "),
|
|
149
|
-
React.createElement("select", { className: `theia-select template-variant-selector ${isInvalidModel ? 'error' : ''}`, value: isInvalidModel ? 'invalid' : selectedModelId, onChange: event => this.handleAliasSelectedModelIdChange(alias, event) },
|
|
150
|
-
isInvalidModel && (React.createElement("option", { value: "invalid", disabled: true }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/unavailableModel', 'Selected model is no longer available'))),
|
|
151
|
-
React.createElement("option", { value: "", className: 'ai-language-model-item-ready' }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/defaultList', '[Default list]')),
|
|
152
|
-
[...languageModels]
|
|
153
|
-
.sort((a, b) => { var _a, _b; return ((_a = a.name) !== null && _a !== void 0 ? _a : a.id).localeCompare((_b = b.name) !== null && _b !== void 0 ? _b : b.id); })
|
|
154
|
-
.map(model => {
|
|
155
|
-
var _a;
|
|
156
|
-
const isNotReady = model.status.status !== 'ready';
|
|
157
|
-
return (React.createElement("option", { key: model.id, value: model.id, className: isNotReady ? 'ai-language-model-item-not-ready' : 'ai-language-model-item-ready', title: isNotReady && model.status.message ? model.status.message : undefined }, (_a = model.name) !== null && _a !== void 0 ? _a : model.id,
|
|
158
|
-
" ",
|
|
159
|
-
isNotReady ? '✗' : '✓'));
|
|
160
|
-
}))),
|
|
161
|
-
alias.selectedModelId === undefined &&
|
|
162
|
-
React.createElement(React.Fragment, null,
|
|
163
|
-
React.createElement("div", { className: "ai-alias-detail-defaults" },
|
|
164
|
-
React.createElement("ol", null, alias.defaultModelIds.map(modelId => {
|
|
165
|
-
const model = this.languageModels.find(m => m.id === modelId);
|
|
166
|
-
const isReady = (model === null || model === void 0 ? void 0 : model.status.status) === 'ready';
|
|
167
|
-
return (React.createElement("li", { key: modelId }, isReady ? (React.createElement("span", { className: modelId === (resolvedModel === null || resolvedModel === void 0 ? void 0 : resolvedModel.id) ? 'ai-alias-priority-item-resolved' : 'ai-alias-priority-item-ready' },
|
|
168
|
-
modelId,
|
|
169
|
-
" ",
|
|
170
|
-
React.createElement("span", { className: "ai-model-status-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready') }, "\u2713"))) : (React.createElement("span", { className: "ai-model-default-not-ready" },
|
|
171
|
-
modelId,
|
|
172
|
-
" ",
|
|
173
|
-
React.createElement("span", { className: "ai-model-status-not-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready') }, "\u2717")))));
|
|
174
|
-
}))),
|
|
175
|
-
React.createElement("div", { className: "ai-alias-evaluates-to-container" },
|
|
176
|
-
React.createElement("label", { className: "ai-alias-evaluates-to-label" },
|
|
177
|
-
nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/evaluatesTo', 'Evaluates to'),
|
|
178
|
-
":"),
|
|
179
|
-
resolvedModel ? (React.createElement("span", { className: "ai-alias-evaluates-to-value" }, (_c = resolvedModel.name) !== null && _c !== void 0 ? _c : resolvedModel.id,
|
|
180
|
-
resolvedModel.status.status === 'ready' ? (React.createElement("span", { className: "ai-model-status-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready') }, "\u2713")) : (React.createElement("span", { className: "ai-model-status-not-ready", title: resolvedModel.status.message
|
|
181
|
-
|| nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready') }, "\u2717")))) : (React.createElement("span", { className: "ai-alias-evaluates-to-unresolved" }, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noResolvedModel', 'No model ready for this alias.'))))),
|
|
182
|
-
React.createElement("div", { className: "ai-alias-detail-agents" },
|
|
183
|
-
React.createElement("label", null,
|
|
184
|
-
nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/agents', 'Agents using this Alias'),
|
|
185
|
-
":"),
|
|
186
|
-
React.createElement("ul", null, agents.length > 0 ? (agents.map(agent => (React.createElement("li", { key: agent.id },
|
|
187
|
-
React.createElement("span", null, agent.name),
|
|
188
|
-
agent.id !== agent.name && React.createElement("span", { className: "ai-alias-agent-id" },
|
|
189
|
-
"(",
|
|
190
|
-
agent.id,
|
|
191
|
-
")"))))) : (React.createElement("span", null, nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noAgents', 'No agents use this alias.')))))));
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
exports.ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget;
|
|
195
|
-
ModelAliasesConfigurationWidget.ID = 'ai-model-aliases-configuration-widget';
|
|
196
|
-
ModelAliasesConfigurationWidget.LABEL = nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/label', 'Model Aliases');
|
|
197
|
-
tslib_1.__decorate([
|
|
198
|
-
(0, inversify_1.inject)(language_model_alias_1.LanguageModelAliasRegistry),
|
|
199
|
-
tslib_1.__metadata("design:type", Object)
|
|
200
|
-
], ModelAliasesConfigurationWidget.prototype, "languageModelAliasRegistry", void 0);
|
|
201
|
-
tslib_1.__decorate([
|
|
202
|
-
(0, inversify_1.inject)(language_model_1.LanguageModelRegistry),
|
|
203
|
-
tslib_1.__metadata("design:type", Object)
|
|
204
|
-
], ModelAliasesConfigurationWidget.prototype, "languageModelRegistry", void 0);
|
|
205
|
-
tslib_1.__decorate([
|
|
206
|
-
(0, inversify_1.inject)(ai_configuration_service_1.AIConfigurationSelectionService),
|
|
207
|
-
tslib_1.__metadata("design:type", ai_configuration_service_1.AIConfigurationSelectionService)
|
|
208
|
-
], ModelAliasesConfigurationWidget.prototype, "aiConfigurationSelectionService", void 0);
|
|
209
|
-
tslib_1.__decorate([
|
|
210
|
-
(0, inversify_1.inject)(ai_core_1.AISettingsService),
|
|
211
|
-
tslib_1.__metadata("design:type", Object)
|
|
212
|
-
], ModelAliasesConfigurationWidget.prototype, "aiSettingsService", void 0);
|
|
213
|
-
tslib_1.__decorate([
|
|
214
|
-
(0, inversify_1.inject)(ai_core_1.AgentService),
|
|
215
|
-
tslib_1.__metadata("design:type", Object)
|
|
216
|
-
], ModelAliasesConfigurationWidget.prototype, "agentService", void 0);
|
|
217
|
-
tslib_1.__decorate([
|
|
218
|
-
(0, inversify_1.postConstruct)(),
|
|
219
|
-
tslib_1.__metadata("design:type", Function),
|
|
220
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
221
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
222
|
-
], ModelAliasesConfigurationWidget.prototype, "init", null);
|
|
223
|
-
exports.ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget = ModelAliasesConfigurationWidget_1 = tslib_1.__decorate([
|
|
224
|
-
(0, inversify_1.injectable)()
|
|
225
|
-
], ModelAliasesConfigurationWidget);
|
|
226
|
-
//# sourceMappingURL=model-aliases-configuration-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model-aliases-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/model-aliases-configuration-widget.tsx"],"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,kDAAkD;AAClD,4DAAiF;AACjF,+EAA2E;AAC3E,yFAAgH;AAChH,6EAAyJ;AACzJ,oDAAiD;AACjD,yEAA6E;AAC7E,4CAAiE;AAQ1D,IAAM,+BAA+B,uCAArC,MAAM,+BAAgC,SAAQ,0BAAW;IAAzD;;QAeO,YAAO,GAAyB,EAAE,CAAC;QACnC,mBAAc,GAAoB,EAAE,CAAC;QAC/C;;WAEG;QACO,gCAA2B,GAA0B,IAAI,GAAG,EAAE,CAAC;QACzE;;WAEG;QACO,0BAAqB,GAA2C,IAAI,GAAG,EAAE,CAAC;QAiF1E,qCAAgC,GAAG,CAAC,KAAyB,EAAE,KAA2C,EAAQ,EAAE;YAC1H,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;YACnD,MAAM,YAAY,GAAuB;gBACrC,GAAG,KAAK;gBACR,eAAe,EAAE,UAAU;aAC9B,CAAC;YACF,IAAI,CAAC,0BAA0B,CAAC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