@theia/ai-ide 1.66.0-next.12 → 1.66.0-next.32
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 -1
- package/lib/browser/architect-agent.d.ts.map +1 -1
- package/lib/browser/architect-agent.js +1 -1
- package/lib/browser/architect-agent.js.map +1 -1
- package/lib/browser/frontend-module.d.ts.map +1 -1
- package/lib/browser/frontend-module.js +3 -0
- package/lib/browser/frontend-module.js.map +1 -1
- package/lib/browser/summarize-session-command-contribution.js +4 -4
- package/lib/browser/summarize-session-command-contribution.js.map +1 -1
- package/lib/browser/task-context-agent.d.ts +13 -0
- package/lib/browser/task-context-agent.d.ts.map +1 -0
- package/lib/browser/task-context-agent.js +45 -0
- package/lib/browser/task-context-agent.js.map +1 -0
- package/lib/common/architect-prompt-template.d.ts +0 -3
- package/lib/common/architect-prompt-template.d.ts.map +1 -1
- package/lib/common/architect-prompt-template.js +1 -199
- package/lib/common/architect-prompt-template.js.map +1 -1
- package/lib/common/coder-replace-prompt-template.js +2 -2
- package/lib/common/coder-replace-prompt-template.js.map +1 -1
- package/lib/common/task-context-prompt-template.d.ts +8 -0
- package/lib/common/task-context-prompt-template.d.ts.map +1 -0
- package/lib/common/task-context-prompt-template.js +217 -0
- package/lib/common/task-context-prompt-template.js.map +1 -0
- package/package.json +18 -18
- package/src/browser/architect-agent.ts +2 -2
- package/src/browser/frontend-module.ts +4 -0
- package/src/browser/summarize-session-command-contribution.ts +4 -4
- package/src/browser/task-context-agent.ts +40 -0
- package/src/common/architect-prompt-template.ts +11 -206
- package/src/common/coder-replace-prompt-template.ts +2 -2
- package/src/common/task-context-prompt-template.ts +229 -0
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-agent.d.ts","sourceRoot":"","sources":["../../src/browser/architect-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAoB,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAClK,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAO1D,qBACa,cAAe,SAAQ,8BAA8B;IACzC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAEjE,IAAI,SAAe;IACnB,EAAE,SAAe;IACjB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAE9C,WAAW,SAG8G;IACzH,OAAO,
|
|
1
|
+
{"version":3,"file":"architect-agent.d.ts","sourceRoot":"","sources":["../../src/browser/architect-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAoB,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAClK,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAO1D,qBACa,cAAe,SAAQ,8BAA8B;IACzC,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAEjE,IAAI,SAAe;IACnB,EAAE,SAAe;IACjB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAE9C,WAAW,SAG8G;IACzH,OAAO,8CAA6B;IAC7C,UAAmB,cAAc,EAAE,MAAM,GAAG,SAAS,CAA8B;IAEpE,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKhE,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;CAWxE"}
|
|
@@ -36,7 +36,7 @@ let ArchitectAgent = class ArchitectAgent extends common_1.AbstractStreamParsing
|
|
|
36
36
|
this.description = core_1.nls.localize('theia/ai/workspace/workspaceAgent/description', 'An AI assistant integrated into Theia IDE, designed to assist software developers. This agent can access the users workspace, it can get a list of all available files \
|
|
37
37
|
and folders and retrieve their content. It cannot modify files. It can therefore answer questions about the current project, project files and source code in the \
|
|
38
38
|
workspace, such as how to build the project, where to put source code, where to find specific code or configurations, etc.');
|
|
39
|
-
this.prompts = [architect_prompt_template_1.architectSystemVariants
|
|
39
|
+
this.prompts = [architect_prompt_template_1.architectSystemVariants];
|
|
40
40
|
this.systemPromptId = architect_prompt_template_1.architectSystemVariants.id;
|
|
41
41
|
}
|
|
42
42
|
async invoke(request) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-agent.js","sourceRoot":"","sources":["../../src/browser/architect-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;AAChF,sDAAkK;AAElK,4DAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"architect-agent.js","sourceRoot":"","sources":["../../src/browser/architect-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;AAChF,sDAAkK;AAElK,4DAAkE;AAClE,mFAA8E;AAC9E,sCAAkC;AAClC,kFAA+E;AAC/E,qFAA8H;AAGvH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,uCAA8B;IAA3D;;QAGH,SAAI,GAAG,WAAW,CAAC;QACnB,OAAE,GAAG,WAAW,CAAC;QACjB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,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AAU,GAAE;GACA,cAAc,CAkC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;
|
|
1
|
+
{"version":3,"file":"frontend-module.d.ts","sourceRoot":"","sources":["../../src/browser/frontend-module.ts"],"names":[],"mappings":"AAgBA,OAAO,mCAAmC,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AA0E/D,wBA0JG"}
|
|
@@ -59,6 +59,7 @@ const ai_ide_preferences_1 = require("../common/ai-ide-preferences");
|
|
|
59
59
|
const browser_2 = require("@theia/ai-core/lib/browser");
|
|
60
60
|
const ai_ide_activation_service_1 = require("./ai-ide-activation-service");
|
|
61
61
|
const ai_configuration_preferences_1 = require("../common/ai-configuration-preferences");
|
|
62
|
+
const task_context_agent_1 = require("./task-context-agent");
|
|
62
63
|
exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
|
|
63
64
|
bind(core_1.PreferenceContribution).toConstantValue({ schema: ai_ide_preferences_1.aiIdePreferenceSchema });
|
|
64
65
|
bind(core_1.PreferenceContribution).toConstantValue({ schema: workspace_preferences_1.WorkspacePreferencesSchema });
|
|
@@ -71,6 +72,8 @@ exports.default = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebi
|
|
|
71
72
|
bind(coder_agent_1.CoderAgent).toSelf().inSingletonScope();
|
|
72
73
|
bind(common_2.Agent).toService(coder_agent_1.CoderAgent);
|
|
73
74
|
bind(common_1.ChatAgent).toService(coder_agent_1.CoderAgent);
|
|
75
|
+
bind(task_context_agent_1.TaskContextAgent).toSelf().inSingletonScope();
|
|
76
|
+
bind(common_2.Agent).toService(task_context_agent_1.TaskContextAgent);
|
|
74
77
|
bind(orchestrator_chat_agent_1.OrchestratorChatAgent).toSelf().inSingletonScope();
|
|
75
78
|
bind(common_2.Agent).toService(orchestrator_chat_agent_1.OrchestratorChatAgent);
|
|
76
79
|
bind(common_1.ChatAgent).toService(orchestrator_chat_agent_1.OrchestratorChatAgent);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frontend-module.js","sourceRoot":"","sources":["../../src/browser/frontend-module.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,6CAA2C;AAE3C,4DAA+D;AAC/D,sDAA+F;AAC/F,sDAA4F;AAC5F,uDAAmD;AACnD,+CAA2C;AAC3C,qGAA+F;AAC/F,+DAO+B;AAC/B,2EAAsE;AACtE,qDAMiC;AACjC,uEAAiF;AACjF,2EAIqC;AACrC,2EAA6E;AAC7E,yEAYoC;AACpC,+EAAmG;AACnG,yEAA0F;AAC1F,mEAA6D;AAC7D,uEAAiE;AACjE,2DAAgG;AAChG,8FAA2F;AAC3F,0FAA8F;AAC9F,8GAA6G;AAC7G,wFAA4F;AAC5F,oGAAiG;AACjG,6EAAoF;AACpF,8FAA2F;AAC3F,mFAA0F;AAC1F,yFAAoF;AACpF,0FAAuF;AACvF,iFAA0F;AAC1F,2FAAoF;AACpF,0GAAsG;AACtG,yFAA4F;AAC5F,2FAAoF;AACpF,0FAA4F;AAC5F,sCAA0E;AAC1E,oHAAgH;AAChH,uFAAiG;AACjG,2EAAsI;AACtI,8GAAwG;AACxG,qEAAqE;AACrE,wDAAiE;AACjE,2EAAyE;AACzE,yFAAoF;
|
|
1
|
+
{"version":3,"file":"frontend-module.js","sourceRoot":"","sources":["../../src/browser/frontend-module.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAy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AC,kEAA+B,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/C,IAAI,CAAC,uBAAa,CAAC;SACd,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpB,EAAE,EAAE,kEAA+B,CAAC,EAAE;QACtC,YAAY,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,kEAA+B,CAAC;KACzE,CAAC,CAAC;SACF,gBAAgB,EAAE,CAAC;IAExB,IAAI,CAAC,yEAAsC,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACzE,IAAI,CAAC,+BAAsB,CAAC,CAAC,SAAS,CAAC,yEAAsC,CAAC,CAAC;IAC/E,IAAI,CAAC,iEAA6B,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAChE,MAAM,CAAC,gDAAyB,CAAC,CAAC,SAAS,CAAC,iEAA6B,CAAC,CAAC;IAE3E,IAAI,CAAC,0BAAmB,CAAC,CAAC,EAAE,CAAC,4EAAmC,CAAC,CAAC;IAClE,IAAI,CAAC,4EAAoC,CAAC,CAAC,MAAM,EAAE,CAAC;IACpD,IAAI,CAAC,uBAAa,CAAC;SACd,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACpB,EAAE,EAAE,4EAAoC,CAAC,EAAE;QAC3C,YAAY,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,4EAAoC,CAAC;KAC9E,CAAC,CAAC;SACF,gBAAgB,EAAE,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -24,7 +24,7 @@ const inversify_1 = require("@theia/core/shared/inversify");
|
|
|
24
24
|
const summarize_session_commands_1 = require("../common/summarize-session-commands");
|
|
25
25
|
const coder_agent_1 = require("./coder-agent");
|
|
26
26
|
const task_context_variable_1 = require("@theia/ai-chat/lib/browser/task-context-variable");
|
|
27
|
-
const
|
|
27
|
+
const task_context_prompt_template_1 = require("../common/task-context-prompt-template");
|
|
28
28
|
const file_variable_contribution_1 = require("@theia/ai-core/lib/browser/file-variable-contribution");
|
|
29
29
|
const file_service_1 = require("@theia/filesystem/lib/browser/file-service");
|
|
30
30
|
const browser_1 = require("@theia/workspace/lib/browser");
|
|
@@ -40,11 +40,11 @@ let SummarizeSessionCommandContribution = class SummarizeSessionCommandContribut
|
|
|
40
40
|
// Check if there is an existing summary for this session
|
|
41
41
|
if (!this.taskContextService.hasSummary(activeSession)) {
|
|
42
42
|
// If no summary exists, create one first
|
|
43
|
-
await this.taskContextService.summarize(activeSession,
|
|
43
|
+
await this.taskContextService.summarize(activeSession, task_context_prompt_template_1.TASK_CONTEXT_CREATE_PROMPT_ID);
|
|
44
44
|
}
|
|
45
45
|
else {
|
|
46
46
|
// Update existing summary
|
|
47
|
-
await this.taskContextService.update(activeSession,
|
|
47
|
+
await this.taskContextService.update(activeSession, task_context_prompt_template_1.TASK_CONTEXT_UPDATE_PROMPT_ID);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}));
|
|
@@ -54,7 +54,7 @@ let SummarizeSessionCommandContribution = class SummarizeSessionCommandContribut
|
|
|
54
54
|
if (!activeSession) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const summaryId = await this.taskContextService.summarize(activeSession,
|
|
57
|
+
const summaryId = await this.taskContextService.summarize(activeSession, task_context_prompt_template_1.TASK_CONTEXT_CREATE_PROMPT_ID);
|
|
58
58
|
// Open the summary in a new editor
|
|
59
59
|
await this.taskContextStorageService.open(summaryId);
|
|
60
60
|
// Add the summary file to the context of the active Architect session
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summarize-session-command-contribution.js","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sDAA2E;AAC3E,sCAAmF;AACnF,0FAAgH;AAChH,4DAAkE;AAClE,qFAA8H;AAC9H,+CAA2C;AAC3C,4FAAyF;AACzF,
|
|
1
|
+
{"version":3,"file":"summarize-session-command-contribution.js","sourceRoot":"","sources":["../../src/browser/summarize-session-command-contribution.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,sDAA2E;AAC3E,sCAAmF;AACnF,0FAAgH;AAChH,4DAAkE;AAClE,qFAA8H;AAC9H,+CAA2C;AAC3C,4FAAyF;AACzF,yFAAsH;AACtH,sGAAsF;AAEtF,6EAAyE;AACzE,0DAAgE;AAChE,wDAAqE;AAG9D,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAyB5C,gBAAgB,CAAC,QAAyB;QACtC,QAAQ,CAAC,eAAe,CAAC,2DAA8B,EAAE,IAAI,CAAC,qBAAqB,CAAC;YAChF,OAAO,EAAE,KAAK,IAAI,EAAE;gBAChB,MAAM,aAAa,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC;gBAE1D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACjB,OAAO;gBACX,CAAC;gBAED,yDAAyD;gBACzD,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;oBACrD,yCAAyC;oBACzC,MAAM,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,aAAa,EAAE,4DAA6B,CAAC,CAAC;gBAC1F,CAAC;qBAAM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AAY,CAAC,YAAY,CAAC,CAAC;oBAC3D,CAAC;oBAED,4CAA4C;oBAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,0BAAiB,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;oBAC7G,MAAM,eAAe,GAAG,EAAE,QAAQ,EAAE,6CAAqB,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;oBAC5E,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC;gBAC3D,CAAC;YACL,CAAC;SACJ,CAAC,CAAC,CAAC;IACR,CAAC;CACJ,CAAA;AAjFY,kFAAmC;AAEzB;IADlB,IAAA,kBAAM,EAAC,oBAAW,CAAC;;wEACwB;AAGzB;IADlB,IAAA,kBAAM,EAAC,yCAAkB,CAAC;sCACY,yCAAkB;+EAAC;AAGvC;IADlB,IAAA,kBAAM,EAAC,qBAAc,CAAC;;2EAC2B;AAG/B;IADlB,IAAA,kBAAM,EAAC,wBAAU,CAAC;sCACY,wBAAU;uEAAC;AAGvB;IADlB,IAAA,kBAAM,EAAC,gDAAyB,CAAC;;sFACsC;AAGrD;IADlB,IAAA,kBAAM,EAAC,0BAAW,CAAC;sCACY,0BAAW;wEAAC;AAGzB;IADlB,IAAA,kBAAM,EAAC,0BAAgB,CAAC;sCACK,0BAAgB;sEAAC;AAG5B;IADlB,IAAA,kBAAM,EAAC,iCAAuB,CAAC;;kFACkC;8CAvBzD,mCAAmC;IAD/C,IAAA,sBAAU,GAAE;GACA,mCAAmC,CAiF/C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Agent, LanguageModelRequirement } from '@theia/ai-core';
|
|
2
|
+
export declare class TaskContextAgent implements Agent {
|
|
3
|
+
static ID: string;
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
variables: never[];
|
|
8
|
+
prompts: import("@theia/ai-core").PromptVariantSet[];
|
|
9
|
+
languageModelRequirements: LanguageModelRequirement[];
|
|
10
|
+
agentSpecificVariables: never[];
|
|
11
|
+
functions: never[];
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=task-context-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-agent.d.ts","sourceRoot":"","sources":["../../src/browser/task-context-agent.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAKjE,qBACa,gBAAiB,YAAW,KAAK;IAC1C,MAAM,CAAC,EAAE,SAAiB;IAE1B,EAAE,SAAuB;IACzB,IAAI,SAAiB;IACrB,WAAW,SAEoK;IAE/K,SAAS,UAAM;IACf,OAAO,8CAAuF;IAC9F,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,sBAAsB,UAAM;IAC5B,SAAS,UAAM;CAClB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *****************************************************************************
|
|
3
|
+
// Copyright (C) 2024 EclipseSource GmbH.
|
|
4
|
+
//
|
|
5
|
+
// This program and the accompanying materials are made available under the
|
|
6
|
+
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
//
|
|
9
|
+
// This Source Code may also be made available under the following Secondary
|
|
10
|
+
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
// with the GNU Classpath Exception which is available at
|
|
13
|
+
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
//
|
|
15
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
+
// *****************************************************************************
|
|
17
|
+
var TaskContextAgent_1;
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.TaskContextAgent = void 0;
|
|
20
|
+
const tslib_1 = require("tslib");
|
|
21
|
+
const core_1 = require("@theia/core");
|
|
22
|
+
const inversify_1 = require("@theia/core/shared/inversify");
|
|
23
|
+
const task_context_prompt_template_1 = require("../common/task-context-prompt-template");
|
|
24
|
+
let TaskContextAgent = TaskContextAgent_1 = class TaskContextAgent {
|
|
25
|
+
constructor() {
|
|
26
|
+
this.id = TaskContextAgent_1.ID;
|
|
27
|
+
this.name = 'TaskContext';
|
|
28
|
+
this.description = core_1.nls.localize('theia/ai/taskcontext/taskContextAgent/description', 'An AI assistant that analyzes chat sessions and creates structured task summaries for coding tasks. ' +
|
|
29
|
+
'This agent specializes in extracting key information from conversations and formatting them into comprehensive task context documents that can be used by other agents.');
|
|
30
|
+
this.variables = [];
|
|
31
|
+
this.prompts = [task_context_prompt_template_1.taskContextSystemVariants, task_context_prompt_template_1.taskContextTemplateVariants, task_context_prompt_template_1.taskContextUpdateVariants];
|
|
32
|
+
this.languageModelRequirements = [{
|
|
33
|
+
purpose: 'TaskContext Creation/Update',
|
|
34
|
+
identifier: 'default/code',
|
|
35
|
+
}];
|
|
36
|
+
this.agentSpecificVariables = [];
|
|
37
|
+
this.functions = [];
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.TaskContextAgent = TaskContextAgent;
|
|
41
|
+
TaskContextAgent.ID = 'TaskContext';
|
|
42
|
+
exports.TaskContextAgent = TaskContextAgent = TaskContextAgent_1 = tslib_1.__decorate([
|
|
43
|
+
(0, inversify_1.injectable)()
|
|
44
|
+
], TaskContextAgent);
|
|
45
|
+
//# sourceMappingURL=task-context-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-agent.js","sourceRoot":"","sources":["../../src/browser/task-context-agent.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;;AAGhF,sCAAkC;AAClC,4DAA0D;AAC1D,yFAA2I;AAGpI,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAAtB;QAGH,OAAE,GAAG,kBAAgB,CAAC,EAAE,CAAC;QACzB,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,mDAAmD,EAC1E,sGAAsG;YACtG,yKAAyK,CAAC,CAAC;QAE/K,cAAS,GAAG,EAAE,CAAC;QACf,YAAO,GAAG,CAAC,wDAAyB,EAAE,0DAA2B,EAAE,wDAAyB,CAAC,CAAC;QAC9F,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,6BAA6B;gBACtC,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACH,2BAAsB,GAAG,EAAE,CAAC;QAC5B,cAAS,GAAG,EAAE,CAAC;IACnB,CAAC;;AAjBY,4CAAgB;AAClB,mBAAE,GAAG,aAAa,AAAhB,CAAiB;2BADjB,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAiB5B"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { PromptVariantSet } from '@theia/ai-core/lib/common';
|
|
2
|
-
export declare const ARCHITECT_TASK_SUMMARY_PROMPT_TEMPLATE_ID = "architect-tasksummary-create";
|
|
3
|
-
export declare const ARCHITECT_TASK_SUMMARY_UPDATE_PROMPT_TEMPLATE_ID = "architect-tasksummary-update";
|
|
4
2
|
export declare const architectSystemVariants: PromptVariantSet;
|
|
5
|
-
export declare const architectTaskSummaryVariants: PromptVariantSet;
|
|
6
3
|
//# sourceMappingURL=architect-prompt-template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"architect-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAQ7D,eAAO,MAAM,uBAAuB,kBAwEnC,CAAC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.architectSystemVariants = void 0;
|
|
4
4
|
const workspace_functions_1 = require("./workspace-functions");
|
|
5
5
|
const context_variables_1 = require("./context-variables");
|
|
6
6
|
const context_functions_1 = require("./context-functions");
|
|
7
|
-
exports.ARCHITECT_TASK_SUMMARY_PROMPT_TEMPLATE_ID = 'architect-tasksummary-create';
|
|
8
|
-
exports.ARCHITECT_TASK_SUMMARY_UPDATE_PROMPT_TEMPLATE_ID = 'architect-tasksummary-update';
|
|
9
7
|
exports.architectSystemVariants = {
|
|
10
8
|
id: 'architect-system',
|
|
11
9
|
defaultVariant: {
|
|
@@ -80,200 +78,4 @@ Always look at the relevant files to understand your task using the function ~{$
|
|
|
80
78
|
}
|
|
81
79
|
]
|
|
82
80
|
};
|
|
83
|
-
exports.architectTaskSummaryVariants = {
|
|
84
|
-
id: 'architect-tasksummary',
|
|
85
|
-
defaultVariant: {
|
|
86
|
-
id: exports.ARCHITECT_TASK_SUMMARY_PROMPT_TEMPLATE_ID,
|
|
87
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
88
|
-
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
89
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
90
|
-
|
|
91
|
-
Your task is to analyze the current chat session and summarize it to prepare to complete the coding task.
|
|
92
|
-
Your instructions should be complete. They are used by a coding agent.
|
|
93
|
-
Include all necessary information.
|
|
94
|
-
Use unique identifiers such as file paths or URIs to artifacts.
|
|
95
|
-
Skip irrelevant information, e.g. for discussions, only sum up the final result.
|
|
96
|
-
|
|
97
|
-
## Instructions
|
|
98
|
-
1. Analyze the conversation carefully.
|
|
99
|
-
2. Identify the main coding objective and requirements.
|
|
100
|
-
3. Propose a clear approach to implement the requested functionality in task steps.
|
|
101
|
-
4. If any part of the task is ambiguous, note the ambiguity so that it can be clarified later.
|
|
102
|
-
5. If there are any relevant examples on how to implement something correctly, add them
|
|
103
|
-
|
|
104
|
-
Focus on providing actionable steps and implementation guidance. The coding agent needs practical help with this specific coding task.
|
|
105
|
-
|
|
106
|
-
Use the following format, but only include the sections that were discussed in the conversation:
|
|
107
|
-
|
|
108
|
-
# Task Context: [Title Here]
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
## 1. 📚 Task Definition
|
|
113
|
-
|
|
114
|
-
**Problem Statement / Goal:**
|
|
115
|
-
[Describe what needs to be achieved and why.]
|
|
116
|
-
|
|
117
|
-
**Scope:**
|
|
118
|
-
- **In Scope:**
|
|
119
|
-
[Features, components, or behaviors to be included.]
|
|
120
|
-
- **Out of Scope:**
|
|
121
|
-
[What explicitly won't be part of this task.]
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
## 2. 🧠 Design and Implementation
|
|
126
|
-
|
|
127
|
-
**Design Overview:**
|
|
128
|
-
[Summary of architecture and major design decisions.]
|
|
129
|
-
|
|
130
|
-
**Implementation Plan:**
|
|
131
|
-
1. [First major step]
|
|
132
|
-
2. [Second major step]
|
|
133
|
-
3. [Third major step]
|
|
134
|
-
|
|
135
|
-
**Technology Choices:**
|
|
136
|
-
- [Frameworks, libraries, services, tools]
|
|
137
|
-
|
|
138
|
-
**Files expected to be changed**
|
|
139
|
-
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.
|
|
140
|
-
|
|
141
|
-
### Examples
|
|
142
|
-
|
|
143
|
-
List all examples of existing code that are useful to understand the design and do the implementation.
|
|
144
|
-
These examples are not the files supposed to be changed, but code that shows how to implement specific things.
|
|
145
|
-
Prefer to mention files instead of adding their content.
|
|
146
|
-
Explain the purpose of every example.
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## 3. 🧪 Testing
|
|
151
|
-
|
|
152
|
-
### 3.1 🛠️ Automated Testing (by Coder)
|
|
153
|
-
|
|
154
|
-
**Automated Test Strategy:**
|
|
155
|
-
[What should be covered by automated tests.]
|
|
156
|
-
|
|
157
|
-
**Test Cases Implemented:**
|
|
158
|
-
- [Unit test 1]
|
|
159
|
-
- [Integration test 1]
|
|
160
|
-
- [E2E test 1]
|
|
161
|
-
|
|
162
|
-
**Test Coverage Targets:**
|
|
163
|
-
[e.g., Minimum 80% code coverage, all workflows tested.]
|
|
164
|
-
|
|
165
|
-
---
|
|
166
|
-
|
|
167
|
-
### 3.2 🎯 Manual Testing (by Tester)
|
|
168
|
-
|
|
169
|
-
**Manual Testing Strategy:**
|
|
170
|
-
[What manual tests will focus on (e.g., usability, edge cases, exploratory testing).]
|
|
171
|
-
|
|
172
|
-
**Test Setup Instructions:**
|
|
173
|
-
- [Environment setup steps, accounts needed, special configurations]
|
|
174
|
-
|
|
175
|
-
**Test Cases / Test Steps:**
|
|
176
|
-
1. [Action 1]
|
|
177
|
-
2. [Action 2]
|
|
178
|
-
3. [Action 3]
|
|
179
|
-
|
|
180
|
-
**Expected Results:**
|
|
181
|
-
- [Expected behavior at each step]
|
|
182
|
-
|
|
183
|
-
**Known Risks / Focus Areas:**
|
|
184
|
-
- [Potential weak spots, UX concerns, edge cases]
|
|
185
|
-
|
|
186
|
-
---
|
|
187
|
-
|
|
188
|
-
## 4. 📦 Deliverables
|
|
189
|
-
|
|
190
|
-
**Expected Artifacts:**
|
|
191
|
-
- [Code modules]
|
|
192
|
-
- [Documentation]
|
|
193
|
-
- [Configuration files]
|
|
194
|
-
- [Test reports]
|
|
195
|
-
|
|
196
|
-
**PR Information:**
|
|
197
|
-
- **PR Title:** [Suggested title for the pull request]
|
|
198
|
-
- **PR Description:** [What was implemented, high-level changes, decisions]
|
|
199
|
-
- **Verification Steps:** [Instructions for verifying the PR manually or automatically]
|
|
200
|
-
|
|
201
|
-
**Additional Notes:**
|
|
202
|
-
- [Dependencies]
|
|
203
|
-
- [Migration steps if needed]
|
|
204
|
-
- [Special reviewer instructions]
|
|
205
|
-
|
|
206
|
-
---
|
|
207
|
-
|
|
208
|
-
## 5. 🔄 Current Status
|
|
209
|
-
|
|
210
|
-
**Progress Summary:**
|
|
211
|
-
[Short free-text update about how far the task has progressed.]
|
|
212
|
-
|
|
213
|
-
**Completed Items:**
|
|
214
|
-
- [List of what has been fully implemented, tested, or merged.]
|
|
215
|
-
|
|
216
|
-
**Open Items:**
|
|
217
|
-
- [List of remaining tasks, missing parts.]
|
|
218
|
-
|
|
219
|
-
**Current Issues / Risks:**
|
|
220
|
-
- [Open problems, bugs found during testing, architectural blockers.]
|
|
221
|
-
|
|
222
|
-
**Next Steps:**
|
|
223
|
-
- [Immediate action items, who should act next.]
|
|
224
|
-
`
|
|
225
|
-
},
|
|
226
|
-
variants: [
|
|
227
|
-
{
|
|
228
|
-
id: exports.ARCHITECT_TASK_SUMMARY_UPDATE_PROMPT_TEMPLATE_ID,
|
|
229
|
-
template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
|
|
230
|
-
Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
|
|
231
|
-
https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
|
|
232
|
-
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.
|
|
233
|
-
|
|
234
|
-
# Task Document Update Instructions
|
|
235
|
-
|
|
236
|
-
You are an AI agent tasked with updating a technical document based on the current discussion. Your job is to provide the COMPLETE UPDATED DOCUMENT as your response, not\
|
|
237
|
-
commentary about the document.
|
|
238
|
-
|
|
239
|
-
## Analysis Requirements
|
|
240
|
-
|
|
241
|
-
1. **Review the Current Discussion**:
|
|
242
|
-
- Analyze the entire conversation
|
|
243
|
-
- Identify new information, decisions, and changes
|
|
244
|
-
|
|
245
|
-
2. **Examine the Existing Document**:
|
|
246
|
-
- Understand its structure and purpose
|
|
247
|
-
- Identify sections that need updates
|
|
248
|
-
|
|
249
|
-
3. **Update the Document**:
|
|
250
|
-
- Maintain the original structure and formatting
|
|
251
|
-
- Add new information from the discussion
|
|
252
|
-
- Update existing information
|
|
253
|
-
- Remove outdated information if necessary
|
|
254
|
-
- Ensure coherence and organization
|
|
255
|
-
|
|
256
|
-
## IMPORTANT: Response Format
|
|
257
|
-
|
|
258
|
-
YOUR ENTIRE RESPONSE MUST BE THE UPDATED DOCUMENT ONLY. Do not include:
|
|
259
|
-
- Any commentary about what you changed
|
|
260
|
-
- Introduction or explanation text
|
|
261
|
-
- Markdown fences or syntax indicators
|
|
262
|
-
- Clarifying questions
|
|
263
|
-
|
|
264
|
-
Simply output the complete updated document as plain text, which will directly replace the existing document.
|
|
265
|
-
|
|
266
|
-
## Guidelines
|
|
267
|
-
|
|
268
|
-
- Be thorough in capturing all relevant information
|
|
269
|
-
- Maintain the original document's style and tone
|
|
270
|
-
- Use clear, concise language
|
|
271
|
-
- Preserve all formatting from the original document
|
|
272
|
-
- Ensure technical accuracy in all updates
|
|
273
|
-
|
|
274
|
-
{{${context_variables_1.TASK_CONTEXT_SUMMARY_VARIABLE_ID}}}
|
|
275
|
-
`
|
|
276
|
-
}
|
|
277
|
-
]
|
|
278
|
-
};
|
|
279
81
|
//# sourceMappingURL=architect-prompt-template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"architect-prompt-template.js","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"architect-prompt-template.js","sourceRoot":"","sources":["../../src/common/architect-prompt-template.ts"],"names":[],"mappings":";;;AAgBA,+DAG+B;AAC/B,2DAAkG;AAClG,2DAAuE;AAE1D,QAAA,uBAAuB,GAAqB;IACrD,EAAE,EAAE,kBAAkB;IACtB,cAAc,EAAE;QACZ,EAAE,EAAE,0BAA0B;QAC9B,QAAQ,EAAE;;;;;;;;;;;;;QAaV,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;;;;gFAKyC,oDAAgC;;;;sHAIM,6CAAuB;;;iFAG5D,8CAAwB;IACrG,6CAAyB;;;;IAIzB,oDAAgC;CACnC;KACI;IACD,QAAQ,EAAE;QACN;YACI,EAAE,EAAE,yBAAyB;YAC7B,QAAQ,EAAE;;;;;;;;;;;QAWd,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;;;;;;;;;;iFAUwC,8CAAwB;IACrG,6CAAyB;;;CAG5B;SACQ;KAAC;CACT,CAAC"}
|
|
@@ -59,7 +59,7 @@ Never guess or hallucinate file content or structure. Use tools for all workspac
|
|
|
59
59
|
- ~{${workspace_functions_1.GET_WORKSPACE_FILE_LIST_FUNCTION_ID}} — list contents of a specific directory
|
|
60
60
|
- ~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}} — retrieve the content of a file
|
|
61
61
|
- ~{${workspace_functions_1.FIND_FILES_BY_PATTERN_FUNCTION_ID}} — find files matching glob patterns (e.g., '**/*.ts' for all TypeScript files)
|
|
62
|
-
- ~{${workspace_functions_1.SEARCH_IN_WORKSPACE_FUNCTION_ID}}
|
|
62
|
+
- ~{${workspace_functions_1.SEARCH_IN_WORKSPACE_FUNCTION_ID}} — locate references or patterns (only search if you are missing information, always prefer examples that are explicitly provided, never \
|
|
63
63
|
search for files you already know the path for)
|
|
64
64
|
- ~{${context_functions_1.UPDATE_CONTEXT_FILES_FUNCTION_ID}} — bookmark important files for context
|
|
65
65
|
|
|
@@ -83,7 +83,7 @@ search for files you already know the path for)
|
|
|
83
83
|
|
|
84
84
|
### Test Authoring
|
|
85
85
|
If no relevant tests exist:
|
|
86
|
-
- Create new test files (propose using
|
|
86
|
+
- Create new test files (propose using ~{${file_changeset_function_ids_1.WRITE_FILE_REPLACEMENTS_ID}} or ~{${file_changeset_function_ids_1.WRITE_FILE_CONTENT_ID}})
|
|
87
87
|
- Use patterns from existing tests
|
|
88
88
|
- Ensure new tests validate new behavior or prevent regressions
|
|
89
89
|
|
|
@@ -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,+EAOuC;AAE1B,QAAA,sBAAsB,GAAG,cAAc,CAAC;AAExC,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,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
|
|
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,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rG,6CAAyB;;;;IAIzB,wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;KAAC,CAAC;AACH,CAAC;AAvED,gEAuEC;AAED,SAAgB,gCAAgC;IAC5C,OAAO;QACH,EAAE,EAAE,qCAA6B;QACjC,QAAQ,EAAE;;;;;;;;QAQV,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;;;;gFAKyC,oDAAgC;;;;;;;;;oCAS5E,qDAAuB;;QAEnD,0DAA4B;QAC5B,qDAAuB;WACpB,0DAA4B,8BAA8B,qDAAuB;QACpF,mDAAqB;;;;;;;;;;iFAUoD,8CAAwB;IACrG,6CAAyB;;;;IAIzB,wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;QACO,GAAG,CAAC,EAAE,SAAS,EAAE,8BAAsB,EAAE,CAAC;KAC7C,CAAC;AACN,CAAC;AA9DD,4EA8DC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PromptVariantSet } from '@theia/ai-core/lib/common';
|
|
2
|
+
export declare const TASK_CONTEXT_CREATE_PROMPT_ID = "task-context-create";
|
|
3
|
+
export declare const TASK_CONTEXT_TEMPLATE_PROMPT_ID = "task-context-template";
|
|
4
|
+
export declare const TASK_CONTEXT_UPDATE_PROMPT_ID = "task-context-update";
|
|
5
|
+
export declare const taskContextSystemVariants: PromptVariantSet;
|
|
6
|
+
export declare const taskContextTemplateVariants: PromptVariantSet;
|
|
7
|
+
export declare const taskContextUpdateVariants: PromptVariantSet;
|
|
8
|
+
//# sourceMappingURL=task-context-prompt-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-context-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/task-context-prompt-template.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AACnE,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;AACvE,eAAO,MAAM,6BAA6B,wBAAwB,CAAC;AAEnE,eAAO,MAAM,yBAAyB,kBA4BrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,kBA8HvC,CAAC;AAEF,eAAO,MAAM,yBAAyB,kBAoDrC,CAAC"}
|