@theia/ai-ide 1.67.0-next.56 → 1.67.0-next.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +41 -0
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/agent-configuration-widget.js +333 -0
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts +18 -0
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-service.js +53 -0
- package/lib/browser/ai-configuration/ai-configuration-service.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +14 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +67 -0
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +29 -0
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/ai-configuration-widget.js +118 -0
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/language-model-renderer.d.ts +13 -0
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -0
- package/lib/browser/ai-configuration/language-model-renderer.js +104 -0
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -0
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts +43 -0
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/mcp-configuration-widget.js +302 -0
- package/lib/browser/ai-configuration/mcp-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +41 -0
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +226 -0
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +141 -0
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +508 -0
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts +10 -0
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +1 -0
- package/lib/browser/ai-configuration/template-settings-renderer.js +48 -0
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +1 -0
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +22 -0
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +156 -0
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +30 -0
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/tools-configuration-widget.js +150 -0
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +1 -0
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +19 -0
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +1 -0
- package/lib/browser/ai-configuration/variable-configuration-widget.js +99 -0
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +1 -0
- package/lib/browser/ai-ide-activation-service.d.ts +18 -0
- package/lib/browser/ai-ide-activation-service.d.ts.map +1 -0
- package/lib/browser/ai-ide-activation-service.js +71 -0
- package/lib/browser/ai-ide-activation-service.js.map +1 -0
- package/lib/browser/ai-terminal-functions.d.ts +13 -0
- package/lib/browser/ai-terminal-functions.d.ts.map +1 -0
- package/lib/browser/ai-terminal-functions.js +114 -0
- package/lib/browser/ai-terminal-functions.js.map +1 -0
- package/lib/browser/app-tester-chat-agent.d.ts +35 -0
- package/lib/browser/app-tester-chat-agent.d.ts.map +1 -0
- package/lib/browser/app-tester-chat-agent.js +142 -0
- package/lib/browser/app-tester-chat-agent.js.map +1 -0
- package/lib/browser/app-tester-chat-functions.d.ts +25 -0
- package/lib/browser/app-tester-chat-functions.d.ts.map +1 -0
- package/lib/browser/app-tester-chat-functions.js +170 -0
- package/lib/browser/app-tester-chat-functions.js.map +1 -0
- package/lib/browser/app-tester-prompt-template.d.ts +6 -0
- package/lib/browser/app-tester-prompt-template.d.ts.map +1 -0
- package/lib/browser/app-tester-prompt-template.js +83 -0
- package/lib/browser/app-tester-prompt-template.js.map +1 -0
- package/lib/browser/architect-agent.d.ts +15 -0
- package/lib/browser/architect-agent.d.ts.map +1 -0
- package/lib/browser/architect-agent.js +68 -0
- package/lib/browser/architect-agent.js.map +1 -0
- package/lib/browser/coder-agent.d.ts +15 -0
- package/lib/browser/coder-agent.d.ts.map +1 -0
- package/lib/browser/coder-agent.js +81 -0
- package/lib/browser/coder-agent.js.map +1 -0
- package/lib/browser/context-file-validation-service-impl.d.ts +13 -0
- package/lib/browser/context-file-validation-service-impl.d.ts.map +1 -0
- package/lib/browser/context-file-validation-service-impl.js +123 -0
- package/lib/browser/context-file-validation-service-impl.js.map +1 -0
- package/lib/browser/context-file-validation-service-impl.spec.d.ts +2 -0
- package/lib/browser/context-file-validation-service-impl.spec.d.ts.map +1 -0
- package/lib/browser/context-file-validation-service-impl.spec.js +340 -0
- package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -0
- package/lib/browser/context-functions.d.ts +16 -0
- package/lib/browser/context-functions.d.ts.map +1 -0
- package/lib/browser/context-functions.js +166 -0
- package/lib/browser/context-functions.js.map +1 -0
- package/lib/browser/context-functions.spec.d.ts +2 -0
- package/lib/browser/context-functions.spec.d.ts.map +1 -0
- package/lib/browser/context-functions.spec.js +213 -0
- package/lib/browser/context-functions.spec.js.map +1 -0
- package/lib/browser/file-changeset-function.spec.d.ts +2 -0
- package/lib/browser/file-changeset-function.spec.d.ts.map +1 -0
- package/lib/browser/file-changeset-function.spec.js +45 -0
- package/lib/browser/file-changeset-function.spec.js.map +1 -0
- package/lib/browser/file-changeset-functions.d.ts +87 -0
- package/lib/browser/file-changeset-functions.d.ts.map +1 -0
- package/lib/browser/file-changeset-functions.js +645 -0
- package/lib/browser/file-changeset-functions.js.map +1 -0
- package/lib/browser/file-changeset-functions.spec.d.ts +2 -0
- package/lib/browser/file-changeset-functions.spec.d.ts.map +1 -0
- package/lib/browser/file-changeset-functions.spec.js +179 -0
- package/lib/browser/file-changeset-functions.spec.js.map +1 -0
- package/lib/browser/frontend-module.d.ts +5 -0
- package/lib/browser/frontend-module.d.ts.map +1 -0
- package/lib/browser/frontend-module.js +220 -0
- package/lib/browser/frontend-module.js.map +1 -0
- package/lib/browser/github-chat-agent.d.ts +48 -0
- package/lib/browser/github-chat-agent.d.ts.map +1 -0
- package/lib/browser/github-chat-agent.js +222 -0
- package/lib/browser/github-chat-agent.js.map +1 -0
- package/lib/browser/github-prompt-template.d.ts +6 -0
- package/lib/browser/github-prompt-template.d.ts.map +1 -0
- package/lib/browser/github-prompt-template.js +53 -0
- package/lib/browser/github-prompt-template.js.map +1 -0
- package/lib/browser/github-repo-variable-contribution.d.ts +15 -0
- package/lib/browser/github-repo-variable-contribution.d.ts.map +1 -0
- package/lib/browser/github-repo-variable-contribution.js +82 -0
- package/lib/browser/github-repo-variable-contribution.js.map +1 -0
- package/lib/browser/ide-chat-welcome-message-provider.d.ts +10 -0
- package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +1 -0
- package/lib/browser/ide-chat-welcome-message-provider.js +102 -0
- package/lib/browser/ide-chat-welcome-message-provider.js.map +1 -0
- package/lib/browser/project-info-agent.d.ts +13 -0
- package/lib/browser/project-info-agent.d.ts.map +1 -0
- package/lib/browser/project-info-agent.js +45 -0
- package/lib/browser/project-info-agent.js.map +1 -0
- package/lib/browser/remember-command-contribution.d.ts +16 -0
- package/lib/browser/remember-command-contribution.d.ts.map +1 -0
- package/lib/browser/remember-command-contribution.js +101 -0
- package/lib/browser/remember-command-contribution.js.map +1 -0
- package/lib/browser/summarize-session-command-contribution.d.ts +19 -0
- package/lib/browser/summarize-session-command-contribution.d.ts.map +1 -0
- package/lib/browser/summarize-session-command-contribution.js +118 -0
- package/lib/browser/summarize-session-command-contribution.js.map +1 -0
- package/lib/browser/task-background-summary-variable.d.ts +9 -0
- package/lib/browser/task-background-summary-variable.d.ts.map +1 -0
- package/lib/browser/task-background-summary-variable.js +60 -0
- package/lib/browser/task-background-summary-variable.js.map +1 -0
- package/lib/browser/task-context-agent.d.ts +13 -0
- package/lib/browser/task-context-agent.d.ts.map +1 -0
- package/lib/browser/task-context-agent.js +45 -0
- package/lib/browser/task-context-agent.js.map +1 -0
- package/lib/browser/task-context-file-storage-service.d.ts +40 -0
- package/lib/browser/task-context-file-storage-service.d.ts.map +1 -0
- package/lib/browser/task-context-file-storage-service.js +232 -0
- package/lib/browser/task-context-file-storage-service.js.map +1 -0
- package/lib/browser/template-preference-contribution.d.ts +17 -0
- package/lib/browser/template-preference-contribution.d.ts.map +1 -0
- package/lib/browser/template-preference-contribution.js +94 -0
- package/lib/browser/template-preference-contribution.js.map +1 -0
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts +2 -0
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts.map +1 -0
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +52 -0
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +1 -0
- package/lib/browser/workspace-functions.d.ts +78 -0
- package/lib/browser/workspace-functions.d.ts.map +1 -0
- package/lib/browser/workspace-functions.js +697 -0
- package/lib/browser/workspace-functions.js.map +1 -0
- package/lib/browser/workspace-functions.spec.d.ts +2 -0
- package/lib/browser/workspace-functions.spec.d.ts.map +1 -0
- package/lib/browser/workspace-functions.spec.js +161 -0
- package/lib/browser/workspace-functions.spec.js.map +1 -0
- package/lib/browser/workspace-launch-provider.d.ts +24 -0
- package/lib/browser/workspace-launch-provider.d.ts.map +1 -0
- package/lib/browser/workspace-launch-provider.js +216 -0
- package/lib/browser/workspace-launch-provider.js.map +1 -0
- package/lib/browser/workspace-launch-provider.spec.d.ts +2 -0
- package/lib/browser/workspace-launch-provider.spec.d.ts.map +1 -0
- package/lib/browser/workspace-launch-provider.spec.js +245 -0
- package/lib/browser/workspace-launch-provider.spec.js.map +1 -0
- package/lib/browser/workspace-search-provider.d.ts +15 -0
- package/lib/browser/workspace-search-provider.d.ts.map +1 -0
- package/lib/browser/workspace-search-provider.js +204 -0
- package/lib/browser/workspace-search-provider.js.map +1 -0
- package/lib/browser/workspace-search-provider.spec.d.ts +2 -0
- package/lib/browser/workspace-search-provider.spec.d.ts.map +1 -0
- package/lib/browser/workspace-search-provider.spec.js +82 -0
- package/lib/browser/workspace-search-provider.spec.js.map +1 -0
- package/lib/browser/workspace-task-provider.d.ts +15 -0
- package/lib/browser/workspace-task-provider.d.ts.map +1 -0
- package/lib/browser/workspace-task-provider.js +138 -0
- package/lib/browser/workspace-task-provider.js.map +1 -0
- package/lib/browser/workspace-task-provider.spec.d.ts +2 -0
- package/lib/browser/workspace-task-provider.spec.d.ts.map +1 -0
- package/lib/browser/workspace-task-provider.spec.js +109 -0
- package/lib/browser/workspace-task-provider.spec.js.map +1 -0
- package/lib/common/ai-configuration-preferences.d.ts +8 -0
- package/lib/common/ai-configuration-preferences.d.ts.map +1 -0
- package/lib/common/ai-configuration-preferences.js +41 -0
- package/lib/common/ai-configuration-preferences.js.map +1 -0
- package/lib/common/ai-ide-preferences.d.ts +5 -0
- package/lib/common/ai-ide-preferences.d.ts.map +1 -0
- package/lib/common/ai-ide-preferences.js +53 -0
- package/lib/common/ai-ide-preferences.js.map +1 -0
- package/lib/common/ai-terminal-functions.d.ts +2 -0
- package/lib/common/ai-terminal-functions.d.ts.map +1 -0
- package/lib/common/ai-terminal-functions.js +20 -0
- package/lib/common/ai-terminal-functions.js.map +1 -0
- package/lib/common/app-tester-chat-functions.d.ts +5 -0
- package/lib/common/app-tester-chat-functions.d.ts.map +1 -0
- package/lib/common/app-tester-chat-functions.js +23 -0
- package/lib/common/app-tester-chat-functions.js.map +1 -0
- package/lib/common/architect-prompt-template.d.ts +3 -0
- package/lib/common/architect-prompt-template.d.ts.map +1 -0
- package/lib/common/architect-prompt-template.js +81 -0
- package/lib/common/architect-prompt-template.js.map +1 -0
- package/lib/common/browser-automation-protocol.d.ts +15 -0
- package/lib/common/browser-automation-protocol.d.ts.map +1 -0
- package/lib/common/browser-automation-protocol.js +22 -0
- package/lib/common/browser-automation-protocol.js.map +1 -0
- package/lib/common/coder-replace-prompt-template.d.ts +11 -0
- package/lib/common/coder-replace-prompt-template.d.ts.map +1 -0
- package/lib/common/coder-replace-prompt-template.js +296 -0
- package/lib/common/coder-replace-prompt-template.js.map +1 -0
- package/lib/common/command-chat-agents.d.ts +36 -0
- package/lib/common/command-chat-agents.d.ts.map +1 -0
- package/lib/common/command-chat-agents.js +122 -0
- package/lib/common/command-chat-agents.js.map +1 -0
- package/lib/common/command-prompt-template.d.ts +3 -0
- package/lib/common/command-prompt-template.d.ts.map +1 -0
- package/lib/common/command-prompt-template.js +226 -0
- package/lib/common/command-prompt-template.js.map +1 -0
- package/lib/common/context-files-variable.d.ts +9 -0
- package/lib/common/context-files-variable.d.ts.map +1 -0
- package/lib/common/context-files-variable.js +52 -0
- package/lib/common/context-files-variable.js.map +1 -0
- package/lib/common/context-functions.d.ts +4 -0
- package/lib/common/context-functions.d.ts.map +1 -0
- package/lib/common/context-functions.js +22 -0
- package/lib/common/context-functions.js.map +1 -0
- package/lib/common/context-variables.d.ts +3 -0
- package/lib/common/context-variables.d.ts.map +1 -0
- package/lib/common/context-variables.js +21 -0
- package/lib/common/context-variables.js.map +1 -0
- package/lib/common/file-changeset-function-ids.d.ts +19 -0
- package/lib/common/file-changeset-function-ids.d.ts.map +1 -0
- package/lib/common/file-changeset-function-ids.js +37 -0
- package/lib/common/file-changeset-function-ids.js.map +1 -0
- package/lib/common/github-repo-protocol.d.ts +15 -0
- package/lib/common/github-repo-protocol.d.ts.map +1 -0
- package/lib/common/github-repo-protocol.js +21 -0
- package/lib/common/github-repo-protocol.js.map +1 -0
- package/lib/common/orchestrator-chat-agent.d.ts +36 -0
- package/lib/common/orchestrator-chat-agent.d.ts.map +1 -0
- package/lib/common/orchestrator-chat-agent.js +167 -0
- package/lib/common/orchestrator-chat-agent.js.map +1 -0
- package/lib/common/orchestrator-prompt-template.d.ts +3 -0
- package/lib/common/orchestrator-prompt-template.d.ts.map +1 -0
- package/lib/common/orchestrator-prompt-template.js +55 -0
- package/lib/common/orchestrator-prompt-template.js.map +1 -0
- package/lib/common/project-info-prompt-template.d.ts +6 -0
- package/lib/common/project-info-prompt-template.d.ts.map +1 -0
- package/lib/common/project-info-prompt-template.js +145 -0
- package/lib/common/project-info-prompt-template.js.map +1 -0
- package/lib/common/summarize-session-commands.d.ts +4 -0
- package/lib/common/summarize-session-commands.d.ts.map +1 -0
- package/lib/common/summarize-session-commands.js +28 -0
- package/lib/common/summarize-session-commands.js.map +1 -0
- package/lib/common/task-context-prompt-template.d.ts +8 -0
- package/lib/common/task-context-prompt-template.d.ts.map +1 -0
- package/lib/common/task-context-prompt-template.js +217 -0
- package/lib/common/task-context-prompt-template.js.map +1 -0
- package/lib/common/universal-chat-agent.d.ts +17 -0
- package/lib/common/universal-chat-agent.d.ts.map +1 -0
- package/lib/common/universal-chat-agent.js +47 -0
- package/lib/common/universal-chat-agent.js.map +1 -0
- package/lib/common/universal-prompt-template.d.ts +4 -0
- package/lib/common/universal-prompt-template.d.ts.map +1 -0
- package/lib/common/universal-prompt-template.js +32 -0
- package/lib/common/universal-prompt-template.js.map +1 -0
- package/lib/common/workspace-functions.d.ts +12 -0
- package/lib/common/workspace-functions.d.ts.map +1 -0
- package/lib/common/workspace-functions.js +30 -0
- package/lib/common/workspace-functions.js.map +1 -0
- package/lib/common/workspace-preferences.d.ts +10 -0
- package/lib/common/workspace-preferences.d.ts.map +1 -0
- package/lib/common/workspace-preferences.js +89 -0
- package/lib/common/workspace-preferences.js.map +1 -0
- package/lib/common/workspace-search-provider-util.d.ts +17 -0
- package/lib/common/workspace-search-provider-util.d.ts.map +1 -0
- package/lib/common/workspace-search-provider-util.js +51 -0
- package/lib/common/workspace-search-provider-util.js.map +1 -0
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts +18 -0
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +1 -0
- package/lib/node/app-tester-agent/browser-automation-impl.js +96 -0
- package/lib/node/app-tester-agent/browser-automation-impl.js.map +1 -0
- package/lib/node/backend-module.d.ts +4 -0
- package/lib/node/backend-module.d.ts.map +1 -0
- package/lib/node/backend-module.js +45 -0
- package/lib/node/backend-module.js.map +1 -0
- package/lib/node/github-repo-service-impl.d.ts +7 -0
- package/lib/node/github-repo-service-impl.d.ts.map +1 -0
- package/lib/node/github-repo-service-impl.js +86 -0
- package/lib/node/github-repo-service-impl.js.map +1 -0
- package/lib/package.spec.d.ts +1 -0
- package/lib/package.spec.d.ts.map +1 -0
- package/lib/package.spec.js +26 -0
- package/lib/package.spec.js.map +1 -0
- package/package.json +21 -21
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FrontendApplicationContribution } from '@theia/core/lib/browser';
|
|
2
|
+
import { PromptService } from '@theia/ai-core/lib/common';
|
|
3
|
+
/**
|
|
4
|
+
* Contribution that registers the `/remember` slash command for AI chat agents.
|
|
5
|
+
*
|
|
6
|
+
* This command allows Architect and Coder agents to extract important topics
|
|
7
|
+
* from the current conversation and delegate to the ProjectInfo agent to update
|
|
8
|
+
* the persistent project context file.
|
|
9
|
+
*/
|
|
10
|
+
export declare class RememberCommandContribution implements FrontendApplicationContribution {
|
|
11
|
+
protected readonly promptService: PromptService;
|
|
12
|
+
onStart(): void;
|
|
13
|
+
protected registerRememberCommand(): void;
|
|
14
|
+
protected buildCommandTemplate(): string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=remember-command-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remember-command-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/remember-command-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAE1E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D;;;;;;GAMG;AACH,qBACa,2BAA4B,YAAW,+BAA+B;IAG/E,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEhD,OAAO,IAAI,IAAI;IAIf,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAoBzC,SAAS,CAAC,oBAAoB,IAAI,MAAM;CA6C3C"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.RememberCommandContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
+
const common_1 = require("@theia/ai-core/lib/common");
|
|
22
|
+
const core_1 = require("@theia/core");
|
|
23
|
+
const agent_delegation_tool_1 = require("@theia/ai-chat/lib/browser/agent-delegation-tool");
|
|
24
|
+
/**
|
|
25
|
+
* Contribution that registers the `/remember` slash command for AI chat agents.
|
|
26
|
+
*
|
|
27
|
+
* This command allows Architect and Coder agents to extract important topics
|
|
28
|
+
* from the current conversation and delegate to the ProjectInfo agent to update
|
|
29
|
+
* the persistent project context file.
|
|
30
|
+
*/
|
|
31
|
+
let RememberCommandContribution = class RememberCommandContribution {
|
|
32
|
+
onStart() {
|
|
33
|
+
this.registerRememberCommand();
|
|
34
|
+
}
|
|
35
|
+
registerRememberCommand() {
|
|
36
|
+
const commandTemplate = this.buildCommandTemplate();
|
|
37
|
+
this.promptService.addBuiltInPromptFragment({
|
|
38
|
+
id: 'remember-conversation-context',
|
|
39
|
+
template: commandTemplate,
|
|
40
|
+
isCommand: true,
|
|
41
|
+
commandName: 'remember',
|
|
42
|
+
commandDescription: core_1.nls.localize('theia/ai-ide/rememberCommand/description', 'Extract topics from conversation and update project info'),
|
|
43
|
+
commandArgumentHint: core_1.nls.localize('theia/ai-ide/rememberCommand/argumentHint', '[topic-hint]'),
|
|
44
|
+
commandAgents: ['Architect', 'Coder']
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
buildCommandTemplate() {
|
|
48
|
+
return `You have been asked to extract and remember important information from the current conversation.
|
|
49
|
+
|
|
50
|
+
## Task Overview
|
|
51
|
+
Review the conversation history and identify specific information that should be added to the persistent project context.
|
|
52
|
+
|
|
53
|
+
## Focus Area
|
|
54
|
+
$ARGUMENTS
|
|
55
|
+
|
|
56
|
+
## What to Extract
|
|
57
|
+
**If a focus area is provided above**: ONLY extract information related to that specific focus area. Ignore all other topics.
|
|
58
|
+
|
|
59
|
+
**If no focus area is provided**: Look specifically for information where the user had to correct you or provide clarification:
|
|
60
|
+
- **User corrections**: When the user corrected your assumptions about the codebase, architecture, or processes
|
|
61
|
+
- **User-provided context**: Information the user explicitly provided that you couldn't discover yourself
|
|
62
|
+
- **Project-specific knowledge**: Details about the project that the user shared when you made incorrect assumptions
|
|
63
|
+
|
|
64
|
+
**Do NOT extract**:
|
|
65
|
+
- General information you discovered through code analysis
|
|
66
|
+
- Standard coding practices you identified yourself
|
|
67
|
+
- Information you found by exploring the codebase
|
|
68
|
+
- Common knowledge or widely-known patterns
|
|
69
|
+
- Details that are already well-documented in the code
|
|
70
|
+
|
|
71
|
+
## Instructions
|
|
72
|
+
1. **Analyze the conversation**: Review messages for the specific criteria above
|
|
73
|
+
2. **Extract only relevant information**: For each qualifying item, prepare a clear description that captures:
|
|
74
|
+
- What the user corrected or clarified
|
|
75
|
+
- Why your initial understanding was incomplete
|
|
76
|
+
- The specific project context that was provided
|
|
77
|
+
3. **Delegate to ProjectInfo agent**: Use the ~{${agent_delegation_tool_1.AGENT_DELEGATION_FUNCTION_ID}} tool to send the extracted information to the ProjectInfo agent:
|
|
78
|
+
- Agent ID: 'ProjectInfo'
|
|
79
|
+
- Prompt: Ask the ProjectInfo agent to review the extracted information and update the project information file
|
|
80
|
+
|
|
81
|
+
## Example Delegation
|
|
82
|
+
\`\`\`
|
|
83
|
+
Please review and incorporate the following user corrections/clarifications into the project context:
|
|
84
|
+
|
|
85
|
+
[Your extracted corrections and user-provided context here]
|
|
86
|
+
|
|
87
|
+
Update /.prompts/project-info.prompttemplate by adding this information to the appropriate sections. Focus on information that prevents future misunderstandings.
|
|
88
|
+
\`\`\`
|
|
89
|
+
|
|
90
|
+
Remember: Only extract information that prevents future AI agents from making the same mistakes or assumptions you made that were corrected by the user.`;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
exports.RememberCommandContribution = RememberCommandContribution;
|
|
94
|
+
tslib_1.__decorate([
|
|
95
|
+
(0, inversify_1.inject)(common_1.PromptService),
|
|
96
|
+
tslib_1.__metadata("design:type", Object)
|
|
97
|
+
], RememberCommandContribution.prototype, "promptService", void 0);
|
|
98
|
+
exports.RememberCommandContribution = RememberCommandContribution = tslib_1.__decorate([
|
|
99
|
+
(0, inversify_1.injectable)()
|
|
100
|
+
], RememberCommandContribution);
|
|
101
|
+
//# sourceMappingURL=remember-command-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remember-command-contribution.js","sourceRoot":"","sources":["../../src/browser/remember-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAGhF,4DAAkE;AAClE,sDAA0D;AAC1D,sCAAkC;AAClC,4FAAgG;AAEhG;;;;;;GAMG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAKpC,OAAO;QACH,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACnC,CAAC;IAES,uBAAuB;QAC7B,MAAM,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAEpD,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC;YACxC,EAAE,EAAE,+BAA+B;YACnC,QAAQ,EAAE,eAAe;YACzB,SAAS,EAAE,IAAI;YACf,WAAW,EAAE,UAAU;YACvB,kBAAkB,EAAE,UAAG,CAAC,QAAQ,CAC5B,0CAA0C,EAC1C,0DAA0D,CAC7D;YACD,mBAAmB,EAAE,UAAG,CAAC,QAAQ,CAC7B,2CAA2C,EAC3C,cAAc,CACjB;YACD,aAAa,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC;SACxC,CAAC,CAAC;IACP,CAAC;IAES,oBAAoB;QAC1B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sDA6BuC,oDAA4B;;;;;;;;;;;;;6JAa2E,CAAC;IAC1J,CAAC;CACJ,CAAA;AA1EY,kEAA2B;AAGjB;IADlB,IAAA,kBAAM,EAAC,sBAAa,CAAC;;kEAC0B;sCAHvC,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CA0EvC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ChatService } from '@theia/ai-chat/lib/common';
|
|
2
|
+
import { CommandContribution, CommandRegistry, CommandService } from '@theia/core';
|
|
3
|
+
import { TaskContextStorageService, TaskContextService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
4
|
+
import { CoderAgent } from './coder-agent';
|
|
5
|
+
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
6
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
7
|
+
import { AICommandHandlerFactory } from '@theia/ai-core/lib/browser';
|
|
8
|
+
export declare class SummarizeSessionCommandContribution implements CommandContribution {
|
|
9
|
+
protected readonly chatService: ChatService;
|
|
10
|
+
protected readonly taskContextService: TaskContextService;
|
|
11
|
+
protected readonly commandService: CommandService;
|
|
12
|
+
protected readonly coderAgent: CoderAgent;
|
|
13
|
+
protected readonly taskContextStorageService: TaskContextStorageService;
|
|
14
|
+
protected readonly fileService: FileService;
|
|
15
|
+
protected readonly wsService: WorkspaceService;
|
|
16
|
+
protected readonly commandHandlerFactory: AICommandHandlerFactory;
|
|
17
|
+
registerCommands(registry: CommandRegistry): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=summarize-session-command-contribution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize-session-command-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAqB,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AAGhH,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAErE,qBACa,mCAAoC,YAAW,mBAAmB;IAE3E,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAG1D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IAGlD,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAG1C,SAAS,CAAC,QAAQ,CAAC,yBAAyB,EAAE,yBAAyB,CAAC;IAGxE,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAG5C,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IAG/C,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,uBAAuB,CAAC;IAElE,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;CAwDpD"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.SummarizeSessionCommandContribution = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const common_1 = require("@theia/ai-chat/lib/common");
|
|
21
|
+
const core_1 = require("@theia/core");
|
|
22
|
+
const task_context_service_1 = require("@theia/ai-chat/lib/browser/task-context-service");
|
|
23
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
24
|
+
const summarize_session_commands_1 = require("../common/summarize-session-commands");
|
|
25
|
+
const coder_agent_1 = require("./coder-agent");
|
|
26
|
+
const task_context_variable_1 = require("@theia/ai-chat/lib/browser/task-context-variable");
|
|
27
|
+
const task_context_prompt_template_1 = require("../common/task-context-prompt-template");
|
|
28
|
+
const file_variable_contribution_1 = require("@theia/ai-core/lib/browser/file-variable-contribution");
|
|
29
|
+
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
30
|
+
const browser_1 = require("@theia/workspace/lib/browser");
|
|
31
|
+
const browser_2 = require("@theia/ai-core/lib/browser");
|
|
32
|
+
let SummarizeSessionCommandContribution = class SummarizeSessionCommandContribution {
|
|
33
|
+
registerCommands(registry) {
|
|
34
|
+
registry.registerCommand(summarize_session_commands_1.AI_UPDATE_TASK_CONTEXT_COMMAND, this.commandHandlerFactory({
|
|
35
|
+
execute: async () => {
|
|
36
|
+
const activeSession = this.chatService.getActiveSession();
|
|
37
|
+
if (!activeSession) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
// Check if there is an existing summary for this session
|
|
41
|
+
if (!this.taskContextService.hasSummary(activeSession)) {
|
|
42
|
+
// If no summary exists, create one first
|
|
43
|
+
await this.taskContextService.summarize(activeSession, task_context_prompt_template_1.TASK_CONTEXT_CREATE_PROMPT_ID);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
// Update existing summary
|
|
47
|
+
await this.taskContextService.update(activeSession, task_context_prompt_template_1.TASK_CONTEXT_UPDATE_PROMPT_ID);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
registry.registerCommand(summarize_session_commands_1.AI_SUMMARIZE_SESSION_AS_TASK_FOR_CODER, this.commandHandlerFactory({
|
|
52
|
+
execute: async () => {
|
|
53
|
+
const activeSession = this.chatService.getActiveSession();
|
|
54
|
+
if (!activeSession) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const summaryId = await this.taskContextService.summarize(activeSession, task_context_prompt_template_1.TASK_CONTEXT_CREATE_PROMPT_ID);
|
|
58
|
+
// Open the summary in a new editor
|
|
59
|
+
await this.taskContextStorageService.open(summaryId);
|
|
60
|
+
// Add the summary file to the context of the active Architect session
|
|
61
|
+
const summary = this.taskContextService.getAll().find(s => s.id === summaryId);
|
|
62
|
+
if (summary === null || summary === void 0 ? void 0 : summary.uri) {
|
|
63
|
+
if (await this.fileService.exists(summary === null || summary === void 0 ? void 0 : summary.uri)) {
|
|
64
|
+
const wsRelativePath = await this.wsService.getWorkspaceRelativePath(summary === null || summary === void 0 ? void 0 : summary.uri);
|
|
65
|
+
// Create a file variable for the summary
|
|
66
|
+
const fileVariable = {
|
|
67
|
+
variable: file_variable_contribution_1.FILE_VARIABLE,
|
|
68
|
+
arg: wsRelativePath
|
|
69
|
+
};
|
|
70
|
+
// Add the file to the active session's context
|
|
71
|
+
activeSession.model.context.addVariables(fileVariable);
|
|
72
|
+
}
|
|
73
|
+
// Create a new session with the coder agent
|
|
74
|
+
const newSession = this.chatService.createSession(common_1.ChatAgentLocation.Panel, { focus: true }, this.coderAgent);
|
|
75
|
+
const summaryVariable = { variable: task_context_variable_1.TASK_CONTEXT_VARIABLE, arg: summaryId };
|
|
76
|
+
newSession.model.context.addVariables(summaryVariable);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
exports.SummarizeSessionCommandContribution = SummarizeSessionCommandContribution;
|
|
83
|
+
tslib_1.__decorate([
|
|
84
|
+
(0, inversify_1.inject)(common_1.ChatService),
|
|
85
|
+
tslib_1.__metadata("design:type", Object)
|
|
86
|
+
], SummarizeSessionCommandContribution.prototype, "chatService", void 0);
|
|
87
|
+
tslib_1.__decorate([
|
|
88
|
+
(0, inversify_1.inject)(task_context_service_1.TaskContextService),
|
|
89
|
+
tslib_1.__metadata("design:type", task_context_service_1.TaskContextService)
|
|
90
|
+
], SummarizeSessionCommandContribution.prototype, "taskContextService", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, inversify_1.inject)(core_1.CommandService),
|
|
93
|
+
tslib_1.__metadata("design:type", Object)
|
|
94
|
+
], SummarizeSessionCommandContribution.prototype, "commandService", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, inversify_1.inject)(coder_agent_1.CoderAgent),
|
|
97
|
+
tslib_1.__metadata("design:type", coder_agent_1.CoderAgent)
|
|
98
|
+
], SummarizeSessionCommandContribution.prototype, "coderAgent", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, inversify_1.inject)(task_context_service_1.TaskContextStorageService),
|
|
101
|
+
tslib_1.__metadata("design:type", Object)
|
|
102
|
+
], SummarizeSessionCommandContribution.prototype, "taskContextStorageService", void 0);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, inversify_1.inject)(file_service_1.FileService),
|
|
105
|
+
tslib_1.__metadata("design:type", file_service_1.FileService)
|
|
106
|
+
], SummarizeSessionCommandContribution.prototype, "fileService", void 0);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
(0, inversify_1.inject)(browser_1.WorkspaceService),
|
|
109
|
+
tslib_1.__metadata("design:type", browser_1.WorkspaceService)
|
|
110
|
+
], SummarizeSessionCommandContribution.prototype, "wsService", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, inversify_1.inject)(browser_2.AICommandHandlerFactory),
|
|
113
|
+
tslib_1.__metadata("design:type", Function)
|
|
114
|
+
], SummarizeSessionCommandContribution.prototype, "commandHandlerFactory", void 0);
|
|
115
|
+
exports.SummarizeSessionCommandContribution = SummarizeSessionCommandContribution = tslib_1.__decorate([
|
|
116
|
+
(0, inversify_1.injectable)()
|
|
117
|
+
], SummarizeSessionCommandContribution);
|
|
118
|
+
//# sourceMappingURL=summarize-session-command-contribution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summarize-session-command-contribution.js","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sDAA2E;AAC3E,sCAAmF;AACnF,0FAAgH;AAChH,4DAAkE;AAClE,qFAA8H;AAC9H,+CAA2C;AAC3C,4FAAyF;AACzF,yFAAsH;AACtH,sGAAsF;AAEtF,6EAAyE;AACzE,0DAAgE;AAChE,wDAAqE;AAG9D,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAyB5C,gBAAgB,CAAC,QAAyB;QACtC,QAAQ,CAAC,eAAe,CAAC,2DAA8B,EAAE,IAAI,CAAC,qBAAqB,CAAC;YAChF,OAAO,EAAE,KAAK,IAAI,EAAE;gBAChB,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;gBAE1D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACjB,OAAO;gBACX,CAAC;gBAED,yDAAyD;gBACzD,IAAI,CAAC,IAAI,CAAC,kBAAkB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ePromise } from '@theia/core';
|
|
2
|
+
import { AIVariable, ResolvedAIVariable, AIVariableContribution, AIVariableService, AIVariableResolutionRequest, AIVariableContext, AIVariableResolverWithVariableDependencies, AIVariableArg } from '@theia/ai-core';
|
|
3
|
+
export declare const TASK_CONTEXT_SUMMARY_VARIABLE: AIVariable;
|
|
4
|
+
export declare class TaskContextSummaryVariableContribution implements AIVariableContribution, AIVariableResolverWithVariableDependencies {
|
|
5
|
+
registerVariables(service: AIVariableService): void;
|
|
6
|
+
canResolve(request: AIVariableResolutionRequest, context: AIVariableContext): MaybePromise<number>;
|
|
7
|
+
resolve(request: AIVariableResolutionRequest, context: AIVariableContext, resolveDependency?: (variable: AIVariableArg) => Promise<ResolvedAIVariable | undefined>): Promise<ResolvedAIVariable | undefined>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=task-background-summary-variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-background-summary-variable.d.ts","sourceRoot":"","sources":["../../src/browser/task-background-summary-variable.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAO,MAAM,aAAa,CAAC;AAEhD,OAAO,EACH,UAAU,EACV,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,iBAAiB,EACjB,0CAA0C,EAC1C,aAAa,EAChB,MAAM,gBAAgB,CAAC;AAKxB,eAAO,MAAM,6BAA6B,EAAE,UAI3C,CAAC;AAEF,qBAIa,sCAAuC,YAAW,sBAAsB,EAAE,0CAA0C;IAC7H,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI;IAInD,UAAU,CAAC,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,iBAAiB,GAAG,YAAY,CAAC,MAAM,CAAC;IAI5F,OAAO,CACT,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,iBAAiB,EAC1B,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC,GACzF,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAAC;CAW7C"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TaskContextSummaryVariableContribution = exports.TASK_CONTEXT_SUMMARY_VARIABLE = void 0;
|
|
19
|
+
const tslib_1 = require("tslib");
|
|
20
|
+
const core_1 = require("@theia/core");
|
|
21
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
22
|
+
const ai_chat_1 = require("@theia/ai-chat");
|
|
23
|
+
const task_context_variable_1 = require("@theia/ai-chat/lib/browser/task-context-variable");
|
|
24
|
+
const context_variables_1 = require("../common/context-variables");
|
|
25
|
+
exports.TASK_CONTEXT_SUMMARY_VARIABLE = {
|
|
26
|
+
id: context_variables_1.TASK_CONTEXT_SUMMARY_VARIABLE_ID,
|
|
27
|
+
description: core_1.nls.localize('theia/ai/core/taskContextSummary/description', 'Resolves all task context items present in the session context.'),
|
|
28
|
+
name: context_variables_1.TASK_CONTEXT_SUMMARY_VARIABLE_ID,
|
|
29
|
+
};
|
|
30
|
+
let TaskContextSummaryVariableContribution = class TaskContextSummaryVariableContribution {
|
|
31
|
+
registerVariables(service) {
|
|
32
|
+
service.registerResolver(exports.TASK_CONTEXT_SUMMARY_VARIABLE, this);
|
|
33
|
+
}
|
|
34
|
+
canResolve(request, context) {
|
|
35
|
+
return request.variable.name === exports.TASK_CONTEXT_SUMMARY_VARIABLE.name ? 50 : 0;
|
|
36
|
+
}
|
|
37
|
+
async resolve(request, context, resolveDependency) {
|
|
38
|
+
if (!resolveDependency || !ai_chat_1.ChatSessionContext.is(context) || request.variable.name !== exports.TASK_CONTEXT_SUMMARY_VARIABLE.name) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
const allSummaryRequests = context.model.context.getVariables().filter(candidate => candidate.variable.id === task_context_variable_1.TASK_CONTEXT_VARIABLE.id);
|
|
42
|
+
if (!allSummaryRequests.length) {
|
|
43
|
+
return { ...request, value: '' };
|
|
44
|
+
}
|
|
45
|
+
const allSummaries = await Promise.all(allSummaryRequests.map(summaryRequest => resolveDependency(summaryRequest).then(resolved => resolved === null || resolved === void 0 ? void 0 : resolved.value)));
|
|
46
|
+
const value = `# Current Task Context\n\n${allSummaries.map((content, index) => `## Task ${index + 1}\n\n${content}`).join('\n\n')}`;
|
|
47
|
+
return {
|
|
48
|
+
...request,
|
|
49
|
+
value
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
exports.TaskContextSummaryVariableContribution = TaskContextSummaryVariableContribution;
|
|
54
|
+
exports.TaskContextSummaryVariableContribution = TaskContextSummaryVariableContribution = tslib_1.__decorate([
|
|
55
|
+
(0, inversify_1.injectable)()
|
|
56
|
+
/**
|
|
57
|
+
* @class provides a summary of all TaskContextVariables in the context of a given session. Oriented towards use in prompts.
|
|
58
|
+
*/
|
|
59
|
+
], TaskContextSummaryVariableContribution);
|
|
60
|
+
//# sourceMappingURL=task-background-summary-variable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-background-summary-variable.js","sourceRoot":"","sources":["../../src/browser/task-background-summary-variable.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sCAAgD;AAChD,4DAA0D;AAW1D,4CAAoD;AACpD,4FAAyF;AACzF,mEAA+E;AAElE,QAAA,6BAA6B,GAAe;IACrD,EAAE,EAAE,oDAAgC;IACpC,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,8CAA8C,EAAE,iEAAiE,CAAC;IAC5I,IAAI,EAAE,oDAAgC;CACzC,CAAC;AAMK,IAAM,sCAAsC,GAA5C,MAAM,sCAAsC;IAC/C,iBAAiB,CAAC,OAA0B;QACxC,OAAO,CAAC,gBAAgB,CAAC,qCAA6B,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;IAED,UAAU,CAAC,OAAoC,EAAE,OAA0B;QACvE,OAAO,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,qCAA6B,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,KAAK,CAAC,OAAO,CACT,OAAoC,EACpC,OAA0B,EAC1B,iBAAwF;QAExF,IAAI,CAAC,iBAAiB,IAAI,CAAC,4BAAkB,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,KAAK,qCAA6B,CAAC,IAAI,EAAE,CAAC;YAAC,OAAO,SAAS,CAAC;QAAC,CAAC;QAChJ,MAAM,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,KAAK,6CAAqB,CAAC,EAAE,CAAC,CAAC;QACxI,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC;YAAC,OAAO,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;QAAC,CAAC;QACrE,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,KAAK,CAAC,CAAC,CAAC,CAAC;QACtJ,MAAM,KAAK,GAAG,6BAA6B,YAAY,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,KAAK,GAAG,CAAC,OAAO,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QACrI,OAAO;YACH,GAAG,OAAO;YACV,KAAK;SACR,CAAC;IACN,CAAC;CACJ,CAAA;AAxBY,wFAAsC;iDAAtC,sCAAsC;IAJlD,IAAA,sBAAU,GAAE;IACb;;OAEG;GACU,sCAAsC,CAwBlD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Agent, LanguageModelRequirement } from '@theia/ai-core';
|
|
2
|
+
export declare class TaskContextAgent implements Agent {
|
|
3
|
+
static ID: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
variables: never[];
|
|
8
|
+
prompts: import("@theia/ai-core").PromptVariantSet[];
|
|
9
|
+
languageModelRequirements: LanguageModelRequirement[];
|
|
10
|
+
agentSpecificVariables: never[];
|
|
11
|
+
functions: never[];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=task-context-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-agent.d.ts","sourceRoot":"","sources":["../../src/browser/task-context-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAKjE,qBACa,gBAAiB,YAAW,KAAK;IAC1C,MAAM,CAAC,EAAE,SAAiB;IAE1B,EAAE,SAAuB;IACzB,IAAI,SAAiB;IACrB,WAAW,SAEoK;IAE/K,SAAS,UAAM;IACf,OAAO,8CAAuF;IAC9F,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,sBAAsB,UAAM;IAC5B,SAAS,UAAM;CAClB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 TaskContextAgent_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TaskContextAgent = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const core_1 = require("@theia/core");
|
|
22
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
+
const task_context_prompt_template_1 = require("../common/task-context-prompt-template");
|
|
24
|
+
let TaskContextAgent = TaskContextAgent_1 = class TaskContextAgent {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.id = TaskContextAgent_1.ID;
|
|
27
|
+
this.name = 'TaskContext';
|
|
28
|
+
this.description = core_1.nls.localize('theia/ai/taskcontext/taskContextAgent/description', 'An AI assistant that analyzes chat sessions and creates structured task summaries for coding tasks. ' +
|
|
29
|
+
'This agent specializes in extracting key information from conversations and formatting them into comprehensive task context documents that can be used by other agents.');
|
|
30
|
+
this.variables = [];
|
|
31
|
+
this.prompts = [task_context_prompt_template_1.taskContextSystemVariants, task_context_prompt_template_1.taskContextTemplateVariants, task_context_prompt_template_1.taskContextUpdateVariants];
|
|
32
|
+
this.languageModelRequirements = [{
|
|
33
|
+
purpose: 'TaskContext Creation/Update',
|
|
34
|
+
identifier: 'default/code',
|
|
35
|
+
}];
|
|
36
|
+
this.agentSpecificVariables = [];
|
|
37
|
+
this.functions = [];
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.TaskContextAgent = TaskContextAgent;
|
|
41
|
+
TaskContextAgent.ID = 'TaskContext';
|
|
42
|
+
exports.TaskContextAgent = TaskContextAgent = TaskContextAgent_1 = tslib_1.__decorate([
|
|
43
|
+
(0, inversify_1.injectable)()
|
|
44
|
+
], TaskContextAgent);
|
|
45
|
+
//# sourceMappingURL=task-context-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-agent.js","sourceRoot":"","sources":["../../src/browser/task-context-agent.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAGhF,sCAAkC;AAClC,4DAA0D;AAC1D,yFAA2I;AAGpI,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAAtB;QAGH,OAAE,GAAG,kBAAgB,CAAC,EAAE,CAAC;QACzB,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,mDAAmD,EAC1E,sGAAsG;YACtG,yKAAyK,CAAC,CAAC;QAE/K,cAAS,GAAG,EAAE,CAAC;QACf,YAAO,GAAG,CAAC,wDAAyB,EAAE,0DAA2B,EAAE,wDAAyB,CAAC,CAAC;QAC9F,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,6BAA6B;gBACtC,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACH,2BAAsB,GAAG,EAAE,CAAC;QAC5B,cAAS,GAAG,EAAE,CAAC;IACnB,CAAC;;AAjBY,4CAAgB;AAClB,mBAAE,GAAG,aAAa,AAAhB,CAAiB;2BADjB,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAiB5B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Summary, SummaryMetadata, TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
|
|
2
|
+
import { InMemoryTaskContextStorage } from '@theia/ai-chat/lib/browser/task-context-storage-service';
|
|
3
|
+
import { DisposableCollection, Emitter, ILogger, PreferenceService, URI } from '@theia/core';
|
|
4
|
+
import { OpenerService } from '@theia/core/lib/browser';
|
|
5
|
+
import { FileService } from '@theia/filesystem/lib/browser/file-service';
|
|
6
|
+
import { WorkspaceService } from '@theia/workspace/lib/browser';
|
|
7
|
+
import { FileChange } from '@theia/filesystem/lib/common/files';
|
|
8
|
+
export declare class TaskContextFileStorageService implements TaskContextStorageService {
|
|
9
|
+
protected readonly inMemoryStorage: InMemoryTaskContextStorage;
|
|
10
|
+
protected readonly preferenceService: PreferenceService;
|
|
11
|
+
protected readonly workspaceService: WorkspaceService;
|
|
12
|
+
protected readonly fileService: FileService;
|
|
13
|
+
protected readonly openerService: OpenerService;
|
|
14
|
+
protected readonly logger: ILogger;
|
|
15
|
+
protected readonly onDidChangeEmitter: Emitter<void>;
|
|
16
|
+
readonly onDidChange: import("@theia/core").Event<void>;
|
|
17
|
+
protected sanitizeLabel(label: string): string;
|
|
18
|
+
protected getStorageLocation(): URI | undefined;
|
|
19
|
+
protected init(): void;
|
|
20
|
+
protected get ready(): Promise<void>;
|
|
21
|
+
protected doInit(): Promise<void>;
|
|
22
|
+
protected toDisposeOnStorageChange?: DisposableCollection;
|
|
23
|
+
protected watchStorage(): Promise<void>;
|
|
24
|
+
protected handleChanges(changes: FileChange[]): Promise<void>;
|
|
25
|
+
protected clearInMemoryStorage(): void;
|
|
26
|
+
protected deleteFileReference(uri: URI): boolean;
|
|
27
|
+
protected cacheNewTasks(storageLocation: URI): Promise<void>;
|
|
28
|
+
protected readFile(uri: URI): Promise<void>;
|
|
29
|
+
store(summary: Summary): Promise<void>;
|
|
30
|
+
getAll(): Summary[];
|
|
31
|
+
get(identifier: string): Summary | undefined;
|
|
32
|
+
delete(identifier: string): Promise<boolean>;
|
|
33
|
+
protected maybeReadFrontmatter(content: string): {
|
|
34
|
+
body: string;
|
|
35
|
+
frontmatter: SummaryMetadata | undefined;
|
|
36
|
+
};
|
|
37
|
+
protected hasLabel(candidate: unknown): candidate is SummaryMetadata;
|
|
38
|
+
open(identifier: string): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=task-context-file-storage-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-file-storage-service.d.ts","sourceRoot":"","sources":["../../src/browser/task-context-file-storage-service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC;AACtH,OAAO,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAC;AAErG,OAAO,EAAE,oBAAoB,EAAO,OAAO,EAAE,OAAO,EAAQ,iBAAiB,EAAE,GAAG,EAAe,MAAM,aAA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