repoburg 1.1.6 → 1.1.8

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 (60) hide show
  1. package/backend/.env +3 -1
  2. package/backend/coverage/clover.xml +1 -1
  3. package/backend/coverage/lcov-report/src/seeding/data/context-templates/index.html +11 -12
  4. package/backend/coverage/lcov-report/src/seeding/data/context-templates/pr-description.ts.html +12 -13
  5. package/backend/coverage/lcov.info +1 -1
  6. package/backend/dist/src/action-execution/action-execution.service.js +2 -1
  7. package/backend/dist/src/action-execution/action-execution.service.js.map +1 -1
  8. package/backend/dist/src/app.module.js +0 -2
  9. package/backend/dist/src/app.module.js.map +1 -1
  10. package/backend/dist/src/application-state/application-state.controller.d.ts +0 -5
  11. package/backend/dist/src/application-state/application-state.controller.js +0 -22
  12. package/backend/dist/src/application-state/application-state.controller.js.map +1 -1
  13. package/backend/dist/src/application-state/application-state.service.d.ts +0 -6
  14. package/backend/dist/src/application-state/application-state.service.js +0 -36
  15. package/backend/dist/src/application-state/application-state.service.js.map +1 -1
  16. package/backend/dist/src/llm-response-parser/llm-response-parser.service.js +17 -9
  17. package/backend/dist/src/llm-response-parser/llm-response-parser.service.js.map +1 -1
  18. package/backend/dist/src/llm-responses/llm-responses.module.js +0 -2
  19. package/backend/dist/src/llm-responses/llm-responses.module.js.map +1 -1
  20. package/backend/dist/src/llm-responses/llm-responses.service.d.ts +1 -3
  21. package/backend/dist/src/llm-responses/llm-responses.service.js +1 -6
  22. package/backend/dist/src/llm-responses/llm-responses.service.js.map +1 -1
  23. package/backend/dist/src/seeding/data/context-templates/{pr-description.d.ts → open-pr-command.d.ts} +1 -1
  24. package/backend/dist/src/seeding/data/context-templates/{pr-description.js → open-pr-command.js} +22 -2
  25. package/backend/dist/src/seeding/data/context-templates/open-pr-command.js.map +1 -0
  26. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.d.ts +1 -1
  27. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.js +0 -2
  28. package/backend/dist/src/seeding/data/system-prompts/default_master-agent.js.map +1 -1
  29. package/backend/dist/src/session-inputs/session-inputs.module.js +0 -2
  30. package/backend/dist/src/session-inputs/session-inputs.module.js.map +1 -1
  31. package/backend/dist/src/session-inputs/session-inputs.service.d.ts +1 -3
  32. package/backend/dist/src/session-inputs/session-inputs.service.js +3 -10
  33. package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
  34. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  35. package/package.json +1 -1
  36. package/backend/dist/src/application-state/dto/set-orchestration-timeout.dto.d.ts +0 -3
  37. package/backend/dist/src/application-state/dto/set-orchestration-timeout.dto.js +0 -21
  38. package/backend/dist/src/application-state/dto/set-orchestration-timeout.dto.js.map +0 -1
  39. package/backend/dist/src/orchestration/dto/orchestration.dto.d.ts +0 -13
  40. package/backend/dist/src/orchestration/dto/orchestration.dto.js +0 -50
  41. package/backend/dist/src/orchestration/dto/orchestration.dto.js.map +0 -1
  42. package/backend/dist/src/orchestration/orchestration-fs.service.d.ts +0 -19
  43. package/backend/dist/src/orchestration/orchestration-fs.service.js +0 -158
  44. package/backend/dist/src/orchestration/orchestration-fs.service.js.map +0 -1
  45. package/backend/dist/src/orchestration/orchestration-parser.service.d.ts +0 -5
  46. package/backend/dist/src/orchestration/orchestration-parser.service.js +0 -34
  47. package/backend/dist/src/orchestration/orchestration-parser.service.js.map +0 -1
  48. package/backend/dist/src/orchestration/orchestration.controller.d.ts +0 -27
  49. package/backend/dist/src/orchestration/orchestration.controller.js +0 -155
  50. package/backend/dist/src/orchestration/orchestration.controller.js.map +0 -1
  51. package/backend/dist/src/orchestration/orchestration.module.d.ts +0 -2
  52. package/backend/dist/src/orchestration/orchestration.module.js +0 -41
  53. package/backend/dist/src/orchestration/orchestration.module.js.map +0 -1
  54. package/backend/dist/src/orchestration/orchestration.service.d.ts +0 -37
  55. package/backend/dist/src/orchestration/orchestration.service.js +0 -276
  56. package/backend/dist/src/orchestration/orchestration.service.js.map +0 -1
  57. package/backend/dist/src/orchestration/orchestration.types.d.ts +0 -28
  58. package/backend/dist/src/orchestration/orchestration.types.js +0 -20
  59. package/backend/dist/src/orchestration/orchestration.types.js.map +0 -1
  60. package/backend/dist/src/seeding/data/context-templates/pr-description.js.map +0 -1
@@ -1,276 +0,0 @@
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 sessions_service_1 = require("../sessions/sessions.service");
25
- const orchestration_parser_service_1 = require("./orchestration-parser.service");
26
- let OrchestrationService = OrchestrationService_1 = class OrchestrationService {
27
- constructor(fsService, appStateService, eventsGateway, parserService, sessionInputsService, sessionsService) {
28
- this.fsService = fsService;
29
- this.appStateService = appStateService;
30
- this.eventsGateway = eventsGateway;
31
- this.parserService = parserService;
32
- this.sessionInputsService = sessionInputsService;
33
- this.sessionsService = sessionsService;
34
- this.logger = new common_1.Logger(OrchestrationService_1.name);
35
- this.activeRun = null;
36
- this.timeoutTimer = null;
37
- }
38
- async onModuleInit() {
39
- await this.loadStateFromPersistence();
40
- }
41
- async loadStateFromPersistence() {
42
- const persistedState = await this.appStateService.getOrchestrationRunState();
43
- if (persistedState) {
44
- this.logger.log('Loading persisted orchestration state:', persistedState);
45
- if ([
46
- orchestration_types_1.OrchestrationStatus.RUNNING,
47
- orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE,
48
- ].includes(persistedState.status)) {
49
- this.logger.warn(`Server restarted during an active orchestration run (${persistedState.runId}). Setting status to FAILED.`);
50
- persistedState.status = orchestration_types_1.OrchestrationStatus.FAILED;
51
- persistedState.error =
52
- 'Orchestration failed due to an unexpected server restart.';
53
- this.activeRun = persistedState;
54
- await this.persistState();
55
- this.emitStatus();
56
- }
57
- else if ([
58
- orchestration_types_1.OrchestrationStatus.COMPLETED,
59
- orchestration_types_1.OrchestrationStatus.FAILED,
60
- orchestration_types_1.OrchestrationStatus.STOPPED,
61
- ].includes(persistedState.status)) {
62
- this.activeRun = persistedState;
63
- this.emitStatus();
64
- }
65
- }
66
- }
67
- async setState(status, newState) {
68
- if (this.activeRun) {
69
- this.activeRun.status = status;
70
- Object.assign(this.activeRun, newState);
71
- if (status === orchestration_types_1.OrchestrationStatus.IDLE) {
72
- this.activeRun = null;
73
- await this.appStateService.setOrchestrationRunState(null);
74
- if (this.timeoutTimer)
75
- clearTimeout(this.timeoutTimer);
76
- }
77
- else {
78
- await this.persistState();
79
- }
80
- this.emitStatus();
81
- }
82
- else if (status !== orchestration_types_1.OrchestrationStatus.IDLE) {
83
- this.logger.warn(`Cannot set status to ${status} without an active run.`);
84
- }
85
- }
86
- async persistState() {
87
- await this.appStateService.setOrchestrationRunState(this.activeRun);
88
- }
89
- emitStatus() {
90
- this.eventsGateway.sendToAll('orchestration_status_update', this.activeRun);
91
- }
92
- log(message) {
93
- if (!this.activeRun)
94
- return;
95
- this.logger.log(`[Run ${this.activeRun.runId}] ${message}`);
96
- this.activeRun.log.push(`${new Date().toISOString()} - ${message}`);
97
- this.eventsGateway.sendToAll('orchestration_log', { message });
98
- }
99
- getActiveRun() {
100
- return this.activeRun;
101
- }
102
- async start(dto) {
103
- if (this.activeRun) {
104
- if (this.activeRun.scriptName === dto.scriptName &&
105
- this.activeRun.status === orchestration_types_1.OrchestrationStatus.STOPPED) {
106
- this.log('Resuming stopped orchestration.');
107
- this.execute().catch((error) => this.fail(error.message));
108
- return;
109
- }
110
- throw new common_1.BadRequestException(`An orchestration is already running or paused: "${this.activeRun.scriptName}" is in state "${this.activeRun.status}".`);
111
- }
112
- await this.fsService.cloneScriptForRun(dto.scriptName);
113
- const runScriptContent = await this.fsService.readRunScript(dto.scriptName);
114
- const initialChunks = await this.parserService.parseScript(runScriptContent);
115
- const timeoutMs = await this.appStateService.getOrchestrationTimeoutMs();
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: initialChunks.length,
124
- waitStartTime: null,
125
- waitingOnInputId: null,
126
- error: null,
127
- log: [],
128
- timeoutMs,
129
- };
130
- await this.persistState();
131
- this.log(`Orchestration started in ${dto.mode} mode with ${initialChunks.length} total steps. Timeout is ${timeoutMs / 1000}s.`);
132
- this.emitStatus();
133
- this.execute().catch((error) => {
134
- this.logger.error(`Unhandled error in orchestration execution: ${error.message}`, error.stack);
135
- this.fail(`Unhandled error: ${error.message}`);
136
- });
137
- }
138
- async execute() {
139
- if (!this.activeRun)
140
- return;
141
- if (this.activeRun.status === orchestration_types_1.OrchestrationStatus.STOPPING) {
142
- this.log('Execution loop halted due to STOPPING state.');
143
- this.setState(orchestration_types_1.OrchestrationStatus.STOPPED);
144
- return;
145
- }
146
- const { scriptName, mode, sessionId } = this.activeRun;
147
- const runScriptContent = await this.fsService.readRunScript(scriptName);
148
- const chunks = await this.parserService.parseScript(runScriptContent);
149
- if (chunks.length === 0) {
150
- this.log('Orchestration completed successfully: No more chunks to process.');
151
- this.setState(orchestration_types_1.OrchestrationStatus.COMPLETED);
152
- return;
153
- }
154
- const nextPrompt = chunks[0];
155
- const session = await this.sessionsService.findOne(sessionId);
156
- try {
157
- const totalSteps = this.activeRun.totalSteps;
158
- const completedSteps = totalSteps - chunks.length;
159
- this.activeRun.currentStep = completedSteps + 1;
160
- this.setState(orchestration_types_1.OrchestrationStatus.RUNNING, {
161
- currentStep: this.activeRun.currentStep,
162
- });
163
- this.log(`Executing step ${this.activeRun.currentStep}/${totalSteps}: ${nextPrompt.substring(0, 100)}...`);
164
- const existingInputsCount = session.sessionInputs?.length || 0;
165
- const isFirstPromptInSession = existingInputsCount === 0;
166
- const context_template_id = isFirstPromptInSession
167
- ? session.default_initial_context_template_id
168
- : session.default_followup_context_template_id;
169
- this.log(`Session has ${existingInputsCount} existing inputs. Using ${isFirstPromptInSession ? 'initial' : 'follow-up'} context template.`);
170
- const newSessionInput = await this.sessionInputsService.create(sessionId, {
171
- user_prompt: nextPrompt,
172
- execution_strategy: mode === orchestration_types_1.OrchestrationMode.AUTO ? 'auto_apply' : 'review_first',
173
- context_template_id: context_template_id,
174
- });
175
- this.onPromptPrepared(newSessionInput.id);
176
- if (mode === orchestration_types_1.OrchestrationMode.INTERACTIVE) {
177
- this.setState(orchestration_types_1.OrchestrationStatus.PAUSED_INTERACTIVE);
178
- }
179
- }
180
- catch (error) {
181
- await this.fail(error.message);
182
- }
183
- }
184
- onPromptPrepared(inputId) {
185
- if (this.activeRun &&
186
- (this.activeRun.status === orchestration_types_1.OrchestrationStatus.RUNNING ||
187
- this.activeRun.status === orchestration_types_1.OrchestrationStatus.PAUSED_INTERACTIVE)) {
188
- this.logger.log(`[onPromptPrepared] Prompt prepared for input ${inputId}. Awaiting LLM response.`);
189
- this.setState(orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE, {
190
- waitingOnInputId: inputId,
191
- waitStartTime: Date.now(),
192
- });
193
- this.timeoutTimer = setTimeout(() => {
194
- this.fail('Orchestration timed out waiting for LLM response.');
195
- }, this.activeRun.timeoutMs);
196
- }
197
- else {
198
- this.logger.warn(`[onPromptPrepared] Called but active run status is not 'RUNNING' or 'PAUSED_INTERACTIVE'. Current status: ${this.activeRun?.status}`);
199
- }
200
- }
201
- async stop() {
202
- if (this.activeRun &&
203
- (this.activeRun.status === orchestration_types_1.OrchestrationStatus.RUNNING ||
204
- this.activeRun.status === orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE)) {
205
- this.log('Graceful stop requested.');
206
- if (this.timeoutTimer)
207
- clearTimeout(this.timeoutTimer);
208
- this.setState(orchestration_types_1.OrchestrationStatus.STOPPING);
209
- }
210
- }
211
- async proceed() {
212
- if (this.activeRun &&
213
- this.activeRun.status === orchestration_types_1.OrchestrationStatus.PAUSED_INTERACTIVE) {
214
- this.log('Proceeding to next step...');
215
- await this.fsService.consumeNextChunk(this.activeRun.scriptName);
216
- this.execute().catch((e) => this.fail(e.message));
217
- }
218
- }
219
- async emergencyStop() {
220
- if (this.activeRun) {
221
- this.log('Emergency stop triggered!');
222
- if (this.timeoutTimer)
223
- clearTimeout(this.timeoutTimer);
224
- this.setState(orchestration_types_1.OrchestrationStatus.FAILED, {
225
- error: 'Forcefully stopped by user.',
226
- });
227
- }
228
- }
229
- async clearActiveRun() {
230
- if (this.activeRun) {
231
- this.log('Clearing active run state.');
232
- this.setState(orchestration_types_1.OrchestrationStatus.IDLE);
233
- }
234
- }
235
- async resumeFromInput(inputId) {
236
- this.log(`[resumeFromInput] Attempting to resume for completed input ID: ${inputId}`);
237
- if (!this.activeRun) {
238
- this.logger.warn('[resumeFromInput] Cannot resume, no active run.');
239
- return;
240
- }
241
- if (this.activeRun.status !== orchestration_types_1.OrchestrationStatus.WAITING_FOR_LLM_RESPONSE) {
242
- this.logger.warn(`[resumeFromInput] Cannot resume, status is '${this.activeRun.status}', not 'waiting_for_llm_response'.`);
243
- return;
244
- }
245
- if (this.activeRun.waitingOnInputId !== inputId) {
246
- this.logger.warn(`[resumeFromInput] Mismatched input ID. Expected '${this.activeRun.waitingOnInputId}', but got '${inputId}'.`);
247
- return;
248
- }
249
- if (this.timeoutTimer)
250
- clearTimeout(this.timeoutTimer);
251
- this.log(`[resumeFromInput] Resuming orchestration after receiving response for ${inputId}`);
252
- await this.fsService.consumeNextChunk(this.activeRun.scriptName);
253
- this.log(`[resumeFromInput] Re-triggering execution loop.`);
254
- this.execute().catch((e) => this.fail(e.message));
255
- }
256
- async fail(error) {
257
- if (this.activeRun) {
258
- this.logger.error(`Orchestration failed: ${error}`);
259
- if (this.timeoutTimer)
260
- clearTimeout(this.timeoutTimer);
261
- this.setState(orchestration_types_1.OrchestrationStatus.FAILED, { error });
262
- }
263
- }
264
- };
265
- exports.OrchestrationService = OrchestrationService;
266
- exports.OrchestrationService = OrchestrationService = OrchestrationService_1 = __decorate([
267
- (0, common_1.Injectable)({ scope: common_1.Scope.DEFAULT }),
268
- __param(4, (0, common_1.Inject)((0, common_1.forwardRef)(() => session_inputs_service_1.SessionInputsService))),
269
- __metadata("design:paramtypes", [orchestration_fs_service_1.OrchestrationFsService,
270
- application_state_service_1.ApplicationStateService,
271
- events_gateway_1.EventsGateway,
272
- orchestration_parser_service_1.OrchestrationParserService,
273
- session_inputs_service_1.SessionInputsService,
274
- sessions_service_1.SessionsService])
275
- ], OrchestrationService);
276
- //# sourceMappingURL=orchestration.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"orchestration.service.js","sourceRoot":"","sources":["../../../src/orchestration/orchestration.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,yEAAoE;AACpE,8FAAyF;AACzF,+DAI+B;AAE/B,mCAAoC;AACpC,6DAAyD;AACzD,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
- WAITING_FOR_LLM_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
- timeoutMs: number;
28
- }
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pr-description.js","sourceRoot":"","sources":["../../../../../src/seeding/data/context-templates/pr-description.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG,gBAAgB,CAAC;AACjC,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sGAgCsE,CAAC"}