repoburg 1.3.61 → 1.3.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/src/llm-orchestration/hooks/yolo-mode-post-execution.hook.d.ts +3 -1
- package/backend/dist/src/llm-orchestration/hooks/yolo-mode-post-execution.hook.js +9 -3
- package/backend/dist/src/llm-orchestration/hooks/yolo-mode-post-execution.hook.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/backend/package.json +1 -1
- package/package.json +1 -1
|
@@ -4,11 +4,13 @@ import { SessionInput } from '../../core-entities';
|
|
|
4
4
|
import { ApplicationStateService } from '../../application-state/application-state.service';
|
|
5
5
|
import { ChatService } from '../../interactive-chat/chat.service';
|
|
6
6
|
import { SessionInputsService } from '../../session-inputs/session-inputs.service';
|
|
7
|
+
import { SessionsService } from '../../sessions/sessions.service';
|
|
7
8
|
export declare class YoloModePostExecutionHook implements PostExecutionHook {
|
|
8
9
|
private readonly appStateService;
|
|
9
10
|
private readonly chatService;
|
|
10
11
|
private readonly sessionInputsService;
|
|
12
|
+
private readonly sessionsService;
|
|
11
13
|
private readonly logger;
|
|
12
|
-
constructor(appStateService: ApplicationStateService, chatService: ChatService, sessionInputsService: SessionInputsService);
|
|
14
|
+
constructor(appStateService: ApplicationStateService, chatService: ChatService, sessionInputsService: SessionInputsService, sessionsService: SessionsService);
|
|
13
15
|
run(sessionInput: SessionInput, context: PlanExecutionContext): Promise<void>;
|
|
14
16
|
}
|
|
@@ -19,6 +19,7 @@ const gpt_tokenizer_1 = require("gpt-tokenizer");
|
|
|
19
19
|
const application_state_service_1 = require("../../application-state/application-state.service");
|
|
20
20
|
const chat_service_1 = require("../../interactive-chat/chat.service");
|
|
21
21
|
const session_inputs_service_1 = require("../../session-inputs/session-inputs.service");
|
|
22
|
+
const sessions_service_1 = require("../../sessions/sessions.service");
|
|
22
23
|
const FILE_MODIFICATION_ACTIONS = [
|
|
23
24
|
'create_file',
|
|
24
25
|
'overwrite_file',
|
|
@@ -28,10 +29,11 @@ const FILE_MODIFICATION_ACTIONS = [
|
|
|
28
29
|
'patch',
|
|
29
30
|
];
|
|
30
31
|
let YoloModePostExecutionHook = YoloModePostExecutionHook_1 = class YoloModePostExecutionHook {
|
|
31
|
-
constructor(appStateService, chatService, sessionInputsService) {
|
|
32
|
+
constructor(appStateService, chatService, sessionInputsService, sessionsService) {
|
|
32
33
|
this.appStateService = appStateService;
|
|
33
34
|
this.chatService = chatService;
|
|
34
35
|
this.sessionInputsService = sessionInputsService;
|
|
36
|
+
this.sessionsService = sessionsService;
|
|
35
37
|
this.logger = new common_1.Logger(YoloModePostExecutionHook_1.name);
|
|
36
38
|
}
|
|
37
39
|
async run(sessionInput, context) {
|
|
@@ -67,11 +69,12 @@ let YoloModePostExecutionHook = YoloModePostExecutionHook_1 = class YoloModePost
|
|
|
67
69
|
return;
|
|
68
70
|
}
|
|
69
71
|
this.logger.log(`YOLO mode: File modification detected. Triggering "${yoloMessage}" prompt (${tokenCount} tokens).`);
|
|
72
|
+
const session = await this.sessionsService.findOne(sessionInput.session_id);
|
|
70
73
|
const yoloDto = {
|
|
71
74
|
user_prompt: yoloMessage,
|
|
72
75
|
execution_strategy: sessionInput.execution_strategy,
|
|
73
76
|
ad_hoc_context_definition: undefined,
|
|
74
|
-
context_template_id:
|
|
77
|
+
context_template_id: session.default_followup_context_template_id,
|
|
75
78
|
};
|
|
76
79
|
await this.sessionInputsService
|
|
77
80
|
.create(sessionInput.session_id, yoloDto)
|
|
@@ -83,8 +86,11 @@ exports.YoloModePostExecutionHook = YoloModePostExecutionHook;
|
|
|
83
86
|
exports.YoloModePostExecutionHook = YoloModePostExecutionHook = YoloModePostExecutionHook_1 = __decorate([
|
|
84
87
|
(0, common_1.Injectable)(),
|
|
85
88
|
__param(1, (0, common_1.Inject)((0, common_1.forwardRef)(() => chat_service_1.ChatService))),
|
|
89
|
+
__param(2, (0, common_1.Inject)((0, common_1.forwardRef)(() => session_inputs_service_1.SessionInputsService))),
|
|
90
|
+
__param(3, (0, common_1.Inject)((0, common_1.forwardRef)(() => sessions_service_1.SessionsService))),
|
|
86
91
|
__metadata("design:paramtypes", [application_state_service_1.ApplicationStateService,
|
|
87
92
|
chat_service_1.ChatService,
|
|
88
|
-
session_inputs_service_1.SessionInputsService
|
|
93
|
+
session_inputs_service_1.SessionInputsService,
|
|
94
|
+
sessions_service_1.SessionsService])
|
|
89
95
|
], YoloModePostExecutionHook);
|
|
90
96
|
//# sourceMappingURL=yolo-mode-post-execution.hook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yolo-mode-post-execution.hook.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/hooks/yolo-mode-post-execution.hook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwE;AACxE,iDAA4C;AAI5C,iGAA4F;AAC5F,sEAAkE;AAClE,wFAAmF;
|
|
1
|
+
{"version":3,"file":"yolo-mode-post-execution.hook.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/hooks/yolo-mode-post-execution.hook.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwE;AACxE,iDAA4C;AAI5C,iGAA4F;AAC5F,sEAAkE;AAClE,wFAAmF;AACnF,sEAAkE;AAGlE,MAAM,yBAAyB,GAAG;IAChC,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,OAAO;CACR,CAAC;AAGK,IAAM,yBAAyB,iCAA/B,MAAM,yBAAyB;IAGpC,YACmB,eAAwC,EAEzD,WAAyC,EAEzC,oBAA2D,EAE3D,eAAiD;QANhC,oBAAe,GAAf,eAAe,CAAyB;QAExC,gBAAW,GAAX,WAAW,CAAa;QAExB,yBAAoB,GAApB,oBAAoB,CAAsB;QAE1C,oBAAe,GAAf,eAAe,CAAiB;QATlC,WAAM,GAAG,IAAI,eAAM,CAAC,2BAAyB,CAAC,IAAI,CAAC,CAAC;IA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