repoburg 1.0.31 → 1.0.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/backend/.env +2 -2
- package/backend/dist/app.module.js +3 -0
- package/backend/dist/app.module.js.map +1 -1
- package/backend/dist/context-generation/context-generation.service.d.ts +1 -0
- package/backend/dist/context-generation/context-generation.service.js +27 -0
- package/backend/dist/context-generation/context-generation.service.js.map +1 -1
- package/backend/dist/context-snippets/context-snippets.controller.d.ts +13 -0
- package/backend/dist/context-snippets/context-snippets.controller.js +91 -0
- package/backend/dist/context-snippets/context-snippets.controller.js.map +1 -0
- package/backend/dist/context-snippets/context-snippets.module.d.ts +2 -0
- package/backend/dist/context-snippets/context-snippets.module.js +30 -0
- package/backend/dist/context-snippets/context-snippets.module.js.map +1 -0
- package/backend/dist/context-snippets/context-snippets.service.d.ts +17 -0
- package/backend/dist/context-snippets/context-snippets.service.js +93 -0
- package/backend/dist/context-snippets/context-snippets.service.js.map +1 -0
- package/backend/dist/context-snippets/dto/context-snippet.dto.d.ts +17 -0
- package/backend/dist/context-snippets/dto/context-snippet.dto.js +60 -0
- package/backend/dist/context-snippets/dto/context-snippet.dto.js.map +1 -0
- package/backend/dist/core-entities/context-snippet.entity.d.ts +6 -0
- package/backend/dist/core-entities/context-snippet.entity.js +34 -0
- package/backend/dist/core-entities/context-snippet.entity.js.map +1 -0
- package/backend/dist/core-entities/index.d.ts +1 -0
- package/backend/dist/core-entities/index.js +1 -0
- package/backend/dist/core-entities/index.js.map +1 -1
- package/backend/dist/seeding/data/context-templates/default-followup_ad-hoc-focused-context.d.ts +1 -1
- package/backend/dist/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js +2 -0
- package/backend/dist/seeding/data/context-templates/default-followup_ad-hoc-focused-context.js.map +1 -1
- package/backend/dist/seeding/data/context-templates/default-initial_condensed-project-context.d.ts +1 -1
- package/backend/dist/seeding/data/context-templates/default-initial_condensed-project-context.js +2 -0
- package/backend/dist/seeding/data/context-templates/default-initial_condensed-project-context.js.map +1 -1
- package/backend/dist/seeding/data/context-templates/default-initial_full-project-context.d.ts +1 -1
- package/backend/dist/seeding/data/context-templates/default-initial_full-project-context.js +3 -1
- package/backend/dist/seeding/data/context-templates/default-initial_full-project-context.js.map +1 -1
- package/backend/dist/seeding/data/custom-snippets/run-command.d.ts +3 -0
- package/backend/dist/seeding/data/custom-snippets/run-command.js +7 -0
- package/backend/dist/seeding/data/custom-snippets/run-command.js.map +1 -0
- package/backend/dist/session-inputs/session-input-context.service.d.ts +4 -1
- package/backend/dist/session-inputs/session-input-context.service.js +35 -3
- package/backend/dist/session-inputs/session-input-context.service.js.map +1 -1
- package/backend/dist/session-inputs/session-inputs.module.js +2 -0
- package/backend/dist/session-inputs/session-inputs.module.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -23
- package/backend/.webcoder/data.sqlite +0 -0
package/backend/dist/seeding/data/context-templates/default-initial_full-project-context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const template_name = "Default Initial";
|
|
2
|
-
export declare const template_content = "You are an AI assistant. You will be provided with several context sections, each clearly marked by unique delimiters. Your primary and most important goal is to understand and fulfill the request detailed in the \"MY_REQUEST\" section.\n\nThe context sections are structured as follows:\n- Content between \"%%%%BEGIN_SECTION_CODEBASE%%%%\" and \"%%%%END_SECTION_CODEBASE%%%%\" contains the relevant codebase or code snippets.\n- Content between \"%%%%BEGIN_SECTION_DOCS%%%%\" and \"%%%%END_SECTION_DOCS%%%%\" contains documentation, specifications, or explanatory material.\n- Content between \"%%%%BEGIN_SECTION_GENERAL_RULES%%%%\" and \"%%%%END_SECTION_GENERAL_RULES%%%%\" contains general rules, constraints, or guidelines that MUST be followed.\n- Content between \"%%%%BEGIN_SECTION_MY_REQUEST%%%%\" and \"%%%%END_SECTION_MY_REQUEST%%%%\" is my specific request or question.\n\nPRIORITIZATION AND CONFLICT RESOLUTION:\n1. **MY_REQUEST:** This section is paramount. All your efforts should be directed towards satisfying this request.\n2. **GENERAL_RULES:** These rules are mandatory and must be adhered to when formulating your response and fulfilling MY_REQUEST. If a GENERAL_RULE seems to conflict with information in DOCS or CODEBASE, the GENERAL_RULE takes precedence. If MY_REQUEST explicitly asks to override or ignore a specific rule for a particular instance, you may do so, but clearly state that you are deviating from a general rule due to the explicit request.\n3. **CODEBASE:** This is the primary source material for any tasks involving code analysis, modification, or generation, as guided by MY_REQUEST and constrained by GENERAL_RULES.\n4. **DOCS:** This section
|
|
2
|
+
export declare const template_content = "You are an AI assistant. You will be provided with several context sections, each clearly marked by unique delimiters. Your primary and most important goal is to understand and fulfill the request detailed in the \"MY_REQUEST\" section.\n\nThe context sections are structured as follows:\n- Content between \"%%%%BEGIN_SECTION_CODEBASE%%%%\" and \"%%%%END_SECTION_CODEBASE%%%%\" contains the relevant codebase or code snippets.\n- Content between \"%%%%BEGIN_SECTION_DOCS%%%%\" and \"%%%%END_SECTION_DOCS%%%%\" contains documentation, specifications, or explanatory material.\n- Content between \"%%%%BEGIN_SECTION_GENERAL_RULES%%%%\" and \"%%%%END_SECTION_GENERAL_RULES%%%%\" contains general rules, constraints, or guidelines that MUST be followed.\n- Content between \"%%%%BEGIN_SECTION_MY_REQUEST%%%%\" and \"%%%%END_SECTION_MY_REQUEST%%%%\" is my specific request or question.\n\nPRIORITIZATION AND CONFLICT RESOLUTION:\n1. **MY_REQUEST:** This section is paramount. All your efforts should be directed towards satisfying this request.\n2. **GENERAL_RULES:** These rules are mandatory and must be adhered to when formulating your response and fulfilling MY_REQUEST. If a GENERAL_RULE seems to conflict with information in DOCS or CODEBASE, the GENERAL_RULE takes precedence. If MY_REQUEST explicitly asks to override or ignore a specific rule for a particular instance, you may do so, but clearly state that you are deviating from a general rule due to the explicit request.\n3. **CODEBASE:** This is the primary source material for any tasks involving code analysis, modification, or generation, as guided by MY_REQUEST and constrained by GENERAL_RULES.\n4. **DOCS:** This section is supplementary information. Use it to understand concepts, APIs, or background related to the CODEBASE or MY_REQUEST. If information in DOCS conflicts with CODEBASE (e.g., outdated docs), generally trust the CODEBASE unless MY_REQUEST or GENERAL_RULES suggest otherwise.\n\nWhen processing, carefully parse each section according to these delimiters. If you encounter any ambiguity or direct contradiction that prevents fulfilling MY_REQUEST while adhering to GENERAL_RULES, please state the conflict and, if possible, suggest a resolution or ask for clarification.\n\nNow, here is the context:\n\n%%%%BEGIN_SECTION_CODEBASE%%%%\n\n<%~ await it.tree('--gitignore -I \"node_modules|dist|coverage\"') %>\n\n<%~ await it.ripGrep('--heading \"\" . -g \"!*.md\"') %>\n\n%%%%END_SECTION_CODEBASE%%%%\n\n%%%%BEGIN_SECTION_DOCS%%%%\n<%~ await it.ripGrep('--heading \"\" .repoburg') %>\n%%%%END_SECTION_DOCS%%%%\n\n\n%%%%BEGIN_SECTION_GENERAL_RULES%%%%\n\n\n%%%%END_SECTION_GENERAL_RULES%%%%\n\n\n%%%%BEGIN_SECTION_SELECTED_FILES%%%%\n<%~ it.context_snippets_content %>\n\n<%~ it.adhoc_files_content %>\n\n<%~ it.adhoc_folders_content %>\n%%%%END_SECTION_SELECTED_FILES%%%%\n\n\n%%%%BEGIN_SECTION_MY_REQUEST%%%%\n\nfollow SECTION_GENERAL_RULES\n\n<%~ it.user_input %>\n\n%%%%END_SECTION_MY_REQUEST%%%%";
|
|
@@ -14,7 +14,7 @@ PRIORITIZATION AND CONFLICT RESOLUTION:
|
|
|
14
14
|
1. **MY_REQUEST:** This section is paramount. All your efforts should be directed towards satisfying this request.
|
|
15
15
|
2. **GENERAL_RULES:** These rules are mandatory and must be adhered to when formulating your response and fulfilling MY_REQUEST. If a GENERAL_RULE seems to conflict with information in DOCS or CODEBASE, the GENERAL_RULE takes precedence. If MY_REQUEST explicitly asks to override or ignore a specific rule for a particular instance, you may do so, but clearly state that you are deviating from a general rule due to the explicit request.
|
|
16
16
|
3. **CODEBASE:** This is the primary source material for any tasks involving code analysis, modification, or generation, as guided by MY_REQUEST and constrained by GENERAL_RULES.
|
|
17
|
-
4. **DOCS:** This section
|
|
17
|
+
4. **DOCS:** This section is supplementary information. Use it to understand concepts, APIs, or background related to the CODEBASE or MY_REQUEST. If information in DOCS conflicts with CODEBASE (e.g., outdated docs), generally trust the CODEBASE unless MY_REQUEST or GENERAL_RULES suggest otherwise.
|
|
18
18
|
|
|
19
19
|
When processing, carefully parse each section according to these delimiters. If you encounter any ambiguity or direct contradiction that prevents fulfilling MY_REQUEST while adhering to GENERAL_RULES, please state the conflict and, if possible, suggest a resolution or ask for clarification.
|
|
20
20
|
|
|
@@ -40,6 +40,8 @@ Now, here is the context:
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
%%%%BEGIN_SECTION_SELECTED_FILES%%%%
|
|
43
|
+
<%~ it.context_snippets_content %>
|
|
44
|
+
|
|
43
45
|
<%~ it.adhoc_files_content %>
|
|
44
46
|
|
|
45
47
|
<%~ it.adhoc_folders_content %>
|
package/backend/dist/seeding/data/context-templates/default-initial_full-project-context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-initial_full-project-context.js","sourceRoot":"","sources":["../../../../src/seeding/data/context-templates/default-initial_full-project-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,gBAAgB,GAAG
|
|
1
|
+
{"version":3,"file":"default-initial_full-project-context.js","sourceRoot":"","sources":["../../../../src/seeding/data/context-templates/default-initial_full-project-context.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,iBAAiB,CAAC;AAClC,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAoDD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.body = exports.description = exports.prefix = void 0;
|
|
4
|
+
exports.prefix = 'run';
|
|
5
|
+
exports.description = 'Run a shell command';
|
|
6
|
+
exports.body = `<%~ await it.runCommand('\${1:ls -l}') %>`;
|
|
7
|
+
//# sourceMappingURL=run-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-command.js","sourceRoot":"","sources":["../../../../src/seeding/data/custom-snippets/run-command.ts"],"names":[],"mappings":";;;AAAa,QAAA,MAAM,GAAG,KAAK,CAAC;AACf,QAAA,WAAW,GAAG,qBAAqB,CAAC;AACpC,QAAA,IAAI,GAAG,2CAA2C,CAAC"}
|
|
@@ -3,11 +3,14 @@ import { CreateSessionInputDto } from './dto/session-input.dto';
|
|
|
3
3
|
import { ContextGenerationService } from '../context-generation/context-generation.service';
|
|
4
4
|
import { EventsGateway } from '../events/events.gateway';
|
|
5
5
|
import { ApplicationStateService } from '../application-state/application-state.service';
|
|
6
|
+
import { ContextSnippetsService } from '../context-snippets/context-snippets.service';
|
|
6
7
|
export declare class SessionInputContextService {
|
|
7
8
|
private readonly contextGenerationService;
|
|
8
9
|
private readonly eventsGateway;
|
|
9
10
|
private readonly applicationStateService;
|
|
11
|
+
private readonly contextSnippetsService;
|
|
10
12
|
private readonly logger;
|
|
11
|
-
constructor(contextGenerationService: ContextGenerationService, eventsGateway: EventsGateway, applicationStateService: ApplicationStateService);
|
|
13
|
+
constructor(contextGenerationService: ContextGenerationService, eventsGateway: EventsGateway, applicationStateService: ApplicationStateService, contextSnippetsService: ContextSnippetsService);
|
|
14
|
+
private resolveContextSnippets;
|
|
12
15
|
generateContext(dto: CreateSessionInputDto, contextTemplate: ContextTemplate | null, systemPromptContent: string, previousActionsSummary?: string): Promise<string>;
|
|
13
16
|
}
|
|
@@ -15,17 +15,47 @@ const common_1 = require("@nestjs/common");
|
|
|
15
15
|
const context_generation_service_1 = require("../context-generation/context-generation.service");
|
|
16
16
|
const events_gateway_1 = require("../events/events.gateway");
|
|
17
17
|
const application_state_service_1 = require("../application-state/application-state.service");
|
|
18
|
+
const context_snippets_service_1 = require("../context-snippets/context-snippets.service");
|
|
18
19
|
let SessionInputContextService = SessionInputContextService_1 = class SessionInputContextService {
|
|
19
|
-
constructor(contextGenerationService, eventsGateway, applicationStateService) {
|
|
20
|
+
constructor(contextGenerationService, eventsGateway, applicationStateService, contextSnippetsService) {
|
|
20
21
|
this.contextGenerationService = contextGenerationService;
|
|
21
22
|
this.eventsGateway = eventsGateway;
|
|
22
23
|
this.applicationStateService = applicationStateService;
|
|
24
|
+
this.contextSnippetsService = contextSnippetsService;
|
|
23
25
|
this.logger = new common_1.Logger(SessionInputContextService_1.name);
|
|
24
26
|
}
|
|
27
|
+
async resolveContextSnippets(prompt) {
|
|
28
|
+
const snippetHandles = [...prompt.matchAll(/\!(\w[-\w]*)/g)].map((match) => match[1]);
|
|
29
|
+
if (snippetHandles.length === 0) {
|
|
30
|
+
return { resolvedContent: '', cleanedPrompt: prompt };
|
|
31
|
+
}
|
|
32
|
+
this.logger.log(`Found context snippet handles: ${snippetHandles.join(', ')}`);
|
|
33
|
+
const resolvedContents = [];
|
|
34
|
+
for (const handle of snippetHandles) {
|
|
35
|
+
try {
|
|
36
|
+
const snippet = await this.contextSnippetsService.findByHandle(handle);
|
|
37
|
+
const content = await this.contextGenerationService.render(snippet.template_content);
|
|
38
|
+
resolvedContents.push(content);
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
this.logger.error(`Failed to resolve context snippet "!${handle}": ${error.message}`);
|
|
42
|
+
resolvedContents.push(`Error resolving !${handle}: ${error.message}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const cleanedPrompt = prompt.replace(/\!(\w[-\w]*)\s*/g, '').trim();
|
|
46
|
+
return {
|
|
47
|
+
resolvedContent: resolvedContents.join('\n\n'),
|
|
48
|
+
cleanedPrompt,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
25
51
|
async generateContext(dto, contextTemplate, systemPromptContent, previousActionsSummary) {
|
|
26
|
-
|
|
52
|
+
const { resolvedContent: context_snippets_content, cleanedPrompt } = await this.resolveContextSnippets(dto.user_prompt);
|
|
53
|
+
dto.user_prompt = cleanedPrompt;
|
|
54
|
+
this.logger.log(`Generating context. Template: ${contextTemplate?.template_name || 'None'}. Ad-hoc: ${!!dto.ad_hoc_context_definition}. Snippets: ${context_snippets_content.length > 0 ? 'Yes' : 'No'}.`);
|
|
27
55
|
const defaultTemplate = `<%~ it.system_prompt %>
|
|
28
56
|
|
|
57
|
+
<%~ it.context_snippets_content %>
|
|
58
|
+
|
|
29
59
|
<%~ it.user_input %>
|
|
30
60
|
|
|
31
61
|
<% if (it.ad_hoc_context_definition) { %>
|
|
@@ -88,6 +118,7 @@ let SessionInputContextService = SessionInputContextService_1 = class SessionInp
|
|
|
88
118
|
user_input: dto.user_prompt,
|
|
89
119
|
system_prompt: systemPromptContent,
|
|
90
120
|
user_prev_action: previousActionsSummary || '',
|
|
121
|
+
context_snippets_content,
|
|
91
122
|
...adHocData,
|
|
92
123
|
};
|
|
93
124
|
try {
|
|
@@ -118,6 +149,7 @@ exports.SessionInputContextService = SessionInputContextService = SessionInputCo
|
|
|
118
149
|
(0, common_1.Injectable)(),
|
|
119
150
|
__metadata("design:paramtypes", [context_generation_service_1.ContextGenerationService,
|
|
120
151
|
events_gateway_1.EventsGateway,
|
|
121
|
-
application_state_service_1.ApplicationStateService
|
|
152
|
+
application_state_service_1.ApplicationStateService,
|
|
153
|
+
context_snippets_service_1.ContextSnippetsService])
|
|
122
154
|
], SessionInputContextService);
|
|
123
155
|
//# sourceMappingURL=session-input-context.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-input-context.service.js","sourceRoot":"","sources":["../../src/session-inputs/session-input-context.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAyE;AAGzE,iGAA4F;AAC5F,6DAAyD;AACzD,8FAAyF;
|
|
1
|
+
{"version":3,"file":"session-input-context.service.js","sourceRoot":"","sources":["../../src/session-inputs/session-input-context.service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system-prompts.module
|
|
|
18
18
|
const session_input_context_service_1 = require("./session-input-context.service");
|
|
19
19
|
const application_state_module_1 = require("../application-state/application-state.module");
|
|
20
20
|
const events_module_1 = require("../events/events.module");
|
|
21
|
+
const context_snippets_module_1 = require("../context-snippets/context-snippets.module");
|
|
21
22
|
let SessionInputsModule = class SessionInputsModule {
|
|
22
23
|
};
|
|
23
24
|
exports.SessionInputsModule = SessionInputsModule;
|
|
@@ -35,6 +36,7 @@ exports.SessionInputsModule = SessionInputsModule = __decorate([
|
|
|
35
36
|
system_prompts_module_1.SystemPromptsModule,
|
|
36
37
|
application_state_module_1.ApplicationStateModule,
|
|
37
38
|
events_module_1.EventsModule,
|
|
39
|
+
context_snippets_module_1.ContextSnippetsModule,
|
|
38
40
|
],
|
|
39
41
|
controllers: [session_inputs_controller_1.SessionInputsController],
|
|
40
42
|
providers: [session_inputs_service_1.SessionInputsService, session_input_context_service_1.SessionInputContextService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-inputs.module.js","sourceRoot":"","sources":["../../src/session-inputs/session-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oDAK0B;AAC1B,qEAAgE;AAChE,2EAAsE;AACtE,uEAAkE;AAClE,+FAA0F;AAC1F,mFAA8E;AAC9E,mFAA6E;AAC7E,4FAAuF;AACvF,2DAAuD;
|
|
1
|
+
{"version":3,"file":"session-inputs.module.js","sourceRoot":"","sources":["../../src/session-inputs/session-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,oDAK0B;AAC1B,qEAAgE;AAChE,2EAAsE;AACtE,uEAAkE;AAClE,+FAA0F;AAC1F,mFAA8E;AAC9E,mFAA6E;AAC7E,4FAAuF;AACvF,2DAAuD;AACvD,yFAAoF;AAqB7E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IAnB/B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC;gBACvB,uBAAO;gBACP,4BAAY;gBACZ,+BAAe;gBACf,wBAAQ;aACT,CAAC;YACF,mCAAe;YACf,mDAAuB;YACvB,2CAAmB;YACnB,iDAAsB;YACtB,4BAAY;YACZ,+CAAqB;SACtB;QACD,WAAW,EAAE,CAAC,mDAAuB,CAAC;QACtC,SAAS,EAAE,CAAC,6CAAoB,EAAE,0DAA0B,CAAC;QAC7D,OAAO,EAAE,CAAC,6CAAoB,CAAC;KAChC,CAAC;GACW,mBAAmB,CAAG"}
|