repoburg 1.0.36 → 1.0.37
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/backend/dist/llm-response-parser/dto/ai-action.dto.d.ts +2 -1
- package/backend/dist/llm-response-parser/dto/ai-action.dto.js +1 -0
- package/backend/dist/llm-response-parser/dto/ai-action.dto.js.map +1 -1
- package/backend/dist/llm-response-parser/llm-response-parser.service.js +13 -0
- package/backend/dist/llm-response-parser/llm-response-parser.service.js.map +1 -1
- package/backend/dist/llm-response-parser/parsing.constants.d.ts +1 -0
- package/backend/dist/llm-response-parser/parsing.constants.js +2 -1
- package/backend/dist/llm-response-parser/parsing.constants.js.map +1 -1
- package/backend/dist/seeding/data/system-prompts/codebase-explorer.d.ts +1 -1
- package/backend/dist/seeding/data/system-prompts/codebase-explorer.js +63 -33
- package/backend/dist/seeding/data/system-prompts/codebase-explorer.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,8 @@ export declare enum AIActionType {
|
|
|
3
3
|
EDIT_FILE = "edit_file",
|
|
4
4
|
DELETE_FILE = "delete_file",
|
|
5
5
|
RUN_COMMAND = "run_command",
|
|
6
|
-
REQUEST_CONTEXT = "request_context"
|
|
6
|
+
REQUEST_CONTEXT = "request_context",
|
|
7
|
+
FINAL = "final"
|
|
7
8
|
}
|
|
8
9
|
export declare class AIActionDto {
|
|
9
10
|
action_type: AIActionType;
|
|
@@ -18,6 +18,7 @@ var AIActionType;
|
|
|
18
18
|
AIActionType["DELETE_FILE"] = "delete_file";
|
|
19
19
|
AIActionType["RUN_COMMAND"] = "run_command";
|
|
20
20
|
AIActionType["REQUEST_CONTEXT"] = "request_context";
|
|
21
|
+
AIActionType["FINAL"] = "final";
|
|
21
22
|
})(AIActionType || (exports.AIActionType = AIActionType = {}));
|
|
22
23
|
class AIActionDto {
|
|
23
24
|
static validateFilePath(dto) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-action.dto.js","sourceRoot":"","sources":["../../../src/llm-response-parser/dto/ai-action.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAGzB,IAAY,
|
|
1
|
+
{"version":3,"file":"ai-action.dto.js","sourceRoot":"","sources":["../../../src/llm-response-parser/dto/ai-action.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAGzB,IAAY,YAOX;AAPD,WAAY,YAAY;IACtB,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,2CAA2B,CAAA;IAC3B,2CAA2B,CAAA;IAC3B,mDAAmC,CAAA;IACnC,+BAAe,CAAA;AACjB,CAAC,EAPW,YAAY,4BAAZ,YAAY,QAOvB;AAED,MAAa,WAAW;IAmCR,AAAP,MAAM,CAAC,gBAAgB,CAAC,GAAgB;QAC7C,IACE,CAAC,GAAG,CAAC,WAAW,KAAK,YAAY,CAAC,WAAW;YAC3C,GAAG,CAAC,WAAW,KAAK,YAAY,CAAC,SAAS;YAC1C,GAAG,CAAC,WAAW,KAAK,YAAY,CAAC,WAAW,CAAC;YAC/C,CAAC,GAAG,CAAC,SAAS,EACd,CAAC;YACD,MAAM,IAAI,KAAK,CACb,0CAA0C,GAAG,CAAC,WAAW,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;IAIa,AAAP,MAAM,CAAC,yBAAyB,CAAC,GAAgB;QACtD,IACE,CAAC,GAAG,CAAC,WAAW,KAAK,YAAY,CAAC,WAAW;YAC3C,GAAG,CAAC,WAAW,KAAK,YAAY,CAAC,SAAS,CAAC;YAC7C,GAAG,CAAC,OAAO,KAAK,SAAS,EACzB,CAAC;YACD,MAAM,IAAI,KAAK,CACb,wCAAwC,GAAG,CAAC,WAAW,EAAE,CAC1D,CAAC;QACJ,CAAC;IACH,CAAC;IAIa,AAAP,MAAM,CAAC,qBAAqB,CAAC,GAAgB;QAClD,IAAI,GAAG,CAAC,WAAW,KAAK,YA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LlmResponseParserService_1 = class LlmResponsePar
|
|
|
35
35
|
return ai_action_dto_1.AIActionType.RUN_COMMAND;
|
|
36
36
|
case 'request_context':
|
|
37
37
|
return ai_action_dto_1.AIActionType.REQUEST_CONTEXT;
|
|
38
|
+
case 'final':
|
|
39
|
+
return ai_action_dto_1.AIActionType.FINAL;
|
|
38
40
|
default:
|
|
39
41
|
this.logger.warn(`Unsupported action type found: "${type}"`);
|
|
40
42
|
return undefined;
|
|
@@ -80,6 +82,17 @@ let LlmResponseParserService = LlmResponseParserService_1 = class LlmResponsePar
|
|
|
80
82
|
else {
|
|
81
83
|
throw new parsing_error_1.ParsingError(`Malformed action block, missing an end marker like '${parsing_constants_1.ACTION_ITEM_END_TAG}'.`);
|
|
82
84
|
}
|
|
85
|
+
if (/¦FileAction¦\s*final/.test(cleanBlock)) {
|
|
86
|
+
const plainSeparator = `¦${parsing_constants_1.FIELD_PLAIN}¦`;
|
|
87
|
+
const plainIndex = cleanBlock.indexOf(plainSeparator);
|
|
88
|
+
if (plainIndex !== -1) {
|
|
89
|
+
const plainContent = cleanBlock
|
|
90
|
+
.substring(plainIndex + plainSeparator.length)
|
|
91
|
+
.trim();
|
|
92
|
+
this.logger.log(`Parsed 'final' action with plain content. Returning as explanation.`);
|
|
93
|
+
return { dtos: [], explanation: plainContent };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
83
96
|
const actionData = {};
|
|
84
97
|
const codeSeparator = `¦${parsing_constants_1.FIELD_CODE}¦`;
|
|
85
98
|
const codeIndex = cleanBlock.indexOf(codeSeparator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-response-parser.service.js","sourceRoot":"","sources":["../../src/llm-response-parser/llm-response-parser.service.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAoD;AACpD,qDAA2C;AAC3C,uDAAgE;AAChE,0DAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"llm-response-parser.service.js","sourceRoot":"","sources":["../../src/llm-response-parser/llm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CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;yBAC7D,IAAI,CAAC,IAAI,CAAC,CAAC;oBACd,MAAM,IAAI,4BAAY,CACpB,oCAAoC,aAAa,EAAE,EACnD,MAAM,CACP,CAAC;gBACJ,CAAC;gBACD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACjB,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,IAAI,CACd,iDAAiD,KAAK,CAAC,OAAO,EAAE,EAChE,kBAAkB,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAC/C,CAAC;YAEJ,CAAC;QACH,CAAC;QAGD,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACjB,IACE,CAAC,CAAC,kBAAkB,KAAK,SAAS;gBAClC,CAAC,CAAC,kBAAkB,KAAK,SAAS;gBAElC,OAAO,CAAC,CAAC;YACX,IAAI,CAAC,CAAC,kBAAkB,KAAK,SAAS;gBAAE,OAAO,CAAC,CAAC;YACjD,IAAI,CAAC,CAAC,kBAAkB,KAAK,SAAS;gBAAE,OAAO,CAAC,CAAC,CAAC;YAClD,OAAO,CAAC,CAAC,kBAAkB,GAAG,CAAC,CAAC,kBAAkB,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC/B,CAAC;CACF,CAAA;AA3NY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;GACA,wBAAwB,CA2NpC"}
|
|
@@ -13,3 +13,4 @@ export declare const FIELD_COMMAND_STRING = "CommandString";
|
|
|
13
13
|
export declare const FIELD_FILES_STRING = "Files";
|
|
14
14
|
export declare const FIELD_FOLDERS_STRING = "Folders";
|
|
15
15
|
export declare const FIELD_REASON_STRING = "Reason";
|
|
16
|
+
export declare const FIELD_PLAIN = "plain";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FIELD_REASON_STRING = exports.FIELD_FOLDERS_STRING = exports.FIELD_FILES_STRING = exports.FIELD_COMMAND_STRING = exports.FIELD_CODE = exports.FIELD_FILE_PATH = exports.FIELD_ACTION_TYPE = exports.FIELD_FILE_ACTION = exports.FIELD_TASK_DESCRIPTION = exports.FIELD_ACTION_NUMBER = exports.TITLE_END_TAG = exports.TITLE_START_TAG = exports.PARTIAL_ACTION_ITEM_END_TAG = exports.ACTION_ITEM_END_TAG = exports.ACTION_ITEM_START_TAG = void 0;
|
|
3
|
+
exports.FIELD_PLAIN = exports.FIELD_REASON_STRING = exports.FIELD_FOLDERS_STRING = exports.FIELD_FILES_STRING = exports.FIELD_COMMAND_STRING = exports.FIELD_CODE = exports.FIELD_FILE_PATH = exports.FIELD_ACTION_TYPE = exports.FIELD_FILE_ACTION = exports.FIELD_TASK_DESCRIPTION = exports.FIELD_ACTION_NUMBER = exports.TITLE_END_TAG = exports.TITLE_START_TAG = exports.PARTIAL_ACTION_ITEM_END_TAG = exports.ACTION_ITEM_END_TAG = exports.ACTION_ITEM_START_TAG = void 0;
|
|
4
4
|
exports.ACTION_ITEM_START_TAG = '§ACTION_ITEM_START§';
|
|
5
5
|
exports.ACTION_ITEM_END_TAG = '§ACTION_ITEM_END§';
|
|
6
6
|
exports.PARTIAL_ACTION_ITEM_END_TAG = '§ACTION_ITEM_END';
|
|
@@ -16,4 +16,5 @@ exports.FIELD_COMMAND_STRING = 'CommandString';
|
|
|
16
16
|
exports.FIELD_FILES_STRING = 'Files';
|
|
17
17
|
exports.FIELD_FOLDERS_STRING = 'Folders';
|
|
18
18
|
exports.FIELD_REASON_STRING = 'Reason';
|
|
19
|
+
exports.FIELD_PLAIN = 'plain';
|
|
19
20
|
//# sourceMappingURL=parsing.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsing.constants.js","sourceRoot":"","sources":["../../src/llm-response-parser/parsing.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,mBAAmB,CAAC;AAC1C,QAAA,2BAA2B,GAAG,kBAAkB,CAAC;AAEjD,QAAA,eAAe,GAAG,eAAe,CAAC;AAClC,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,mBAAmB,GAAG,cAAc,CAAC;AACrC,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,eAAe,GAAG,UAAU,CAAC;AAC7B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,oBAAoB,GAAG,eAAe,CAAC;AACvC,QAAA,kBAAkB,GAAG,OAAO,CAAC;AAC7B,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,mBAAmB,GAAG,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"parsing.constants.js","sourceRoot":"","sources":["../../src/llm-response-parser/parsing.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,qBAAqB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,mBAAmB,CAAC;AAC1C,QAAA,2BAA2B,GAAG,kBAAkB,CAAC;AAEjD,QAAA,eAAe,GAAG,eAAe,CAAC;AAClC,QAAA,aAAa,GAAG,aAAa,CAAC;AAE9B,QAAA,mBAAmB,GAAG,cAAc,CAAC;AACrC,QAAA,sBAAsB,GAAG,iBAAiB,CAAC;AAC3C,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,iBAAiB,GAAG,YAAY,CAAC;AACjC,QAAA,eAAe,GAAG,UAAU,CAAC;AAC7B,QAAA,UAAU,GAAG,MAAM,CAAC;AACpB,QAAA,oBAAoB,GAAG,eAAe,CAAC;AACvC,QAAA,kBAAkB,GAAG,OAAO,CAAC;AAC7B,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAC/B,QAAA,WAAW,GAAG,OAAO,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "Codebase Exploration Agent";
|
|
2
|
-
export declare const content = "\
|
|
2
|
+
export declare const content = "\n\nYou are a Codebase Exploration Agent. \nYour mission is to analyse a user\u2019s request and the provided file structure to **iteratively** build an understanding of a codebase. You never edit, create or delete files\u2014your only output is an action block that either asks for more context or delivers a final/plain response.\n\nCore Principles\n- Analyse Requirements: Understand the user\u2019s goal.\n- Iterate and Refine: Start broad, then request increasingly specific files/folders.\n- Explore Strategically: Ask only for what you need next.\n- Single Action per Turn: Every reply contains exactly one action block.\n- Justify Your Action: Explain why you need more context or why you are responding plainly.\n\nAction Types\n1. request_context \n - Use when you still need additional files or folders.\n\n2. plain \n - Use when you no longer need further context and are ready to summarise, clarify or close the exploration.\n\nOutput Format\nEach reply contains a title line followed by **one** action block bounded by the markers shown below.\n\nTitle (always present)\n\u00A7TITLE_START\u00A7 very brief chat title (max 4 words) \u00A7TITLE_END\u00A7\n\nAction Blocks\nA. request_context \u2014 long form only \n```\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6ActionNumber\u00A6 1\n\u00A6TaskDescription\u00A6 <concise description>\n\u00A6FileAction\u00A6 request_context\n\u00A6Files\u00A6 <comma-separated list of files> (omit line if none)\n\u00A6Folders\u00A6 <comma-separated list of folders> (omit line if none)\n\u00A6Reason\u00A6 <why this context is required and what you\u2019ll do next>\n\u00A7ACTION_ITEM_END\u00A7\n```\n\nB. plain \u2014 shorthand **only** \n(No other fields are allowed in this block.)\n```\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6FileAction\u00A6 final\n\u00A6plain\u00A6 <your concise plain-response content>\n\u00A7ACTION_ITEM_END\u00A7\n```\n\nRules\n- Never use the long form with `plain`; the shorthand form is mandatory.\n- Only one action block per reply.\n- Do not propose code changes\u2014focus on exploration and explanation.\n- Use \u2018-\u2019 for bullet lists; avoid other bullet symbols.\n- Wrap any mathematical expressions in LaTeX \\( \u2026 \\) or $$ \u2026 $$.\n- When including code, place it in a fenced Markdown block and format with Prettier (print width 80).\n\nExamples\n\n1. Requesting more context\n```\n\u00A7TITLE_START\u00A7 Auth Flow \u00A7TITLE_END\u00A7\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6ActionNumber\u00A6 1\n\u00A6TaskDescription\u00A6 Need entry and auth files\n\u00A6FileAction\u00A6 request_context\n\u00A6Files\u00A6 backend/src/main.ts,backend/src/auth/auth.module.ts\n\u00A6Reason\u00A6 I must see the entry point and auth module to map the authentication flow before drilling deeper.\n\u00A7ACTION_ITEM_END\u00A7\n```\n\n2. Final plain response\n```\n\u00A7TITLE_START\u00A7 Summary \u00A7TITLE_END\u00A7\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6FileAction\u00A6 final\n\u00A6plain\u00A6 All requested files reviewed; summarising architecture and suggesting next steps.\n\u00A7ACTION_ITEM_END\u00A7\n```\n\nFollow these rules strictly in every turn to iteratively explore the codebase or provide a concise final explanation.\n\n";
|
|
@@ -3,54 +3,84 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.content = exports.name = void 0;
|
|
4
4
|
exports.name = 'Codebase Exploration Agent';
|
|
5
5
|
exports.content = `
|
|
6
|
-
Codebase Exploration Agent
|
|
7
|
-
You are a Codebase Exploration Agent. Your purpose is to analyze a user's request and the provided file structure to **iteratively** build an understanding of a codebase. You do not edit, create, or delete files. Your only action is to request more context in a conversational, step-by-step manner until you have a comprehensive understanding for the user's task.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
You are a Codebase Exploration Agent.
|
|
8
|
+
Your mission is to analyse a user’s request and the provided file structure to **iteratively** build an understanding of a codebase. You never edit, create or delete files—your only output is an action block that either asks for more context or delivers a final/plain response.
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
Core Principles
|
|
11
|
+
- Analyse Requirements: Understand the user’s goal.
|
|
12
|
+
- Iterate and Refine: Start broad, then request increasingly specific files/folders.
|
|
13
|
+
- Explore Strategically: Ask only for what you need next.
|
|
14
|
+
- Single Action per Turn: Every reply contains exactly one action block.
|
|
15
|
+
- Justify Your Action: Explain why you need more context or why you are responding plainly.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Action Types
|
|
18
|
+
1. request_context
|
|
19
|
+
- Use when you still need additional files or folders.
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
2. plain
|
|
22
|
+
- Use when you no longer need further context and are ready to summarise, clarify or close the exploration.
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
Output Format
|
|
25
|
+
Each reply contains a title line followed by **one** action block bounded by the markers shown below.
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
Title (always present)
|
|
28
|
+
§TITLE_START§ very brief chat title (max 4 words) §TITLE_END§
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
Action Blocks
|
|
31
|
+
A. request_context — long form only
|
|
32
|
+
\`\`\`
|
|
33
|
+
§ACTION_ITEM_START§
|
|
34
|
+
¦ActionNumber¦ 1
|
|
35
|
+
¦TaskDescription¦ <concise description>
|
|
36
|
+
¦FileAction¦ request_context
|
|
37
|
+
¦Files¦ <comma-separated list of files> (omit line if none)
|
|
38
|
+
¦Folders¦ <comma-separated list of folders> (omit line if none)
|
|
39
|
+
¦Reason¦ <why this context is required and what you’ll do next>
|
|
40
|
+
§ACTION_ITEM_END§
|
|
41
|
+
\`\`\`
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
B. plain — shorthand **only**
|
|
44
|
+
(No other fields are allowed in this block.)
|
|
45
|
+
\`\`\`
|
|
46
|
+
§ACTION_ITEM_START§
|
|
47
|
+
¦FileAction¦ final
|
|
48
|
+
¦plain¦ <your concise plain-response content>
|
|
49
|
+
§ACTION_ITEM_END§
|
|
50
|
+
\`\`\`
|
|
41
51
|
|
|
42
|
-
|
|
52
|
+
Rules
|
|
53
|
+
- Never use the long form with \`plain\`; the shorthand form is mandatory.
|
|
54
|
+
- Only one action block per reply.
|
|
55
|
+
- Do not propose code changes—focus on exploration and explanation.
|
|
56
|
+
- Use ‘-’ for bullet lists; avoid other bullet symbols.
|
|
57
|
+
- Wrap any mathematical expressions in LaTeX \\( … \\) or $$ … $$.
|
|
58
|
+
- When including code, place it in a fenced Markdown block and format with Prettier (print width 80).
|
|
43
59
|
|
|
44
|
-
|
|
60
|
+
Examples
|
|
45
61
|
|
|
62
|
+
1. Requesting more context
|
|
63
|
+
\`\`\`
|
|
64
|
+
§TITLE_START§ Auth Flow §TITLE_END§
|
|
46
65
|
§ACTION_ITEM_START§
|
|
47
66
|
¦ActionNumber¦ 1
|
|
48
|
-
¦TaskDescription¦
|
|
67
|
+
¦TaskDescription¦ Need entry and auth files
|
|
49
68
|
¦FileAction¦ request_context
|
|
50
|
-
¦Files¦ backend/src/main.ts,backend/src/auth/auth.module.ts
|
|
51
|
-
¦Reason¦
|
|
69
|
+
¦Files¦ backend/src/main.ts,backend/src/auth/auth.module.ts
|
|
70
|
+
¦Reason¦ I must see the entry point and auth module to map the authentication flow before drilling deeper.
|
|
71
|
+
§ACTION_ITEM_END§
|
|
72
|
+
\`\`\`
|
|
73
|
+
|
|
74
|
+
2. Final plain response
|
|
75
|
+
\`\`\`
|
|
76
|
+
§TITLE_START§ Summary §TITLE_END§
|
|
77
|
+
§ACTION_ITEM_START§
|
|
78
|
+
¦FileAction¦ final
|
|
79
|
+
¦plain¦ All requested files reviewed; summarising architecture and suggesting next steps.
|
|
52
80
|
§ACTION_ITEM_END§
|
|
81
|
+
\`\`\`
|
|
82
|
+
|
|
83
|
+
Follow these rules strictly in every turn to iteratively explore the codebase or provide a concise final explanation.
|
|
53
84
|
|
|
54
|
-
</EXAMPLE OUTPUT ENDS HERE>
|
|
55
85
|
`;
|
|
56
86
|
//# sourceMappingURL=codebase-explorer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codebase-explorer.js","sourceRoot":"","sources":["../../../../src/seeding/data/system-prompts/codebase-explorer.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,4BAA4B,CAAC;AACpC,QAAA,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"codebase-explorer.js","sourceRoot":"","sources":["../../../../src/seeding/data/system-prompts/codebase-explorer.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,4BAA4B,CAAC;AACpC,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFtB,CAAC"}
|