repoburg 1.0.35 → 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.
Files changed (33) hide show
  1. package/backend/.env +1 -1
  2. package/backend/dist/application-state/application-state.controller.d.ts +5 -0
  3. package/backend/dist/application-state/application-state.controller.js +22 -0
  4. package/backend/dist/application-state/application-state.controller.js.map +1 -1
  5. package/backend/dist/application-state/application-state.service.d.ts +2 -0
  6. package/backend/dist/application-state/application-state.service.js +11 -0
  7. package/backend/dist/application-state/application-state.service.js.map +1 -1
  8. package/backend/dist/application-state/dto/set-auto-context-fetch-enabled.dto.d.ts +3 -0
  9. package/backend/dist/application-state/dto/set-auto-context-fetch-enabled.dto.js +21 -0
  10. package/backend/dist/application-state/dto/set-auto-context-fetch-enabled.dto.js.map +1 -0
  11. package/backend/dist/llm-response-parser/dto/ai-action.dto.d.ts +2 -1
  12. package/backend/dist/llm-response-parser/dto/ai-action.dto.js +1 -0
  13. package/backend/dist/llm-response-parser/dto/ai-action.dto.js.map +1 -1
  14. package/backend/dist/llm-response-parser/llm-response-parser.service.js +13 -0
  15. package/backend/dist/llm-response-parser/llm-response-parser.service.js.map +1 -1
  16. package/backend/dist/llm-response-parser/parsing.constants.d.ts +1 -0
  17. package/backend/dist/llm-response-parser/parsing.constants.js +2 -1
  18. package/backend/dist/llm-response-parser/parsing.constants.js.map +1 -1
  19. package/backend/dist/llm-responses/llm-responses.module.js +2 -0
  20. package/backend/dist/llm-responses/llm-responses.module.js.map +1 -1
  21. package/backend/dist/llm-responses/llm-responses.service.d.ts +3 -1
  22. package/backend/dist/llm-responses/llm-responses.service.js +49 -3
  23. package/backend/dist/llm-responses/llm-responses.service.js.map +1 -1
  24. package/backend/dist/seeding/data/system-prompts/codebase-explorer.d.ts +1 -1
  25. package/backend/dist/seeding/data/system-prompts/codebase-explorer.js +63 -33
  26. package/backend/dist/seeding/data/system-prompts/codebase-explorer.js.map +1 -1
  27. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  28. package/backend/dist/workspace/workspace.module.js +1 -0
  29. package/backend/dist/workspace/workspace.module.js.map +1 -1
  30. package/backend/dist/workspace/workspace.service.d.ts +8 -0
  31. package/backend/dist/workspace/workspace.service.js +31 -0
  32. package/backend/dist/workspace/workspace.service.js.map +1 -1
  33. package/package.json +1 -1
package/backend/.env CHANGED
@@ -2,6 +2,6 @@
2
2
  # REPOBURG_PROJECT_PATH='/Users/celalertug/everest/local'
3
3
  # REPOBURG_PROJECT_PATH='/tmp/m/demo1'
4
4
  # REPOBURG_PROJECT_PATH='/Users/celalertug/github/typeorm'
5
- REPOBURG_PROJECT_PATH='/tmp/a/hb'
5
+ REPOBURG_PROJECT_PATH='/tmp/a/ecommerce/ecommerce'
6
6
  # REPOBURG_PROJECT_PATH='/tmp/a/fp'
7
7
  # REPOBURG_PROJECT_PATH='/Users/celalertug/everest/appdev3'
@@ -1,6 +1,7 @@
1
1
  import { ApplicationStateService } from './application-state.service';
2
2
  import { SetWebsocketEnabledDto } from './dto/set-websocket-enabled.dto';
3
3
  import { SetThemeDto } from './dto/set-theme.dto';
4
+ import { SetAutoContextFetchEnabledDto } from './dto/set-auto-context-fetch-enabled.dto';
4
5
  export declare class ApplicationStateController {
5
6
  private readonly applicationStateService;
6
7
  constructor(applicationStateService: ApplicationStateService);
@@ -8,6 +9,10 @@ export declare class ApplicationStateController {
8
9
  enabled: boolean;
9
10
  }>;
10
11
  setWebsocketEnabled(dto: SetWebsocketEnabledDto): Promise<void>;
12
+ getAutoContextFetchEnabled(): Promise<{
13
+ enabled: boolean;
14
+ }>;
15
+ setAutoContextFetchEnabled(dto: SetAutoContextFetchEnabledDto): Promise<void>;
11
16
  getTheme(): Promise<{
12
17
  theme: string;
13
18
  }>;
@@ -17,6 +17,7 @@ const common_1 = require("@nestjs/common");
17
17
  const application_state_service_1 = require("./application-state.service");
18
18
  const set_websocket_enabled_dto_1 = require("./dto/set-websocket-enabled.dto");
19
19
  const set_theme_dto_1 = require("./dto/set-theme.dto");
20
+ const set_auto_context_fetch_enabled_dto_1 = require("./dto/set-auto-context-fetch-enabled.dto");
20
21
  let ApplicationStateController = class ApplicationStateController {
21
22
  constructor(applicationStateService) {
22
23
  this.applicationStateService = applicationStateService;
@@ -28,6 +29,13 @@ let ApplicationStateController = class ApplicationStateController {
28
29
  async setWebsocketEnabled(dto) {
29
30
  await this.applicationStateService.setWebsocketEnabled(dto.enabled);
30
31
  }
32
+ async getAutoContextFetchEnabled() {
33
+ const enabled = await this.applicationStateService.getAutoContextFetchEnabled();
34
+ return { enabled };
35
+ }
36
+ async setAutoContextFetchEnabled(dto) {
37
+ await this.applicationStateService.setAutoContextFetchEnabled(dto.enabled);
38
+ }
31
39
  async getTheme() {
32
40
  const theme = await this.applicationStateService.getTheme();
33
41
  return { theme };
@@ -51,6 +59,20 @@ __decorate([
51
59
  __metadata("design:paramtypes", [set_websocket_enabled_dto_1.SetWebsocketEnabledDto]),
52
60
  __metadata("design:returntype", Promise)
53
61
  ], ApplicationStateController.prototype, "setWebsocketEnabled", null);
62
+ __decorate([
63
+ (0, common_1.Get)('auto-context-fetch-enabled'),
64
+ __metadata("design:type", Function),
65
+ __metadata("design:paramtypes", []),
66
+ __metadata("design:returntype", Promise)
67
+ ], ApplicationStateController.prototype, "getAutoContextFetchEnabled", null);
68
+ __decorate([
69
+ (0, common_1.Post)('auto-context-fetch-enabled'),
70
+ (0, common_1.HttpCode)(common_1.HttpStatus.NO_CONTENT),
71
+ __param(0, (0, common_1.Body)()),
72
+ __metadata("design:type", Function),
73
+ __metadata("design:paramtypes", [set_auto_context_fetch_enabled_dto_1.SetAutoContextFetchEnabledDto]),
74
+ __metadata("design:returntype", Promise)
75
+ ], ApplicationStateController.prototype, "setAutoContextFetchEnabled", null);
54
76
  __decorate([
55
77
  (0, common_1.Get)('theme'),
56
78
  __metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"application-state.controller.js","sourceRoot":"","sources":["../../src/application-state/application-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qCAAM,2BAAW;;0DAEtC;qCA7BU,0BAA0B;IADtC,IAAA,mBAAU,EAAC,mBAAmB,CAAC;qCAGc,mDAAuB;GAFxD,0BAA0B,CA8BtC"}
1
+ {"version":3,"file":"application-state.controller.js","sourceRoot":"","sources":["../../src/application-state/application-state.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,2EAAsE;AACtE,+EAAyE;AACzE,uDAAkD;AAClD,iGAAyF;AAGlF,IAAM,0BAA0B,GAAhC,MAAM,0BAA0B;IACrC,YACmB,uBAAgD;QAAhD,4BAAuB,GAAvB,uBAAuB,CAAyB;IAChE,CAAC;IAGE,AAAN,KAAK,CAAC,mBAAmB;QACvB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,mBAAmB,EAAE,CAAC;QACzE,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAIK,AAAN,KAAK,CAAC,mBAAmB,CACf,GAA2B;QAEnC,MAAM,IAAI,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACtE,CAAC;IAGK,AAAN,KAAK,CAAC,0BAA0B;QAC9B,MAAM,OAAO,GACX,MAAM,IAAI,CAAC,uBAAuB,CAAC,0BAA0B,EAAE,CAAC;QAClE,OAAO,EAAE,OAAO,EAAE,CAAC;IACrB,CAAC;IAIK,AAAN,KAAK,CAAC,0BAA0B,CACtB,GAAkC;QAE1C,MAAM,IAAI,CAAC,uBAAuB,CAAC,0BAA0B,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7E,CAAC;IAGK,AAAN,KAAK,CAAC,QAAQ;QACZ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,CAAC;QAC5D,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC;IAIK,AAAN,KAAK,CAAC,QAAQ,CAAS,GAAgB;QACrC,MAAM,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;CACF,CAAA;AA7CY,gEAA0B;AAM/B;IADL,IAAA,YAAG,EAAC,mBAAmB,CAAC;;;;qEAIxB;AAIK;IAFL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IACzB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IAE7B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,kDAAsB;;qEAGpC;AAGK;IADL,IAAA,YAAG,EAAC,4BAA4B,CAAC;;;;4EAKjC;AAIK;IAFL,IAAA,aAAI,EAAC,4BAA4B,CAAC;IAClC,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IAE7B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,kEAA6B;;4EAG3C;AAGK;IADL,IAAA,YAAG,EAAC,OAAO,CAAC;;;;0DAIZ;AAIK;IAFL,IAAA,aAAI,EAAC,OAAO,CAAC;IACb,IAAA,iBAAQ,EAAC,mBAAU,CAAC,UAAU,CAAC;IAChB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAM,2BAAW;;0DAEtC;qCA5CU,0BAA0B;IADtC,IAAA,mBAAU,EAAC,mBAAmB,CAAC;qCAGc,mDAAuB;GAFxD,0BAA0B,CA6CtC"}
@@ -9,6 +9,8 @@ export declare class ApplicationStateService {
9
9
  getActiveSessionId(): Promise<string | null>;
10
10
  setWebsocketEnabled(enabled: boolean): Promise<void>;
11
11
  getWebsocketEnabled(): Promise<boolean>;
12
+ setAutoContextFetchEnabled(enabled: boolean): Promise<void>;
13
+ getAutoContextFetchEnabled(): Promise<boolean>;
12
14
  setTheme(theme: string): Promise<void>;
13
15
  getTheme(): Promise<string>;
14
16
  }
@@ -19,6 +19,7 @@ const typeorm_2 = require("typeorm");
19
19
  const core_entities_1 = require("../core-entities");
20
20
  const ACTIVE_SESSION_KEY = 'activeSessionId';
21
21
  const WEBSOCKET_ENABLED_KEY = 'websocketEnabled';
22
+ const AUTO_CONTEXT_FETCH_ENABLED_KEY = 'autoContextFetchEnabled';
22
23
  const THEME_KEY = 'theme';
23
24
  let ApplicationStateService = class ApplicationStateService {
24
25
  constructor(applicationStateRepository) {
@@ -52,6 +53,16 @@ let ApplicationStateService = class ApplicationStateService {
52
53
  }
53
54
  return value === 'true';
54
55
  }
56
+ async setAutoContextFetchEnabled(enabled) {
57
+ await this.setState(AUTO_CONTEXT_FETCH_ENABLED_KEY, String(enabled));
58
+ }
59
+ async getAutoContextFetchEnabled() {
60
+ const value = await this.getState(AUTO_CONTEXT_FETCH_ENABLED_KEY);
61
+ if (value === null) {
62
+ return true;
63
+ }
64
+ return value === 'true';
65
+ }
55
66
  async setTheme(theme) {
56
67
  await this.setState(THEME_KEY, theme);
57
68
  }
@@ -1 +1 @@
1
- {"version":3,"file":"application-state.service.js","sourceRoot":"","sources":["../../src/application-state/application-state.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,oDAAoD;AAEpD,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAC7C,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AACjD,MAAM,SAAS,GAAG,OAAO,CAAC;AAGnB,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAEU,0BAAwD;QAAxD,+BAA0B,GAA1B,0BAA0B,CAA8B;IAC/D,CAAC;IAEI,KAAK,CAAC,QAAQ,CAAC,GAAW,EAAE,KAAa;QAC/C,MAAM,IAAI,CAAC,0BAA0B,CAAC,IAAI,CAAC;YACzC,GAAG,EAAE,GAAG;YACR,KAAK,EAAE,KAAK;SACb,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,QAAQ,CAAC,GAAW;QAChC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC;YAC5D,GAAG,EAAE,GAAG;SACT,CAAC,CAAC;QACH,OAAO,KAAK,EAAE,KAAK,IAAI,IAAI,CAAC;IAC9B,CAAC;IAED,KAAK,CAAC,kBAAkB,CAAC,SAAiB;QACxC,MAAM,IAAI,CAAC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,OAAgB;QACxC,MAAM,IAAI,CAAC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,mBAAmB;QACvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;QAEzD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC1B,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE7C,OAAO,KAAK,IAAI,QAAQ,CAAC;IAC3B,CAAC;CACF,CAAA;AAlDY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,gCAAgB,CAAC,CAAA;qCACC,oBAAU;GAHrC,uBAAuB,CAkDnC"}
1
+ {"version":3,"file":"application-state.service.js","sourceRoot":"","sources":["../../src/application-state/application-state.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAqC;AACrC,oDAAoD;AAEpD,M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AC;IAED,KAAK,CAAC,0BAA0B,CAAC,OAAgB;QAC/C,MAAM,IAAI,CAAC,QAAQ,CAAC,8BAA8B,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACvE,CAAC;IAED,KAAK,CAAC,0BAA0B;QAC9B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,8BAA8B,CAAC,CAAC;QAElE,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,KAAK,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC1B,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE7C,OAAO,KAAK,IAAI,QAAQ,CAAC;IAC3B,CAAC;CACF,CAAA;AA/DY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,gCAAgB,CAAC,CAAA;qCACC,oBAAU;GAHrC,uBAAuB,CA+DnC"}
@@ -0,0 +1,3 @@
1
+ export declare class SetAutoContextFetchEnabledDto {
2
+ enabled: boolean;
3
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SetAutoContextFetchEnabledDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SetAutoContextFetchEnabledDto {
15
+ }
16
+ exports.SetAutoContextFetchEnabledDto = SetAutoContextFetchEnabledDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsBoolean)(),
19
+ __metadata("design:type", Boolean)
20
+ ], SetAutoContextFetchEnabledDto.prototype, "enabled", void 0);
21
+ //# sourceMappingURL=set-auto-context-fetch-enabled.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"set-auto-context-fetch-enabled.dto.js","sourceRoot":"","sources":["../../../src/application-state/dto/set-auto-context-fetch-enabled.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAE5C,MAAa,6BAA6B;CAGzC;AAHD,sEAGC;AADC;IADC,IAAA,2BAAS,GAAE;;8DACK"}
@@ -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":[],"m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FC;IAFC,IAAA,wBAAM,EAAC,YAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;;gDACa;AAI1B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACQ;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACK;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACe;AAId;IADb,IAAA,gCAAc,GAAE;;qCACmB,WAAW;;yCAW9C;AAIa;IADb,IAAA,gCAAc,GAAE;;qCAC4B,WAAW;;kDAUvD;AAIa;IADb,IAAA,gCAAc,GAAE;;qCACwB,WAAW;;8CAMnD;AAIa;IADb,IAAA,gCAAc,GAAE;;qCACyB,WAAW;;+CAUpD"}
@@ -35,6 +35,8 @@ let LlmResponseParserService = 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,2DAa6B;AAGtB,IAAM,wBAAwB,gCAA9B,MAAM,wBAAwB;IAA9B;QACY,WAAM,GAAG,IAAI,eAAM,CAAC,0BAAwB,CAAC,IAAI,CAAC,CAAC;IAyMtE,CAAC;IAvMS,aAAa,CAAC,IAAY;QAChC,IAAI,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QAC5B,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;QAC5C,QAAQ,SAAS,EAAE,CAAC;YAClB,KAAK,QAAQ,CAAC;YACd,KAAK,aAAa;gBAChB,OAAO,4BAAY,CAAC,WAAW,CAAC;YAClC,KAAK,MAAM,CAAC;YACZ,KAAK,WAAW;gBACd,OAAO,4BAAY,CAAC,SAAS,CAAC;YAChC,KAAK,QAAQ,CAAC;YACd,KAAK,aAAa;gBAChB,OAAO,4BAAY,CAAC,WAAW,CAAC;YAClC,KAAK,aAAa;gBAChB,OAAO,4BAAY,CAAC,WAAW,CAAC;YAClC,KAAK,iBAAiB;gBACpB,OAAO,4BAAY,CAAC,eAAe,CAAC;YACtC;gBACE,IAAI,CAAC,MAAM,CA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I,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;AA1MY,4DAAwB;mCAAxB,wBAAwB;IADpC,IAAA,mBAAU,GAAE;GACA,wBAAwB,CA0MpC"}
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,2DAc6B;AAGtB,IAAM,wBAAwB,gCAA9B,MAAM,wBAAwB;IAA9B;QACY,WAAM,GAAG,IAAI,eAAM,CAAC,0BAAwB,CAAC,IAAI,CAA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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"}
@@ -16,6 +16,7 @@ const session_inputs_module_1 = require("../session-inputs/session-inputs.module
16
16
  const typeorm_1 = require("@nestjs/typeorm");
17
17
  const core_entities_1 = require("../core-entities");
18
18
  const events_module_1 = require("../events/events.module");
19
+ const workspace_module_1 = require("../workspace/workspace.module");
19
20
  let LlmResponsesModule = class LlmResponsesModule {
20
21
  };
21
22
  exports.LlmResponsesModule = LlmResponsesModule;
@@ -27,6 +28,7 @@ exports.LlmResponsesModule = LlmResponsesModule = __decorate([
27
28
  application_state_module_1.ApplicationStateModule,
28
29
  session_inputs_module_1.SessionInputsModule,
29
30
  events_module_1.EventsModule,
31
+ workspace_module_1.WorkspaceModule,
30
32
  ],
31
33
  controllers: [llm_responses_controller_1.LlmResponsesController],
32
34
  providers: [llm_responses_service_1.LlmResponsesService],
@@ -1 +1 @@
1
- {"version":3,"file":"llm-responses.module.js","sourceRoot":"","sources":["../../src/llm-responses/llm-responses.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yEAAoE;AACpE,mEAA8D;AAC9D,iEAA6D;AAC7D,4FAAuF;AACvF,mFAA8E;AAC9E,6CAAgD;AAChD,oDAAgD;AAChD,2DAAuD;AAahD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAX9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,4BAAY,CAAC,CAAC;YACxC,gCAAc;YACd,iDAAsB;YACtB,2CAAmB;YACnB,4BAAY;SACb;QACD,WAAW,EAAE,CAAC,iDAAsB,CAAC;QACrC,SAAS,EAAE,CAAC,2CAAmB,CAAC;KACjC,CAAC;GACW,kBAAkB,CAAG"}
1
+ {"version":3,"file":"llm-responses.module.js","sourceRoot":"","sources":["../../src/llm-responses/llm-responses.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,yEAAoE;AACpE,mEAA8D;AAC9D,iEAA6D;AAC7D,4FAAuF;AACvF,mFAA8E;AAC9E,6CAAgD;AAChD,oDAAgD;AAChD,2DAAuD;AACvD,oEAAgE;AAczD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAZ9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,4BAAY,CAAC,CAAC;YACxC,gCAAc;YACd,iDAAsB;YACtB,2CAAmB;YACnB,4BAAY;YACZ,kCAAe;SAChB;QACD,WAAW,EAAE,CAAC,iDAAsB,CAAC;QACrC,SAAS,EAAE,CAAC,2CAAmB,CAAC;KACjC,CAAC;GACW,kBAAkB,CAAG"}
@@ -5,14 +5,16 @@ import { SubmitLlmResponseDto } from './dto/submit-llm-response.dto';
5
5
  import { SessionInput } from '../core-entities';
6
6
  import { Repository } from 'typeorm';
7
7
  import { EventsGateway } from '../events/events.gateway';
8
+ import { WorkspaceService } from '../workspace/workspace.service';
8
9
  export declare class LlmResponsesService {
9
10
  private sessionInputsRepository;
10
11
  private readonly sessionsService;
11
12
  private readonly applicationStateService;
12
13
  private readonly sessionInputsService;
13
14
  private readonly eventsGateway;
15
+ private readonly workspaceService;
14
16
  private readonly logger;
15
- constructor(sessionInputsRepository: Repository<SessionInput>, sessionsService: SessionsService, applicationStateService: ApplicationStateService, sessionInputsService: SessionInputsService, eventsGateway: EventsGateway);
17
+ constructor(sessionInputsRepository: Repository<SessionInput>, sessionsService: SessionsService, applicationStateService: ApplicationStateService, sessionInputsService: SessionInputsService, eventsGateway: EventsGateway, workspaceService: WorkspaceService);
16
18
  submit(dto: SubmitLlmResponseDto): Promise<SessionInput>;
17
19
  submitExternal(dto: SubmitLlmResponseDto): Promise<SessionInput>;
18
20
  }
@@ -23,13 +23,16 @@ const core_entities_1 = require("../core-entities");
23
23
  const typeorm_1 = require("@nestjs/typeorm");
24
24
  const typeorm_2 = require("typeorm");
25
25
  const events_gateway_1 = require("../events/events.gateway");
26
+ const workspace_service_1 = require("../workspace/workspace.service");
27
+ const ai_action_dto_1 = require("../llm-response-parser/dto/ai-action.dto");
26
28
  let LlmResponsesService = LlmResponsesService_1 = class LlmResponsesService {
27
- constructor(sessionInputsRepository, sessionsService, applicationStateService, sessionInputsService, eventsGateway) {
29
+ constructor(sessionInputsRepository, sessionsService, applicationStateService, sessionInputsService, eventsGateway, workspaceService) {
28
30
  this.sessionInputsRepository = sessionInputsRepository;
29
31
  this.sessionsService = sessionsService;
30
32
  this.applicationStateService = applicationStateService;
31
33
  this.sessionInputsService = sessionInputsService;
32
34
  this.eventsGateway = eventsGateway;
35
+ this.workspaceService = workspaceService;
33
36
  this.logger = new common_1.Logger(LlmResponsesService_1.name);
34
37
  }
35
38
  async submit(dto) {
@@ -70,11 +73,53 @@ let LlmResponsesService = LlmResponsesService_1 = class LlmResponsesService {
70
73
  }
71
74
  }
72
75
  this.logger.log(`Submitting LLM response to session: ${sessionId}`);
73
- return this.sessionInputsService.createFromRawLlmResponse(sessionId, {
76
+ const requestContextInput = await this.sessionInputsService.createFromRawLlmResponse(sessionId, {
74
77
  raw_llm_response: dto.raw_llm_response,
75
78
  execution_strategy: dto.execution_strategy,
76
79
  idempotency_key: dto.idempotency_key,
77
80
  });
81
+ const autoContextFetchEnabled = await this.applicationStateService.getAutoContextFetchEnabled();
82
+ const isRequestContextAction = requestContextInput.aiActions &&
83
+ requestContextInput.aiActions.length === 1 &&
84
+ requestContextInput.aiActions[0].action_type ===
85
+ ai_action_dto_1.AIActionType.REQUEST_CONTEXT;
86
+ if (autoContextFetchEnabled && isRequestContextAction) {
87
+ this.logger.log(`Auto Context Fetch triggered for session input ${requestContextInput.id}`);
88
+ const action = requestContextInput.aiActions[0];
89
+ const files = action.files
90
+ ?.split(',')
91
+ .map((f) => f.trim())
92
+ .filter(Boolean) || [];
93
+ const folders = action.folders
94
+ ?.split(',')
95
+ .map((f) => f.trim())
96
+ .filter(Boolean) || [];
97
+ const { valid, invalidPaths } = await this.workspaceService.validatePaths({ files, folders });
98
+ if (!valid) {
99
+ this.logger.warn(`Auto Context Fetch aborted due to invalid paths: ${invalidPaths.join(', ')}. Returning original context request.`);
100
+ return requestContextInput;
101
+ }
102
+ const previousInputs = await this.sessionInputsRepository.find({
103
+ where: { session_id: sessionId },
104
+ order: { created_at: 'DESC' },
105
+ take: 2,
106
+ });
107
+ const originalInput = previousInputs.find((i) => i.id !== requestContextInput.id);
108
+ if (!originalInput) {
109
+ this.logger.warn(`Auto Context Fetch could not find original user prompt for session ${sessionId}. Aborting.`);
110
+ return requestContextInput;
111
+ }
112
+ const session = await this.sessionsService.findOne(sessionId);
113
+ const newDto = {
114
+ user_prompt: originalInput.user_prompt,
115
+ execution_strategy: originalInput.execution_strategy,
116
+ ad_hoc_context_definition: JSON.stringify({ files, folders }),
117
+ context_template_id: session.default_followup_context_template_id,
118
+ };
119
+ this.logger.log(`Auto Context Fetch is re-submitting prompt for session ${sessionId}.`);
120
+ return this.sessionInputsService.create(sessionId, newDto);
121
+ }
122
+ return requestContextInput;
78
123
  }
79
124
  async submitExternal(dto) {
80
125
  const result = await this.submit(dto);
@@ -93,6 +138,7 @@ exports.LlmResponsesService = LlmResponsesService = LlmResponsesService_1 = __de
93
138
  sessions_service_1.SessionsService,
94
139
  application_state_service_1.ApplicationStateService,
95
140
  session_inputs_service_1.SessionInputsService,
96
- events_gateway_1.EventsGateway])
141
+ events_gateway_1.EventsGateway,
142
+ workspace_service_1.WorkspaceService])
97
143
  ], LlmResponsesService);
98
144
  //# sourceMappingURL=llm-responses.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"llm-responses.service.js","sourceRoot":"","sources":["../../src/llm-responses/llm-responses.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,mEAA+D;AAC/D,8FAAyF;AACzF,qFAAgF;AAChF,2EAGuC;AACvC,oDAAgD;AAChD,6CAAmD;AACnD,qCAAqC;AACrC,6DAAyD;AAGlD,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAG9B,YAEE,uBAAyD,EACxC,eAAgC,EAChC,uBAAgD,EAChD,oBAA0C,EAC1C,aAA4B;QAJrC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A,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,4BAAY,CAAC,CAAA;qCACE,oBAAU;QACT,kCAAe;QACP,mDAAuB;QAC1B,6CAAoB;QAC3B,8BAAa;GATpC,mBAAmB,CAiF/B"}
1
+ {"version":3,"file":"llm-responses.service.js","sourceRoot":"","sources":["../../src/llm-responses/llm-responses.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,mEAA+D;AAC/D,8FAAyF;AACzF,qFAAgF;AAChF,2EAGuC;AACvC,oDAAgD;AAChD,6CAAmD;AACnD,qCAAqC;AACrC,6DAAyD;AACzD,sEAAkE;AAClE,4EAAwE;AAIjE,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAG9B,YAEE,uBAAyD,EACxC,eAAgC,EAChC,uBAAgD,EAChD,oBAA0C,EAC1C,aAA4B,EAC5B,gBAAkC;QAL3C,4BAAuB,GAAvB,uBAAuB,CAA0B;QACxC,oBAAe,GAAf,eAAe,CAAiB;QAChC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,kBAAa,GAAb,aAAa,CAAe;QAC5B,qBAAgB,GAAhB,gBAAgB,CAAkB;QATpC,WAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAU5D,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,GAAyB;QACpC,IAAI,SAAS,GAAkB,IAAI,CAAC;QAEpC,IAAI,GAAG,CAAC,OAAO,KAAK,qCAAW,CAAC,MAAM,EAAE,CAAC;YACvC,SAAS,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,kBAAkB,EAAE,CAAC;YACpE,IAAI,CAAC,SAAS,EAAE,CAAC;gBAEf,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;gBAC9D,IAAI,CAAC,aAAa,EAAE,CAAC;oBACnB,MA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AAC,cAAc,CAAC,GAAyB;QAC5C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,8BAA8B,EAAE;YAC3D,SAAS,EAAE,MAAM,CAAC,UAAU;SAC7B,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,yDAAyD,MAAM,CAAC,UAAU,EAAE,CAC7E,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA7JY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,4BAAY,CAAC,CAAA;qCACE,oBAAU;QACT,kCAAe;QACP,mDAAuB;QAC1B,6CAAoB;QAC3B,8BAAa;QACV,oCAAgB;GAV1C,mBAAmB,CA6J/B"}
@@ -1,2 +1,2 @@
1
1
  export declare const name = "Codebase Exploration Agent";
2
- export declare const content = "\nCodebase Exploration Agent\nYou 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.\n\n**Core Principles:**\n\n* **Analyze Requirements:** Deeply understand the user's request and their ultimate goal.\n* **Iterate and Refine:** Exploration is a multi-step process. Start with high-level files and progressively ask for more specific context in subsequent requests based on what you learn.\n* **Explore Strategically:** Based on the request and visible file structure, determine the most relevant files and folders for the *current step* of your investigation.\n* **Request Context:** Formulate a single, precise request for the information needed for your next step.\n* **Justify Your Request:** Clearly explain why you need the requested context and what it will help you understand next.\n\n---\n\n**Output Generation Strategy**\n\nBased on the user request and any previously gathered context, you must generate a single action item to request more information. Your response should always use the `request_context` action.\n\nThe action item should be enclosed within `\u00A7ACTION_ITEM_START\u00A7` and `\u00A7ACTION_ITEM_END\u00A7` markers and include the following details using the `\u00A6FieldName\u00A6 Value` format:\n\n\u00A7TITLE_START\u00A7 very brief title for entire chat history including previous prompt, if current title is fine then leave it (max 4 words) \u00A7TITLE_END\u00A7\n\n* `\u00A6ActionNumber\u00A6`: Always `1` (as each response you generate contains only one action).\n* `\u00A6TaskDescription\u00A6`: A concise description of the context you are requesting for this step of the exploration.\n* `\u00A6FileAction\u00A6`: Always `request_context`.\n* `\u00A6Files\u00A6`: (Optional) A comma-separated list of file paths you need to see.\n* `\u00A6Folders\u00A6`: (Optional) A comma-separated list of folder paths you need to see.\n* `\u00A6Reason\u00A6`: A clear and detailed explanation of why you need this context to proceed with your analysis. You can also mention what you plan to investigate after receiving this new information.\n\n**Important Guidelines:**\n\n* **Embrace Iteration:** This is a conversation. Your first request might be for high-level configuration or entry-point files. In subsequent turns, use the context you've gained to ask for more specific modules, components, or utility files.\n* **One Action Per Turn:** You can only perform one action per turn: `request_context`.\n* **No Code Changes:** Do not attempt to guess file contents or suggest code changes. Your sole function is to explore and understand.\n* **Goal-Oriented Exploration:** Your primary goal is to gather enough information to either explain a part of the codebase to the user or to build sufficient context to hand off for a future coding task.\n* The entire output should follow the specified template format.\n\n**Example Output**\n\n<EXAMPLE OUTPUT STARTS HERE>\n\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6ActionNumber\u00A6 1\n\u00A6TaskDescription\u00A6 Requesting initial context for backend services to understand how user authentication is handled.\n\u00A6FileAction\u00A6 request_context\n\u00A6Files\u00A6 backend/src/main.ts,backend/src/auth/auth.module.ts,backend/src/users/users.service.ts\n\u00A6Reason\u00A6 To understand the authentication flow, I need to start at the application's entry point (`main.ts`) and then examine the main authentication module (`auth.module.ts`) and the user service (`users.service.ts`), which likely handles user data. This will give me a high-level overview before I dive deeper into specific strategies or controllers.\n\u00A7ACTION_ITEM_END\u00A7\n\n</EXAMPLE OUTPUT ENDS HERE>\n";
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
- **Core Principles:**
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
- * **Analyze Requirements:** Deeply understand the user's request and their ultimate goal.
12
- * **Iterate and Refine:** Exploration is a multi-step process. Start with high-level files and progressively ask for more specific context in subsequent requests based on what you learn.
13
- * **Explore Strategically:** Based on the request and visible file structure, determine the most relevant files and folders for the *current step* of your investigation.
14
- * **Request Context:** Formulate a single, precise request for the information needed for your next step.
15
- * **Justify Your Request:** Clearly explain why you need the requested context and what it will help you understand next.
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
- **Output Generation Strategy**
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
- Based on the user request and any previously gathered context, you must generate a single action item to request more information. Your response should always use the \`request_context\` action.
24
+ Output Format
25
+ Each reply contains a title line followed by **one** action block bounded by the markers shown below.
22
26
 
23
- The action item should be enclosed within \`§ACTION_ITEM_START§\` and \`§ACTION_ITEM_END§\` markers and include the following details using the \`¦FieldName¦ Value\` format:
27
+ Title (always present)
28
+ §TITLE_START§ very brief chat title (max 4 words) §TITLE_END§
24
29
 
25
- §TITLE_START§ very brief title for entire chat history including previous prompt, if current title is fine then leave it (max 4 words) §TITLE_END§
26
-
27
- * \`¦ActionNumber¦\`: Always \`1\` (as each response you generate contains only one action).
28
- * \`¦TaskDescription¦\`: A concise description of the context you are requesting for this step of the exploration.
29
- * \`¦FileAction¦\`: Always \`request_context\`.
30
- * \`¦Files¦\`: (Optional) A comma-separated list of file paths you need to see.
31
- * \`¦Folders¦\`: (Optional) A comma-separated list of folder paths you need to see.
32
- * \`¦Reason¦\`: A clear and detailed explanation of why you need this context to proceed with your analysis. You can also mention what you plan to investigate after receiving this new information.
33
-
34
- **Important Guidelines:**
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
- * **Embrace Iteration:** This is a conversation. Your first request might be for high-level configuration or entry-point files. In subsequent turns, use the context you've gained to ask for more specific modules, components, or utility files.
37
- * **One Action Per Turn:** You can only perform one action per turn: \`request_context\`.
38
- * **No Code Changes:** Do not attempt to guess file contents or suggest code changes. Your sole function is to explore and understand.
39
- * **Goal-Oriented Exploration:** Your primary goal is to gather enough information to either explain a part of the codebase to the user or to build sufficient context to hand off for a future coding task.
40
- * The entire output should follow the specified template format.
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
- **Example Output**
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
- <EXAMPLE OUTPUT STARTS HERE>
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¦ Requesting initial context for backend services to understand how user authentication is handled.
67
+ ¦TaskDescription¦ Need entry and auth files
49
68
  ¦FileAction¦ request_context
50
- ¦Files¦ backend/src/main.ts,backend/src/auth/auth.module.ts,backend/src/users/users.service.ts
51
- ¦Reason¦ To understand the authentication flow, I need to start at the application's entry point (\`main.ts\`) and then examine the main authentication module (\`auth.module.ts\`) and the user service (\`users.service.ts\`), which likely handles user data. This will give me a high-level overview before I dive deeper into specific strategies or controllers.
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDtB,CAAC"}
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"}