repoburg 1.0.38 → 1.0.40

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 (218) hide show
  1. package/backend/.env +1 -7
  2. package/backend/coverage/clover.xml +3380 -0
  3. package/backend/coverage/coverage-final.json +117 -0
  4. package/backend/coverage/lcov-report/base.css +224 -0
  5. package/backend/coverage/lcov-report/block-navigation.js +87 -0
  6. package/backend/coverage/lcov-report/favicon.png +0 -0
  7. package/backend/coverage/lcov-report/index.html +686 -0
  8. package/backend/coverage/lcov-report/prettify.css +1 -0
  9. package/backend/coverage/lcov-report/prettify.js +2 -0
  10. package/backend/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  11. package/backend/coverage/lcov-report/sorter.js +196 -0
  12. package/backend/coverage/lcov-report/src/action-execution/action-execution.module.ts.html +109 -0
  13. package/backend/coverage/lcov-report/src/action-execution/action-execution.service.ts.html +370 -0
  14. package/backend/coverage/lcov-report/src/action-execution/index.html +131 -0
  15. package/backend/coverage/lcov-report/src/ai-actions/ai-action-batch.service.ts.html +940 -0
  16. package/backend/coverage/lcov-report/src/ai-actions/ai-action-creation.service.ts.html +1195 -0
  17. package/backend/coverage/lcov-report/src/ai-actions/ai-actions.controller.ts.html +664 -0
  18. package/backend/coverage/lcov-report/src/ai-actions/ai-actions.module.ts.html +154 -0
  19. package/backend/coverage/lcov-report/src/ai-actions/ai-actions.service.ts.html +859 -0
  20. package/backend/coverage/lcov-report/src/ai-actions/index.html +176 -0
  21. package/backend/coverage/lcov-report/src/app.controller.ts.html +151 -0
  22. package/backend/coverage/lcov-report/src/app.module.ts.html +370 -0
  23. package/backend/coverage/lcov-report/src/app.service.ts.html +163 -0
  24. package/backend/coverage/lcov-report/src/application-state/application-state.controller.ts.html +265 -0
  25. package/backend/coverage/lcov-report/src/application-state/application-state.module.ts.html +124 -0
  26. package/backend/coverage/lcov-report/src/application-state/application-state.service.ts.html +394 -0
  27. package/backend/coverage/lcov-report/src/application-state/dto/index.html +146 -0
  28. package/backend/coverage/lcov-report/src/application-state/dto/set-auto-context-fetch-enabled.dto.ts.html +103 -0
  29. package/backend/coverage/lcov-report/src/application-state/dto/set-theme.dto.ts.html +106 -0
  30. package/backend/coverage/lcov-report/src/application-state/dto/set-websocket-enabled.dto.ts.html +103 -0
  31. package/backend/coverage/lcov-report/src/application-state/index.html +146 -0
  32. package/backend/coverage/lcov-report/src/context-generation/context-generation.module.ts.html +118 -0
  33. package/backend/coverage/lcov-report/src/context-generation/context-generation.service.ts.html +1348 -0
  34. package/backend/coverage/lcov-report/src/context-generation/index.html +131 -0
  35. package/backend/coverage/lcov-report/src/context-snippets/context-snippets.controller.ts.html +289 -0
  36. package/backend/coverage/lcov-report/src/context-snippets/context-snippets.module.ts.html +136 -0
  37. package/backend/coverage/lcov-report/src/context-snippets/context-snippets.service.ts.html +400 -0
  38. package/backend/coverage/lcov-report/src/context-snippets/dto/context-snippet.dto.ts.html +211 -0
  39. package/backend/coverage/lcov-report/src/context-snippets/dto/index.html +116 -0
  40. package/backend/coverage/lcov-report/src/context-snippets/index.html +146 -0
  41. package/backend/coverage/lcov-report/src/context-templates/context-templates.controller.ts.html +397 -0
  42. package/backend/coverage/lcov-report/src/context-templates/context-templates.module.ts.html +136 -0
  43. package/backend/coverage/lcov-report/src/context-templates/context-templates.service.ts.html +832 -0
  44. package/backend/coverage/lcov-report/src/context-templates/dto/context-template.dto.ts.html +358 -0
  45. package/backend/coverage/lcov-report/src/context-templates/dto/index.html +116 -0
  46. package/backend/coverage/lcov-report/src/context-templates/index.html +146 -0
  47. package/backend/coverage/lcov-report/src/core-entities/ai-action.entity.ts.html +241 -0
  48. package/backend/coverage/lcov-report/src/core-entities/application-state.entity.ts.html +115 -0
  49. package/backend/coverage/lcov-report/src/core-entities/base.entity.ts.html +145 -0
  50. package/backend/coverage/lcov-report/src/core-entities/context-snippet.entity.ts.html +130 -0
  51. package/backend/coverage/lcov-report/src/core-entities/context-template.entity.ts.html +223 -0
  52. package/backend/coverage/lcov-report/src/core-entities/custom-snippet.entity.ts.html +136 -0
  53. package/backend/coverage/lcov-report/src/core-entities/execution-log.entity.ts.html +157 -0
  54. package/backend/coverage/lcov-report/src/core-entities/index.html +281 -0
  55. package/backend/coverage/lcov-report/src/core-entities/index.ts.html +118 -0
  56. package/backend/coverage/lcov-report/src/core-entities/project.entity.ts.html +130 -0
  57. package/backend/coverage/lcov-report/src/core-entities/session-input.entity.ts.html +280 -0
  58. package/backend/coverage/lcov-report/src/core-entities/session.entity.ts.html +280 -0
  59. package/backend/coverage/lcov-report/src/core-entities/system-prompt.entity.ts.html +148 -0
  60. package/backend/coverage/lcov-report/src/custom-snippets/custom-snippets.controller.ts.html +277 -0
  61. package/backend/coverage/lcov-report/src/custom-snippets/custom-snippets.module.ts.html +124 -0
  62. package/backend/coverage/lcov-report/src/custom-snippets/custom-snippets.service.ts.html +304 -0
  63. package/backend/coverage/lcov-report/src/custom-snippets/dto/custom-snippet.dto.ts.html +205 -0
  64. package/backend/coverage/lcov-report/src/custom-snippets/dto/index.html +116 -0
  65. package/backend/coverage/lcov-report/src/custom-snippets/index.html +146 -0
  66. package/backend/coverage/lcov-report/src/events/events.gateway.ts.html +292 -0
  67. package/backend/coverage/lcov-report/src/events/events.module.ts.html +109 -0
  68. package/backend/coverage/lcov-report/src/events/index.html +131 -0
  69. package/backend/coverage/lcov-report/src/execution-logs/dto/execution-log.dto.ts.html +130 -0
  70. package/backend/coverage/lcov-report/src/execution-logs/dto/index.html +116 -0
  71. package/backend/coverage/lcov-report/src/execution-logs/execution-logs.controller.ts.html +130 -0
  72. package/backend/coverage/lcov-report/src/execution-logs/execution-logs.module.ts.html +124 -0
  73. package/backend/coverage/lcov-report/src/execution-logs/execution-logs.service.ts.html +238 -0
  74. package/backend/coverage/lcov-report/src/execution-logs/index.html +146 -0
  75. package/backend/coverage/lcov-report/src/http-exception.filter.ts.html +340 -0
  76. package/backend/coverage/lcov-report/src/index.html +191 -0
  77. package/backend/coverage/lcov-report/src/llm-response-parser/dto/ai-action.dto.ts.html +400 -0
  78. package/backend/coverage/lcov-report/src/llm-response-parser/dto/index.html +116 -0
  79. package/backend/coverage/lcov-report/src/llm-response-parser/errors/index.html +116 -0
  80. package/backend/coverage/lcov-report/src/llm-response-parser/errors/parsing.error.ts.html +118 -0
  81. package/backend/coverage/lcov-report/src/llm-response-parser/index.html +146 -0
  82. package/backend/coverage/lcov-report/src/llm-response-parser/llm-response-parser.module.ts.html +109 -0
  83. package/backend/coverage/lcov-report/src/llm-response-parser/llm-response-parser.service.ts.html +808 -0
  84. package/backend/coverage/lcov-report/src/llm-response-parser/parsing.constants.ts.html +139 -0
  85. package/backend/coverage/lcov-report/src/llm-responses/dto/index.html +116 -0
  86. package/backend/coverage/lcov-report/src/llm-responses/dto/submit-llm-response.dto.ts.html +172 -0
  87. package/backend/coverage/lcov-report/src/llm-responses/index.html +146 -0
  88. package/backend/coverage/lcov-report/src/llm-responses/llm-responses.controller.ts.html +154 -0
  89. package/backend/coverage/lcov-report/src/llm-responses/llm-responses.module.ts.html +163 -0
  90. package/backend/coverage/lcov-report/src/llm-responses/llm-responses.service.ts.html +766 -0
  91. package/backend/coverage/lcov-report/src/main.ts.html +382 -0
  92. package/backend/coverage/lcov-report/src/orchestration/dto/index.html +116 -0
  93. package/backend/coverage/lcov-report/src/orchestration/dto/orchestration.dto.ts.html +184 -0
  94. package/backend/coverage/lcov-report/src/orchestration/index.html +191 -0
  95. package/backend/coverage/lcov-report/src/orchestration/orchestration-fs.service.ts.html +478 -0
  96. package/backend/coverage/lcov-report/src/orchestration/orchestration-parser.service.ts.html +310 -0
  97. package/backend/coverage/lcov-report/src/orchestration/orchestration.controller.ts.html +436 -0
  98. package/backend/coverage/lcov-report/src/orchestration/orchestration.module.ts.html +172 -0
  99. package/backend/coverage/lcov-report/src/orchestration/orchestration.service.ts.html +1201 -0
  100. package/backend/coverage/lcov-report/src/orchestration/orchestration.types.ts.html +169 -0
  101. package/backend/coverage/lcov-report/src/projects/dto/index.html +116 -0
  102. package/backend/coverage/lcov-report/src/projects/dto/project.dto.ts.html +154 -0
  103. package/backend/coverage/lcov-report/src/projects/index.html +146 -0
  104. package/backend/coverage/lcov-report/src/projects/projects.controller.ts.html +232 -0
  105. package/backend/coverage/lcov-report/src/projects/projects.module.ts.html +124 -0
  106. package/backend/coverage/lcov-report/src/projects/projects.service.ts.html +223 -0
  107. package/backend/coverage/lcov-report/src/seeding/context-template-seeding.service.ts.html +355 -0
  108. package/backend/coverage/lcov-report/src/seeding/custom-snippet-seeding.service.ts.html +271 -0
  109. package/backend/coverage/lcov-report/src/seeding/data/context-templates/default-followup_ad-hoc-focused-context.ts.html +136 -0
  110. package/backend/coverage/lcov-report/src/seeding/data/context-templates/default-initial_condensed-project-context.ts.html +148 -0
  111. package/backend/coverage/lcov-report/src/seeding/data/context-templates/default-initial_full-project-context.ts.html +247 -0
  112. package/backend/coverage/lcov-report/src/seeding/data/context-templates/index.html +191 -0
  113. package/backend/coverage/lcov-report/src/seeding/data/context-templates/pm-context.ts.html +250 -0
  114. package/backend/coverage/lcov-report/src/seeding/data/context-templates/pr-description.ts.html +187 -0
  115. package/backend/coverage/lcov-report/src/seeding/data/context-templates/sample_focused-tree.ts.html +124 -0
  116. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/default_rglob.ts.html +94 -0
  117. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/git-diff.ts.html +94 -0
  118. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/index.html +236 -0
  119. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/rg-exclude.ts.html +94 -0
  120. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/rg-search-glob.ts.html +94 -0
  121. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/rg-search.ts.html +94 -0
  122. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/run-command.ts.html +94 -0
  123. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/tree.ts.html +94 -0
  124. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/usr-adhoc-incl.ts.html +100 -0
  125. package/backend/coverage/lcov-report/src/seeding/data/custom-snippets/usr-input-incl.ts.html +94 -0
  126. package/backend/coverage/lcov-report/src/seeding/data/system-prompts/codebase-explorer.ts.html +331 -0
  127. package/backend/coverage/lcov-report/src/seeding/data/system-prompts/default_multi-file-action-generator-with-requester.ts.html +670 -0
  128. package/backend/coverage/lcov-report/src/seeding/data/system-prompts/index.html +161 -0
  129. package/backend/coverage/lcov-report/src/seeding/data/system-prompts/multi-file-action-generator.ts.html +550 -0
  130. package/backend/coverage/lcov-report/src/seeding/data/system-prompts/packup.ts.html +184 -0
  131. package/backend/coverage/lcov-report/src/seeding/index.html +176 -0
  132. package/backend/coverage/lcov-report/src/seeding/seeding.module.ts.html +145 -0
  133. package/backend/coverage/lcov-report/src/seeding/seeding.service.ts.html +151 -0
  134. package/backend/coverage/lcov-report/src/seeding/system-prompt-seeding.service.ts.html +289 -0
  135. package/backend/coverage/lcov-report/src/session-followup/index.html +131 -0
  136. package/backend/coverage/lcov-report/src/session-followup/session-followup.module.ts.html +130 -0
  137. package/backend/coverage/lcov-report/src/session-followup/session-followup.service.ts.html +667 -0
  138. package/backend/coverage/lcov-report/src/session-inputs/dto/index.html +116 -0
  139. package/backend/coverage/lcov-report/src/session-inputs/dto/session-input.dto.ts.html +235 -0
  140. package/backend/coverage/lcov-report/src/session-inputs/index.html +161 -0
  141. package/backend/coverage/lcov-report/src/session-inputs/session-input-context.service.ts.html +751 -0
  142. package/backend/coverage/lcov-report/src/session-inputs/session-inputs.controller.ts.html +337 -0
  143. package/backend/coverage/lcov-report/src/session-inputs/session-inputs.module.ts.html +202 -0
  144. package/backend/coverage/lcov-report/src/session-inputs/session-inputs.service.ts.html +1615 -0
  145. package/backend/coverage/lcov-report/src/session-transfer/index.html +131 -0
  146. package/backend/coverage/lcov-report/src/session-transfer/session-transfer.module.ts.html +172 -0
  147. package/backend/coverage/lcov-report/src/session-transfer/session-transfer.service.ts.html +574 -0
  148. package/backend/coverage/lcov-report/src/sessions/dto/index.html +116 -0
  149. package/backend/coverage/lcov-report/src/sessions/dto/session.dto.ts.html +340 -0
  150. package/backend/coverage/lcov-report/src/sessions/index.html +146 -0
  151. package/backend/coverage/lcov-report/src/sessions/sessions.controller.ts.html +457 -0
  152. package/backend/coverage/lcov-report/src/sessions/sessions.module.ts.html +214 -0
  153. package/backend/coverage/lcov-report/src/sessions/sessions.service.ts.html +844 -0
  154. package/backend/coverage/lcov-report/src/system-prompts/dto/index.html +116 -0
  155. package/backend/coverage/lcov-report/src/system-prompts/dto/system-prompt.dto.ts.html +208 -0
  156. package/backend/coverage/lcov-report/src/system-prompts/index.html +146 -0
  157. package/backend/coverage/lcov-report/src/system-prompts/system-prompts.controller.ts.html +298 -0
  158. package/backend/coverage/lcov-report/src/system-prompts/system-prompts.module.ts.html +127 -0
  159. package/backend/coverage/lcov-report/src/system-prompts/system-prompts.service.ts.html +352 -0
  160. package/backend/coverage/lcov-report/src/timeout.interceptor.ts.html +178 -0
  161. package/backend/coverage/lcov-report/src/workspace/dto/index.html +116 -0
  162. package/backend/coverage/lcov-report/src/workspace/dto/search-workspace.dto.ts.html +193 -0
  163. package/backend/coverage/lcov-report/src/workspace/index.html +146 -0
  164. package/backend/coverage/lcov-report/src/workspace/workspace.controller.ts.html +247 -0
  165. package/backend/coverage/lcov-report/src/workspace/workspace.module.ts.html +121 -0
  166. package/backend/coverage/lcov-report/src/workspace/workspace.service.ts.html +700 -0
  167. package/backend/coverage/lcov.info +5492 -0
  168. package/backend/dist/ai-actions/ai-action-creation.service.d.ts +2 -0
  169. package/backend/dist/ai-actions/ai-action-creation.service.js +65 -0
  170. package/backend/dist/ai-actions/ai-action-creation.service.js.map +1 -1
  171. package/backend/dist/app.module.js +2 -0
  172. package/backend/dist/app.module.js.map +1 -1
  173. package/backend/dist/application-state/application-state.service.d.ts +4 -0
  174. package/backend/dist/application-state/application-state.service.js +25 -0
  175. package/backend/dist/application-state/application-state.service.js.map +1 -1
  176. package/backend/dist/context-templates/context-templates.service.d.ts +1 -0
  177. package/backend/dist/context-templates/context-templates.service.js +3 -0
  178. package/backend/dist/context-templates/context-templates.service.js.map +1 -1
  179. package/backend/dist/llm-responses/llm-responses.module.js +4 -1
  180. package/backend/dist/llm-responses/llm-responses.module.js.map +1 -1
  181. package/backend/dist/llm-responses/llm-responses.service.d.ts +3 -1
  182. package/backend/dist/llm-responses/llm-responses.service.js +29 -2
  183. package/backend/dist/llm-responses/llm-responses.service.js.map +1 -1
  184. package/backend/dist/orchestration/dto/orchestration.dto.d.ts +15 -0
  185. package/backend/dist/orchestration/dto/orchestration.dto.js +58 -0
  186. package/backend/dist/orchestration/dto/orchestration.dto.js.map +1 -0
  187. package/backend/dist/orchestration/orchestration-fs.service.d.ts +18 -0
  188. package/backend/dist/orchestration/orchestration-fs.service.js +124 -0
  189. package/backend/dist/orchestration/orchestration-fs.service.js.map +1 -0
  190. package/backend/dist/orchestration/orchestration-parser.service.d.ts +16 -0
  191. package/backend/dist/orchestration/orchestration-parser.service.js +78 -0
  192. package/backend/dist/orchestration/orchestration-parser.service.js.map +1 -0
  193. package/backend/dist/orchestration/orchestration.controller.d.ts +28 -0
  194. package/backend/dist/orchestration/orchestration.controller.js +158 -0
  195. package/backend/dist/orchestration/orchestration.controller.js.map +1 -0
  196. package/backend/dist/orchestration/orchestration.module.d.ts +2 -0
  197. package/backend/dist/orchestration/orchestration.module.js +43 -0
  198. package/backend/dist/orchestration/orchestration.module.js.map +1 -0
  199. package/backend/dist/orchestration/orchestration.service.d.ts +38 -0
  200. package/backend/dist/orchestration/orchestration.service.js +301 -0
  201. package/backend/dist/orchestration/orchestration.service.js.map +1 -0
  202. package/backend/dist/orchestration/orchestration.types.d.ts +27 -0
  203. package/backend/dist/orchestration/orchestration.types.js +20 -0
  204. package/backend/dist/orchestration/orchestration.types.js.map +1 -0
  205. package/backend/dist/seeding/data/system-prompts/packup.d.ts +2 -0
  206. package/backend/dist/seeding/data/system-prompts/packup.js +37 -0
  207. package/backend/dist/seeding/data/system-prompts/packup.js.map +1 -0
  208. package/backend/dist/session-inputs/session-inputs.module.js +2 -0
  209. package/backend/dist/session-inputs/session-inputs.module.js.map +1 -1
  210. package/backend/dist/session-inputs/session-inputs.service.d.ts +3 -1
  211. package/backend/dist/session-inputs/session-inputs.service.js +13 -2
  212. package/backend/dist/session-inputs/session-inputs.service.js.map +1 -1
  213. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  214. package/backend/orchestration-test-2.txt +1 -0
  215. package/backend/orchestration-test.txt +1 -0
  216. package/backend/package.json +1 -1
  217. package/orchestration-test.txt +3 -0
  218. package/package.json +1 -1
@@ -0,0 +1,301 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var OrchestrationService_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OrchestrationService = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const orchestration_fs_service_1 = require("./orchestration-fs.service");
19
+ const application_state_service_1 = require("../application-state/application-state.service");
20
+ const orchestration_types_1 = require("./orchestration.types");
21
+ const crypto_1 = require("crypto");
22
+ const events_gateway_1 = require("../events/events.gateway");
23
+ const session_inputs_service_1 = require("../session-inputs/session-inputs.service");
24
+ const context_templates_service_1 = require("../context-templates/context-templates.service");
25
+ const sessions_service_1 = require("../sessions/sessions.service");
26
+ const orchestration_parser_service_1 = require("./orchestration-parser.service");
27
+ let OrchestrationService = OrchestrationService_1 = class OrchestrationService {
28
+ constructor(fsService, appStateService, eventsGateway, parserService, sessionInputsService, contextTemplatesService, sessionsService) {
29
+ this.fsService = fsService;
30
+ this.appStateService = appStateService;
31
+ this.eventsGateway = eventsGateway;
32
+ this.parserService = parserService;
33
+ this.sessionInputsService = sessionInputsService;
34
+ this.contextTemplatesService = contextTemplatesService;
35
+ this.sessionsService = sessionsService;
36
+ this.logger = new common_1.Logger(OrchestrationService_1.name);
37
+ this.activeRun = null;
38
+ this.timeoutTimer = null;
39
+ this.TIMEOUT_MS = 6 * 60 * 1000;
40
+ this.loadStateFromPersistence();
41
+ }
42
+ async loadStateFromPersistence() {
43
+ const persistedState = await this.appStateService.getOrchestrationRunState();
44
+ if (persistedState) {
45
+ this.logger.log('Loading persisted orchestration state:', persistedState);
46
+ if ([
47
+ orchestration_types_1.OrchestrationStatus.RUNNING,
48
+ orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE,
49
+ ].includes(persistedState.status)) {
50
+ this.logger.warn(`Server restarted during an active orchestration run (${persistedState.runId}). Setting status to FAILED.`);
51
+ persistedState.status = orchestration_types_1.OrchestrationStatus.FAILED;
52
+ persistedState.error =
53
+ 'Orchestration failed due to an unexpected server restart.';
54
+ this.activeRun = persistedState;
55
+ await this.persistState();
56
+ this.emitStatus();
57
+ }
58
+ else if ([
59
+ orchestration_types_1.OrchestrationStatus.COMPLETED,
60
+ orchestration_types_1.OrchestrationStatus.FAILED,
61
+ orchestration_types_1.OrchestrationStatus.STOPPED,
62
+ ].includes(persistedState.status)) {
63
+ this.activeRun = persistedState;
64
+ this.emitStatus();
65
+ }
66
+ }
67
+ }
68
+ async setState(status, newState) {
69
+ if (this.activeRun) {
70
+ this.activeRun.status = status;
71
+ Object.assign(this.activeRun, newState);
72
+ if (status === orchestration_types_1.OrchestrationStatus.IDLE) {
73
+ this.activeRun = null;
74
+ await this.appStateService.setOrchestrationRunState(null);
75
+ if (this.timeoutTimer)
76
+ clearTimeout(this.timeoutTimer);
77
+ }
78
+ else {
79
+ await this.persistState();
80
+ }
81
+ this.emitStatus();
82
+ }
83
+ else if (status !== orchestration_types_1.OrchestrationStatus.IDLE) {
84
+ this.logger.warn(`Cannot set status to ${status} without an active run.`);
85
+ }
86
+ }
87
+ async persistState() {
88
+ await this.appStateService.setOrchestrationRunState(this.activeRun);
89
+ }
90
+ emitStatus() {
91
+ this.eventsGateway.sendToAll('orchestration_status_update', this.activeRun);
92
+ }
93
+ log(message) {
94
+ if (!this.activeRun)
95
+ return;
96
+ this.logger.log(`[Run ${this.activeRun.runId}] ${message}`);
97
+ this.activeRun.log.push(`${new Date().toISOString()} - ${message}`);
98
+ this.eventsGateway.sendToAll('orchestration_log', { message });
99
+ }
100
+ getActiveRun() {
101
+ return this.activeRun;
102
+ }
103
+ async start(dto) {
104
+ if (this.activeRun) {
105
+ if (this.activeRun.scriptName === dto.scriptName &&
106
+ this.activeRun.status === orchestration_types_1.OrchestrationStatus.STOPPED) {
107
+ this.log('Resuming stopped orchestration.');
108
+ this.execute().catch((error) => this.fail(error.message));
109
+ return;
110
+ }
111
+ throw new common_1.BadRequestException(`An orchestration is already running or paused: "${this.activeRun.scriptName}" is in state "${this.activeRun.status}".`);
112
+ }
113
+ const scriptContent = await this.fsService.readScript(dto.scriptName);
114
+ const allCommands = await this.parserService.parseScript(scriptContent);
115
+ const taskCommands = allCommands.filter((cmd) => cmd.type === 'send_and_wait');
116
+ this.activeRun = {
117
+ runId: (0, crypto_1.randomUUID)(),
118
+ status: orchestration_types_1.OrchestrationStatus.RUNNING,
119
+ mode: dto.mode,
120
+ scriptName: dto.scriptName,
121
+ sessionId: dto.sessionId,
122
+ currentStep: 0,
123
+ totalSteps: taskCommands.length,
124
+ waitStartTime: null,
125
+ waitingOnInputId: null,
126
+ error: null,
127
+ log: [],
128
+ };
129
+ await this.persistState();
130
+ this.log(`Orchestration started in ${dto.mode} mode.`);
131
+ this.emitStatus();
132
+ this.execute().catch((error) => {
133
+ this.logger.error(`Unhandled error in orchestration execution: ${error.message}`, error.stack);
134
+ this.fail(`Unhandled error: ${error.message}`);
135
+ });
136
+ }
137
+ async execute() {
138
+ if (!this.activeRun)
139
+ return;
140
+ const { scriptName, mode, sessionId } = this.activeRun;
141
+ const session = await this.sessionsService.findOne(sessionId);
142
+ const scriptContent = await this.fsService.readScript(scriptName);
143
+ const allCommands = await this.parserService.parseScript(scriptContent);
144
+ const { commandIndex, taskStepCounter } = await this.parserService.findResumeState(scriptName, allCommands);
145
+ this.log(`Execution loop starting/resuming at command ${commandIndex}. Current task step is ${taskStepCounter}.`);
146
+ this.activeRun.currentStep = taskStepCounter;
147
+ let initialContextTemplateId = session.default_initial_context_template_id;
148
+ for (let i = commandIndex; i < allCommands.length; i++) {
149
+ if (this.activeRun.status === orchestration_types_1.OrchestrationStatus.STOPPING) {
150
+ this.log('Execution loop halted due to STOPPING state.');
151
+ this.setState(orchestration_types_1.OrchestrationStatus.STOPPED);
152
+ return;
153
+ }
154
+ const command = allCommands[i];
155
+ try {
156
+ if (command.type === 'set_initial_context') {
157
+ this.log(`Executing setup command: ${command.originalLine}`);
158
+ const template = await this.contextTemplatesService.findByName(command.value);
159
+ if (!template)
160
+ throw new Error(`Context template "${command.value}" not found.`);
161
+ initialContextTemplateId = template.id;
162
+ this.log(`Initial context template set to "${command.value}".`);
163
+ }
164
+ else if (command.type === 'send_and_wait') {
165
+ this.activeRun.currentStep++;
166
+ this.setState(orchestration_types_1.OrchestrationStatus.RUNNING, {
167
+ currentStep: this.activeRun.currentStep,
168
+ });
169
+ this.log(`Executing step ${this.activeRun.currentStep}/${this.activeRun.totalSteps}: ${command.originalLine}`);
170
+ const isFirstSendAndWait = !allCommands
171
+ .slice(0, i)
172
+ .some((cmd) => cmd.type === 'send_and_wait');
173
+ let contextTemplateId;
174
+ if (isFirstSendAndWait) {
175
+ contextTemplateId = initialContextTemplateId;
176
+ this.log(`Using one-time initial context template: ${contextTemplateId || 'session default'}`);
177
+ }
178
+ else {
179
+ contextTemplateId = session.default_followup_context_template_id;
180
+ this.log(`Using session's default follow-up context template.`);
181
+ }
182
+ await this.sessionInputsService.prepareLlmInput(sessionId, {
183
+ user_prompt: command.value,
184
+ execution_strategy: mode === orchestration_types_1.OrchestrationMode.AUTO ? 'auto_apply' : 'review_first',
185
+ context_template_id: contextTemplateId,
186
+ });
187
+ if (mode === orchestration_types_1.OrchestrationMode.INTERACTIVE) {
188
+ this.setState(orchestration_types_1.OrchestrationStatus.PAUSED_INTERACTIVE);
189
+ return;
190
+ }
191
+ return;
192
+ }
193
+ }
194
+ catch (error) {
195
+ await this.fail(error.message);
196
+ return;
197
+ }
198
+ }
199
+ this.log('Orchestration completed successfully.');
200
+ this.setState(orchestration_types_1.OrchestrationStatus.COMPLETED);
201
+ }
202
+ onPromptPrepared(inputId) {
203
+ if (this.activeRun?.status === orchestration_types_1.OrchestrationStatus.RUNNING) {
204
+ this.log(`[onPromptPrepared] Prompt prepared for input ${inputId}. Awaiting LLM response.`);
205
+ this.setState(orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE, {
206
+ waitingOnInputId: inputId,
207
+ waitStartTime: Date.now(),
208
+ });
209
+ this.timeoutTimer = setTimeout(() => {
210
+ this.fail('Orchestration timed out waiting for LLM response.');
211
+ }, this.TIMEOUT_MS);
212
+ }
213
+ else {
214
+ this.logger.warn(`[onPromptPrepared] Called but active run status is not 'RUNNING'. Current status: ${this.activeRun?.status}`);
215
+ }
216
+ }
217
+ async stop() {
218
+ if (this.activeRun &&
219
+ (this.activeRun.status === orchestration_types_1.OrchestrationStatus.RUNNING ||
220
+ this.activeRun.status === orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE)) {
221
+ this.log('Graceful stop requested.');
222
+ if (this.timeoutTimer)
223
+ clearTimeout(this.timeoutTimer);
224
+ this.setState(orchestration_types_1.OrchestrationStatus.STOPPING);
225
+ }
226
+ }
227
+ async proceed() {
228
+ if (this.activeRun &&
229
+ this.activeRun.status === orchestration_types_1.OrchestrationStatus.PAUSED_INTERACTIVE) {
230
+ this.log('Proceeding to next step...');
231
+ this.execute().catch((e) => this.fail(e.message));
232
+ }
233
+ }
234
+ async emergencyStop() {
235
+ if (this.activeRun) {
236
+ this.log('Emergency stop triggered!');
237
+ if (this.timeoutTimer)
238
+ clearTimeout(this.timeoutTimer);
239
+ this.setState(orchestration_types_1.OrchestrationStatus.FAILED, {
240
+ error: 'Forcefully stopped by user.',
241
+ });
242
+ }
243
+ }
244
+ async clearActiveRun() {
245
+ if (this.activeRun) {
246
+ this.log('Clearing active run state.');
247
+ this.setState(orchestration_types_1.OrchestrationStatus.IDLE);
248
+ }
249
+ }
250
+ async resumeFromInput(inputId) {
251
+ this.log(`[resumeFromInput] Attempting to resume for completed input ID: ${inputId}`);
252
+ if (!this.activeRun) {
253
+ this.logger.warn('[resumeFromInput] Cannot resume, no active run.');
254
+ return;
255
+ }
256
+ if (this.activeRun.status !== orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE) {
257
+ this.logger.warn(`[resumeFromInput] Cannot resume, status is '${this.activeRun.status}', not 'waiting_for_llm_response'.`);
258
+ return;
259
+ }
260
+ if (this.activeRun.waitingOnInputId !== inputId) {
261
+ this.logger.warn(`[resumeFromInput] Mismatched input ID. Expected '${this.activeRun.waitingOnInputId}', but got '${inputId}'.`);
262
+ return;
263
+ }
264
+ if (this.timeoutTimer)
265
+ clearTimeout(this.timeoutTimer);
266
+ this.log(`[resumeFromInput] Resuming orchestration after receiving response for ${inputId}`);
267
+ const scriptContent = await this.fsService.readScript(this.activeRun.scriptName);
268
+ const allCommands = await this.parserService.parseScript(scriptContent);
269
+ const commandToUpdate = allCommands.filter((cmd) => cmd.type === 'send_and_wait')[this.activeRun.currentStep - 1];
270
+ if (commandToUpdate) {
271
+ this.log(`[resumeFromInput] Updating task status for: ${commandToUpdate.value.substring(0, 50)}...`);
272
+ await this.fsService.updateTaskStatus(this.activeRun.scriptName, commandToUpdate.value, true);
273
+ }
274
+ else {
275
+ this.log(`[resumeFromInput] Could not find command to update task status for step ${this.activeRun.currentStep}.`);
276
+ }
277
+ this.log(`[resumeFromInput] Re-triggering execution loop.`);
278
+ this.execute().catch((e) => this.fail(e.message));
279
+ }
280
+ async fail(error) {
281
+ if (this.activeRun) {
282
+ this.logger.error(`Orchestration failed: ${error}`);
283
+ if (this.timeoutTimer)
284
+ clearTimeout(this.timeoutTimer);
285
+ this.setState(orchestration_types_1.OrchestrationStatus.FAILED, { error });
286
+ }
287
+ }
288
+ };
289
+ exports.OrchestrationService = OrchestrationService;
290
+ exports.OrchestrationService = OrchestrationService = OrchestrationService_1 = __decorate([
291
+ (0, common_1.Injectable)({ scope: common_1.Scope.DEFAULT }),
292
+ __param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => session_inputs_service_1.SessionInputsService))),
293
+ __metadata("design:paramtypes", [orchestration_fs_service_1.OrchestrationFsService,
294
+ application_state_service_1.ApplicationStateService,
295
+ events_gateway_1.EventsGateway,
296
+ orchestration_parser_service_1.OrchestrationParserService,
297
+ session_inputs_service_1.SessionInputsService,
298
+ context_templates_service_1.ContextTemplatesService,
299
+ sessions_service_1.SessionsService])
300
+ ], OrchestrationService);
301
+ //# sourceMappingURL=orchestration.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestration.service.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,yEAAoE;AACpE,8FAAyF;AACzF,+DAI+B;AAE/B,mCAAoC;AACpC,6DAAyD;AACzD,qFAAgF;AAChF,8FAAyF;AACzF,mEAA+D;AAC/D,iFAA4E;AAGrE,IA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_RESPONSE = "waiting_for_llm_response",
6
+ STOPPING = "stopping",
7
+ STOPPED = "stopped",
8
+ FAILED = "failed",
9
+ COMPLETED = "completed"
10
+ }
11
+ export declare enum OrchestrationMode {
12
+ AUTO = "auto",
13
+ INTERACTIVE = "interactive"
14
+ }
15
+ export interface OrchestrationRunState {
16
+ runId: string;
17
+ status: OrchestrationStatus;
18
+ mode: OrchestrationMode;
19
+ scriptName: string;
20
+ sessionId: string;
21
+ currentStep: number;
22
+ totalSteps: number;
23
+ waitStartTime: number | null;
24
+ waitingOnInputId: string | null;
25
+ error: string | null;
26
+ log: string[];
27
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrchestrationMode = exports.OrchestrationStatus = void 0;
4
+ var OrchestrationStatus;
5
+ (function (OrchestrationStatus) {
6
+ OrchestrationStatus["IDLE"] = "idle";
7
+ OrchestrationStatus["RUNNING"] = "running";
8
+ OrchestrationStatus["PAUSED_INTERACTIVE"] = "paused_interactive";
9
+ OrchestrationStatus["WAITING_FOR_LLM_RESPONSE"] = "waiting_for_llm_response";
10
+ OrchestrationStatus["STOPPING"] = "stopping";
11
+ OrchestrationStatus["STOPPED"] = "stopped";
12
+ OrchestrationStatus["FAILED"] = "failed";
13
+ OrchestrationStatus["COMPLETED"] = "completed";
14
+ })(OrchestrationStatus || (exports.OrchestrationStatus = OrchestrationStatus = {}));
15
+ var OrchestrationMode;
16
+ (function (OrchestrationMode) {
17
+ OrchestrationMode["AUTO"] = "auto";
18
+ OrchestrationMode["INTERACTIVE"] = "interactive";
19
+ })(OrchestrationMode || (exports.OrchestrationMode = OrchestrationMode = {}));
20
+ //# sourceMappingURL=orchestration.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestration.types.js","sourceRoot":"","sources":["../../src/orchestration/orchestration.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBASX;AATD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,0CAAmB,CAAA;IACnB,gEAAyC,CAAA;IACzC,4EAAqD,CAAA;IACrD,4CAAqB,CAAA;IACrB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;IACjB,8CAAuB,CAAA;AACzB,CAAC,EATW,mBAAmB,mCAAnB,mBAAmB,QAS9B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,gDAA2B,CAAA;AAC7B,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
@@ -0,0 +1,2 @@
1
+ export declare const name = "Packup Command";
2
+ export declare const content = "\nSystem Prompt for \u201Cpackup\u201D Command \nPurpose: Hand-off everything the next session must know\u2014nothing more, nothing less.\n\n1. Response Rules \n\n```\n\u00A7ACTION_ITEM_START\u00A7\n\u00A6FileAction\u00A6 final\n\u00A6plain\u00A6 <your concise multiline plain-response content line1>\n<your concise multiline plain-response content line2>\n<your concise multiline plain-response content line3>\n\u00A7ACTION_ITEM_END\u00A7\n```\n\n2. Content of Each Heading \n 1. Session Overview \n - One concise paragraph capturing the main goals, approaches tried, key decisions, and current status. \n - Mention important libraries, frameworks, design patterns, or algorithms discussed. \n 2. User Corrections \n - Bullet-point every time the user altered, rejected, or refined the assistant\u2019s output. \n - For each bullet: \n - Start with \u201COriginal:\u201D and describe the assistant\u2019s initial idea in a phrase. \n - Follow with \u201CCorrection:\u201D and quote or paraphrase the user\u2019s guidance so future sessions avoid repeating the mistake. \n 3. Files Touched \n - List only file names or paths that were created, inspected, or modified. \n - One file per line, no extra commentary, no code content.\n\n3. Brevity & Precision \n - Keep the whole summary under 300 words. \n - Use clear, professional language; avoid repetition and fluff.\n";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.content = exports.name = void 0;
4
+ exports.name = 'Packup Command';
5
+ exports.content = `
6
+ System Prompt for “packup” Command
7
+ Purpose: Hand-off everything the next session must know—nothing more, nothing less.
8
+
9
+ 1. Response Rules
10
+
11
+ \`\`\`
12
+ §ACTION_ITEM_START§
13
+ ¦FileAction¦ final
14
+ ¦plain¦ <your concise multiline plain-response content line1>
15
+ <your concise multiline plain-response content line2>
16
+ <your concise multiline plain-response content line3>
17
+ §ACTION_ITEM_END§
18
+ \`\`\`
19
+
20
+ 2. Content of Each Heading
21
+ 1. Session Overview
22
+ - One concise paragraph capturing the main goals, approaches tried, key decisions, and current status.
23
+ - Mention important libraries, frameworks, design patterns, or algorithms discussed.
24
+ 2. User Corrections
25
+ - Bullet-point every time the user altered, rejected, or refined the assistant’s output.
26
+ - For each bullet:
27
+ - Start with “Original:” and describe the assistant’s initial idea in a phrase.
28
+ - Follow with “Correction:” and quote or paraphrase the user’s guidance so future sessions avoid repeating the mistake.
29
+ 3. Files Touched
30
+ - List only file names or paths that were created, inspected, or modified.
31
+ - One file per line, no extra commentary, no code content.
32
+
33
+ 3. Brevity & Precision
34
+ - Keep the whole summary under 300 words.
35
+ - Use clear, professional language; avoid repetition and fluff.
36
+ `;
37
+ //# sourceMappingURL=packup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packup.js","sourceRoot":"","sources":["../../../../src/seeding/data/system-prompts/packup.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BtB,CAAC"}
@@ -19,6 +19,7 @@ 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
21
  const context_snippets_module_1 = require("../context-snippets/context-snippets.module");
22
+ const orchestration_module_1 = require("../orchestration/orchestration.module");
22
23
  let SessionInputsModule = class SessionInputsModule {
23
24
  };
24
25
  exports.SessionInputsModule = SessionInputsModule;
@@ -37,6 +38,7 @@ exports.SessionInputsModule = SessionInputsModule = __decorate([
37
38
  application_state_module_1.ApplicationStateModule,
38
39
  events_module_1.EventsModule,
39
40
  context_snippets_module_1.ContextSnippetsModule,
41
+ (0, common_1.forwardRef)(() => orchestration_module_1.OrchestrationModule),
40
42
  ],
41
43
  controllers: [session_inputs_controller_1.SessionInputsController],
42
44
  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;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"}
1
+ {"version":3,"file":"session-inputs.module.js","sourceRoot":"","sources":["../../src/session-inputs/session-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,oDAK0B;AAC1B,qEAAgE;AAChE,2EAAsE;AACtE,uEAAkE;AAClE,+FAA0F;AAC1F,mFAA8E;AAC9E,mFAA6E;AAC7E,4FAAuF;AACvF,2DAAuD;AACvD,yFAAoF;AACpF,gFAA4E;AAsBrE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAAG,CAAA;AAAtB,kDAAmB;8BAAnB,mBAAmB;IApB/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;YACrB,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0CAAmB,CAAC;SACtC;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"}
@@ -6,6 +6,7 @@ import { SystemPromptsService } from '../system-prompts/system-prompts.service';
6
6
  import { AIActionCreationService } from '../ai-actions/ai-action-creation.service';
7
7
  import { SessionInputContextService } from './session-input-context.service';
8
8
  import { ApplicationStateService } from '../application-state/application-state.service';
9
+ import { OrchestrationService } from '../orchestration/orchestration.service';
9
10
  export declare class SessionInputsService {
10
11
  private sessionsRepository;
11
12
  private sessionInputsRepository;
@@ -15,8 +16,9 @@ export declare class SessionInputsService {
15
16
  private readonly systemPromptsService;
16
17
  private readonly sessionInputContextService;
17
18
  private readonly applicationStateService;
19
+ private readonly orchestrationService;
18
20
  private readonly logger;
19
- constructor(sessionsRepository: Repository<Session>, sessionInputsRepository: Repository<SessionInput>, contextTemplatesRepository: Repository<ContextTemplate>, aiActionsService: AIActionsService, aiActionCreationService: AIActionCreationService, systemPromptsService: SystemPromptsService, sessionInputContextService: SessionInputContextService, applicationStateService: ApplicationStateService);
21
+ constructor(sessionsRepository: Repository<Session>, sessionInputsRepository: Repository<SessionInput>, contextTemplatesRepository: Repository<ContextTemplate>, aiActionsService: AIActionsService, aiActionCreationService: AIActionCreationService, systemPromptsService: SystemPromptsService, sessionInputContextService: SessionInputContextService, applicationStateService: ApplicationStateService, orchestrationService: OrchestrationService);
20
22
  private extractAndUpdateSessionTitle;
21
23
  private generatePreviousActionsSummary;
22
24
  create(sessionId: string, createSessionInputDto: CreateSessionInputDto): Promise<SessionInput>;
@@ -24,8 +24,9 @@ const parsing_constants_1 = require("../llm-response-parser/parsing.constants");
24
24
  const ai_action_creation_service_1 = require("../ai-actions/ai-action-creation.service");
25
25
  const session_input_context_service_1 = require("./session-input-context.service");
26
26
  const application_state_service_1 = require("../application-state/application-state.service");
27
+ const orchestration_service_1 = require("../orchestration/orchestration.service");
27
28
  let SessionInputsService = SessionInputsService_1 = class SessionInputsService {
28
- constructor(sessionsRepository, sessionInputsRepository, contextTemplatesRepository, aiActionsService, aiActionCreationService, systemPromptsService, sessionInputContextService, applicationStateService) {
29
+ constructor(sessionsRepository, sessionInputsRepository, contextTemplatesRepository, aiActionsService, aiActionCreationService, systemPromptsService, sessionInputContextService, applicationStateService, orchestrationService) {
29
30
  this.sessionsRepository = sessionsRepository;
30
31
  this.sessionInputsRepository = sessionInputsRepository;
31
32
  this.contextTemplatesRepository = contextTemplatesRepository;
@@ -34,6 +35,7 @@ let SessionInputsService = SessionInputsService_1 = class SessionInputsService {
34
35
  this.systemPromptsService = systemPromptsService;
35
36
  this.sessionInputContextService = sessionInputContextService;
36
37
  this.applicationStateService = applicationStateService;
38
+ this.orchestrationService = orchestrationService;
37
39
  this.logger = new common_1.Logger(SessionInputsService_1.name);
38
40
  }
39
41
  async extractAndUpdateSessionTitle(sessionId, rawResponse) {
@@ -130,6 +132,9 @@ let SessionInputsService = SessionInputsService_1 = class SessionInputsService {
130
132
  else if (createSessionInputDto.execution_strategy === 'apply_revert') {
131
133
  await this.aiActionCreationService.createAndTentativelyApplyActions(savedSessionInput);
132
134
  }
135
+ else if (createSessionInputDto.execution_strategy === 'auto_apply') {
136
+ await this.aiActionCreationService.createAndAutoApplyActions(savedSessionInput);
137
+ }
133
138
  else {
134
139
  throw new common_1.BadRequestException(`Unsupported execution_strategy: ${createSessionInputDto.execution_strategy}`);
135
140
  }
@@ -195,6 +200,7 @@ let SessionInputsService = SessionInputsService_1 = class SessionInputsService {
195
200
  const savedSessionInput = await this.sessionInputsRepository.save(newSessionInput);
196
201
  this.logger.log(`Created SessionInput ${savedSessionInput.id} for manual LLM flow preparation.`);
197
202
  await this.applicationStateService.setActiveSessionId(sessionId);
203
+ this.orchestrationService.onPromptPrepared(savedSessionInput.id);
198
204
  return {
199
205
  input_id: savedSessionInput.id,
200
206
  llm_input_string: generated_context_string,
@@ -220,6 +226,9 @@ let SessionInputsService = SessionInputsService_1 = class SessionInputsService {
220
226
  else if (updatedSessionInput.execution_strategy === 'apply_revert') {
221
227
  await this.aiActionCreationService.createAndTentativelyApplyActions(updatedSessionInput);
222
228
  }
229
+ else if (updatedSessionInput.execution_strategy === 'auto_apply') {
230
+ await this.aiActionCreationService.createAndAutoApplyActions(updatedSessionInput);
231
+ }
223
232
  else {
224
233
  throw new common_1.BadRequestException(`Unsupported execution_strategy: ${updatedSessionInput.execution_strategy}`);
225
234
  }
@@ -328,6 +337,7 @@ exports.SessionInputsService = SessionInputsService = SessionInputsService_1 = _
328
337
  __param(0, (0, typeorm_1.InjectRepository)(core_entities_1.Session)),
329
338
  __param(1, (0, typeorm_1.InjectRepository)(core_entities_1.SessionInput)),
330
339
  __param(2, (0, typeorm_1.InjectRepository)(core_entities_1.ContextTemplate)),
340
+ __param(8, (0, common_1.Inject)((0, common_1.forwardRef)(() => orchestration_service_1.OrchestrationService))),
331
341
  __metadata("design:paramtypes", [typeorm_2.Repository,
332
342
  typeorm_2.Repository,
333
343
  typeorm_2.Repository,
@@ -335,6 +345,7 @@ exports.SessionInputsService = SessionInputsService = SessionInputsService_1 = _
335
345
  ai_action_creation_service_1.AIActionCreationService,
336
346
  system_prompts_service_1.SystemPromptsService,
337
347
  session_input_context_service_1.SessionInputContextService,
338
- application_state_service_1.ApplicationStateService])
348
+ application_state_service_1.ApplicationStateService,
349
+ orchestration_service_1.OrchestrationService])
339
350
  ], SessionInputsService);
340
351
  //# sourceMappingURL=session-inputs.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"session-inputs.service.js","sourceRoot":"","sources":["../../src/session-inputs/session-inputs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAKwB;AACxB,6CAAmD;AACnD,qCAAqC;AACrC,oDAK0B;AAM1B,yEAG0C;AAC1C,qFAAgF;AAChF,gFAGkD;AAClD,yFAAmF;AACnF,mFAA6E;AAC7E,8FAAyF;AAGlF,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAG/B,YAEE,kBAA+C,EAE/C,uBAAyD,EAEzD,0BAA+D,EAC9C,gBAAkC,EAClC,uBAAgD,EAChD,oBAA0C,EAC1C,0BAAsD,EACtD,uBAAgD;QATzD,uBAAkB,GAAlB,kBAAkB,CAAqB;QAEvC,4BAAuB,GAAvB,uBAAuB,CAA0B;QAEjD,+BAA0B,GAA1B,0BAA0B,CAA6B;QAC9C,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,+BAA0B,GAA1B,0BAA0B,CAA4B;QACtD,4BAAuB,GAAvB,uBAAuB,CAAyB;QAblD,WAAM,GAAG,IAAI,eAAM,CAAC,sBAAoB,CAAC,IAAI,CAAC,CAAC;IAc7D,CAAC;IAEI,KAAK,CAAC,4BAA4B,CACxC,SAAiB,EACjB,WAAmB;QAEnB,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,mCAAe,CAAC,CAAC;QACxD,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,iCAAa,CAAC,CAAC;QAEpD,IAAI,UAAU,KAAK,CAAC,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,GAAG,UAAU,EAA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