@theia/ai-ide 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +21 -21
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +3 -3
- package/src/browser/file-changeset-functions.spec.ts +13 -13
- package/src/browser/file-changeset-functions.ts +9 -9
- package/src/browser/frontend-module.ts +7 -4
- package/src/browser/ide-chat-welcome-message-provider.tsx +64 -70
- package/src/browser/remember-command-contribution.ts +105 -0
- package/src/common/ai-ide-preferences.ts +1 -1
- package/src/common/coder-replace-prompt-template.ts +8 -9
- package/src/common/command-prompt-template.ts +5 -5
- package/src/common/file-changeset-function-ids.ts +15 -1
- package/src/common/orchestrator-chat-agent.ts +2 -2
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts +0 -41
- package/lib/browser/ai-configuration/agent-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.js +0 -333
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts +0 -18
- package/lib/browser/ai-configuration/ai-configuration-service.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-service.js +0 -53
- package/lib/browser/ai-configuration/ai-configuration-service.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts +0 -14
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js +0 -67
- package/lib/browser/ai-configuration/ai-configuration-view-contribution.js.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts +0 -29
- package/lib/browser/ai-configuration/ai-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/ai-configuration-widget.js +0 -118
- package/lib/browser/ai-configuration/ai-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts +0 -13
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +0 -104
- package/lib/browser/ai-configuration/language-model-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts +0 -43
- package/lib/browser/ai-configuration/mcp-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/mcp-configuration-widget.js +0 -302
- package/lib/browser/ai-configuration/mcp-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts +0 -41
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +0 -226
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts +0 -141
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js +0 -508
- package/lib/browser/ai-configuration/prompt-fragments-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts +0 -10
- package/lib/browser/ai-configuration/template-settings-renderer.d.ts.map +0 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js +0 -48
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts +0 -22
- package/lib/browser/ai-configuration/token-usage-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +0 -156
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +0 -30
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.js +0 -150
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +0 -19
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +0 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.js +0 -99
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +0 -1
- package/lib/browser/ai-ide-activation-service.d.ts +0 -18
- package/lib/browser/ai-ide-activation-service.d.ts.map +0 -1
- package/lib/browser/ai-ide-activation-service.js +0 -71
- package/lib/browser/ai-ide-activation-service.js.map +0 -1
- package/lib/browser/ai-terminal-functions.d.ts +0 -13
- package/lib/browser/ai-terminal-functions.d.ts.map +0 -1
- package/lib/browser/ai-terminal-functions.js +0 -114
- package/lib/browser/ai-terminal-functions.js.map +0 -1
- package/lib/browser/app-tester-chat-agent.d.ts +0 -35
- package/lib/browser/app-tester-chat-agent.d.ts.map +0 -1
- package/lib/browser/app-tester-chat-agent.js +0 -142
- package/lib/browser/app-tester-chat-agent.js.map +0 -1
- package/lib/browser/app-tester-chat-functions.d.ts +0 -25
- package/lib/browser/app-tester-chat-functions.d.ts.map +0 -1
- package/lib/browser/app-tester-chat-functions.js +0 -170
- package/lib/browser/app-tester-chat-functions.js.map +0 -1
- package/lib/browser/app-tester-prompt-template.d.ts +0 -6
- package/lib/browser/app-tester-prompt-template.d.ts.map +0 -1
- package/lib/browser/app-tester-prompt-template.js +0 -83
- package/lib/browser/app-tester-prompt-template.js.map +0 -1
- package/lib/browser/architect-agent.d.ts +0 -15
- package/lib/browser/architect-agent.d.ts.map +0 -1
- package/lib/browser/architect-agent.js +0 -68
- package/lib/browser/architect-agent.js.map +0 -1
- package/lib/browser/coder-agent.d.ts +0 -15
- package/lib/browser/coder-agent.d.ts.map +0 -1
- package/lib/browser/coder-agent.js +0 -81
- package/lib/browser/coder-agent.js.map +0 -1
- package/lib/browser/context-file-validation-service-impl.d.ts +0 -13
- package/lib/browser/context-file-validation-service-impl.d.ts.map +0 -1
- package/lib/browser/context-file-validation-service-impl.js +0 -123
- package/lib/browser/context-file-validation-service-impl.js.map +0 -1
- package/lib/browser/context-file-validation-service-impl.spec.d.ts +0 -2
- package/lib/browser/context-file-validation-service-impl.spec.d.ts.map +0 -1
- package/lib/browser/context-file-validation-service-impl.spec.js +0 -340
- package/lib/browser/context-file-validation-service-impl.spec.js.map +0 -1
- package/lib/browser/context-functions.d.ts +0 -16
- package/lib/browser/context-functions.d.ts.map +0 -1
- package/lib/browser/context-functions.js +0 -166
- package/lib/browser/context-functions.js.map +0 -1
- package/lib/browser/context-functions.spec.d.ts +0 -2
- package/lib/browser/context-functions.spec.d.ts.map +0 -1
- package/lib/browser/context-functions.spec.js +0 -213
- package/lib/browser/context-functions.spec.js.map +0 -1
- package/lib/browser/file-changeset-function.spec.d.ts +0 -2
- package/lib/browser/file-changeset-function.spec.d.ts.map +0 -1
- package/lib/browser/file-changeset-function.spec.js +0 -45
- package/lib/browser/file-changeset-function.spec.js.map +0 -1
- package/lib/browser/file-changeset-functions.d.ts +0 -87
- package/lib/browser/file-changeset-functions.d.ts.map +0 -1
- package/lib/browser/file-changeset-functions.js +0 -645
- package/lib/browser/file-changeset-functions.js.map +0 -1
- package/lib/browser/file-changeset-functions.spec.d.ts +0 -2
- package/lib/browser/file-changeset-functions.spec.d.ts.map +0 -1
- package/lib/browser/file-changeset-functions.spec.js +0 -179
- package/lib/browser/file-changeset-functions.spec.js.map +0 -1
- package/lib/browser/frontend-module.d.ts +0 -5
- package/lib/browser/frontend-module.d.ts.map +0 -1
- package/lib/browser/frontend-module.js +0 -218
- package/lib/browser/frontend-module.js.map +0 -1
- package/lib/browser/github-chat-agent.d.ts +0 -48
- package/lib/browser/github-chat-agent.d.ts.map +0 -1
- package/lib/browser/github-chat-agent.js +0 -222
- package/lib/browser/github-chat-agent.js.map +0 -1
- package/lib/browser/github-prompt-template.d.ts +0 -6
- package/lib/browser/github-prompt-template.d.ts.map +0 -1
- package/lib/browser/github-prompt-template.js +0 -53
- package/lib/browser/github-prompt-template.js.map +0 -1
- package/lib/browser/github-repo-variable-contribution.d.ts +0 -15
- package/lib/browser/github-repo-variable-contribution.d.ts.map +0 -1
- package/lib/browser/github-repo-variable-contribution.js +0 -82
- package/lib/browser/github-repo-variable-contribution.js.map +0 -1
- package/lib/browser/ide-chat-welcome-message-provider.d.ts +0 -11
- package/lib/browser/ide-chat-welcome-message-provider.d.ts.map +0 -1
- package/lib/browser/ide-chat-welcome-message-provider.js +0 -142
- package/lib/browser/ide-chat-welcome-message-provider.js.map +0 -1
- package/lib/browser/project-info-agent.d.ts +0 -13
- package/lib/browser/project-info-agent.d.ts.map +0 -1
- package/lib/browser/project-info-agent.js +0 -45
- package/lib/browser/project-info-agent.js.map +0 -1
- package/lib/browser/summarize-session-command-contribution.d.ts +0 -19
- package/lib/browser/summarize-session-command-contribution.d.ts.map +0 -1
- package/lib/browser/summarize-session-command-contribution.js +0 -118
- package/lib/browser/summarize-session-command-contribution.js.map +0 -1
- package/lib/browser/task-background-summary-variable.d.ts +0 -9
- package/lib/browser/task-background-summary-variable.d.ts.map +0 -1
- package/lib/browser/task-background-summary-variable.js +0 -60
- package/lib/browser/task-background-summary-variable.js.map +0 -1
- package/lib/browser/task-context-agent.d.ts +0 -13
- package/lib/browser/task-context-agent.d.ts.map +0 -1
- package/lib/browser/task-context-agent.js +0 -45
- package/lib/browser/task-context-agent.js.map +0 -1
- package/lib/browser/task-context-file-storage-service.d.ts +0 -40
- package/lib/browser/task-context-file-storage-service.d.ts.map +0 -1
- package/lib/browser/task-context-file-storage-service.js +0 -232
- package/lib/browser/task-context-file-storage-service.js.map +0 -1
- package/lib/browser/template-preference-contribution.d.ts +0 -17
- package/lib/browser/template-preference-contribution.d.ts.map +0 -1
- package/lib/browser/template-preference-contribution.js +0 -94
- package/lib/browser/template-preference-contribution.js.map +0 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts +0 -2
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.d.ts.map +0 -1
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js +0 -52
- package/lib/browser/test/tool-provider-cancellation-test-util.spec.js.map +0 -1
- package/lib/browser/workspace-functions.d.ts +0 -78
- package/lib/browser/workspace-functions.d.ts.map +0 -1
- package/lib/browser/workspace-functions.js +0 -697
- package/lib/browser/workspace-functions.js.map +0 -1
- package/lib/browser/workspace-functions.spec.d.ts +0 -2
- package/lib/browser/workspace-functions.spec.d.ts.map +0 -1
- package/lib/browser/workspace-functions.spec.js +0 -161
- package/lib/browser/workspace-functions.spec.js.map +0 -1
- package/lib/browser/workspace-launch-provider.d.ts +0 -24
- package/lib/browser/workspace-launch-provider.d.ts.map +0 -1
- package/lib/browser/workspace-launch-provider.js +0 -216
- package/lib/browser/workspace-launch-provider.js.map +0 -1
- package/lib/browser/workspace-launch-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-launch-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-launch-provider.spec.js +0 -245
- package/lib/browser/workspace-launch-provider.spec.js.map +0 -1
- package/lib/browser/workspace-search-provider.d.ts +0 -15
- package/lib/browser/workspace-search-provider.d.ts.map +0 -1
- package/lib/browser/workspace-search-provider.js +0 -204
- package/lib/browser/workspace-search-provider.js.map +0 -1
- package/lib/browser/workspace-search-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-search-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-search-provider.spec.js +0 -82
- package/lib/browser/workspace-search-provider.spec.js.map +0 -1
- package/lib/browser/workspace-task-provider.d.ts +0 -15
- package/lib/browser/workspace-task-provider.d.ts.map +0 -1
- package/lib/browser/workspace-task-provider.js +0 -138
- package/lib/browser/workspace-task-provider.js.map +0 -1
- package/lib/browser/workspace-task-provider.spec.d.ts +0 -2
- package/lib/browser/workspace-task-provider.spec.d.ts.map +0 -1
- package/lib/browser/workspace-task-provider.spec.js +0 -109
- package/lib/browser/workspace-task-provider.spec.js.map +0 -1
- package/lib/common/ai-configuration-preferences.d.ts +0 -8
- package/lib/common/ai-configuration-preferences.d.ts.map +0 -1
- package/lib/common/ai-configuration-preferences.js +0 -41
- package/lib/common/ai-configuration-preferences.js.map +0 -1
- package/lib/common/ai-ide-preferences.d.ts +0 -5
- package/lib/common/ai-ide-preferences.d.ts.map +0 -1
- package/lib/common/ai-ide-preferences.js +0 -53
- package/lib/common/ai-ide-preferences.js.map +0 -1
- package/lib/common/ai-terminal-functions.d.ts +0 -2
- package/lib/common/ai-terminal-functions.d.ts.map +0 -1
- package/lib/common/ai-terminal-functions.js +0 -20
- package/lib/common/ai-terminal-functions.js.map +0 -1
- package/lib/common/app-tester-chat-functions.d.ts +0 -5
- package/lib/common/app-tester-chat-functions.d.ts.map +0 -1
- package/lib/common/app-tester-chat-functions.js +0 -23
- package/lib/common/app-tester-chat-functions.js.map +0 -1
- package/lib/common/architect-prompt-template.d.ts +0 -3
- package/lib/common/architect-prompt-template.d.ts.map +0 -1
- package/lib/common/architect-prompt-template.js +0 -81
- package/lib/common/architect-prompt-template.js.map +0 -1
- package/lib/common/browser-automation-protocol.d.ts +0 -15
- package/lib/common/browser-automation-protocol.d.ts.map +0 -1
- package/lib/common/browser-automation-protocol.js +0 -22
- package/lib/common/browser-automation-protocol.js.map +0 -1
- package/lib/common/coder-replace-prompt-template.d.ts +0 -11
- package/lib/common/coder-replace-prompt-template.d.ts.map +0 -1
- package/lib/common/coder-replace-prompt-template.js +0 -295
- package/lib/common/coder-replace-prompt-template.js.map +0 -1
- package/lib/common/command-chat-agents.d.ts +0 -36
- package/lib/common/command-chat-agents.d.ts.map +0 -1
- package/lib/common/command-chat-agents.js +0 -122
- package/lib/common/command-chat-agents.js.map +0 -1
- package/lib/common/command-prompt-template.d.ts +0 -3
- package/lib/common/command-prompt-template.d.ts.map +0 -1
- package/lib/common/command-prompt-template.js +0 -226
- package/lib/common/command-prompt-template.js.map +0 -1
- package/lib/common/context-files-variable.d.ts +0 -9
- package/lib/common/context-files-variable.d.ts.map +0 -1
- package/lib/common/context-files-variable.js +0 -52
- package/lib/common/context-files-variable.js.map +0 -1
- package/lib/common/context-functions.d.ts +0 -4
- package/lib/common/context-functions.d.ts.map +0 -1
- package/lib/common/context-functions.js +0 -22
- package/lib/common/context-functions.js.map +0 -1
- package/lib/common/context-variables.d.ts +0 -3
- package/lib/common/context-variables.d.ts.map +0 -1
- package/lib/common/context-variables.js +0 -21
- package/lib/common/context-variables.js.map +0 -1
- package/lib/common/file-changeset-function-ids.d.ts +0 -8
- package/lib/common/file-changeset-function-ids.d.ts.map +0 -1
- package/lib/common/file-changeset-function-ids.js +0 -26
- package/lib/common/file-changeset-function-ids.js.map +0 -1
- package/lib/common/github-repo-protocol.d.ts +0 -15
- package/lib/common/github-repo-protocol.d.ts.map +0 -1
- package/lib/common/github-repo-protocol.js +0 -21
- package/lib/common/github-repo-protocol.js.map +0 -1
- package/lib/common/orchestrator-chat-agent.d.ts +0 -36
- package/lib/common/orchestrator-chat-agent.d.ts.map +0 -1
- package/lib/common/orchestrator-chat-agent.js +0 -167
- package/lib/common/orchestrator-chat-agent.js.map +0 -1
- package/lib/common/orchestrator-prompt-template.d.ts +0 -3
- package/lib/common/orchestrator-prompt-template.d.ts.map +0 -1
- package/lib/common/orchestrator-prompt-template.js +0 -55
- package/lib/common/orchestrator-prompt-template.js.map +0 -1
- package/lib/common/project-info-prompt-template.d.ts +0 -6
- package/lib/common/project-info-prompt-template.d.ts.map +0 -1
- package/lib/common/project-info-prompt-template.js +0 -145
- package/lib/common/project-info-prompt-template.js.map +0 -1
- package/lib/common/summarize-session-commands.d.ts +0 -4
- package/lib/common/summarize-session-commands.d.ts.map +0 -1
- package/lib/common/summarize-session-commands.js +0 -28
- package/lib/common/summarize-session-commands.js.map +0 -1
- package/lib/common/task-context-prompt-template.d.ts +0 -8
- package/lib/common/task-context-prompt-template.d.ts.map +0 -1
- package/lib/common/task-context-prompt-template.js +0 -217
- package/lib/common/task-context-prompt-template.js.map +0 -1
- package/lib/common/universal-chat-agent.d.ts +0 -17
- package/lib/common/universal-chat-agent.d.ts.map +0 -1
- package/lib/common/universal-chat-agent.js +0 -47
- package/lib/common/universal-chat-agent.js.map +0 -1
- package/lib/common/universal-prompt-template.d.ts +0 -4
- package/lib/common/universal-prompt-template.d.ts.map +0 -1
- package/lib/common/universal-prompt-template.js +0 -32
- package/lib/common/universal-prompt-template.js.map +0 -1
- package/lib/common/workspace-functions.d.ts +0 -12
- package/lib/common/workspace-functions.d.ts.map +0 -1
- package/lib/common/workspace-functions.js +0 -30
- package/lib/common/workspace-functions.js.map +0 -1
- package/lib/common/workspace-preferences.d.ts +0 -10
- package/lib/common/workspace-preferences.d.ts.map +0 -1
- package/lib/common/workspace-preferences.js +0 -89
- package/lib/common/workspace-preferences.js.map +0 -1
- package/lib/common/workspace-search-provider-util.d.ts +0 -17
- package/lib/common/workspace-search-provider-util.d.ts.map +0 -1
- package/lib/common/workspace-search-provider-util.js +0 -51
- package/lib/common/workspace-search-provider-util.js.map +0 -1
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts +0 -18
- package/lib/node/app-tester-agent/browser-automation-impl.d.ts.map +0 -1
- package/lib/node/app-tester-agent/browser-automation-impl.js +0 -96
- package/lib/node/app-tester-agent/browser-automation-impl.js.map +0 -1
- package/lib/node/backend-module.d.ts +0 -4
- package/lib/node/backend-module.d.ts.map +0 -1
- package/lib/node/backend-module.js +0 -45
- package/lib/node/backend-module.js.map +0 -1
- package/lib/node/github-repo-service-impl.d.ts +0 -7
- package/lib/node/github-repo-service-impl.d.ts.map +0 -1
- package/lib/node/github-repo-service-impl.js +0 -86
- package/lib/node/github-repo-service-impl.js.map +0 -1
- package/lib/package.spec.d.ts +0 -1
- package/lib/package.spec.d.ts.map +0 -1
- package/lib/package.spec.js +0 -26
- package/lib/package.spec.js.map +0 -1
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.taskContextUpdateVariants = exports.taskContextTemplateVariants = exports.taskContextSystemVariants = exports.TASK_CONTEXT_UPDATE_PROMPT_ID = exports.TASK_CONTEXT_TEMPLATE_PROMPT_ID = exports.TASK_CONTEXT_CREATE_PROMPT_ID = void 0;
|
|
4
|
-
const context_variables_1 = require("./context-variables");
|
|
5
|
-
exports.TASK_CONTEXT_CREATE_PROMPT_ID = 'task-context-create';
|
|
6
|
-
exports.TASK_CONTEXT_TEMPLATE_PROMPT_ID = 'task-context-template';
|
|
7
|
-
exports.TASK_CONTEXT_UPDATE_PROMPT_ID = 'task-context-update';
|
|
8
|
-
exports.taskContextSystemVariants = {
|
|
9
|
-
id: exports.TASK_CONTEXT_CREATE_PROMPT_ID,
|
|
10
|
-
defaultVariant: {
|
|
11
|
-
id: 'task-context-create-default',
|
|
12
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
13
|
-
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
14
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
15
|
-
|
|
16
|
-
Your task is to analyze the current chat session and summarize it to prepare to complete the coding task.
|
|
17
|
-
Your instructions should be complete. They are used by a coding agent.
|
|
18
|
-
Include all necessary information.
|
|
19
|
-
Use unique identifiers such as file paths or URIs to artifacts.
|
|
20
|
-
Skip irrelevant information, e.g. for discussions, only sum up the final result.
|
|
21
|
-
|
|
22
|
-
## Instructions
|
|
23
|
-
1. Analyze the conversation carefully.
|
|
24
|
-
2. Identify the main coding objective and requirements.
|
|
25
|
-
3. Propose a clear approach to implement the requested functionality in task steps.
|
|
26
|
-
4. If any part of the task is ambiguous, note the ambiguity so that it can be clarified later.
|
|
27
|
-
5. If there are any relevant examples on how to implement something correctly, add them
|
|
28
|
-
|
|
29
|
-
Focus on providing actionable steps and implementation guidance. The coding agent needs practical help with this specific coding task.
|
|
30
|
-
|
|
31
|
-
Use the following template format:
|
|
32
|
-
|
|
33
|
-
{{prompt:${exports.TASK_CONTEXT_TEMPLATE_PROMPT_ID}}}
|
|
34
|
-
`
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
exports.taskContextTemplateVariants = {
|
|
38
|
-
id: exports.TASK_CONTEXT_TEMPLATE_PROMPT_ID,
|
|
39
|
-
defaultVariant: {
|
|
40
|
-
id: 'task-context-template-default',
|
|
41
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
42
|
-
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
43
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
44
|
-
|
|
45
|
-
# Task Context: [Title Here]
|
|
46
|
-
|
|
47
|
-
---
|
|
48
|
-
|
|
49
|
-
## 1. 📚 Task Definition
|
|
50
|
-
|
|
51
|
-
**Problem Statement / Goal:**
|
|
52
|
-
[Describe what needs to be achieved and why.]
|
|
53
|
-
|
|
54
|
-
**Scope:**
|
|
55
|
-
- **In Scope:**
|
|
56
|
-
[Features, components, or behaviors to be included.]
|
|
57
|
-
- **Out of Scope:**
|
|
58
|
-
[What explicitly won't be part of this task.]
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## 2. 🧠 Design and Implementation
|
|
63
|
-
|
|
64
|
-
**Design Overview:**
|
|
65
|
-
[Summary of architecture and major design decisions.]
|
|
66
|
-
|
|
67
|
-
**Implementation Plan:**
|
|
68
|
-
1. [First major step]
|
|
69
|
-
2. [Second major step]
|
|
70
|
-
3. [Third major step]
|
|
71
|
-
|
|
72
|
-
**Technology Choices:**
|
|
73
|
-
- [Frameworks, libraries, services, tools]
|
|
74
|
-
|
|
75
|
-
**Files expected to be changed**
|
|
76
|
-
List all files that are expected to be changed (using relative file path) and quickly explain what is expected to be changed in this file.
|
|
77
|
-
|
|
78
|
-
### Examples
|
|
79
|
-
|
|
80
|
-
List all examples of existing code that are useful to understand the design and do the implementation.
|
|
81
|
-
These examples are not the files supposed to be changed, but code that shows how to implement specific things.
|
|
82
|
-
Prefer to mention files instead of adding their content.
|
|
83
|
-
Explain the purpose of every example.
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## 3. 🧪 Testing
|
|
88
|
-
|
|
89
|
-
### 3.1 🛠️ Automated Testing (by Coder)
|
|
90
|
-
|
|
91
|
-
**Automated Test Strategy:**
|
|
92
|
-
[What should be covered by automated tests.]
|
|
93
|
-
|
|
94
|
-
**Test Cases Implemented:**
|
|
95
|
-
- [Unit test 1]
|
|
96
|
-
- [Integration test 1]
|
|
97
|
-
- [E2E test 1]
|
|
98
|
-
|
|
99
|
-
**Test Coverage Targets:**
|
|
100
|
-
[e.g., Minimum 80% code coverage, all workflows tested.]
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
|
-
### 3.2 🎯 Manual Testing (by Tester)
|
|
105
|
-
|
|
106
|
-
**Manual Testing Strategy:**
|
|
107
|
-
[What manual tests will focus on (e.g., usability, edge cases, exploratory testing).]
|
|
108
|
-
|
|
109
|
-
**Test Setup Instructions:**
|
|
110
|
-
- [Environment setup steps, accounts needed, special configurations]
|
|
111
|
-
|
|
112
|
-
**Test Cases / Test Steps:**
|
|
113
|
-
1. [Action 1]
|
|
114
|
-
2. [Action 2]
|
|
115
|
-
3. [Action 3]
|
|
116
|
-
|
|
117
|
-
**Expected Results:**
|
|
118
|
-
- [Expected behavior at each step]
|
|
119
|
-
|
|
120
|
-
**Known Risks / Focus Areas:**
|
|
121
|
-
- [Potential weak spots, UX concerns, edge cases]
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
## 4. 📦 Deliverables
|
|
126
|
-
|
|
127
|
-
**Expected Artifacts:**
|
|
128
|
-
- [Code modules]
|
|
129
|
-
- [Documentation]
|
|
130
|
-
- [Configuration files]
|
|
131
|
-
- [Test reports]
|
|
132
|
-
|
|
133
|
-
**PR Information:**
|
|
134
|
-
- **PR Title:** [Suggested title for the pull request]
|
|
135
|
-
- **PR Description:** [What was implemented, high-level changes, decisions]
|
|
136
|
-
- **Verification Steps:** [Instructions for verifying the PR manually or automatically]
|
|
137
|
-
|
|
138
|
-
**Additional Notes:**
|
|
139
|
-
- [Dependencies]
|
|
140
|
-
- [Migration steps if needed]
|
|
141
|
-
- [Special reviewer instructions]
|
|
142
|
-
|
|
143
|
-
---
|
|
144
|
-
|
|
145
|
-
## 5. 🔄 Current Status
|
|
146
|
-
|
|
147
|
-
**Progress Summary:**
|
|
148
|
-
[Short free-text update about how far the task has progressed.]
|
|
149
|
-
|
|
150
|
-
**Completed Items:**
|
|
151
|
-
- [List of what has been fully implemented, tested, or merged.]
|
|
152
|
-
|
|
153
|
-
**Open Items:**
|
|
154
|
-
- [List of remaining tasks, missing parts.]
|
|
155
|
-
|
|
156
|
-
**Current Issues / Risks:**
|
|
157
|
-
- [Open problems, bugs found during testing, architectural blockers.]
|
|
158
|
-
|
|
159
|
-
**Next Steps:**
|
|
160
|
-
- [Immediate action items, who should act next.]
|
|
161
|
-
`
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
exports.taskContextUpdateVariants = {
|
|
165
|
-
id: exports.TASK_CONTEXT_UPDATE_PROMPT_ID,
|
|
166
|
-
defaultVariant: {
|
|
167
|
-
id: 'task-context-update-default',
|
|
168
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
169
|
-
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
170
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
171
|
-
You are an AI assistant integrated into Theia IDE, designed to update task context files. You can interact provided task context file and propose changes.
|
|
172
|
-
|
|
173
|
-
# Task Document Update Instructions
|
|
174
|
-
|
|
175
|
-
You are an AI agent tasked with updating a technical document based on the current discussion.
|
|
176
|
-
Your job is to provide the COMPLETE UPDATED DOCUMENT as your response, not commentary about the document.
|
|
177
|
-
|
|
178
|
-
## Analysis Requirements
|
|
179
|
-
|
|
180
|
-
1. **Review the Current Discussion**:
|
|
181
|
-
- Analyze the entire conversation
|
|
182
|
-
- Identify new information, decisions, and changes
|
|
183
|
-
|
|
184
|
-
2. **Examine the Existing Document**:
|
|
185
|
-
- Understand its structure and purpose
|
|
186
|
-
- Identify sections that need updates
|
|
187
|
-
|
|
188
|
-
3. **Update the Document**:
|
|
189
|
-
- Maintain the original structure and formatting
|
|
190
|
-
- Add new information from the discussion
|
|
191
|
-
- Update existing information
|
|
192
|
-
- Remove outdated information if necessary
|
|
193
|
-
- Ensure coherence and organization
|
|
194
|
-
|
|
195
|
-
## IMPORTANT: Response Format
|
|
196
|
-
|
|
197
|
-
YOUR ENTIRE RESPONSE MUST BE THE UPDATED DOCUMENT ONLY. Do not include:
|
|
198
|
-
- Any commentary about what you changed
|
|
199
|
-
- Introduction or explanation text
|
|
200
|
-
- Markdown fences or syntax indicators
|
|
201
|
-
- Clarifying questions
|
|
202
|
-
|
|
203
|
-
Simply output the complete updated document as plain text, which will directly replace the existing document.
|
|
204
|
-
|
|
205
|
-
## Guidelines
|
|
206
|
-
|
|
207
|
-
- Be thorough in capturing all relevant information
|
|
208
|
-
- Maintain the original document's style and tone
|
|
209
|
-
- Use clear, concise language
|
|
210
|
-
- Preserve all formatting from the original document
|
|
211
|
-
- Ensure technical accuracy in all updates
|
|
212
|
-
|
|
213
|
-
{{${context_variables_1.TASK_CONTEXT_SUMMARY_VARIABLE_ID}}}
|
|
214
|
-
`
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
//# sourceMappingURL=task-context-prompt-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-context-prompt-template.js","sourceRoot":"","sources":["../../src/common/task-context-prompt-template.ts"],"names":[],"mappings":";;;AAWA,2DAAuE;AAE1D,QAAA,6BAA6B,GAAG,qBAAqB,CAAC;AACtD,QAAA,+BAA+B,GAAG,uBAAuB,CAAC;AAC1D,QAAA,6BAA6B,GAAG,qBAAqB,CAAC;AAEtD,QAAA,yBAAyB,GAAqB;IACvD,EAAE,EAAE,qCAA6B;IACjC,cAAc,EAAE;QACZ,EAAE,EAAE,6BAA6B;QACjC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;WAqBP,uCAA+B;CACzC;KACI;CACJ,CAAC;AAEW,QAAA,2BAA2B,GAAqB;IACzD,EAAE,EAAE,uCAA+B;IACnC,cAAc,EAAE;QACZ,EAAE,EAAE,+BAA+B;QACnC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHjB;KACI;CACJ,CAAC;AAEW,QAAA,yBAAyB,GAAqB;IACvD,EAAE,EAAE,qCAA6B;IACjC,cAAc,EAAE;QACZ,EAAE,EAAE,6BAA6B;QACjC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6Cd,oDAAgC;CACnC;KACI;CACJ,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LanguageModelRequirement } from '@theia/ai-core/lib/common';
|
|
2
|
-
import { AbstractStreamParsingChatAgent } from '@theia/ai-chat/lib/common/chat-agents';
|
|
3
|
-
export declare const UniversalChatAgentId = "Universal";
|
|
4
|
-
export declare class UniversalChatAgent extends AbstractStreamParsingChatAgent {
|
|
5
|
-
id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
languageModelRequirements: LanguageModelRequirement[];
|
|
8
|
-
protected defaultLanguageModelPurpose: string;
|
|
9
|
-
description: string;
|
|
10
|
-
prompts: {
|
|
11
|
-
id: string;
|
|
12
|
-
defaultVariant: import("@theia/ai-core/lib/common").BasePromptFragment;
|
|
13
|
-
variants: import("@theia/ai-core/lib/common").BasePromptFragment[];
|
|
14
|
-
}[];
|
|
15
|
-
protected systemPromptId: string;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=universal-chat-agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal-chat-agent.d.ts","sourceRoot":"","sources":["../../src/common/universal-chat-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AAIvF,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,qBACa,kBAAmB,SAAQ,8BAA8B;IACnE,EAAE,EAAE,MAAM,CAAwB;IAClC,IAAI,SAAwB;IAC5B,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAC9C,WAAW,SAGsC;IAEjD,OAAO;;;;QAAyG;IACzH,UAAmB,cAAc,EAAE,MAAM,CAAsB;CACjE"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.UniversalChatAgent = exports.UniversalChatAgentId = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const chat_agents_1 = require("@theia/ai-chat/lib/common/chat-agents");
|
|
22
|
-
const core_1 = require("@theia/core");
|
|
23
|
-
const universal_prompt_template_1 = require("./universal-prompt-template");
|
|
24
|
-
exports.UniversalChatAgentId = 'Universal';
|
|
25
|
-
let UniversalChatAgent = class UniversalChatAgent extends chat_agents_1.AbstractStreamParsingChatAgent {
|
|
26
|
-
constructor() {
|
|
27
|
-
super(...arguments);
|
|
28
|
-
this.id = exports.UniversalChatAgentId;
|
|
29
|
-
this.name = exports.UniversalChatAgentId;
|
|
30
|
-
this.languageModelRequirements = [{
|
|
31
|
-
purpose: 'chat',
|
|
32
|
-
identifier: 'default/universal',
|
|
33
|
-
}];
|
|
34
|
-
this.defaultLanguageModelPurpose = 'chat';
|
|
35
|
-
this.description = core_1.nls.localize('theia/ai/chat/universal/description', 'This agent is designed to help software developers by providing concise and accurate '
|
|
36
|
-
+ 'answers to general programming and software development questions. It is also the fall-back for any generic '
|
|
37
|
-
+ 'questions the user might ask. The universal agent currently does not have any context by default, i.e. it cannot '
|
|
38
|
-
+ 'access the current user context or the workspace.');
|
|
39
|
-
this.prompts = [{ id: 'universal-system', defaultVariant: universal_prompt_template_1.universalTemplate, variants: [universal_prompt_template_1.universalTemplateVariant] }];
|
|
40
|
-
this.systemPromptId = 'universal-system';
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
exports.UniversalChatAgent = UniversalChatAgent;
|
|
44
|
-
exports.UniversalChatAgent = UniversalChatAgent = tslib_1.__decorate([
|
|
45
|
-
(0, inversify_1.injectable)()
|
|
46
|
-
], UniversalChatAgent);
|
|
47
|
-
//# sourceMappingURL=universal-chat-agent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal-chat-agent.js","sourceRoot":"","sources":["../../src/common/universal-chat-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,4DAA0D;AAC1D,uEAAuF;AACvF,sCAAkC;AAClC,2EAA0F;AAE7E,QAAA,oBAAoB,GAAG,WAAW,CAAC;AAEzC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,4CAA8B;IAA/D;;QACJ,OAAE,GAAW,4BAAoB,CAAC;QAClC,SAAI,GAAG,4BAAoB,CAAC;QAC5B,8BAAyB,GAA+B,CAAC;gBACtD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,mBAAmB;aACjC,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAC9C,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,qCAAqC,EAAE,uFAAuF;cAC7J,8GAA8G;cAC9G,mHAAmH;cACnH,mDAAmD,CAAC,CAAC;QAEjD,YAAO,GAAG,CAAC,EAAE,EAAE,EAAE,kBAAkB,EAAE,cAAc,EAAE,6CAAiB,EAAE,QAAQ,EAAE,CAAC,oDAAwB,CAAC,EAAE,CAAC,CAAC;QACtG,mBAAc,GAAW,kBAAkB,CAAC;IAClE,CAAC;CAAA,CAAA;AAfY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,GAAE;GACA,kBAAkB,CAe9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/universal-prompt-template.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAG/D,eAAO,MAAM,iBAAiB,EAAE,kBAY/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,kBAGtC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/tslint/config */
|
|
3
|
-
// *****************************************************************************
|
|
4
|
-
// Copyright (C) 2025 EclipseSource GmbH and others.
|
|
5
|
-
//
|
|
6
|
-
// This file is licensed under the MIT License.
|
|
7
|
-
// See LICENSE-MIT.txt in the project root for license information.
|
|
8
|
-
// https://opensource.org/license/mit.
|
|
9
|
-
//
|
|
10
|
-
// SPDX-License-Identifier: MIT
|
|
11
|
-
// *****************************************************************************
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.universalTemplateVariant = exports.universalTemplate = void 0;
|
|
14
|
-
const ai_chat_1 = require("@theia/ai-chat");
|
|
15
|
-
exports.universalTemplate = {
|
|
16
|
-
id: 'universal-system-default',
|
|
17
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
18
|
-
Made improvements or adaptations to this prompt template? We’d love for you to share it with the community! Contribute back here:
|
|
19
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
20
|
-
|
|
21
|
-
You are an assistant integrated into Theia IDE, designed to assist software developers.
|
|
22
|
-
|
|
23
|
-
## Current Context
|
|
24
|
-
Some files and other pieces of data may have been added by the user to the context of the chat. If any have, the details can be found below.
|
|
25
|
-
{{${ai_chat_1.CHAT_CONTEXT_DETAILS_VARIABLE_ID}}}
|
|
26
|
-
`
|
|
27
|
-
};
|
|
28
|
-
exports.universalTemplateVariant = {
|
|
29
|
-
id: 'universal-system-empty',
|
|
30
|
-
template: '',
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=universal-prompt-template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"universal-prompt-template.js","sourceRoot":"","sources":["../../src/common/universal-prompt-template.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,+CAA+C;AAC/C,mEAAmE;AACnE,sCAAsC;AACtC,EAAE;AACF,+BAA+B;AAC/B,gFAAgF;;;AAGhF,4CAAkE;AAErD,QAAA,iBAAiB,GAAuB;IAClD,EAAE,EAAE,0BAA0B;IAC9B,QAAQ,EAAE;;;;;;;;IAQT,0CAAgC;CACnC;CACA,CAAC;AAEW,QAAA,wBAAwB,GAAuB;IACzD,EAAE,EAAE,wBAAwB;IAC5B,QAAQ,EAAE,EAAE;CACd,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const FILE_CONTENT_FUNCTION_ID = "getFileContent";
|
|
2
|
-
export declare const GET_WORKSPACE_FILE_LIST_FUNCTION_ID = "getWorkspaceFileList";
|
|
3
|
-
export declare const GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = "getWorkspaceDirectoryStructure";
|
|
4
|
-
export declare const GET_FILE_DIAGNOSTICS_ID = "getFileDiagnostics";
|
|
5
|
-
export declare const SEARCH_IN_WORKSPACE_FUNCTION_ID = "searchInWorkspace";
|
|
6
|
-
export declare const FIND_FILES_BY_PATTERN_FUNCTION_ID = "findFilesByPattern";
|
|
7
|
-
export declare const LIST_TASKS_FUNCTION_ID = "listTasks";
|
|
8
|
-
export declare const RUN_TASK_FUNCTION_ID = "runTask";
|
|
9
|
-
export declare const LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = "listLaunchConfigurations";
|
|
10
|
-
export declare const RUN_LAUNCH_CONFIGURATION_FUNCTION_ID = "runLaunchConfiguration";
|
|
11
|
-
export declare const STOP_LAUNCH_CONFIGURATION_FUNCTION_ID = "stopLaunchConfiguration";
|
|
12
|
-
//# sourceMappingURL=workspace-functions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-functions.d.ts","sourceRoot":"","sources":["../../src/common/workspace-functions.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,mCAAmC,yBAAyB,CAAC;AAC1E,eAAO,MAAM,6CAA6C,mCAAmC,CAAC;AAC9F,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC;AACnE,eAAO,MAAM,iCAAiC,uBAAuB,CAAC;AACtE,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,sCAAsC,6BAA6B,CAAC;AACjF,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,qCAAqC,4BAA4B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STOP_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.RUN_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = exports.RUN_TASK_FUNCTION_ID = exports.LIST_TASKS_FUNCTION_ID = exports.FIND_FILES_BY_PATTERN_FUNCTION_ID = exports.SEARCH_IN_WORKSPACE_FUNCTION_ID = exports.GET_FILE_DIAGNOSTICS_ID = exports.GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = exports.GET_WORKSPACE_FILE_LIST_FUNCTION_ID = exports.FILE_CONTENT_FUNCTION_ID = 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
|
-
exports.FILE_CONTENT_FUNCTION_ID = 'getFileContent';
|
|
20
|
-
exports.GET_WORKSPACE_FILE_LIST_FUNCTION_ID = 'getWorkspaceFileList';
|
|
21
|
-
exports.GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = 'getWorkspaceDirectoryStructure';
|
|
22
|
-
exports.GET_FILE_DIAGNOSTICS_ID = 'getFileDiagnostics';
|
|
23
|
-
exports.SEARCH_IN_WORKSPACE_FUNCTION_ID = 'searchInWorkspace';
|
|
24
|
-
exports.FIND_FILES_BY_PATTERN_FUNCTION_ID = 'findFilesByPattern';
|
|
25
|
-
exports.LIST_TASKS_FUNCTION_ID = 'listTasks';
|
|
26
|
-
exports.RUN_TASK_FUNCTION_ID = 'runTask';
|
|
27
|
-
exports.LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = 'listLaunchConfigurations';
|
|
28
|
-
exports.RUN_LAUNCH_CONFIGURATION_FUNCTION_ID = 'runLaunchConfiguration';
|
|
29
|
-
exports.STOP_LAUNCH_CONFIGURATION_FUNCTION_ID = 'stopLaunchConfiguration';
|
|
30
|
-
//# sourceMappingURL=workspace-functions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-functions.js","sourceRoot":"","sources":["../../src/common/workspace-functions.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;AACnE,QAAA,wBAAwB,GAAG,gBAAgB,CAAC;AAC5C,QAAA,mCAAmC,GAAG,sBAAsB,CAAC;AAC7D,QAAA,6CAA6C,GAAG,gCAAgC,CAAC;AACjF,QAAA,uBAAuB,GAAG,oBAAoB,CAAC;AAC/C,QAAA,+BAA+B,GAAG,mBAAmB,CAAC;AACtD,QAAA,iCAAiC,GAAG,oBAAoB,CAAC;AACzD,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,sCAAsC,GAAG,0BAA0B,CAAC;AACpE,QAAA,oCAAoC,GAAG,wBAAwB,CAAC;AAChE,QAAA,qCAAqC,GAAG,yBAAyB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PreferenceSchema } from '@theia/core';
|
|
2
|
-
export declare const CONSIDER_GITIGNORE_PREF = "ai-features.workspaceFunctions.considerGitIgnore";
|
|
3
|
-
export declare const USER_EXCLUDE_PATTERN_PREF = "ai-features.workspaceFunctions.userExcludes";
|
|
4
|
-
export declare const SEARCH_IN_WORKSPACE_MAX_RESULTS_PREF = "ai-features.workspaceFunctions.searchMaxResults";
|
|
5
|
-
export declare const PROMPT_TEMPLATE_WORKSPACE_DIRECTORIES_PREF = "ai-features.promptTemplates.WorkspaceTemplateDirectories";
|
|
6
|
-
export declare const PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF = "ai-features.promptTemplates.TemplateExtensions";
|
|
7
|
-
export declare const PROMPT_TEMPLATE_WORKSPACE_FILES_PREF = "ai-features.promptTemplates.WorkspaceTemplateFiles";
|
|
8
|
-
export declare const TASK_CONTEXT_STORAGE_DIRECTORY_PREF = "ai-features.promptTemplates.taskContextStorageDirectory";
|
|
9
|
-
export declare const WorkspacePreferencesSchema: PreferenceSchema;
|
|
10
|
-
//# sourceMappingURL=workspace-preferences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/common/workspace-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAO,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,eAAO,MAAM,uBAAuB,qDAAqD,CAAC;AAC1F,eAAO,MAAM,yBAAyB,gDAAgD,CAAC;AACvF,eAAO,MAAM,oCAAoC,oDAAoD,CAAC;AACtG,eAAO,MAAM,0CAA0C,6DAA6D,CAAC;AACrH,eAAO,MAAM,0CAA0C,mDAAmD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,uDAAuD,CAAC;AACzG,eAAO,MAAM,mCAAmC,4DAA4D,CAAC;AAK7G,eAAO,MAAM,0BAA0B,EAAE,gBAkExC,CAAC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2024 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.WorkspacePreferencesSchema = exports.TASK_CONTEXT_STORAGE_DIRECTORY_PREF = exports.PROMPT_TEMPLATE_WORKSPACE_FILES_PREF = exports.PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF = exports.PROMPT_TEMPLATE_WORKSPACE_DIRECTORIES_PREF = exports.SEARCH_IN_WORKSPACE_MAX_RESULTS_PREF = exports.USER_EXCLUDE_PATTERN_PREF = exports.CONSIDER_GITIGNORE_PREF = void 0;
|
|
19
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
exports.CONSIDER_GITIGNORE_PREF = 'ai-features.workspaceFunctions.considerGitIgnore';
|
|
21
|
-
exports.USER_EXCLUDE_PATTERN_PREF = 'ai-features.workspaceFunctions.userExcludes';
|
|
22
|
-
exports.SEARCH_IN_WORKSPACE_MAX_RESULTS_PREF = 'ai-features.workspaceFunctions.searchMaxResults';
|
|
23
|
-
exports.PROMPT_TEMPLATE_WORKSPACE_DIRECTORIES_PREF = 'ai-features.promptTemplates.WorkspaceTemplateDirectories';
|
|
24
|
-
exports.PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF = 'ai-features.promptTemplates.TemplateExtensions';
|
|
25
|
-
exports.PROMPT_TEMPLATE_WORKSPACE_FILES_PREF = 'ai-features.promptTemplates.WorkspaceTemplateFiles';
|
|
26
|
-
exports.TASK_CONTEXT_STORAGE_DIRECTORY_PREF = 'ai-features.promptTemplates.taskContextStorageDirectory';
|
|
27
|
-
const CONFLICT_RESOLUTION_DESCRIPTION = 'When templates with the same ID (filename) exist in multiple locations, conflicts are resolved by priority: specific template files \
|
|
28
|
-
(highest) > workspace directories > global directories (lowest).';
|
|
29
|
-
exports.WorkspacePreferencesSchema = {
|
|
30
|
-
properties: {
|
|
31
|
-
[exports.CONSIDER_GITIGNORE_PREF]: {
|
|
32
|
-
type: 'boolean',
|
|
33
|
-
title: core_1.nls.localize('theia/ai/workspace/considerGitignore/title', 'Consider .gitignore'),
|
|
34
|
-
description: core_1.nls.localize('theia/ai/workspace/considerGitignore/description', 'If enabled, excludes files/folders specified in a global .gitignore file (expected location is the workspace root).'),
|
|
35
|
-
default: true
|
|
36
|
-
},
|
|
37
|
-
[exports.USER_EXCLUDE_PATTERN_PREF]: {
|
|
38
|
-
type: 'array',
|
|
39
|
-
title: core_1.nls.localize('theia/ai/workspace/excludedPattern/title', 'Excluded File Patterns'),
|
|
40
|
-
description: core_1.nls.localize('theia/ai/workspace/excludedPattern/description', 'List of patterns (glob or regex) for files/folders to exclude.'),
|
|
41
|
-
default: ['node_modules', 'lib'],
|
|
42
|
-
items: {
|
|
43
|
-
type: 'string'
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
[exports.SEARCH_IN_WORKSPACE_MAX_RESULTS_PREF]: {
|
|
47
|
-
type: 'number',
|
|
48
|
-
title: core_1.nls.localize('theia/ai/workspace/searchMaxResults/title', 'Maximum Search Results'),
|
|
49
|
-
description: core_1.nls.localize('theia/ai/workspace/searchMaxResults/description', 'Maximum number of search results returned by the workspace search function.'),
|
|
50
|
-
default: 30,
|
|
51
|
-
minimum: 1
|
|
52
|
-
},
|
|
53
|
-
[exports.PROMPT_TEMPLATE_WORKSPACE_DIRECTORIES_PREF]: {
|
|
54
|
-
type: 'array',
|
|
55
|
-
title: core_1.nls.localize('theia/ai/promptTemplates/directories/title', 'Workspace-specific Prompt Template Directories'),
|
|
56
|
-
description: core_1.nls.localize('theia/ai/promptTemplates/directories/description', 'List of relative paths indicating folders in the current workspace to be scanned for WORKSPACE specific prompt templates. ' +
|
|
57
|
-
CONFLICT_RESOLUTION_DESCRIPTION),
|
|
58
|
-
default: ['.prompts'],
|
|
59
|
-
items: {
|
|
60
|
-
type: 'string'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
[exports.PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF]: {
|
|
64
|
-
type: 'array',
|
|
65
|
-
title: core_1.nls.localize('theia/ai/promptTemplates/extensions/title', 'Additional Prompt Template File Extensions'),
|
|
66
|
-
description: core_1.nls.localize('theia/ai/promptTemplates/extensions/description', 'List of additional file extensions in prompt locations that are considered as prompt templates. \'.prompttemplate\' is always considered as a default.'),
|
|
67
|
-
items: {
|
|
68
|
-
type: 'string'
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
[exports.PROMPT_TEMPLATE_WORKSPACE_FILES_PREF]: {
|
|
72
|
-
type: 'array',
|
|
73
|
-
title: core_1.nls.localize('theia/ai/promptTemplates/files/title', 'Workspace-specific Prompt Template Files'),
|
|
74
|
-
description: core_1.nls.localize('theia/ai/promptTemplates/files/description', 'List of relative paths to specific files in the current workspace to be used as prompt templates. ' +
|
|
75
|
-
CONFLICT_RESOLUTION_DESCRIPTION),
|
|
76
|
-
default: [],
|
|
77
|
-
items: {
|
|
78
|
-
type: 'string'
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
[exports.TASK_CONTEXT_STORAGE_DIRECTORY_PREF]: {
|
|
82
|
-
type: 'string',
|
|
83
|
-
description: core_1.nls.localize('theia/ai/chat/taskContextStorageDirectory/description', 'A workspace relative path in which to persist and from which to retrieve task context descriptions.' +
|
|
84
|
-
' If set to empty value, generated task contexts will be stored in memory rather than on disk.'),
|
|
85
|
-
default: '.prompts/task-contexts'
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
//# sourceMappingURL=workspace-preferences.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-preferences.js","sourceRoot":"","sources":["../../src/common/workspace-preferences.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,sCAAoD;AAEvC,QAAA,uBAAuB,GAAG,kDAAkD,CAAC;AAC7E,QAAA,yBAAyB,GAAG,6CAA6C,CAAC;AAC1E,QAAA,oCAAoC,GAAG,iDAAiD,CAAC;AACzF,QAAA,0CAA0C,GAAG,0DAA0D,CAAC;AACxG,QAAA,0CAA0C,GAAG,gDAAgD,CAAC;AAC9F,QAAA,oCAAoC,GAAG,oDAAoD,CAAC;AAC5F,QAAA,mCAAmC,GAAG,yDAAyD,CAAC;AAE7G,MAAM,+BAA+B,GAAG;iEACyB,CAAC;AAErD,QAAA,0BAA0B,GAAqB;IACxD,UAAU,EAAE;QACR,CAAC,+BAAuB,CAAC,EAAE;YACvB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,qBAAqB,CAAC;YACxF,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,kDAAkD,EACxE,qHAAqH,CAAC;YAC1H,OAAO,EAAE,IAAI;SAChB;QACD,CAAC,iCAAyB,CAAC,EAAE;YACzB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EAAE,wBAAwB,CAAC;YACzF,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,gDAAgD,EAAE,gEAAgE,CAAC;YAC7I,OAAO,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC;YAChC,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,CAAC,4CAAoC,CAAC,EAAE;YACpC,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,2CAA2C,EAAE,wBAAwB,CAAC;YAC1F,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EACvE,6EAA6E,CAAC;YAClF,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,CAAC;SACb;QACD,CAAC,kDAA0C,CAAC,EAAE;YAC1C,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,gDAAgD,CAAC;YACnH,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,kDAAkD,EACxE,4HAA4H;gBAC5H,+BAA+B,CAAC;YACpC,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,CAAC,kDAA0C,CAAC,EAAE;YAC1C,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,2CAA2C,EAAE,4CAA4C,CAAC;YAC9G,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EACvE,wJAAwJ,CAAC;YAC7J,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,CAAC,4CAAoC,CAAC,EAAE;YACpC,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,sCAAsC,EAAE,0CAA0C,CAAC;YACvG,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAClE,oGAAoG;gBACpG,+BAA+B,CAAC;YACpC,OAAO,EAAE,EAAE;YACX,KAAK,EAAE;gBACH,IAAI,EAAE,QAAQ;aACjB;SACJ;QACD,CAAC,2CAAmC,CAAC,EAAE;YACnC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,uDAAuD,EAC7E,qGAAqG;gBACrG,+FAA+F,CAClG;YACD,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SearchInWorkspaceResult } from '@theia/search-in-workspace/lib/common/search-in-workspace-interface';
|
|
2
|
-
import { URI } from '@theia/core';
|
|
3
|
-
/**
|
|
4
|
-
* Optimizes search results for token efficiency while preserving all information.
|
|
5
|
-
* - Groups matches by file to reduce repetition
|
|
6
|
-
* - Trims leading/trailing whitespace from line text
|
|
7
|
-
* - Uses relative file paths
|
|
8
|
-
* - Preserves all line numbers and content
|
|
9
|
-
*/
|
|
10
|
-
export declare function optimizeSearchResults(results: SearchInWorkspaceResult[], workspaceRoot: URI): Array<{
|
|
11
|
-
file: string;
|
|
12
|
-
matches: Array<{
|
|
13
|
-
line: number;
|
|
14
|
-
text: string;
|
|
15
|
-
}>;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=workspace-search-provider-util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-search-provider-util.d.ts","sourceRoot":"","sources":["../../src/common/workspace-search-provider-util.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAe,uBAAuB,EAAE,MAAM,qEAAqE,CAAC;AAC3H,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAElC;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,uBAAuB,EAAE,EAAE,aAAa,EAAE,GAAG,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAuBrK"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2025 EclipseSource GmbH.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.optimizeSearchResults = void 0;
|
|
19
|
-
const core_1 = require("@theia/core");
|
|
20
|
-
/**
|
|
21
|
-
* Optimizes search results for token efficiency while preserving all information.
|
|
22
|
-
* - Groups matches by file to reduce repetition
|
|
23
|
-
* - Trims leading/trailing whitespace from line text
|
|
24
|
-
* - Uses relative file paths
|
|
25
|
-
* - Preserves all line numbers and content
|
|
26
|
-
*/
|
|
27
|
-
function optimizeSearchResults(results, workspaceRoot) {
|
|
28
|
-
return results.map(result => {
|
|
29
|
-
const fileUri = new core_1.URI(result.fileUri);
|
|
30
|
-
const relativePath = workspaceRoot.relative(fileUri);
|
|
31
|
-
return {
|
|
32
|
-
file: relativePath ? relativePath.toString() : result.fileUri,
|
|
33
|
-
matches: result.matches.map(match => {
|
|
34
|
-
let lineText;
|
|
35
|
-
if (typeof match.lineText === 'string') {
|
|
36
|
-
lineText = match.lineText;
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
const linePreview = match.lineText;
|
|
40
|
-
lineText = linePreview.text || '';
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
line: match.line,
|
|
44
|
-
text: lineText.trim()
|
|
45
|
-
};
|
|
46
|
-
})
|
|
47
|
-
};
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
exports.optimizeSearchResults = optimizeSearchResults;
|
|
51
|
-
//# sourceMappingURL=workspace-search-provider-util.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-search-provider-util.js","sourceRoot":"","sources":["../../src/common/workspace-search-provider-util.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;AAElC;;;;;;GAMG;AACH,SAAgB,qBAAqB,CAAC,OAAkC,EAAE,aAAkB;IACxF,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QACxB,MAAM,OAAO,GAAG,IAAI,UAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,MAAM,YAAY,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAErD,OAAO;YACH,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO;YAC7D,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;gBAChC,IAAI,QAAgB,CAAC;gBACrB,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,QAAQ,EAAE,CAAC;oBACrC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAC9B,CAAC;qBAAM,CAAC;oBACJ,MAAM,WAAW,GAAG,KAAK,CAAC,QAAuB,CAAC;oBAClD,QAAQ,GAAG,WAAW,CAAC,IAAI,IAAI,EAAE,CAAC;gBACtC,CAAC;gBAED,OAAO;oBACH,IAAI,EAAE,KAAK,CAAC,IAAI;oBAChB,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE;iBACxB,CAAC;YACN,CAAC,CAAC;SACL,CAAC;IACN,CAAC,CAAC,CAAC;AACP,CAAC;AAvBD,sDAuBC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type RpcServer } from '@theia/core';
|
|
2
|
-
import { Browser, Page } from 'puppeteer-core';
|
|
3
|
-
import type { BrowserAutomation, BrowserAutomationClient, LaunchResult } from '../../common/browser-automation-protocol';
|
|
4
|
-
export declare class BrowserAutomationImpl implements RpcServer<BrowserAutomationClient>, BrowserAutomation {
|
|
5
|
-
protected _browser?: Browser;
|
|
6
|
-
protected _page?: Page;
|
|
7
|
-
protected client?: BrowserAutomationClient;
|
|
8
|
-
protected get browser(): Browser;
|
|
9
|
-
protected get page(): Page;
|
|
10
|
-
isRunning(): Promise<boolean>;
|
|
11
|
-
launch(remoteDebuggingPort: number): Promise<LaunchResult | undefined>;
|
|
12
|
-
close(): Promise<void>;
|
|
13
|
-
queryDom(selector?: string): Promise<string>;
|
|
14
|
-
dispose(): void;
|
|
15
|
-
setClient(client: BrowserAutomationClient | undefined): void;
|
|
16
|
-
getClient?(): BrowserAutomationClient | undefined;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=browser-automation-impl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser-automation-impl.d.ts","sourceRoot":"","sources":["../../../src/node/app-tester-agent/browser-automation-impl.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAU,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAIzH,qBACa,qBAAsB,YAAW,SAAS,CAAC,uBAAuB,CAAC,EAAE,iBAAiB;IAC/F,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC;IACvB,SAAS,CAAC,MAAM,CAAC,EAAE,uBAAuB,CAAC;IAE3C,SAAS,KAAK,OAAO,IAAI,OAAO,CAK/B;IAED,SAAS,KAAK,IAAI,IAAI,IAAI,CAKzB;IAEK,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAI7B,MAAM,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC;IAoBtE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAKtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAqBlD,OAAO,IAAI,IAAI;IAKf,SAAS,CAAC,MAAM,EAAE,uBAAuB,GAAG,SAAS,GAAG,IAAI;IAI5D,SAAS,CAAC,IAAI,uBAAuB,GAAG,SAAS;CAIpD"}
|