@theia/ai-ide 1.67.0-next.3 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +21 -21
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +3 -3
- package/src/browser/context-file-validation-service-impl.spec.ts +405 -0
- package/src/browser/context-file-validation-service-impl.ts +120 -0
- package/src/browser/context-functions.spec.ts +155 -1
- package/src/browser/context-functions.ts +40 -6
- 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 +12 -4
- package/src/browser/ide-chat-welcome-message-provider.tsx +64 -70
- package/src/browser/remember-command-contribution.ts +105 -0
- package/src/browser/workspace-functions.ts +68 -1
- 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-functions.d.ts +0 -14
- package/lib/browser/context-functions.d.ts.map +0 -1
- package/lib/browser/context-functions.js +0 -130
- 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 -93
- 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 -214
- 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 -75
- package/lib/browser/workspace-functions.d.ts.map +0 -1
- package/lib/browser/workspace-functions.js +0 -641
- 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,118 +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
|
-
var AIConfigurationContainerWidget_1;
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.AIConfigurationContainerWidget = void 0;
|
|
20
|
-
const tslib_1 = require("tslib");
|
|
21
|
-
const browser_1 = require("@theia/core/lib/browser");
|
|
22
|
-
const theia_dock_panel_1 = require("@theia/core/lib/browser/shell/theia-dock-panel");
|
|
23
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
-
const agent_configuration_widget_1 = require("./agent-configuration-widget");
|
|
25
|
-
const variable_configuration_widget_1 = require("./variable-configuration-widget");
|
|
26
|
-
const tools_configuration_widget_1 = require("./tools-configuration-widget");
|
|
27
|
-
const ai_configuration_service_1 = require("./ai-configuration-service");
|
|
28
|
-
const core_1 = require("@theia/core");
|
|
29
|
-
const mcp_configuration_widget_1 = require("./mcp-configuration-widget");
|
|
30
|
-
const token_usage_configuration_widget_1 = require("./token-usage-configuration-widget");
|
|
31
|
-
const prompt_fragments_configuration_widget_1 = require("./prompt-fragments-configuration-widget");
|
|
32
|
-
const model_aliases_configuration_widget_1 = require("./model-aliases-configuration-widget");
|
|
33
|
-
let AIConfigurationContainerWidget = AIConfigurationContainerWidget_1 = class AIConfigurationContainerWidget extends browser_1.BaseWidget {
|
|
34
|
-
init() {
|
|
35
|
-
this.id = AIConfigurationContainerWidget_1.ID;
|
|
36
|
-
this.title.label = AIConfigurationContainerWidget_1.LABEL;
|
|
37
|
-
this.title.closable = true;
|
|
38
|
-
this.addClass('theia-settings-container');
|
|
39
|
-
this.title.iconClass = (0, browser_1.codicon)('hubot');
|
|
40
|
-
this.initUI();
|
|
41
|
-
this.initListeners();
|
|
42
|
-
}
|
|
43
|
-
async initUI() {
|
|
44
|
-
const layout = (this.layout = new browser_1.BoxLayout({ direction: 'top-to-bottom', spacing: 0 }));
|
|
45
|
-
this.dockpanel = this.dockPanelFactory({
|
|
46
|
-
mode: 'multiple-document',
|
|
47
|
-
spacing: 0
|
|
48
|
-
});
|
|
49
|
-
browser_1.BoxLayout.setStretch(this.dockpanel, 1);
|
|
50
|
-
layout.addWidget(this.dockpanel);
|
|
51
|
-
this.dockpanel.addClass('ai-configuration-widget');
|
|
52
|
-
this.agentsWidget = await this.widgetManager.getOrCreateWidget(agent_configuration_widget_1.AIAgentConfigurationWidget.ID);
|
|
53
|
-
this.variablesWidget = await this.widgetManager.getOrCreateWidget(variable_configuration_widget_1.AIVariableConfigurationWidget.ID);
|
|
54
|
-
this.mcpWidget = await this.widgetManager.getOrCreateWidget(mcp_configuration_widget_1.AIMCPConfigurationWidget.ID);
|
|
55
|
-
this.tokenUsageWidget = await this.widgetManager.getOrCreateWidget(token_usage_configuration_widget_1.AITokenUsageConfigurationWidget.ID);
|
|
56
|
-
this.promptFragmentsWidget = await this.widgetManager.getOrCreateWidget(prompt_fragments_configuration_widget_1.AIPromptFragmentsConfigurationWidget.ID);
|
|
57
|
-
this.toolsWidget = await this.widgetManager.getOrCreateWidget(tools_configuration_widget_1.AIToolsConfigurationWidget.ID);
|
|
58
|
-
this.modelAliasesWidget = await this.widgetManager.getOrCreateWidget(model_aliases_configuration_widget_1.ModelAliasesConfigurationWidget.ID);
|
|
59
|
-
this.dockpanel.addWidget(this.agentsWidget);
|
|
60
|
-
this.dockpanel.addWidget(this.variablesWidget, { mode: 'tab-after', ref: this.agentsWidget });
|
|
61
|
-
this.dockpanel.addWidget(this.mcpWidget, { mode: 'tab-after', ref: this.variablesWidget });
|
|
62
|
-
this.dockpanel.addWidget(this.tokenUsageWidget, { mode: 'tab-after', ref: this.mcpWidget });
|
|
63
|
-
this.dockpanel.addWidget(this.promptFragmentsWidget, { mode: 'tab-after', ref: this.tokenUsageWidget });
|
|
64
|
-
this.dockpanel.addWidget(this.toolsWidget, { mode: 'tab-after', ref: this.promptFragmentsWidget });
|
|
65
|
-
this.dockpanel.addWidget(this.modelAliasesWidget, { mode: 'tab-after', ref: this.toolsWidget });
|
|
66
|
-
this.update();
|
|
67
|
-
}
|
|
68
|
-
initListeners() {
|
|
69
|
-
this.aiConfigurationSelectionService.onDidSelectConfiguration(widgetId => {
|
|
70
|
-
if (widgetId === agent_configuration_widget_1.AIAgentConfigurationWidget.ID) {
|
|
71
|
-
this.dockpanel.activateWidget(this.agentsWidget);
|
|
72
|
-
}
|
|
73
|
-
else if (widgetId === variable_configuration_widget_1.AIVariableConfigurationWidget.ID) {
|
|
74
|
-
this.dockpanel.activateWidget(this.variablesWidget);
|
|
75
|
-
}
|
|
76
|
-
else if (widgetId === mcp_configuration_widget_1.AIMCPConfigurationWidget.ID) {
|
|
77
|
-
this.dockpanel.activateWidget(this.mcpWidget);
|
|
78
|
-
}
|
|
79
|
-
else if (widgetId === token_usage_configuration_widget_1.AITokenUsageConfigurationWidget.ID) {
|
|
80
|
-
this.dockpanel.activateWidget(this.tokenUsageWidget);
|
|
81
|
-
}
|
|
82
|
-
else if (widgetId === prompt_fragments_configuration_widget_1.AIPromptFragmentsConfigurationWidget.ID) {
|
|
83
|
-
this.dockpanel.activateWidget(this.promptFragmentsWidget);
|
|
84
|
-
}
|
|
85
|
-
else if (widgetId === tools_configuration_widget_1.AIToolsConfigurationWidget.ID) {
|
|
86
|
-
this.dockpanel.activateWidget(this.toolsWidget);
|
|
87
|
-
}
|
|
88
|
-
else if (widgetId === model_aliases_configuration_widget_1.ModelAliasesConfigurationWidget.ID) {
|
|
89
|
-
this.dockpanel.activateWidget(this.modelAliasesWidget);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
exports.AIConfigurationContainerWidget = AIConfigurationContainerWidget;
|
|
95
|
-
AIConfigurationContainerWidget.ID = 'ai-configuration';
|
|
96
|
-
AIConfigurationContainerWidget.LABEL = core_1.nls.localize('theia/ai/core/aiConfiguration/label', 'AI Configuration [Beta]');
|
|
97
|
-
tslib_1.__decorate([
|
|
98
|
-
(0, inversify_1.inject)(theia_dock_panel_1.TheiaDockPanel.Factory),
|
|
99
|
-
tslib_1.__metadata("design:type", Function)
|
|
100
|
-
], AIConfigurationContainerWidget.prototype, "dockPanelFactory", void 0);
|
|
101
|
-
tslib_1.__decorate([
|
|
102
|
-
(0, inversify_1.inject)(browser_1.WidgetManager),
|
|
103
|
-
tslib_1.__metadata("design:type", browser_1.WidgetManager)
|
|
104
|
-
], AIConfigurationContainerWidget.prototype, "widgetManager", void 0);
|
|
105
|
-
tslib_1.__decorate([
|
|
106
|
-
(0, inversify_1.inject)(ai_configuration_service_1.AIConfigurationSelectionService),
|
|
107
|
-
tslib_1.__metadata("design:type", ai_configuration_service_1.AIConfigurationSelectionService)
|
|
108
|
-
], AIConfigurationContainerWidget.prototype, "aiConfigurationSelectionService", void 0);
|
|
109
|
-
tslib_1.__decorate([
|
|
110
|
-
(0, inversify_1.postConstruct)(),
|
|
111
|
-
tslib_1.__metadata("design:type", Function),
|
|
112
|
-
tslib_1.__metadata("design:paramtypes", []),
|
|
113
|
-
tslib_1.__metadata("design:returntype", void 0)
|
|
114
|
-
], AIConfigurationContainerWidget.prototype, "init", null);
|
|
115
|
-
exports.AIConfigurationContainerWidget = AIConfigurationContainerWidget = AIConfigurationContainerWidget_1 = tslib_1.__decorate([
|
|
116
|
-
(0, inversify_1.injectable)()
|
|
117
|
-
], AIConfigurationContainerWidget);
|
|
118
|
-
//# sourceMappingURL=ai-configuration-widget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai-configuration-widget.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/ai-configuration-widget.tsx"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAA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;YACzD,CAAC;iBAAM,IAAI,QAAQ,KAAK,4EAAoC,CAAC,EAAE,EAAE,CAAC;gBAC9D,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YAC9D,CAAC;iBAAM,IAAI,QAAQ,KAAK,uDAA0B,CAAC,EAAE,EAAE,CAAC;gBACpD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACpD,CAAC;iBAAM,IAAI,QAAQ,KAAK,oEAA+B,CAAC,EAAE,EAAE,CAAC;gBACzD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;YAC3D,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;;AA/EQ,wEAA8B;AAEvB,iCAAE,GAAG,kBAAkB,AAArB,CAAsB;AACxB,oCAAK,GAAG,UAAG,CAAC,QAAQ,CAAC,qCAAqC,EAAE,yBAAyB,CAAC,AAAjF,CAAkF;AAIpF;IADlB,IAAA,kBAAM,EAAC,iCAAc,CAAC,OAAO,CAAC;;wEAC6B;AAEzC;IADlB,IAAA,kBAAM,EAAC,uBAAa,CAAC;sCACY,uBAAa;qEAAC;AAE7B;IADlB,IAAA,kBAAM,EAAC,0DAA+B,CAAC;sCACY,0DAA+B;uFAAC;AAW1E;IADT,IAAA,yBAAa,GAAE;;;;0DASf;yCA9BQ,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAgF1C"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import * as React from '@theia/core/shared/react';
|
|
3
|
-
import { Agent, AISettingsService, FrontendLanguageModelRegistry, LanguageModel } from '@theia/ai-core/lib/common';
|
|
4
|
-
import { LanguageModelAlias } from '@theia/ai-core/lib/common/language-model-alias';
|
|
5
|
-
export interface LanguageModelSettingsProps {
|
|
6
|
-
agent: Agent;
|
|
7
|
-
languageModels?: LanguageModel[];
|
|
8
|
-
aiSettingsService: AISettingsService;
|
|
9
|
-
languageModelRegistry: FrontendLanguageModelRegistry;
|
|
10
|
-
languageModelAliases: LanguageModelAlias[];
|
|
11
|
-
}
|
|
12
|
-
export declare const LanguageModelRenderer: React.FC<LanguageModelSettingsProps>;
|
|
13
|
-
//# sourceMappingURL=language-model-renderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-model-renderer.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/language-model-renderer.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,EAA4B,MAAM,2BAA2B,CAAC;AAC7I,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIpF,MAAM,WAAW,0BAA0B;IACvC,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,qBAAqB,EAAE,6BAA6B,CAAC;IACrD,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;CAC9C;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA6HtE,CAAC"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LanguageModelRenderer = void 0;
|
|
4
|
-
// *****************************************************************************
|
|
5
|
-
// Copyright (C) 2024 EclipseSource GmbH.
|
|
6
|
-
//
|
|
7
|
-
// This program and the accompanying materials are made available under the
|
|
8
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
-
//
|
|
11
|
-
// This Source Code may also be made available under the following Secondary
|
|
12
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
-
// with the GNU Classpath Exception which is available at
|
|
15
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
16
|
-
//
|
|
17
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
18
|
-
// *****************************************************************************
|
|
19
|
-
const React = require("@theia/core/shared/react");
|
|
20
|
-
const nls_1 = require("@theia/core/lib/common/nls");
|
|
21
|
-
const LanguageModelRenderer = ({ agent, languageModels, aiSettingsService, languageModelRegistry, languageModelAliases: aliases }) => {
|
|
22
|
-
const findLanguageModelRequirement = async (purpose) => {
|
|
23
|
-
var _a;
|
|
24
|
-
const requirementSetting = await aiSettingsService.getAgentSettings(agent.id);
|
|
25
|
-
return (_a = requirementSetting === null || requirementSetting === void 0 ? void 0 : requirementSetting.languageModelRequirements) === null || _a === void 0 ? void 0 : _a.find(e => e.purpose === purpose);
|
|
26
|
-
};
|
|
27
|
-
const [lmRequirementMap, setLmRequirementMap] = React.useState({});
|
|
28
|
-
const [resolvedAliasModels, setResolvedAliasModels] = React.useState({});
|
|
29
|
-
React.useEffect(() => {
|
|
30
|
-
const computeLmRequirementMap = async () => {
|
|
31
|
-
const map = await agent.languageModelRequirements.reduce(async (accPromise, curr) => {
|
|
32
|
-
var _a;
|
|
33
|
-
const acc = await accPromise;
|
|
34
|
-
// take the agents requirements and override them with the user settings if present
|
|
35
|
-
const lmRequirement = (_a = await findLanguageModelRequirement(curr.purpose)) !== null && _a !== void 0 ? _a : curr;
|
|
36
|
-
// if no llm is selected through the identifier, see what would be the default
|
|
37
|
-
if (!lmRequirement.identifier) {
|
|
38
|
-
const llm = await languageModelRegistry.selectLanguageModel({ agent: agent.id, ...lmRequirement });
|
|
39
|
-
lmRequirement.identifier = llm === null || llm === void 0 ? void 0 : llm.id;
|
|
40
|
-
}
|
|
41
|
-
acc[curr.purpose] = lmRequirement;
|
|
42
|
-
return acc;
|
|
43
|
-
}, Promise.resolve({}));
|
|
44
|
-
setLmRequirementMap(map);
|
|
45
|
-
};
|
|
46
|
-
computeLmRequirementMap();
|
|
47
|
-
}, []);
|
|
48
|
-
// Effect to resolve alias to model whenever requirements.identifier or aliases change
|
|
49
|
-
React.useEffect(() => {
|
|
50
|
-
const resolveAliases = async () => {
|
|
51
|
-
const newResolved = {};
|
|
52
|
-
await Promise.all(Object.values(lmRequirementMap).map(async (requirements) => {
|
|
53
|
-
const id = requirements.identifier;
|
|
54
|
-
if (id && aliases.some(a => a.id === id)) {
|
|
55
|
-
newResolved[id] = await languageModelRegistry.getReadyLanguageModel(id);
|
|
56
|
-
}
|
|
57
|
-
}));
|
|
58
|
-
setResolvedAliasModels(newResolved);
|
|
59
|
-
};
|
|
60
|
-
resolveAliases();
|
|
61
|
-
}, [lmRequirementMap, aliases]);
|
|
62
|
-
const onSelectedModelChange = (purpose, event) => {
|
|
63
|
-
const newLmRequirementMap = { ...lmRequirementMap, [purpose]: { purpose, identifier: event.target.value } };
|
|
64
|
-
aiSettingsService.updateAgentSettings(agent.id, { languageModelRequirements: Object.values(newLmRequirementMap) });
|
|
65
|
-
setLmRequirementMap(newLmRequirementMap);
|
|
66
|
-
};
|
|
67
|
-
return React.createElement("div", { className: 'language-model-container' }, Object.values(lmRequirementMap).map((requirement, index) => {
|
|
68
|
-
var _a;
|
|
69
|
-
const isAlias = requirement.identifier && aliases.some(a => a.id === requirement.identifier);
|
|
70
|
-
const resolvedModel = isAlias ? resolvedAliasModels[requirement.identifier] : undefined;
|
|
71
|
-
return (React.createElement(React.Fragment, { key: index },
|
|
72
|
-
React.createElement("div", { className: "ai-alias-evaluates-to-container" },
|
|
73
|
-
React.createElement("strong", null,
|
|
74
|
-
nls_1.nls.localize('theia/ai/core/languageModelRenderer/purpose', 'Purpose'),
|
|
75
|
-
":"),
|
|
76
|
-
" ",
|
|
77
|
-
requirement.purpose),
|
|
78
|
-
React.createElement("div", null,
|
|
79
|
-
React.createElement("div", { className: "ai-alias-evaluates-to-container" },
|
|
80
|
-
React.createElement("label", { className: "theia-header no-select", htmlFor: `model-select-${agent.id}` }, nls_1.nls.localize('theia/ai/core/languageModelRenderer/languageModel', 'Language Model') + ': '),
|
|
81
|
-
React.createElement("select", { className: "theia-select", id: `model-select-${agent.id}-${requirement.purpose}`, value: requirement.identifier, onChange: event => onSelectedModelChange(requirement.purpose, event) },
|
|
82
|
-
React.createElement("option", { value: "" }), aliases === null || aliases === void 0 ? void 0 :
|
|
83
|
-
aliases.sort((a, b) => a.id.localeCompare(b.id)).map(alias => (React.createElement("option", { key: `alias/${alias.id}`, value: alias.id, className: 'ai-language-model-item-ready' }, nls_1.nls.localize('theia/ai/core/languageModelRenderer/alias', '[alias] {0}', alias.id)))), languageModels === null || languageModels === void 0 ? void 0 :
|
|
84
|
-
languageModels.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); }).map(model => {
|
|
85
|
-
var _a;
|
|
86
|
-
const isNotReady = model.status.status !== 'ready';
|
|
87
|
-
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,
|
|
88
|
-
" ",
|
|
89
|
-
isNotReady ? '✗' : '✓'));
|
|
90
|
-
}))),
|
|
91
|
-
isAlias && (React.createElement("div", { className: "ai-alias-evaluates-to-container" },
|
|
92
|
-
React.createElement("label", { className: "ai-alias-evaluates-to-label" },
|
|
93
|
-
nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/evaluatesTo', 'Evaluates to'),
|
|
94
|
-
":"),
|
|
95
|
-
resolvedModel ? (React.createElement("span", { className: "ai-alias-evaluates-to-value" }, (_a = resolvedModel.name) !== null && _a !== void 0 ? _a : resolvedModel.id,
|
|
96
|
-
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
|
|
97
|
-
|| nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready') }, "\u2717")))) : (React.createElement("span", { className: "ai-alias-evaluates-to-unresolved" },
|
|
98
|
-
nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noResolvedModel', 'No model ready for this alias.'),
|
|
99
|
-
React.createElement("span", { className: "ai-model-status-not-ready", title: nls_1.nls.localize('theia/ai/core/modelAliasesConfiguration/noModelReadyTooltip', 'No model ready') }, "\u2717"))))),
|
|
100
|
-
React.createElement("hr", null))));
|
|
101
|
-
}));
|
|
102
|
-
};
|
|
103
|
-
exports.LanguageModelRenderer = LanguageModelRenderer;
|
|
104
|
-
//# sourceMappingURL=language-model-renderer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"language-model-renderer.js","sourceRoot":"","sources":["../../../src/browser/ai-configuration/language-model-renderer.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;AAIlD,oDAAiD;AAU1C,MAAM,qBAAqB,GAAyC,CACvE,EAAE,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,OAAO,EAAE,EAAE,EAAE;IAEtG,MAAM,4BAA4B,GAAG,KAAK,EAAE,OAAe,EAAiD,EAAE;;QAC1G,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAA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,CAAC,qDAAqD,EAAE,cAAc,CAAC;4BAAU;oBAC5I,aAAa,CAAC,CAAC,CAAC,CACb,8BAAM,SAAS,EAAC,6BAA6B,IACxC,MAAA,aAAa,CAAC,IAAI,mCAAI,aAAa,CAAC,EAAE;wBACtC,aAAa,CAAC,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,CACvC,8BAAM,SAAS,EAAC,uBAAuB,EACnC,KAAK,EAAE,SAAG,CAAC,QAAQ,CAAC,2DAA2D,EAAE,OAAO,CAAC,aAAU,CAC1G,CAAC,CAAC,CAAC,CACA,8BAAM,SAAS,EAAC,2BAA2B,EAAC,KAAK,EAAE,aAAa,CAAC,MAAM,CAAC,OAAO;mCACxE,SAAG,CAAC,QAAQ,CAAC,8DAA8D,EAAE,WAAW,CAAC,aAAU,CAC7G,CACE,CACV,CAAC,CAAC,CAAC,CACA,8BAAM,SAAS,EAAC,kCAAkC;wBAC7C,SAAG,CAAC,QAAQ,CAAC,yDAAyD,EAAE,gCAAgC,CAAC;wBAC1G,8BAAM,SAAS,EAAC,2BAA2B,EACvC,KAAK,EAAE,SAAG,CAAC,QAAQ,CAAC,6DAA6D,EAAE,gBAAgB,CAAC,aAAU,CAC/G,CACV,CACC,CACT;gBACD,+BAAM,CACJ,CACO,CACpB,CAAC;IACN,CAAC,CAAC,CACA,CAAC;AACX,CAAC,CAAC;AA7HW,QAAA,qBAAqB,yBA6HhC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ReactWidget } from '@theia/core/lib/browser';
|
|
3
|
-
import * as React from '@theia/core/shared/react';
|
|
4
|
-
import { HoverService } from '@theia/core/lib/browser/hover-service';
|
|
5
|
-
import { MCPFrontendNotificationService, MCPFrontendService, MCPServerDescription, MCPServerStatus } from '@theia/ai-mcp/lib/common/mcp-server-manager';
|
|
6
|
-
import { MessageService } from '@theia/core';
|
|
7
|
-
export declare class AIMCPConfigurationWidget extends ReactWidget {
|
|
8
|
-
static readonly ID = "ai-mcp-configuration-container-widget";
|
|
9
|
-
static readonly LABEL: string;
|
|
10
|
-
protected servers: MCPServerDescription[];
|
|
11
|
-
protected expandedTools: Record<string, boolean>;
|
|
12
|
-
protected readonly mcpFrontendService: MCPFrontendService;
|
|
13
|
-
protected readonly mcpFrontendNotificationService: MCPFrontendNotificationService;
|
|
14
|
-
protected readonly hoverService: HoverService;
|
|
15
|
-
protected readonly messageService: MessageService;
|
|
16
|
-
protected init(): void;
|
|
17
|
-
protected loadServers(): Promise<void>;
|
|
18
|
-
protected getStatusColor(status?: MCPServerStatus): {
|
|
19
|
-
bg: string;
|
|
20
|
-
fg: string;
|
|
21
|
-
};
|
|
22
|
-
protected showErrorHover(spanRef: React.RefObject<HTMLSpanElement>, error: string): void;
|
|
23
|
-
protected hideErrorHover(): void;
|
|
24
|
-
protected handleStartServer(serverName: string): Promise<void>;
|
|
25
|
-
protected handleStopServer(serverName: string): Promise<void>;
|
|
26
|
-
protected renderButton(text: React.ReactNode, title: string, onClick: React.MouseEventHandler<HTMLButtonElement>, className?: string, style?: React.CSSProperties): React.ReactNode;
|
|
27
|
-
protected renderStatusBadge(server: MCPServerDescription): React.ReactNode;
|
|
28
|
-
protected renderServerHeader(server: MCPServerDescription): React.ReactNode;
|
|
29
|
-
protected renderCommandSection(server: MCPServerDescription): React.ReactNode;
|
|
30
|
-
protected renderArgumentsSection(server: MCPServerDescription): React.ReactNode;
|
|
31
|
-
protected renderEnvironmentSection(server: MCPServerDescription): React.ReactNode;
|
|
32
|
-
protected renderServerUrlSection(server: MCPServerDescription): React.ReactNode;
|
|
33
|
-
protected renderServerAuthTokenHeaderSection(server: MCPServerDescription): React.ReactNode;
|
|
34
|
-
protected renderServerAuthTokenSection(server: MCPServerDescription): React.ReactNode;
|
|
35
|
-
protected renderServerHeadersSection(server: MCPServerDescription): React.ReactNode;
|
|
36
|
-
protected renderAutostartSection(server: MCPServerDescription): React.ReactNode;
|
|
37
|
-
protected renderToolsSection(server: MCPServerDescription): React.ReactNode;
|
|
38
|
-
protected toggleTools(serverName: string): void;
|
|
39
|
-
protected renderServerControls(server: MCPServerDescription): React.ReactNode;
|
|
40
|
-
protected renderServerCard(server: MCPServerDescription): React.ReactNode;
|
|
41
|
-
protected render(): React.ReactNode;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=mcp-configuration-widget.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-configuration-widget.d.ts","sourceRoot":"","sources":["../../../src/browser/ai-configuration/mcp-configuration-widget.tsx"],"names":[],"mappings":";AAgBA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAGH,8BAA8B,EAC9B,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EAClB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,cAAc,EAAO,MAAM,aAAa,CAAC;AAGlD,qBACa,wBAAyB,SAAQ,WAAW;IAErD,MAAM,CAAC,QAAQ,CAAC,EAAE,2CAA2C;IAC7D,MAAM,CAAC,QAAQ,CAAC,KAAK,SAAwE;IAE7F,SAAS,CAAC,OAAO,EAAE,oBAAoB,EAAE,CAAM;IAC/C,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;IAGtD,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,8BAA8B,EAAE,8BAA8B,CAAC;IAGlF,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IAG9C,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,IAAI,IAAI,IAAI;cAUN,WAAW,IAAI,OAAO,CAAC,IAAI,C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,4BAA4B,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAYrF,SAAS,CAAC,0BAA0B,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAmBnF,SAAS,CAAC,sBAAsB,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAc/E,SAAS,CAAC,kBAAkB,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAsF3E,SAAS,CAAC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IAK/C,SAAS,CAAC,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAiC7E,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,GAAG,KAAK,CAAC,SAAS;IAkBzE,SAAS,CAAC,MAAM,IAAI,KAAK,CAAC,SAAS;CAgBtC"}
|
|
@@ -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
|