@theia/ai-ide 1.66.0-next.44 → 1.66.0-next.67
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.map +1 -1
- package/lib/browser/ai-configuration/agent-configuration-widget.js +5 -3
- package/lib/browser/ai-configuration/agent-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -1
- package/lib/browser/ai-configuration/language-model-renderer.js +4 -3
- package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js +4 -3
- package/lib/browser/ai-configuration/model-aliases-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js +1 -1
- package/lib/browser/ai-configuration/template-settings-renderer.js.map +1 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js +1 -1
- package/lib/browser/ai-configuration/token-usage-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +1 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/tools-configuration-widget.js +12 -12
- package/lib/browser/ai-configuration/tools-configuration-widget.js.map +1 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts +1 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.d.ts.map +1 -1
- package/lib/browser/ai-configuration/variable-configuration-widget.js +4 -3
- package/lib/browser/ai-configuration/variable-configuration-widget.js.map +1 -1
- package/lib/browser/app-tester-chat-agent.d.ts.map +1 -1
- package/lib/browser/app-tester-chat-agent.js +10 -7
- package/lib/browser/app-tester-chat-agent.js.map +1 -1
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +2 -2
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/coder-agent.d.ts.map +1 -1
- package/lib/browser/coder-agent.js +6 -5
- package/lib/browser/coder-agent.js.map +1 -1
- package/lib/browser/file-changeset-functions.d.ts +10 -0
- package/lib/browser/file-changeset-functions.d.ts.map +1 -1
- package/lib/browser/file-changeset-functions.js +51 -3
- package/lib/browser/file-changeset-functions.js.map +1 -1
- package/lib/browser/file-changeset-functions.spec.js +18 -0
- package/lib/browser/file-changeset-functions.spec.js.map +1 -1
- package/lib/browser/frontend-module.d.ts.map +1 -1
- package/lib/browser/frontend-module.js +2 -0
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/github-chat-agent.d.ts.map +1 -1
- package/lib/browser/github-chat-agent.js +18 -16
- package/lib/browser/github-chat-agent.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.d.ts +2 -0
- package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +20 -8
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/command-chat-agents.d.ts.map +1 -1
- package/lib/common/command-chat-agents.js +9 -9
- package/lib/common/command-chat-agents.js.map +1 -1
- package/lib/common/file-changeset-function-ids.d.ts +1 -0
- package/lib/common/file-changeset-function-ids.d.ts.map +1 -1
- package/lib/common/file-changeset-function-ids.js +2 -1
- package/lib/common/file-changeset-function-ids.js.map +1 -1
- package/lib/common/orchestrator-chat-agent.d.ts.map +1 -1
- package/lib/common/orchestrator-chat-agent.js +4 -4
- package/lib/common/orchestrator-chat-agent.js.map +1 -1
- package/lib/common/workspace-preferences.js +2 -2
- package/lib/common/workspace-preferences.js.map +1 -1
- package/package.json +21 -21
- package/src/browser/ai-configuration/agent-configuration-widget.tsx +5 -3
- package/src/browser/ai-configuration/language-model-renderer.tsx +9 -4
- package/src/browser/ai-configuration/model-aliases-configuration-widget.tsx +8 -4
- package/src/browser/ai-configuration/template-settings-renderer.tsx +1 -1
- package/src/browser/ai-configuration/token-usage-configuration-widget.tsx +1 -1
- package/src/browser/ai-configuration/tools-configuration-widget.tsx +15 -14
- package/src/browser/ai-configuration/variable-configuration-widget.tsx +4 -3
- package/src/browser/app-tester-chat-agent.ts +15 -7
- package/src/browser/architect-agent.ts +4 -2
- package/src/browser/coder-agent.ts +10 -6
- package/src/browser/file-changeset-functions.spec.ts +28 -1
- package/src/browser/file-changeset-functions.ts +47 -3
- package/src/browser/frontend-module.ts +5 -1
- package/src/browser/github-chat-agent.ts +23 -17
- package/src/common/coder-replace-prompt-template.ts +23 -8
- package/src/common/command-chat-agents.ts +13 -9
- package/src/common/file-changeset-function-ids.ts +1 -0
- package/src/common/orchestrator-chat-agent.ts +5 -4
- package/src/common/workspace-preferences.ts +2 -2
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// SPDX-License-Identifier: MIT
|
|
11
11
|
// *****************************************************************************
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.getCoderPromptTemplateSimpleEdit = exports.getCoderPromptTemplateEdit = exports.getCoderAgentModePromptTemplate = exports.CODER_AGENT_MODE_TEMPLATE_ID = exports.CODER_EDIT_TEMPLATE_ID = exports.CODER_SIMPLE_EDIT_TEMPLATE_ID = exports.CODER_SYSTEM_PROMPT_ID = void 0;
|
|
13
|
+
exports.getCoderPromptTemplateSimpleEdit = exports.getCoderPromptTemplateEditNext = exports.getCoderPromptTemplateEdit = exports.getCoderAgentModePromptTemplate = exports.CODER_AGENT_MODE_TEMPLATE_ID = exports.CODER_EDIT_NEXT_TEMPLATE_ID = exports.CODER_EDIT_TEMPLATE_ID = exports.CODER_SIMPLE_EDIT_TEMPLATE_ID = exports.CODER_SYSTEM_PROMPT_ID = void 0;
|
|
14
14
|
const ai_chat_1 = require("@theia/ai-chat");
|
|
15
15
|
const workspace_functions_1 = require("./workspace-functions");
|
|
16
16
|
const context_variables_1 = require("./context-variables");
|
|
@@ -19,6 +19,7 @@ const file_changeset_function_ids_1 = require("./file-changeset-function-ids");
|
|
|
19
19
|
exports.CODER_SYSTEM_PROMPT_ID = 'coder-system';
|
|
20
20
|
exports.CODER_SIMPLE_EDIT_TEMPLATE_ID = 'coder-system-simple-edit';
|
|
21
21
|
exports.CODER_EDIT_TEMPLATE_ID = 'coder-system-edit';
|
|
22
|
+
exports.CODER_EDIT_NEXT_TEMPLATE_ID = 'coder-system-edit-next';
|
|
22
23
|
exports.CODER_AGENT_MODE_TEMPLATE_ID = 'coder-system-agent-mode';
|
|
23
24
|
function getCoderAgentModePromptTemplate() {
|
|
24
25
|
return {
|
|
@@ -142,10 +143,8 @@ You are an autonomous AI agent. Do not stop until:
|
|
|
142
143
|
};
|
|
143
144
|
}
|
|
144
145
|
exports.getCoderAgentModePromptTemplate = getCoderAgentModePromptTemplate;
|
|
145
|
-
function
|
|
146
|
-
return {
|
|
147
|
-
id: exports.CODER_EDIT_TEMPLATE_ID,
|
|
148
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
146
|
+
function getCoderEditPromptTemplate(suggestFileReplacementsId) {
|
|
147
|
+
return `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
149
148
|
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
150
149
|
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
151
150
|
You are an AI assistant integrated into Theia IDE, designed to assist software developers with code tasks. You can interact with the code base and suggest changes, \
|
|
@@ -172,9 +171,9 @@ This also applies for newly created files!
|
|
|
172
171
|
- **Always Retrieve Current Content**: Use getFileContent to get the original content of the target file.
|
|
173
172
|
- **View Pending Changes**: Use ~{${file_changeset_function_ids_1.GET_PROPOSED_CHANGES_ID}} to see the current proposed state of a file, including all pending changes.
|
|
174
173
|
- **Change Content**: Use one of these methods to propose changes:
|
|
175
|
-
- ~{${
|
|
174
|
+
- ~{${suggestFileReplacementsId}}: For targeted replacements of specific text sections. Multiple calls will merge changes unless you set the reset parameter to true.
|
|
176
175
|
- ~{${file_changeset_function_ids_1.SUGGEST_FILE_CONTENT_ID}}: For complete file rewrites when you need to replace the entire content.
|
|
177
|
-
- If ~{${
|
|
176
|
+
- If ~{${suggestFileReplacementsId}} continuously fails use ~{${file_changeset_function_ids_1.SUGGEST_FILE_CONTENT_ID}}.
|
|
178
177
|
- ~{${file_changeset_function_ids_1.CLEAR_FILE_CHANGES_ID}}: To clear all pending changes for a file and start fresh.
|
|
179
178
|
|
|
180
179
|
The changes will be presented as an applicable diff to the user in any case. The user can then accept or reject each change individually. Before you run tasks that depend on the \
|
|
@@ -212,10 +211,23 @@ You have previously proposed changes for the following files. Some suggestions m
|
|
|
212
211
|
- Tasks such as building or liniting run on the workspace state, the user has to accept the changes beforehand
|
|
213
212
|
- Do not run a build or any error checking before the users asks you to
|
|
214
213
|
- Focus on the task that the user described
|
|
215
|
-
|
|
214
|
+
`;
|
|
215
|
+
}
|
|
216
|
+
function getCoderPromptTemplateEdit() {
|
|
217
|
+
return {
|
|
218
|
+
id: exports.CODER_EDIT_TEMPLATE_ID,
|
|
219
|
+
template: getCoderEditPromptTemplate(file_changeset_function_ids_1.SUGGEST_FILE_REPLACEMENTS_ID)
|
|
216
220
|
};
|
|
217
221
|
}
|
|
218
222
|
exports.getCoderPromptTemplateEdit = getCoderPromptTemplateEdit;
|
|
223
|
+
function getCoderPromptTemplateEditNext() {
|
|
224
|
+
return {
|
|
225
|
+
id: exports.CODER_EDIT_NEXT_TEMPLATE_ID,
|
|
226
|
+
template: getCoderEditPromptTemplate(file_changeset_function_ids_1.SUGGEST_FILE_REPLACEMENTS_NEXT_ID),
|
|
227
|
+
...({ variantOf: exports.CODER_EDIT_TEMPLATE_ID })
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
exports.getCoderPromptTemplateEditNext = getCoderPromptTemplateEditNext;
|
|
219
231
|
function getCoderPromptTemplateSimpleEdit() {
|
|
220
232
|
return {
|
|
221
233
|
id: exports.CODER_SIMPLE_EDIT_TEMPLATE_ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coder-replace-prompt-template.js","sourceRoot":"","sources":["../../src/common/coder-replace-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,4CAAgE;AAChE,+DAQ+B;AAC/B,2DAAkG;AAClG,2DAAuE;AACvE,+
|
|
1
|
+
{"version":3,"file":"coder-replace-prompt-template.js","sourceRoot":"","sources":["../../src/common/coder-replace-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,4CAAgE;AAChE,+DAQ+B;AAC/B,2DAAkG;AAClG,2DAAuE;AACvE,+EAQuC;AAE1B,QAAA,sBAAsB,GAAG,cAAc,CAAC;AAExC,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,2BAA2B,GAAG,wBAAwB,CAAC;AACvD,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AAEtE,SAAgB,+BAA+B;IAC3C,OAAO;QACH,EAAE,EAAE,oCAA4B;QAChC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCZ,yDAAmC;MACnC,8CAAwB;MACxB,uDAAiC;MACjC,qDAA+B;;MAE/B,oDAAgC;;;;;QAK9B,wDAA0B;QAC1B,mDAAqB;;4CAEe,wDAA0B;SAC7D,wDAA0B,8BAA8B,mDAAqB;;;;;MAKhF,6CAAuB;;;UAGnB,4CAAsB;UACtB,0CAAoB;;;;2CAIa,wDAA0B,UAAU,mDAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAkCnB,8CAA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wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;QACO,GAAG,CAAC,EAAE,SAAS,EAAE,8BAAsB,EAAE,CAAC;KAC7C,CAAC;AACN,CAAC;AA9DD,4EA8DC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-chat-agents.d.ts","sourceRoot":"","sources":["../../src/common/command-chat-agents.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mCAAmC,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EACH,uBAAuB,EACvB,mBAAmB,EAKtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"command-chat-agents.d.ts","sourceRoot":"","sources":["../../src/common/command-chat-agents.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,mCAAmC,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtH,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EACH,uBAAuB,EACvB,mBAAmB,EAKtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACH,eAAe,EACf,cAAc,EAGjB,MAAM,aAAa,CAAC;AAIrB,UAAU,aAAa;IACnB,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,YAAY,CAAA;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBACa,gBAAiB,SAAQ,mCAAmC,CAAC,aAAa,CAAC;IAEpF,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAE3C,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAEzC,EAAE,EAAE,MAAM,CAAa;IACvB,IAAI,SAAa;IACjB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAa;IAEjD,WAAW,SAE8E;IACzF,OAAO,8CAAqB;IAC5B,sBAAsB;;;;QAI5B;cAEsB,2BAA2B,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,wBAAwB,GAAG,SAAS,CAAC;IAc/H;;;;OAIG;cACa,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAUvE,SAAS,CAAC,qBAAqB,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,uBAAuB,GAAG,mBAAmB;cAsCpG,eAAe,CAAC,GAAG,WAAW,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAK5E"}
|
|
@@ -32,12 +32,12 @@ let CommandChatAgent = class CommandChatAgent extends chat_agents_1.AbstractText
|
|
|
32
32
|
identifier: 'default/universal',
|
|
33
33
|
}];
|
|
34
34
|
this.defaultLanguageModelPurpose = 'command';
|
|
35
|
-
this.description = 'This agent is aware of all commands that the user can execute within the Theia IDE, the tool that the user is currently working with.
|
|
36
|
-
|
|
35
|
+
this.description = core_1.nls.localize('theia/ai/ide/commandAgent/description', 'This agent is aware of all commands that the user can execute within the Theia IDE, the tool that the user is currently working with. ' +
|
|
36
|
+
'Based on the user request, it can find the right command and then let the user execute it.');
|
|
37
37
|
this.prompts = [command_prompt_template_1.commandTemplate];
|
|
38
38
|
this.agentSpecificVariables = [{
|
|
39
39
|
name: 'command-ids',
|
|
40
|
-
description: 'The list of available commands in Theia.',
|
|
40
|
+
description: core_1.nls.localize('theia/ai/ide/commandAgent/vars/commandIds/description', 'The list of available commands in Theia.'),
|
|
41
41
|
usedInPrompt: true
|
|
42
42
|
}];
|
|
43
43
|
}
|
|
@@ -81,7 +81,7 @@ let CommandChatAgent = class CommandChatAgent extends chat_agents_1.AbstractText
|
|
|
81
81
|
? parsedCommand.arguments
|
|
82
82
|
: undefined;
|
|
83
83
|
return new chat_model_1.HorizontalLayoutChatResponseContentImpl([
|
|
84
|
-
new chat_model_1.MarkdownChatResponseContentImpl('I found this command that might help you:'),
|
|
84
|
+
new chat_model_1.MarkdownChatResponseContentImpl(core_1.nls.localize('theia/ai/ide/commandAgent/response/theiaCommand', 'I found this command that might help you:')),
|
|
85
85
|
new chat_model_1.CommandChatResponseContentImpl(theiaCommand, undefined, args),
|
|
86
86
|
]);
|
|
87
87
|
}
|
|
@@ -90,21 +90,21 @@ let CommandChatAgent = class CommandChatAgent extends chat_agents_1.AbstractText
|
|
|
90
90
|
const commandArgs = parsedCommand.arguments !== undefined && parsedCommand.arguments.length > 0 ? parsedCommand.arguments : [];
|
|
91
91
|
const args = [id, ...commandArgs];
|
|
92
92
|
const customCallback = {
|
|
93
|
-
label: 'AI command',
|
|
93
|
+
label: core_1.nls.localize('theia/ai/ide/commandAgent/commandCallback/label', 'AI command'),
|
|
94
94
|
callback: () => this.commandCallback(...args),
|
|
95
95
|
};
|
|
96
96
|
return new chat_model_1.HorizontalLayoutChatResponseContentImpl([
|
|
97
|
-
new chat_model_1.MarkdownChatResponseContentImpl('Try executing this:'),
|
|
97
|
+
new chat_model_1.MarkdownChatResponseContentImpl(core_1.nls.localize('theia/ai/ide/commandAgent/response/customHandler', 'Try executing this:')),
|
|
98
98
|
new chat_model_1.CommandChatResponseContentImpl(undefined, customCallback, args),
|
|
99
99
|
]);
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
|
-
return new chat_model_1.MarkdownChatResponseContentImpl((_a = parsedCommand.message) !== null && _a !== void 0 ? _a : 'Sorry, I can\'t find such a command');
|
|
102
|
+
return new chat_model_1.MarkdownChatResponseContentImpl((_a = parsedCommand.message) !== null && _a !== void 0 ? _a : core_1.nls.localize('theia/ai/ide/commandAgent/response/noCommand', 'Sorry, I can\'t find such a command'));
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
async commandCallback(...commandArgs) {
|
|
106
|
-
this.messageService.info(
|
|
107
|
-
|
|
106
|
+
this.messageService.info(core_1.nls.localize('theia/ai/ide/commandAgent/commandCallback/message', 'Executing callback with args {0}. The first arg is the command id registered for the dynamically registered command. ' +
|
|
107
|
+
'The other args are the actual args for the handler.', commandArgs.join(', ')), core_1.nls.localize('theia/ai/ide/commandAgent/commandCallback/confirmAction', 'Got it'));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
exports.CommandChatAgent = CommandChatAgent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-chat-agents.js","sourceRoot":"","sources":["../../src/common/command-chat-agents.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,4DAAkE;AAClE,uEAAsH;AAEtH,qEAO8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"command-chat-agents.js","sourceRoot":"","sources":["../../src/common/command-chat-agents.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,4DAAkE;AAClE,uEAAsH;AAEtH,qEAO8C;AAC9C,sCAKqB;AAErB,uEAA4D;AAUrD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,iDAAkD;IAAjF;;QAMH,OAAE,GAAW,SAAS,CAAC;QACvB,SAAI,GAAG,SAAS,CAAC;QACjB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,SAAS;gBAClB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c,GAAmB;gBACnC,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EAAE,YAAY,CAAC;gBACpF,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;aAChD,CAAC;YACF,OAAO,IAAI,oDAAuC,CAAC;gBAC/C,IAAI,4CAA+B,CAC/B,UAAG,CAAC,QAAQ,CAAC,kDAAkD,EAAE,qBAAqB,CAAC,CAC1F;gBACD,IAAI,2CAA8B,CAAC,SAAS,EAAE,cAAc,EAAE,IAAI,CAAC;aACtE,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,4CAA+B,CAAC,MAAA,aAAa,CAAC,OAAO,mCAAI,UAAG,CAAC,QAAQ,CAAC,8CAA8C,EAC3H,qCAAqC,CAAC,CAAC,CAAC;QAChD,CAAC;IACL,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,GAAG,WAAsB;QACrD,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,UAAG,CAAC,QAAQ,CAAC,mDAAmD,EACrF,uHAAuH;YACvH,qDAAqD,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,UAAG,CAAC,QAAQ,CAAC,yDAAyD,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC3K,CAAC;CACJ,CAAA;AAhGY,4CAAgB;AAEf;IADT,IAAA,kBAAM,EAAC,sBAAe,CAAC;sCACG,sBAAe;yDAAC;AAEjC;IADT,IAAA,kBAAM,EAAC,qBAAc,CAAC;sCACG,qBAAc;wDAAC;2BAJhC,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAgG5B"}
|
|
@@ -4,4 +4,5 @@ export declare const SUGGEST_FILE_REPLACEMENTS_ID = "suggestFileReplacements";
|
|
|
4
4
|
export declare const WRITE_FILE_REPLACEMENTS_ID = "writeFileReplacements";
|
|
5
5
|
export declare const CLEAR_FILE_CHANGES_ID = "clearFileChanges";
|
|
6
6
|
export declare const GET_PROPOSED_CHANGES_ID = "getProposedFileState";
|
|
7
|
+
export declare const SUGGEST_FILE_REPLACEMENTS_NEXT_ID = "suggestFileReplacements_Next";
|
|
7
8
|
//# sourceMappingURL=file-changeset-function-ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-changeset-function-ids.d.ts","sourceRoot":"","sources":["../../src/common/file-changeset-function-ids.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AACtE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,uBAAuB,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"file-changeset-function-ids.d.ts","sourceRoot":"","sources":["../../src/common/file-changeset-function-ids.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AACtE,eAAO,MAAM,0BAA0B,0BAA0B,CAAC;AAClE,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AACxD,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAC9D,eAAO,MAAM,iCAAiC,iCAAiC,CAAC"}
|
|
@@ -15,11 +15,12 @@
|
|
|
15
15
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
16
|
// *****************************************************************************
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.GET_PROPOSED_CHANGES_ID = exports.CLEAR_FILE_CHANGES_ID = exports.WRITE_FILE_REPLACEMENTS_ID = exports.SUGGEST_FILE_REPLACEMENTS_ID = exports.WRITE_FILE_CONTENT_ID = exports.SUGGEST_FILE_CONTENT_ID = void 0;
|
|
18
|
+
exports.SUGGEST_FILE_REPLACEMENTS_NEXT_ID = exports.GET_PROPOSED_CHANGES_ID = exports.CLEAR_FILE_CHANGES_ID = exports.WRITE_FILE_REPLACEMENTS_ID = exports.SUGGEST_FILE_REPLACEMENTS_ID = exports.WRITE_FILE_CONTENT_ID = exports.SUGGEST_FILE_CONTENT_ID = void 0;
|
|
19
19
|
exports.SUGGEST_FILE_CONTENT_ID = 'suggestFileContent';
|
|
20
20
|
exports.WRITE_FILE_CONTENT_ID = 'writeFileContent';
|
|
21
21
|
exports.SUGGEST_FILE_REPLACEMENTS_ID = 'suggestFileReplacements';
|
|
22
22
|
exports.WRITE_FILE_REPLACEMENTS_ID = 'writeFileReplacements';
|
|
23
23
|
exports.CLEAR_FILE_CHANGES_ID = 'clearFileChanges';
|
|
24
24
|
exports.GET_PROPOSED_CHANGES_ID = 'getProposedFileState';
|
|
25
|
+
exports.SUGGEST_FILE_REPLACEMENTS_NEXT_ID = 'suggestFileReplacements_Next';
|
|
25
26
|
//# sourceMappingURL=file-changeset-function-ids.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-changeset-function-ids.js","sourceRoot":"","sources":["../../src/common/file-changeset-function-ids.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;;;AAEnE,QAAA,uBAAuB,GAAG,oBAAoB,CAAC;AAC/C,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AACzD,QAAA,0BAA0B,GAAG,uBAAuB,CAAC;AACrD,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,uBAAuB,GAAG,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"file-changeset-function-ids.js","sourceRoot":"","sources":["../../src/common/file-changeset-function-ids.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;;;AAEnE,QAAA,uBAAuB,GAAG,oBAAoB,CAAC;AAC/C,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AACzD,QAAA,0BAA0B,GAAG,uBAAuB,CAAC;AACrD,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,uBAAuB,GAAG,sBAAsB,CAAC;AACjD,QAAA,iCAAiC,GAAG,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator-chat-agent.d.ts","sourceRoot":"","sources":["../../src/common/orchestrator-chat-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAoC,aAAa,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAExJ,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAwC,MAAM,sCAAsC,CAAC;AAIrH,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAGtD,qBACa,qBAAsB,SAAQ,8BAA8B;IACrE,EAAE,EAAE,MAAM,CAA2B;IACrC,IAAI,SAA2B;IAC/B,yBAAy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zD,OAAO,8CAA0B;IACjC,WAAW,SAE+F;IAC1G,SAAS,EAAE,MAAM,CAAoC;IAE9D,UAAmB,cAAc,EAAE,MAAM,CAA2B;IAEpE,OAAO,CAAC,mBAAmB,CAAe;IAG1C,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE9B,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;cAS7C,cAAc,CACnC,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,oBAAoB,EAAE,EAChC,YAAY,EAAE,eAAe,EAAE,EAC/B,aAAa,EAAE,aAAa,GAC7B,OAAO,CAAC,qBAAqB,CAAC;cAqBR,qBAAqB,CAAC,QAAQ,EAAE,qBAAqB,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;CAyDnI"}
|
|
@@ -44,7 +44,7 @@ let OrchestratorChatAgent = class OrchestratorChatAgent extends chat_agents_1.Ab
|
|
|
44
44
|
this.fallBackChatAgentId = 'Universal';
|
|
45
45
|
}
|
|
46
46
|
async invoke(request) {
|
|
47
|
-
request.response.addProgressMessage({ content: 'Determining the most appropriate agent', status: 'inProgress' });
|
|
47
|
+
request.response.addProgressMessage({ content: core_1.nls.localize('theia/ai/ide/orchestrator/progressMessage', 'Determining the most appropriate agent'), status: 'inProgress' });
|
|
48
48
|
// We use a dedicated id for the orchestrator request
|
|
49
49
|
const orchestratorRequestId = (0, core_1.generateUuid)();
|
|
50
50
|
request.addData(OrchestratorRequestIdKey, orchestratorRequestId);
|
|
@@ -95,13 +95,13 @@ let OrchestratorChatAgent = class OrchestratorChatAgent extends chat_agents_1.Ab
|
|
|
95
95
|
agentIds = [firstRegisteredAgent];
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
|
-
throw new Error('No chat agent available to handle request. Please check your configuration whether any are enabled.');
|
|
98
|
+
throw new Error(core_1.nls.localize('theia/ai/ide/orchestrator/error/noAgents', 'No chat agent available to handle request. Please check your configuration whether any are enabled.'));
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
// TODO support delegating to more than one agent
|
|
102
102
|
const delegatedToAgent = agentIds[0];
|
|
103
|
-
request.response.response.addContent(new chat_model_1.InformationalChatResponseContentImpl(`*Orchestrator*: Delegating to
|
|
104
|
-
|
|
103
|
+
request.response.response.addContent(new chat_model_1.InformationalChatResponseContentImpl(`*Orchestrator*: ${core_1.nls.localize('theia/ai/ide/orchestrator/response/delegatingToAgent', 'Delegating to \`@{0}\`', delegatedToAgent)}
|
|
104
|
+
|
|
105
105
|
---
|
|
106
106
|
|
|
107
107
|
`));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator-chat-agent.js","sourceRoot":"","sources":["../../src/common/orchestrator-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;;;;AAEhF,4CAAwJ;AACxJ,4DAAkE;AAClE,qFAAgF;AAEhF,uEAAuF;AACvF,qEAAqH;AACrH,sCAAgD;AAChD,iFAAsE;AAEzD,QAAA,uBAAuB,GAAG,cAAc,CAAC;AACtD,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAGrD,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,4CAA8B;IAAlE;;QACH,OAAE,GAAW,+BAAuB,CAAC;QACrC,SAAI,GAAG,+BAAuB,CAAC;QAC/B,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,iBAAiB;gBAC1B,UAAU,EAAE,mBAAmB;aAClC,CAAC,CAAC;QACO,gCAA2B,GAAW,iBAAiB,CAAC;QAEzD,YAAO,GAAG,CAAC,mDAAoB,CAAC,CAAC;QACjC,gBA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,sDAAqB;AAoBpB;IADT,IAAA,kBAAM,EAAC,qCAAgB,CAAC;;+DACoB;gCApBpC,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAkHjC"}
|
|
@@ -32,13 +32,13 @@ exports.WorkspacePreferencesSchema = {
|
|
|
32
32
|
type: 'boolean',
|
|
33
33
|
title: core_1.nls.localize('theia/ai/workspace/considerGitignore/title', 'Consider .gitignore'),
|
|
34
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:
|
|
35
|
+
default: true
|
|
36
36
|
},
|
|
37
37
|
[exports.USER_EXCLUDE_PATTERN_PREF]: {
|
|
38
38
|
type: 'array',
|
|
39
39
|
title: core_1.nls.localize('theia/ai/workspace/excludedPattern/title', 'Excluded File Patterns'),
|
|
40
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'
|
|
41
|
+
default: ['node_modules', 'lib'],
|
|
42
42
|
items: {
|
|
43
43
|
type: 'string'
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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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AAE,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theia/ai-ide",
|
|
3
|
-
"version": "1.66.0-next.
|
|
3
|
+
"version": "1.66.0-next.67+6fae23c43",
|
|
4
4
|
"description": "AI IDE Agents Extension",
|
|
5
5
|
"license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
"theia-extension"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@theia/ai-chat": "1.66.0-next.
|
|
19
|
-
"@theia/ai-chat-ui": "1.66.0-next.
|
|
20
|
-
"@theia/ai-core": "1.66.0-next.
|
|
21
|
-
"@theia/ai-mcp": "1.66.0-next.
|
|
22
|
-
"@theia/core": "1.66.0-next.
|
|
23
|
-
"@theia/debug": "1.66.0-next.
|
|
24
|
-
"@theia/editor": "1.66.0-next.
|
|
25
|
-
"@theia/filesystem": "1.66.0-next.
|
|
18
|
+
"@theia/ai-chat": "1.66.0-next.67+6fae23c43",
|
|
19
|
+
"@theia/ai-chat-ui": "1.66.0-next.67+6fae23c43",
|
|
20
|
+
"@theia/ai-core": "1.66.0-next.67+6fae23c43",
|
|
21
|
+
"@theia/ai-mcp": "1.66.0-next.67+6fae23c43",
|
|
22
|
+
"@theia/core": "1.66.0-next.67+6fae23c43",
|
|
23
|
+
"@theia/debug": "1.66.0-next.67+6fae23c43",
|
|
24
|
+
"@theia/editor": "1.66.0-next.67+6fae23c43",
|
|
25
|
+
"@theia/filesystem": "1.66.0-next.67+6fae23c43",
|
|
26
26
|
"@theia/git": "1.65.0",
|
|
27
|
-
"@theia/markers": "1.66.0-next.
|
|
28
|
-
"@theia/monaco": "1.66.0-next.
|
|
29
|
-
"@theia/navigator": "1.66.0-next.
|
|
30
|
-
"@theia/preferences": "1.66.0-next.
|
|
31
|
-
"@theia/scm": "1.66.0-next.
|
|
32
|
-
"@theia/search-in-workspace": "1.66.0-next.
|
|
33
|
-
"@theia/task": "1.66.0-next.
|
|
34
|
-
"@theia/terminal": "1.66.0-next.
|
|
35
|
-
"@theia/workspace": "1.66.0-next.
|
|
27
|
+
"@theia/markers": "1.66.0-next.67+6fae23c43",
|
|
28
|
+
"@theia/monaco": "1.66.0-next.67+6fae23c43",
|
|
29
|
+
"@theia/navigator": "1.66.0-next.67+6fae23c43",
|
|
30
|
+
"@theia/preferences": "1.66.0-next.67+6fae23c43",
|
|
31
|
+
"@theia/scm": "1.66.0-next.67+6fae23c43",
|
|
32
|
+
"@theia/search-in-workspace": "1.66.0-next.67+6fae23c43",
|
|
33
|
+
"@theia/task": "1.66.0-next.67+6fae23c43",
|
|
34
|
+
"@theia/terminal": "1.66.0-next.67+6fae23c43",
|
|
35
|
+
"@theia/workspace": "1.66.0-next.67+6fae23c43",
|
|
36
36
|
"date-fns": "^4.1.0",
|
|
37
37
|
"ignore": "^6.0.0",
|
|
38
38
|
"js-yaml": "^4.1.0",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@theia/cli": "1.66.0-next.
|
|
47
|
-
"@theia/test": "1.66.0-next.
|
|
46
|
+
"@theia/cli": "1.66.0-next.67+6fae23c43",
|
|
47
|
+
"@theia/test": "1.66.0-next.67+6fae23c43"
|
|
48
48
|
},
|
|
49
49
|
"theiaExtensions": [
|
|
50
50
|
{
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"nyc": {
|
|
69
69
|
"extends": "../../configs/nyc.json"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "6fae23c43f4e850ef4dd6f7c85aa0422077f70e2"
|
|
72
72
|
}
|
|
@@ -320,12 +320,14 @@ export class AIAgentConfigurationWidget extends ReactWidget {
|
|
|
320
320
|
|
|
321
321
|
// Multiple locations - show quick picker
|
|
322
322
|
const quickPick = this.quickInputService.createQuickPick();
|
|
323
|
-
quickPick.title = 'Select Location for Custom Agents File';
|
|
324
|
-
quickPick.placeholder = 'Choose where to create or open a custom agents file';
|
|
323
|
+
quickPick.title = nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/title', 'Select Location for Custom Agents File');
|
|
324
|
+
quickPick.placeholder = nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/placeholder', 'Choose where to create or open a custom agents file');
|
|
325
325
|
|
|
326
326
|
quickPick.items = locations.map(location => ({
|
|
327
327
|
label: location.uri.path.toString(),
|
|
328
|
-
description: location.exists
|
|
328
|
+
description: location.exists
|
|
329
|
+
? nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/openExistingFile', 'Open existing file')
|
|
330
|
+
: nls.localize('theia/ai/ide/agentConfiguration/customAgentLocationQuickPick/createNewFile', 'Create new file'),
|
|
329
331
|
location
|
|
330
332
|
}));
|
|
331
333
|
|
|
@@ -103,7 +103,9 @@ export const LanguageModelRenderer: React.FC<LanguageModelSettingsProps> = (
|
|
|
103
103
|
<option value=""></option>
|
|
104
104
|
{/* Aliases first, then languange models */}
|
|
105
105
|
{aliases?.sort((a, b) => a.id.localeCompare(b.id)).map(alias => (
|
|
106
|
-
<option key={`alias/${alias.id}`} value={alias.id} className='ai-language-model-item-ready'>
|
|
106
|
+
<option key={`alias/${alias.id}`} value={alias.id} className='ai-language-model-item-ready'>
|
|
107
|
+
{nls.localize('theia/ai/core/languageModelRenderer/alias', '[alias] {0}', alias.id)}
|
|
108
|
+
</option>
|
|
107
109
|
))}
|
|
108
110
|
{languageModels?.sort((a, b) => (a.name ?? a.id).localeCompare(b.name ?? b.id)).map(model => {
|
|
109
111
|
const isNotReady = model.status.status !== 'ready';
|
|
@@ -128,15 +130,18 @@ export const LanguageModelRenderer: React.FC<LanguageModelSettingsProps> = (
|
|
|
128
130
|
<span className="ai-alias-evaluates-to-value">
|
|
129
131
|
{resolvedModel.name ?? resolvedModel.id}
|
|
130
132
|
{resolvedModel.status.status === 'ready' ? (
|
|
131
|
-
<span className="ai-model-status-ready"
|
|
133
|
+
<span className="ai-model-status-ready"
|
|
134
|
+
title={nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready')}>✓</span>
|
|
132
135
|
) : (
|
|
133
|
-
<span className="ai-model-status-not-ready" title={resolvedModel.status.message
|
|
136
|
+
<span className="ai-model-status-not-ready" title={resolvedModel.status.message
|
|
137
|
+
|| nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready')}>✗</span>
|
|
134
138
|
)}
|
|
135
139
|
</span>
|
|
136
140
|
) : (
|
|
137
141
|
<span className="ai-alias-evaluates-to-unresolved">
|
|
138
142
|
{nls.localize('theia/ai/core/modelAliasesConfiguration/noResolvedModel', 'No model ready for this alias.')}
|
|
139
|
-
<span className="ai-model-status-not-ready"
|
|
143
|
+
<span className="ai-model-status-not-ready"
|
|
144
|
+
title={nls.localize('theia/ai/core/modelAliasesConfiguration/noModelReadyTooltip', 'No model ready')}>✗</span>
|
|
140
145
|
</span>
|
|
141
146
|
)}
|
|
142
147
|
</div>
|
|
@@ -229,11 +229,13 @@ export class ModelAliasesConfigurationWidget extends ReactWidget {
|
|
|
229
229
|
<li key={modelId}>
|
|
230
230
|
{isReady ? (
|
|
231
231
|
<span className={modelId === resolvedModel?.id ? 'ai-alias-priority-item-resolved' : 'ai-alias-priority-item-ready'}>
|
|
232
|
-
{modelId} <span className="ai-model-status-ready"
|
|
232
|
+
{modelId} <span className="ai-model-status-ready"
|
|
233
|
+
title={nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready')}>✓</span>
|
|
233
234
|
</span>
|
|
234
235
|
) : (
|
|
235
236
|
<span className="ai-model-default-not-ready">
|
|
236
|
-
{modelId} <span className="ai-model-status-not-ready"
|
|
237
|
+
{modelId} <span className="ai-model-status-not-ready"
|
|
238
|
+
title={nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready')}>✗</span>
|
|
237
239
|
</span>
|
|
238
240
|
)}
|
|
239
241
|
</li>
|
|
@@ -246,9 +248,11 @@ export class ModelAliasesConfigurationWidget extends ReactWidget {
|
|
|
246
248
|
<span className="ai-alias-evaluates-to-value">
|
|
247
249
|
{resolvedModel.name ?? resolvedModel.id}
|
|
248
250
|
{resolvedModel.status.status === 'ready' ? (
|
|
249
|
-
<span className="ai-model-status-ready"
|
|
251
|
+
<span className="ai-model-status-ready"
|
|
252
|
+
title={nls.localize('theia/ai/core/modelAliasesConfiguration/modelReadyTooltip', 'Ready')}>✓</span>
|
|
250
253
|
) : (
|
|
251
|
-
<span className="ai-model-status-not-ready" title={resolvedModel.status.message
|
|
254
|
+
<span className="ai-model-status-not-ready" title={resolvedModel.status.message
|
|
255
|
+
|| nls.localize('theia/ai/core/modelAliasesConfiguration/modelNotReadyTooltip', 'Not ready')}>✗</span>
|
|
252
256
|
)}
|
|
253
257
|
</span>
|
|
254
258
|
) : (
|
|
@@ -86,7 +86,7 @@ export const PromptVariantRenderer: React.FC<PromptVariantRendererProps> = ({
|
|
|
86
86
|
)}
|
|
87
87
|
{variantIds.map(variantId => (
|
|
88
88
|
<option key={variantId} value={variantId}>
|
|
89
|
-
{variantId === defaultVariantId ? variantId + ' (default)' : variantId}
|
|
89
|
+
{variantId === defaultVariantId ? variantId + ' ' + nls.localizeByDefault('(default)') : variantId}
|
|
90
90
|
</option>
|
|
91
91
|
))}
|
|
92
92
|
</select>
|
|
@@ -57,7 +57,7 @@ export class AITokenUsageConfigurationWidget extends ReactWidget {
|
|
|
57
57
|
this.tokenUsageData = await this.tokenUsageService.getTokenUsageData();
|
|
58
58
|
this.update();
|
|
59
59
|
} catch (error) {
|
|
60
|
-
this.messageService.error(
|
|
60
|
+
this.messageService.error(nls.localize('theia/ai/tokenUsage/failedToGetTokenUsageData', 'Failed to fetch token usage data: {0}', error));
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -18,20 +18,20 @@ import { ReactWidget, ConfirmDialog } from '@theia/core/lib/browser';
|
|
|
18
18
|
import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
|
|
19
19
|
import * as React from '@theia/core/shared/react';
|
|
20
20
|
import { ToolInvocationRegistry } from '@theia/ai-core';
|
|
21
|
-
import { PreferenceService } from '@theia/core';
|
|
21
|
+
import { nls, PreferenceService } from '@theia/core';
|
|
22
22
|
import { ToolConfirmationManager } from '@theia/ai-chat/lib/browser/chat-tool-preference-bindings';
|
|
23
23
|
import { ToolConfirmationMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
|
|
24
24
|
|
|
25
25
|
const TOOL_OPTIONS: { value: ToolConfirmationMode, label: string, icon: string }[] = [
|
|
26
|
-
{ value: ToolConfirmationMode.DISABLED, label: 'Disabled', icon: 'close' },
|
|
27
|
-
{ value: ToolConfirmationMode.CONFIRM, label: 'Confirm', icon: 'question' },
|
|
28
|
-
{ value: ToolConfirmationMode.ALWAYS_ALLOW, label: 'Always Allow', icon: 'thumbsup' },
|
|
26
|
+
{ value: ToolConfirmationMode.DISABLED, label: nls.localizeByDefault('Disabled'), icon: 'close' },
|
|
27
|
+
{ value: ToolConfirmationMode.CONFIRM, label: nls.localize('theia/ai/ide/toolsConfiguration/toolOptions/confirm/label', 'Confirm'), icon: 'question' },
|
|
28
|
+
{ value: ToolConfirmationMode.ALWAYS_ALLOW, label: nls.localize('theia/ai/ide/toolsConfiguration/toolOptions/alwaysAllow/label', 'Always Allow'), icon: 'thumbsup' },
|
|
29
29
|
];
|
|
30
30
|
|
|
31
31
|
@injectable()
|
|
32
32
|
export class AIToolsConfigurationWidget extends ReactWidget {
|
|
33
33
|
static readonly ID = 'ai-tools-configuration-widget';
|
|
34
|
-
static readonly LABEL = 'Tools';
|
|
34
|
+
static readonly LABEL = nls.localize('theia/ai/ide/toolsConfiguration/label', 'Tools');
|
|
35
35
|
|
|
36
36
|
@inject(ToolConfirmationManager)
|
|
37
37
|
protected readonly confirmationManager: ToolConfirmationManager;
|
|
@@ -106,10 +106,11 @@ export class AIToolsConfigurationWidget extends ReactWidget {
|
|
|
106
106
|
|
|
107
107
|
protected async resetAllToolsToDefault(): Promise<void> {
|
|
108
108
|
const dialog = new ConfirmDialog({
|
|
109
|
-
title: 'Reset All Tool Confirmation Modes',
|
|
110
|
-
msg:
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
title: nls.localize('theia/ai/ide/toolsConfiguration/resetAllConfirmDialog/title', 'Reset All Tool Confirmation Modes'),
|
|
110
|
+
msg: nls.localize('theia/ai/ide/toolsConfiguration/resetAllConfirmDialog/msg',
|
|
111
|
+
'Are you sure you want to reset all tool confirmation modes to the default? This will remove all custom settings.'),
|
|
112
|
+
ok: nls.localize('theia/ai/ide/toolsConfiguration/resetAll', 'Reset All'),
|
|
113
|
+
cancel: nls.localizeByDefault('Cancel')
|
|
113
114
|
});
|
|
114
115
|
const shouldReset = await dialog.open();
|
|
115
116
|
if (shouldReset) {
|
|
@@ -119,11 +120,11 @@ export class AIToolsConfigurationWidget extends ReactWidget {
|
|
|
119
120
|
|
|
120
121
|
protected render(): React.ReactNode {
|
|
121
122
|
if (this.loading) {
|
|
122
|
-
return <div>Loading tools
|
|
123
|
+
return <div>{nls.localize('theia/ai/ide/toolsConfiguration/loading', 'Loading tools...')}</div>;
|
|
123
124
|
}
|
|
124
125
|
return <div className='ai-tools-configuration-container'>
|
|
125
126
|
<div className='ai-tools-configuration-default-section' style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
|
126
|
-
<div className='ai-tools-configuration-default-label'>Default Tool Confirmation Mode
|
|
127
|
+
<div className='ai-tools-configuration-default-label'>{nls.localize('theia/ai/ide/toolsConfiguration/default/label', 'Default Tool Confirmation Mode:')}</div>
|
|
127
128
|
<select
|
|
128
129
|
className="ai-tools-configuration-default-select"
|
|
129
130
|
value={this.defaultState}
|
|
@@ -137,14 +138,14 @@ export class AIToolsConfigurationWidget extends ReactWidget {
|
|
|
137
138
|
<button
|
|
138
139
|
className='ai-tools-configuration-reset-btn'
|
|
139
140
|
style={{ marginLeft: 'auto' }}
|
|
140
|
-
title='Reset all tools to default'
|
|
141
|
+
title={nls.localize('theia/ai/ide/toolsConfiguration/resetAllTooltip', 'Reset all tools to default')}
|
|
141
142
|
onClick={() => this.resetAllToolsToDefault()}
|
|
142
143
|
>
|
|
143
|
-
Reset All
|
|
144
|
+
{nls.localize('theia/ai/ide/toolsConfiguration/resetAll', 'Reset All')}
|
|
144
145
|
</button>
|
|
145
146
|
</div>
|
|
146
147
|
<div className='ai-tools-configuration-tools-section'>
|
|
147
|
-
<div className='ai-tools-configuration-tools-label'>Tools</div>
|
|
148
|
+
<div className='ai-tools-configuration-tools-label'>{nls.localize('theia/ai/ide/toolsConfiguration/tools/label', 'Tools')}</div>
|
|
148
149
|
<ul className='ai-tools-configuration-tools-list'>
|
|
149
150
|
{this.tools.map(tool => {
|
|
150
151
|
const state = this.toolConfirmationModes[tool] || this.defaultState;
|
|
@@ -20,12 +20,13 @@ import { inject, injectable, postConstruct } from '@theia/core/shared/inversify'
|
|
|
20
20
|
import * as React from '@theia/core/shared/react';
|
|
21
21
|
import { AIAgentConfigurationWidget } from './agent-configuration-widget';
|
|
22
22
|
import { AIConfigurationSelectionService } from './ai-configuration-service';
|
|
23
|
+
import { nls } from '@theia/core';
|
|
23
24
|
|
|
24
25
|
@injectable()
|
|
25
26
|
export class AIVariableConfigurationWidget extends ReactWidget {
|
|
26
27
|
|
|
27
28
|
static readonly ID = 'ai-variable-configuration-container-widget';
|
|
28
|
-
static readonly LABEL = 'Variables';
|
|
29
|
+
static readonly LABEL = nls.localizeByDefault('Variables');
|
|
29
30
|
|
|
30
31
|
@inject(AIVariableService)
|
|
31
32
|
protected readonly variableService: AIVariableService;
|
|
@@ -68,7 +69,7 @@ export class AIVariableConfigurationWidget extends ReactWidget {
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
return <div>
|
|
71
|
-
<h3>Agents</h3>
|
|
72
|
+
<h3>{nls.localize('theia/ai/ide/variableConfiguration/agents', 'Agents')}</h3>
|
|
72
73
|
<ul className='variable-references'>
|
|
73
74
|
{agents.map(agent => <li key={agent.id} className='theia-TreeNode theia-CompositeTreeNode theia-ExpandableTreeNode theia-mod-selected'>
|
|
74
75
|
<div onClick={() => { this.showAgentConfiguration(agent); }} className='variable-reference'>
|
|
@@ -85,7 +86,7 @@ export class AIVariableConfigurationWidget extends ReactWidget {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
return <div className='variable-args-container'>
|
|
88
|
-
<h3>Variable Arguments</h3>
|
|
89
|
+
<h3>{nls.localize('theia/ai/ide/variableConfiguration/variableArgs', 'Variable Arguments')}</h3>
|
|
89
90
|
<div className='variable-args'>
|
|
90
91
|
{variable.args.map(arg =>
|
|
91
92
|
<React.Fragment key={arg.name}>
|