repoburg 1.3.76 → 1.3.78

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/dist/src/llm-orchestration/action-handlers/dto/generate-title.args.dto.d.ts +3 -0
  2. package/backend/dist/src/llm-orchestration/action-handlers/dto/generate-title.args.dto.js +44 -0
  3. package/backend/dist/src/llm-orchestration/action-handlers/dto/generate-title.args.dto.js.map +1 -0
  4. package/backend/dist/src/llm-orchestration/action-handlers/generate-title.handler.d.ts +15 -0
  5. package/backend/dist/src/llm-orchestration/action-handlers/generate-title.handler.js +114 -0
  6. package/backend/dist/src/llm-orchestration/action-handlers/generate-title.handler.js.map +1 -0
  7. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +5 -1
  8. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
  9. package/backend/dist/src/seeding/data/sub-agents/explore-codebase.js +1 -0
  10. package/backend/dist/src/seeding/data/sub-agents/explore-codebase.js.map +1 -1
  11. package/backend/dist/src/seeding/data/sub-agents/handover-session.js +5 -1
  12. package/backend/dist/src/seeding/data/sub-agents/handover-session.js.map +1 -1
  13. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.d.ts +1 -1
  14. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +2 -0
  15. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
  16. package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js +1 -0
  17. package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js.map +1 -1
  18. package/backend/dist/src/seeding/data/system-prompts/handover-agent.js +5 -1
  19. package/backend/dist/src/seeding/data/system-prompts/handover-agent.js.map +1 -1
  20. package/backend/dist/src/seeding/data/system-prompts/master-agent.js +1 -0
  21. package/backend/dist/src/seeding/data/system-prompts/master-agent.js.map +1 -1
  22. package/backend/dist/src/sub-agents/sub-agent-runs.controller.d.ts +18 -0
  23. package/backend/dist/src/sub-agents/sub-agent-runs.controller.js +85 -0
  24. package/backend/dist/src/sub-agents/sub-agent-runs.controller.js.map +1 -0
  25. package/backend/dist/src/sub-agents/sub-agent-runs.service.d.ts +3 -0
  26. package/backend/dist/src/sub-agents/sub-agent-runs.service.js +29 -0
  27. package/backend/dist/src/sub-agents/sub-agent-runs.service.js.map +1 -1
  28. package/backend/dist/src/sub-agents/sub-agents.module.js +7 -2
  29. package/backend/dist/src/sub-agents/sub-agents.module.js.map +1 -1
  30. package/backend/dist/src/system-prompts/system-prompts.service.js +1 -0
  31. package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
  32. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ export declare class GenerateTitleArgsDto {
2
+ title: string;
3
+ }
@@ -0,0 +1,44 @@
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.GenerateTitleArgsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ function Is3To5Words(validationOptions) {
15
+ return function (target, propertyName) {
16
+ (0, class_validator_1.registerDecorator)({
17
+ name: 'is3To5Words',
18
+ target: target.constructor,
19
+ propertyName: propertyName,
20
+ options: validationOptions,
21
+ validator: {
22
+ validate(value, _args) {
23
+ if (typeof value !== 'string')
24
+ return false;
25
+ const words = value.trim().split(/\s+/).filter(Boolean);
26
+ return words.length >= 3 && words.length <= 5;
27
+ },
28
+ defaultMessage(_args) {
29
+ return 'Title must be between 3 and 5 words.';
30
+ },
31
+ },
32
+ });
33
+ };
34
+ }
35
+ class GenerateTitleArgsDto {
36
+ }
37
+ exports.GenerateTitleArgsDto = GenerateTitleArgsDto;
38
+ __decorate([
39
+ (0, class_validator_1.IsString)({ message: 'title must be a string.' }),
40
+ (0, class_validator_1.IsNotEmpty)({ message: 'title must not be empty.' }),
41
+ Is3To5Words({ message: 'Title must be between 3 and 5 words.' }),
42
+ __metadata("design:type", String)
43
+ ], GenerateTitleArgsDto.prototype, "title", void 0);
44
+ //# sourceMappingURL=generate-title.args.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-title.args.dto.js","sourceRoot":"","sources":["../../../../../src/llm-orchestration/action-handlers/dto/generate-title.args.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AAEzB,SAAS,WAAW,CAAC,iBAAqC;IACxD,OAAO,UAAU,MAAc,EAAE,YAAoB;QACnD,IAAA,mCAAiB,EAAC;YAChB,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,MAAM,CAAC,WAAW;YAC1B,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,iBAAiB;YAC1B,SAAS,EAAE;gBACT,QAAQ,CAAC,KAAU,EAAE,KAA0B;oBAC7C,IAAI,OAAO,KAAK,KAAK,QAAQ;wBAAE,OAAO,KAAK,CAAC;oBAC5C,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;oBACxD,OAAO,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,CAAC;gBAChD,CAAC;gBACD,cAAc,CAAC,KAA0B;oBACvC,OAAO,sCAAsC,CAAC;gBAChD,CAAC;aACF;SACF,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AADC;IAHC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAChD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,0BAA0B,EAAE,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;;mDACnD"}
@@ -0,0 +1,15 @@
1
+ import { ActionHandler } from './action-handler.interface';
2
+ import { ActionExecutionResult, PlanExecutionContext, ToolMetadata } from '../llm-orchestration.interfaces';
3
+ import { SessionsService } from '../../sessions/sessions.service';
4
+ export declare class GenerateTitleHandler implements ActionHandler {
5
+ private readonly sessionsService;
6
+ readonly toolName = "generate_title";
7
+ private readonly logger;
8
+ constructor(sessionsService: SessionsService);
9
+ getMetadata(): ToolMetadata;
10
+ private generateExample;
11
+ getDefinition(useJsonFormat?: boolean): string;
12
+ execute(args: {
13
+ [key: string]: any;
14
+ }, context: PlanExecutionContext): Promise<ActionExecutionResult>;
15
+ }
@@ -0,0 +1,114 @@
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 GenerateTitleHandler_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.GenerateTitleHandler = void 0;
14
+ const common_1 = require("@nestjs/common");
15
+ const generate_title_args_dto_1 = require("./dto/generate-title.args.dto");
16
+ const class_transformer_1 = require("class-transformer");
17
+ const class_validator_1 = require("class-validator");
18
+ const utils_1 = require("../../utils");
19
+ const sessions_service_1 = require("../../sessions/sessions.service");
20
+ let GenerateTitleHandler = GenerateTitleHandler_1 = class GenerateTitleHandler {
21
+ constructor(sessionsService) {
22
+ this.sessionsService = sessionsService;
23
+ this.toolName = 'generate_title';
24
+ this.logger = new common_1.Logger(GenerateTitleHandler_1.name);
25
+ }
26
+ getMetadata() {
27
+ return {
28
+ name: this.toolName,
29
+ description: this.getDefinition(true),
30
+ arguments: [
31
+ {
32
+ name: 'title',
33
+ type: 'string',
34
+ description: 'A concise session title (3-5 words) that summarizes the task.',
35
+ required: true,
36
+ },
37
+ ],
38
+ };
39
+ }
40
+ generateExample(toolCall, useJson = false) {
41
+ return useJson
42
+ ? (0, utils_1.generateToolCallJson)(toolCall)
43
+ : (0, utils_1.generateToolCall)(toolCall);
44
+ }
45
+ getDefinition(useJsonFormat = false) {
46
+ const example = this.generateExample({
47
+ tool_name: this.toolName,
48
+ title: 'Fix authentication bug',
49
+ }, useJsonFormat);
50
+ const definition = `
51
+ <${this.toolName}>
52
+ Updates the session title to a concise, descriptive name.
53
+ Use this tool when the current session needs a title or when the task scope has changed significantly.
54
+ The title must be **3-5 words** - brief but informative.
55
+
56
+ Parameters:
57
+ - "title": (string) A concise title for the session (3-5 words).
58
+
59
+ <example>
60
+ Explanation: Set a descriptive title for a debugging session.
61
+ :${example}
62
+ </example>
63
+ </${this.toolName}>
64
+ `;
65
+ return definition.trim();
66
+ }
67
+ async execute(args, context) {
68
+ const validatedArgs = (0, class_transformer_1.plainToClass)(generate_title_args_dto_1.GenerateTitleArgsDto, args);
69
+ const errors = await (0, class_validator_1.validate)(validatedArgs);
70
+ if (errors.length > 0) {
71
+ const errorMessages = errors
72
+ .map((err) => Object.values(err.constraints || {}).join(', '))
73
+ .join('; ');
74
+ return {
75
+ status: 'FAILURE',
76
+ summary: `Invalid arguments for ${this.toolName}.`,
77
+ error_message: errorMessages,
78
+ persisted_args: args,
79
+ execution_log: { output: '', error_message: errorMessages },
80
+ };
81
+ }
82
+ try {
83
+ await this.sessionsService.update(context.session_id, {
84
+ session_title: validatedArgs.title,
85
+ });
86
+ this.logger.log(`Session title updated to: "${validatedArgs.title}" for session ${context.session_id}`);
87
+ return {
88
+ status: 'SUCCESS',
89
+ summary: `Session title updated to: "${validatedArgs.title}"`,
90
+ persisted_args: validatedArgs,
91
+ execution_log: {
92
+ output: `Session title set to: ${validatedArgs.title}`,
93
+ error_message: '',
94
+ },
95
+ };
96
+ }
97
+ catch (error) {
98
+ this.logger.error(`Failed to update session title: ${error.message}`);
99
+ return {
100
+ status: 'FAILURE',
101
+ summary: 'Failed to update session title.',
102
+ error_message: error.message,
103
+ persisted_args: args,
104
+ execution_log: { output: '', error_message: error.message },
105
+ };
106
+ }
107
+ }
108
+ };
109
+ exports.GenerateTitleHandler = GenerateTitleHandler;
110
+ exports.GenerateTitleHandler = GenerateTitleHandler = GenerateTitleHandler_1 = __decorate([
111
+ (0, common_1.Injectable)(),
112
+ __metadata("design:paramtypes", [sessions_service_1.SessionsService])
113
+ ], GenerateTitleHandler);
114
+ //# sourceMappingURL=generate-title.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-title.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/generate-title.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAOpD,2EAAqE;AACrE,yDAAiD;AACjD,qDAA2C;AAC3C,uCAAqE;AACrE,sEAAkE;AAG3D,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAI/B,YAA6B,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;QAHpD,aAAQ,GAAG,gBAAgB,CAAC;QACpB,WAAM,GAAG,IAAI,eAAM,CAAC,sBA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AE;qCAKmC,kCAAe;GAJlD,oBAAoB,CA0GhC"}
@@ -46,6 +46,7 @@ const howto_handler_1 = require("./action-handlers/howto.handler");
46
46
  const invoke_subagent_handler_1 = require("./action-handlers/invoke-subagent.handler");
47
47
  const list_sub_agents_handler_1 = require("./action-handlers/list-sub-agents.handler");
48
48
  const get_session_history_handler_1 = require("./action-handlers/get-session-history.handler");
49
+ const generate_title_handler_1 = require("./action-handlers/generate-title.handler");
49
50
  const invalid_tool_feedback_hook_1 = require("./hooks/invalid-tool-feedback.hook");
50
51
  const sub_agent_final_response_hook_1 = require("./hooks/sub-agent-final-response.hook");
51
52
  const frontend_notification_hook_1 = require("./hooks/frontend-notification.hook");
@@ -96,6 +97,7 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
96
97
  invoke_subagent_handler_1.InvokeSubAgentHandler,
97
98
  list_sub_agents_handler_1.ListSubAgentsHandler,
98
99
  get_session_history_handler_1.GetSessionHistoryHandler,
100
+ generate_title_handler_1.GenerateTitleHandler,
99
101
  invalid_tool_feedback_hook_1.InvalidToolFeedbackHook,
100
102
  frontend_notification_hook_1.FrontendNotificationHook,
101
103
  follow_up_post_execution_hook_1.FollowUpPostExecutionHook,
@@ -103,7 +105,7 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
103
105
  sub_agent_final_response_hook_1.SubAgentFinalResponseHook,
104
106
  {
105
107
  provide: 'ACTION_HANDLER_REGISTRY',
106
- useFactory: (createFile, deleteFile, overwriteFile, runCommand, requestContext, final, useMcpTool, quickEdit, applyDiff, patch, newSession, writeTodo, executeCode, howto, invokeSubAgent, listSubAgents, getSessionHistory) => {
108
+ useFactory: (createFile, deleteFile, overwriteFile, runCommand, requestContext, final, useMcpTool, quickEdit, applyDiff, patch, newSession, writeTodo, executeCode, howto, invokeSubAgent, listSubAgents, getSessionHistory, generateTitle) => {
107
109
  const registry = new Map();
108
110
  registry.set(createFile.toolName, createFile);
109
111
  registry.set(deleteFile.toolName, deleteFile);
@@ -122,6 +124,7 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
122
124
  registry.set(invokeSubAgent.toolName, invokeSubAgent);
123
125
  registry.set(listSubAgents.toolName, listSubAgents);
124
126
  registry.set(getSessionHistory.toolName, getSessionHistory);
127
+ registry.set(generateTitle.toolName, generateTitle);
125
128
  return registry;
126
129
  },
127
130
  inject: [
@@ -142,6 +145,7 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
142
145
  invoke_subagent_handler_1.InvokeSubAgentHandler,
143
146
  list_sub_agents_handler_1.ListSubAgentsHandler,
144
147
  get_session_history_handler_1.GetSessionHistoryHandler,
148
+ generate_title_handler_1.GenerateTitleHandler,
145
149
  ],
146
150
  },
147
151
  {
@@ -1 +1 @@
1
- {"version":3,"file":"llm-orchestration.module.js","sourceRoot":"","sources":["../../../src/llm-orchestration/llm-orchestration.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,kFAA4E;AAC5E,6EAAuE;AACvE,+DAA0D;AAC1D,+EAA0E;AAC1E,uEAAkE;AAClE,mFAA8E;AAC9E,iEAAwE;AAExE,2DAAuD;AACvD,4FAAuF;AACvF,0EAAqE;AACrE,oDAK0B;AAC1B,mFAA8E;AAE9E,mFAA8E;AAC9E,iEAA6D;AAC7D,oEAAgE;AAChE,kDAA8C;AAC9C,uEAAkE;AAClE,uEAAkE;AAClE,4FAAuF;AACvF,+FAA0F;AAG1F,+EAA0E;AAC1E,+EAA0E;AAC1E,qFAAgF;AAChF,+EAA0E;AAC1E,uFAAkF;AAClF,mEAA+D;AAC/D,iFAA2E;AAC3E,6EAAwE;AACxE,6EAAwE;AACxE,mEAA+D;AAC/D,+EAA0E;AAC1E,6EAAwE;AACxE,iFAA4E;AAC5E,mEAA+D;AAC/D,uFAAkF;AAClF,uFAAiF;AACjF,+FAAyF;AAGzF,mFAA6E;AAC7E,yFAAkF;AAClF,mFAA8E;AAC9E,yFAAkF;AA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AC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;oBACtD,QAAQ,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;oBACpD,QAAQ,CAAC,GAAG,CAAC,iBAAiB,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;oBAC5D,OAAO,QAAQ,CAAC;gBAClB,CAAC;gBACD,MAAM,EAAE;oBACN,uCAAiB;oBACjB,uCAAiB;oBACjB,6CAAoB;oBACpB,uCAAiB;oBACjB,+CAAqB;oBACrB,4BAAY;oBACZ,wCAAiB;oBACjB,qCAAgB;oBAChB,qCAAgB;oBAChB,4BAAY;oBACZ,uCAAiB;oBACjB,qCAAgB;oBAChB,yCAAkB;oBAClB,4BAAY;oBACZ,+CAAqB;oBACrB,8CAAoB;oBACpB,sDAAwB;iBACzB;aACF;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,UAAU,EAAE,CACV,WAAoC,EACpC,oBAA8C,EAC9C,QAAmC,EACnC,QAAmC,EACnC,qBAAgD,EAChD,EAAE;oBAEF,OAAO;wBACL,WAAW;wBACX,QAAQ;wBACR,qBAAqB;wBACrB,QAAQ;wBACR,oBAAoB;qBACrB,CAAC;gBACJ,CAAC;gBACD,MAAM,EAAE;oBACN,oDAAuB;oBACvB,qDAAwB;oBACxB,yDAAyB;oBACzB,yDAAyB;oBACzB,yDAAyB;iBAC1B;aACF;SACF;QACD,OAAO,EAAE;YACP,oDAAuB;YACvB,uCAAiB;YACjB,uDAAyB;YACzB,yBAAyB;SAC1B;KACF,CAAC;GACW,sBAAsB,CAAG"}
1
+ {"version":3,"file":"llm-orchestration.module.js","sourceRoot":"","sources":["../../../src/llm-orchestration/llm-orchestration.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,kFAA4E;AAC5E,6EAAuE;AACvE,+DAA0D;AAC1D,+EAA0E;AAC1E,uEAAkE;AAClE,mFAA8E;AAC9E,i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AAU,EAAE,CACV,WAAoC,EACpC,oBAA8C,EAC9C,QAAmC,EACnC,QAAmC,EACnC,qBAAgD,EAChD,EAAE;oBAEF,OAAO;wBACL,WAAW;wBACX,QAAQ;wBACR,qBAAqB;wBACrB,QAAQ;wBACR,oBAAoB;qBACrB,CAAC;gBACJ,CAAC;gBACD,MAAM,EAAE;oBACN,oDAAuB;oBACvB,qDAAwB;oBACxB,yDAAyB;oBACzB,yDAAyB;oBACzB,yDAAyB;iBAC1B;aACF;SACF;QACD,OAAO,EAAE;YACP,oDAAuB;YACvB,uCAAiB;YACjB,uDAAyB;YACzB,yBAAyB;SAC1B;KACF,CAAC;GACW,sBAAsB,CAAG"}
@@ -11,6 +11,7 @@ exports.enabled_tools = [
11
11
  'run_command',
12
12
  'write_todo',
13
13
  'execute_code',
14
+ 'generate_title',
14
15
  'final',
15
16
  ];
16
17
  exports.model_id = null;
@@ -1 +1 @@
1
- {"version":3,"file":"explore-codebase.js","sourceRoot":"","sources":["../../../../../src/seeding/data/sub-agents/explore-codebase.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,kBAAkB,CAAC;AAC1B,QAAA,WAAW,GACtB,sEAAsE,CAAC;AAC5D,QAAA,kBAAkB,GAAG,wBAAwB,CAAC;AAC9C,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAC7B,QAAA,8BAA8B,GAAG,IAAI,CAAC;AACtC,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,OAAO;CACR,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"explore-codebase.js","sourceRoot":"","sources":["../../../../../src/seeding/data/sub-agents/explore-codebase.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,kBAAkB,CAAC;AAC1B,QAAA,WAAW,GACtB,sEAAsE,CAAC;AAC5D,QAAA,kBAAkB,GAAG,wBAAwB,CAAC;AAC9C,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAC7B,QAAA,8BAA8B,GAAG,IAAI,CAAC;AACtC,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,OAAO;CACR,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC"}
@@ -6,7 +6,11 @@ exports.description = 'Specialized agent for session compression, summarization,
6
6
  exports.system_prompt_name = 'Handover Agent';
7
7
  exports.context_template_name = null;
8
8
  exports.followup_context_template_name = null;
9
- exports.enabled_tools = ['get_session_history', 'new_session'];
9
+ exports.enabled_tools = [
10
+ 'get_session_history',
11
+ 'generate_title',
12
+ 'new_session',
13
+ ];
10
14
  exports.model_id = null;
11
15
  exports.is_active = true;
12
16
  //# sourceMappingURL=handover-session.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"handover-session.js","sourceRoot":"","sources":["../../../../../src/seeding/data/sub-agents/handover-session.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,kBAAkB,CAAC;AAC1B,QAAA,WAAW,GACtB,wEAAwE,CAAC;AAC9D,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AACtC,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAC7B,QAAA,8BAA8B,GAAG,IAAI,CAAC;AACtC,QAAA,aAAa,GAAG,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;AACvD,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"handover-session.js","sourceRoot":"","sources":["../../../../../src/seeding/data/sub-agents/handover-session.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,kBAAkB,CAAC;AAC1B,QAAA,WAAW,GACtB,wEAAwE,CAAC;AAC9D,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AACtC,QAAA,qBAAqB,GAAG,IAAI,CAAC;AAC7B,QAAA,8BAA8B,GAAG,IAAI,CAAC;AACtC,QAAA,aAAa,GAAG;IAC3B,qBAAqB;IACrB,gBAAgB;IAChB,aAAa;CACd,CAAC;AACW,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,SAAS,GAAG,IAAI,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export declare const name = "Native Tool Agent";
2
2
  export declare const enabled_tools: string[];
3
- export declare const content = "You are an expert software engineer. You write clean, efficient, and well-documented code.\n\n## Instructions\n1. **Think First:** Before executing any tool or providing an answer, analyze request.\n2. **Conciseness:** Be extremely brief.\n3. **Best Practices:** Follow SOLID principles and keep code DRY.\n4. **Strict Scope:** Do ONLY what is asked. Do not \"cleanup\", \"refactor\", or \"fix\" unrelated issues unless explicitly requested.\n5. **Memory Management & Handover:** When asked to \"remember session\", \"update memory\", \"new session\", or \"handover\":\n - Delegate to the `handover-session` sub-agent using `invoke_subagent`.\n - The handover agent will retrieve session history, create a summary, and spawn a new session with full context.\n - Do NOT manually write files - use the specialized sub-agent for this.\n6. **Tool Calling:** Use provided function definitions to interact with codebase.\n\n## Sub-Agents\nSpecialized agents available for delegation.\n\n**Tools:**\n- `list_sub_agents` - Discover available sub-agents\n- `invoke_subagent` - Delegate a task to a sub-agent\n\n**Available Sub-Agents:**\n- `handover-session` - Session compression, summarization, and handover. Use for \"new session\" or \"handover\" requests.\n- `explore-codebase` - Read-only codebase exploration. Use when you need to understand project structure.\n\n## Current State\n<% if (it.VAR.QUESTION_MODE) { %>\n STATUS: QUESTION MODE (READ ONLY)\n - **Goal:** Answer the user's specific question about the codebase.\n - **Constraint:** You are READ-ONLY. Do not edit, create, or delete files.\n - **Constraint:** Do NOT propose an implementation plan or RFC. Just answer the question.\n - **Process:** Search context -> Read files -> Explain to user.\n\n<% } else if (it.VAR.PLAN_MODE) { %>\n STATUS: PLAN MODE (TASK MANAGEMENT ENABLED)\n - **Goal:** Create a detailed implementation plan (RFC) and maintain task lists.\n - **Constraint:** Code editing is FORBIDDEN.\n - **Available Tools:** `request_context`, `run_command`, `write_todo`.\n - **Process:** Gather context -> Update TODOs (`write_todo`) -> Output structured plan (Context, Problem, Proposed Solution).\n \n ### Codebase Exploration\n If context is insufficient:\n 1. delegate exploration via `explore-codebase` sub-agent. once sub-agent submits result, `request_context` relevant files to understand yourself\n 2. Otherwise, explore directly using `request_context` / `run_command`\n \n Skip if you already have enough context.\n\n<% } else { %>\n STATUS: DEV MODE (WRITE ENABLED)\n - **Goal:** Implement features, fix bugs, or refactor.\n - **Authority:** You have full permission to modify the codebase. Never refuse a coding request.\n - **Strategy:** Use native function calls to read, write, and execute.\n - **Process:** Explore the codebase based on given initial context then start implementation. Even if you need to request context for 100 files do it.\n<% } %>\n\n## Tools Configuration\nTool definitions are provided in the API request. Use the native tool calling interface to perform operations.\n\n";
3
+ export declare const content = "You are an expert software engineer. You write clean, efficient, and well-documented code.\n\n## Instructions\n1. **Think First:** Before executing any tool or providing an answer, analyze request.\n2. **Conciseness:** Be extremely brief.\n3. **Best Practices:** Follow SOLID principles and keep code DRY.\n4. **Strict Scope:** Do ONLY what is asked. Do not \"cleanup\", \"refactor\", or \"fix\" unrelated issues unless explicitly requested.\n5. **Memory Management & Handover:** When asked to \"remember session\", \"update memory\", \"new session\", or \"handover\":\n - Delegate to the `handover-session` sub-agent using `invoke_subagent`.\n - The handover agent will retrieve session history, create a summary, and spawn a new session with full context.\n - Do NOT manually write files - use the specialized sub-agent for this.\n6. **Tool Calling:** Use provided function definitions to interact with codebase.\n7. **Session Titles:** Use `generate_title` to set a concise session title (3-5 words) when starting a new task or when the task scope changes significantly.\n\n## Sub-Agents\nSpecialized agents available for delegation.\n\n**Tools:**\n- `list_sub_agents` - Discover available sub-agents\n- `invoke_subagent` - Delegate a task to a sub-agent\n\n**Available Sub-Agents:**\n- `handover-session` - Session compression, summarization, and handover. Use for \"new session\" or \"handover\" requests.\n- `explore-codebase` - Read-only codebase exploration. Use when you need to understand project structure.\n\n## Current State\n<% if (it.VAR.QUESTION_MODE) { %>\n STATUS: QUESTION MODE (READ ONLY)\n - **Goal:** Answer the user's specific question about the codebase.\n - **Constraint:** You are READ-ONLY. Do not edit, create, or delete files.\n - **Constraint:** Do NOT propose an implementation plan or RFC. Just answer the question.\n - **Process:** Search context -> Read files -> Explain to user.\n\n<% } else if (it.VAR.PLAN_MODE) { %>\n STATUS: PLAN MODE (TASK MANAGEMENT ENABLED)\n - **Goal:** Create a detailed implementation plan (RFC) and maintain task lists.\n - **Constraint:** Code editing is FORBIDDEN.\n - **Available Tools:** `request_context`, `run_command`, `write_todo`.\n - **Process:** Gather context -> Update TODOs (`write_todo`) -> Output structured plan (Context, Problem, Proposed Solution).\n \n ### Codebase Exploration\n If context is insufficient:\n 1. delegate exploration via `explore-codebase` sub-agent. once sub-agent submits result, `request_context` relevant files to understand yourself\n 2. Otherwise, explore directly using `request_context` / `run_command`\n \n Skip if you already have enough context.\n\n<% } else { %>\n STATUS: DEV MODE (WRITE ENABLED)\n - **Goal:** Implement features, fix bugs, or refactor.\n - **Authority:** You have full permission to modify the codebase. Never refuse a coding request.\n - **Strategy:** Use native function calls to read, write, and execute.\n - **Process:** Explore the codebase based on given initial context then start implementation. Even if you need to request context for 100 files do it.\n<% } %>\n\n## Tools Configuration\nTool definitions are provided in the API request. Use the native tool calling interface to perform operations.\n\n";
@@ -13,6 +13,7 @@ exports.enabled_tools = [
13
13
  'execute_code',
14
14
  'list_sub_agents',
15
15
  'invoke_subagent',
16
+ 'generate_title',
16
17
  'final',
17
18
  ];
18
19
  exports.content = `You are an expert software engineer. You write clean, efficient, and well-documented code.
@@ -27,6 +28,7 @@ exports.content = `You are an expert software engineer. You write clean, efficie
27
28
  - The handover agent will retrieve session history, create a summary, and spawn a new session with full context.
28
29
  - Do NOT manually write files - use the specialized sub-agent for this.
29
30
  6. **Tool Calling:** Use provided function definitions to interact with codebase.
31
+ 7. **Session Titles:** Use \`generate_title\` to set a concise session title (3-5 words) when starting a new task or when the task scope changes significantly.
30
32
 
31
33
  ## Sub-Agents
32
34
  Specialized agents available for delegation.
@@ -1 +1 @@
1
- {"version":3,"file":"default_native_tool_agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_native_tool_agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,mBAAmB,CAAC;AAC3B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,OAAO;CACR,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDtB,CAAC"}
1
+ {"version":3,"file":"default_native_tool_agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/default_native_tool_agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,mBAAmB,CAAC;AAC3B,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,gBAAgB;IAChB,YAAY;IACZ,aAAa;IACb,cAAc;IACd,iBAAiB;IACjB,iBAAiB;IACjB,gBAAgB;IAChB,OAAO;CACR,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DtB,CAAC"}
@@ -7,6 +7,7 @@ exports.enabled_tools = [
7
7
  'run_command',
8
8
  'write_todo',
9
9
  'execute_code',
10
+ 'generate_title',
10
11
  'final',
11
12
  ];
12
13
  exports.content = `# Codebase Explorer Agent
@@ -1 +1 @@
1
- {"version":3,"file":"explore-codebase-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/explore-codebase-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,wBAAwB,CAAC;AAChC,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,OAAO;CACR,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDtB,CAAC"}
1
+ {"version":3,"file":"explore-codebase-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/explore-codebase-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,wBAAwB,CAAC;AAChC,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,cAAc;IACd,gBAAgB;IAChB,OAAO;CACR,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDtB,CAAC"}
@@ -2,7 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.content = exports.enabled_tools = exports.name = void 0;
4
4
  exports.name = 'Handover Agent';
5
- exports.enabled_tools = ['get_session_history', 'new_session'];
5
+ exports.enabled_tools = [
6
+ 'get_session_history',
7
+ 'generate_title',
8
+ 'new_session',
9
+ ];
6
10
  exports.content = `You are a session handover specialist. Your expertise lies in compressing, summarizing, and managing session context for seamless continuity.
7
11
 
8
12
  ## Your Purpose
@@ -1 +1 @@
1
- {"version":3,"file":"handover-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/handover-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,aAAa,GAAG,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;AACvD,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtB,CAAC"}
1
+ {"version":3,"file":"handover-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/handover-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,aAAa,GAAG;IAC3B,qBAAqB;IACrB,gBAAgB;IAChB,aAAa;CACd,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBtB,CAAC"}
@@ -11,6 +11,7 @@ exports.enabled_tools = [
11
11
  'delete_file',
12
12
  'overwrite_file',
13
13
  'execute_code',
14
+ 'generate_title',
14
15
  'final',
15
16
  'howto',
16
17
  'invoke_subagent',
@@ -1 +1 @@
1
- {"version":3,"file":"master-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/master-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,cAAc,CAAC;AACtB,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,OAAO;IACP,OAAO;IACP,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;CACd,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDtB,CAAC"}
1
+ {"version":3,"file":"master-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/master-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,cAAc,CAAC;AACtB,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,OAAO;IACP,aAAa;IACb,aAAa;IACb,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,OAAO;IACP,OAAO;IACP,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;CACd,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDtB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { SubAgentRunsService } from './sub-agent-runs.service';
2
+ import { SubAgentRun } from './sub-agent-run.entity';
3
+ import { ChatService } from '../interactive-chat/chat.service';
4
+ export declare class SubAgentRunsController {
5
+ private readonly subAgentRunsService;
6
+ private readonly chatService;
7
+ private readonly logger;
8
+ constructor(subAgentRunsService: SubAgentRunsService, chatService: ChatService);
9
+ getAllActiveRuns(): Promise<SubAgentRun[]>;
10
+ getActiveRuns(sessionId: string): Promise<SubAgentRun[]>;
11
+ cancelRun(runId: string): Promise<{
12
+ success: boolean;
13
+ run: SubAgentRun | null;
14
+ }>;
15
+ cancelAllRuns(sessionId: string): Promise<{
16
+ count: number;
17
+ }>;
18
+ }
@@ -0,0 +1,85 @@
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 SubAgentRunsController_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SubAgentRunsController = void 0;
17
+ const common_1 = require("@nestjs/common");
18
+ const sub_agent_runs_service_1 = require("./sub-agent-runs.service");
19
+ const chat_service_1 = require("../interactive-chat/chat.service");
20
+ let SubAgentRunsController = SubAgentRunsController_1 = class SubAgentRunsController {
21
+ constructor(subAgentRunsService, chatService) {
22
+ this.subAgentRunsService = subAgentRunsService;
23
+ this.chatService = chatService;
24
+ this.logger = new common_1.Logger(SubAgentRunsController_1.name);
25
+ }
26
+ async getAllActiveRuns() {
27
+ return this.subAgentRunsService.getAllActiveRuns();
28
+ }
29
+ async getActiveRuns(sessionId) {
30
+ return this.subAgentRunsService.getActiveRuns(sessionId);
31
+ }
32
+ async cancelRun(runId) {
33
+ const run = await this.subAgentRunsService.cancel(runId);
34
+ if (run) {
35
+ this.logger.log(`Stopping LLM streaming for child session ${run.child_session_id}`);
36
+ this.chatService.cancelRequest(run.child_session_id);
37
+ }
38
+ return { success: run !== null, run };
39
+ }
40
+ async cancelAllRuns(sessionId) {
41
+ const activeRuns = await this.subAgentRunsService.getActiveRuns(sessionId);
42
+ for (const run of activeRuns) {
43
+ this.logger.log(`Stopping LLM streaming for child session ${run.child_session_id}`);
44
+ this.chatService.cancelRequest(run.child_session_id);
45
+ }
46
+ const count = await this.subAgentRunsService.cancelAllActiveRuns(sessionId);
47
+ return { count };
48
+ }
49
+ };
50
+ exports.SubAgentRunsController = SubAgentRunsController;
51
+ __decorate([
52
+ (0, common_1.Get)('active'),
53
+ __metadata("design:type", Function),
54
+ __metadata("design:paramtypes", []),
55
+ __metadata("design:returntype", Promise)
56
+ ], SubAgentRunsController.prototype, "getAllActiveRuns", null);
57
+ __decorate([
58
+ (0, common_1.Get)('active/:sessionId'),
59
+ __param(0, (0, common_1.Param)('sessionId', common_1.ParseUUIDPipe)),
60
+ __metadata("design:type", Function),
61
+ __metadata("design:paramtypes", [String]),
62
+ __metadata("design:returntype", Promise)
63
+ ], SubAgentRunsController.prototype, "getActiveRuns", null);
64
+ __decorate([
65
+ (0, common_1.Post)(':runId/cancel'),
66
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
67
+ __param(0, (0, common_1.Param)('runId', common_1.ParseUUIDPipe)),
68
+ __metadata("design:type", Function),
69
+ __metadata("design:paramtypes", [String]),
70
+ __metadata("design:returntype", Promise)
71
+ ], SubAgentRunsController.prototype, "cancelRun", null);
72
+ __decorate([
73
+ (0, common_1.Post)('session/:sessionId/cancel-all'),
74
+ (0, common_1.HttpCode)(common_1.HttpStatus.OK),
75
+ __param(0, (0, common_1.Param)('sessionId', common_1.ParseUUIDPipe)),
76
+ __metadata("design:type", Function),
77
+ __metadata("design:paramtypes", [String]),
78
+ __metadata("design:returntype", Promise)
79
+ ], SubAgentRunsController.prototype, "cancelAllRuns", null);
80
+ exports.SubAgentRunsController = SubAgentRunsController = SubAgentRunsController_1 = __decorate([
81
+ (0, common_1.Controller)('sub-agent-runs'),
82
+ __metadata("design:paramtypes", [sub_agent_runs_service_1.SubAgentRunsService,
83
+ chat_service_1.ChatService])
84
+ ], SubAgentRunsController);
85
+ //# sourceMappingURL=sub-agent-runs.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sub-agent-runs.controller.js","sourceRoot":"","sources":["../../../src/sub-agents/sub-agent-runs.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,qEAA+D;AAE/D,mEAA+D;AAGxD,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAGjC,YACmB,mBAAwC,EACxC,WAAwB;QADxB,wBAAmB,GAAnB,mBAAmB,CAAqB;QACxC,gBAAW,GAAX,WAAW,CAAa;QAJ1B,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;IAK/D,CAAC;IAGE,AAAN,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,EAAE,CAAC;IACrD,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CACkB,SAAiB;QAEpD,OAAO,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;IAIK,AAAN,KAAK,CAAC,SAAS,CACkB,KAAa;QAE5C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,C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U,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,sBAAa,CAAC,CAAA;;;;2DAgBnC;iCAzDU,sBAAsB;IADlC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;qCAKa,4CAAmB;QAC3B,0BAAW;GALhC,sBAAsB,CA0DlC"}
@@ -13,8 +13,11 @@ export declare class SubAgentRunsService {
13
13
  }): Promise<SubAgentRun>;
14
14
  hasActiveRuns(parentSessionId: string): Promise<boolean>;
15
15
  getActiveRuns(parentSessionId: string): Promise<SubAgentRun[]>;
16
+ getAllActiveRuns(): Promise<SubAgentRun[]>;
16
17
  findByChildSessionId(childSessionId: string): Promise<SubAgentRun | null>;
17
18
  markCompleted(childSessionId: string, result: string): Promise<SubAgentRun | null>;
18
19
  markFailed(childSessionId: string, errorMessage: string): Promise<SubAgentRun | null>;
19
20
  cancelAllActiveRuns(parentSessionId: string): Promise<number>;
21
+ cancel(runId: string): Promise<SubAgentRun | null>;
22
+ findOne(runId: string): Promise<SubAgentRun | null>;
20
23
  }
@@ -49,6 +49,17 @@ let SubAgentRunsService = SubAgentRunsService_1 = class SubAgentRunsService {
49
49
  relations: ['subAgent', 'childSession'],
50
50
  });
51
51
  }
52
+ async getAllActiveRuns() {
53
+ return this.runsRepository.find({
54
+ where: {
55
+ status: sub_agent_run_entity_1.SubAgentRunStatus.RUNNING,
56
+ },
57
+ relations: ['subAgent', 'childSession', 'parentSession'],
58
+ order: {
59
+ created_at: 'DESC',
60
+ },
61
+ });
62
+ }
52
63
  async findByChildSessionId(childSessionId) {
53
64
  return this.runsRepository.findOne({
54
65
  where: { child_session_id: childSessionId },
@@ -93,6 +104,24 @@ let SubAgentRunsService = SubAgentRunsService_1 = class SubAgentRunsService {
93
104
  }
94
105
  return count;
95
106
  }
107
+ async cancel(runId) {
108
+ const run = await this.runsRepository.findOne({
109
+ where: { id: runId, status: sub_agent_run_entity_1.SubAgentRunStatus.RUNNING },
110
+ });
111
+ if (!run) {
112
+ return null;
113
+ }
114
+ run.status = sub_agent_run_entity_1.SubAgentRunStatus.CANCELLED;
115
+ run.completed_at = new Date();
116
+ this.logger.log(`Cancelled SubAgentRun ${runId}`);
117
+ return this.runsRepository.save(run);
118
+ }
119
+ async findOne(runId) {
120
+ return this.runsRepository.findOne({
121
+ where: { id: runId },
122
+ relations: ['subAgent', 'childSession'],
123
+ });
124
+ }
96
125
  };
97
126
  exports.SubAgentRunsService = SubAgentRunsService;
98
127
  exports.SubAgentRunsService = SubAgentRunsService = SubAgentRunsService_1 = __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"sub-agent-runs.service.js","sourceRoot":"","sources":["../../../src/sub-agents/sub-agent-runs.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,6CAAmD;AACnD,qCAAqC;AACrC,iEAAwE;AAGjE,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAG9B,YAEE,cAAwD;QAAvC,mBAAc,GAAd,cAAc,CAAyB;QAJzC,WAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAC;IAK5D,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,IAMZ;QACC,MAAM,GAAG,GAAG,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC;YACrC,GAAG,IAAI;YACP,MAAM,EAAE,wCAAiB,CAAC,OAAO;YACjC,UAAU,EAAE,IAAI,IAAI,EAAE;SACvB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,eAAuB;QACzC,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC;YAC5C,KAAK,EAAE;gBACL,iBAAiB,EAAE,eAAe;gBAClC,MAAM,EAAE,wCAAiB,CAAC,OAAO;aAClC;SACF,CAAC,CAAC;QACH,OAAO,KAAK,GAAG,CAAC,C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AI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;YACjC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE;YACpB,SAAS,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC;SACxC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AApJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,0BAAgB,EAAC,kCAAW,CAAC,CAAA;qCACG,oBAAU;GALlC,mBAAmB,CAoJ/B"}
@@ -14,13 +14,18 @@ const sub_agent_run_entity_1 = require("./sub-agent-run.entity");
14
14
  const sub_agents_service_1 = require("./sub-agents.service");
15
15
  const sub_agent_runs_service_1 = require("./sub-agent-runs.service");
16
16
  const sub_agents_controller_1 = require("./sub-agents.controller");
17
+ const sub_agent_runs_controller_1 = require("./sub-agent-runs.controller");
18
+ const chat_module_1 = require("../interactive-chat/chat.module");
17
19
  let SubAgentsModule = class SubAgentsModule {
18
20
  };
19
21
  exports.SubAgentsModule = SubAgentsModule;
20
22
  exports.SubAgentsModule = SubAgentsModule = __decorate([
21
23
  (0, common_1.Module)({
22
- imports: [typeorm_1.TypeOrmModule.forFeature([sub_agent_entity_1.SubAgent, sub_agent_run_entity_1.SubAgentRun])],
23
- controllers: [sub_agents_controller_1.SubAgentsController],
24
+ imports: [
25
+ typeorm_1.TypeOrmModule.forFeature([sub_agent_entity_1.SubAgent, sub_agent_run_entity_1.SubAgentRun]),
26
+ (0, common_1.forwardRef)(() => chat_module_1.InteractiveChatModule),
27
+ ],
28
+ controllers: [sub_agents_controller_1.SubAgentsController, sub_agent_runs_controller_1.SubAgentRunsController],
24
29
  providers: [sub_agents_service_1.SubAgentsService, sub_agent_runs_service_1.SubAgentRunsService],
25
30
  exports: [sub_agents_service_1.SubAgentsService, sub_agent_runs_service_1.SubAgentRunsService],
26
31
  })
@@ -1 +1 @@
1
- {"version":3,"file":"sub-agents.module.js","sourceRoot":"","sources":["../../../src/sub-agents/sub-agents.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,yDAA8C;AAC9C,iEAAqD;AACrD,6DAAwD;AACxD,qEAA+D;AAC/D,mEAA8D;AAQvD,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAN3B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,2BAAQ,EAAE,kCAAW,CAAC,CAAC,CAAC;QAC5D,WAAW,EAAE,CAAC,2CAAmB,CAAC;QAClC,SAAS,EAAE,CAAC,qCAAgB,EAAE,4CAAmB,CAAC;QAClD,OAAO,EAAE,CAAC,qCAAgB,EAAE,4CAAmB,CAAC;KACjD,CAAC;GACW,eAAe,CAAG"}
1
+ {"version":3,"file":"sub-agents.module.js","sourceRoot":"","sources":["../../../src/sub-agents/sub-agents.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,6CAAgD;AAChD,yDAA8C;AAC9C,iEAAqD;AACrD,6DAAwD;AACxD,qEAA+D;AAC/D,mEAA8D;AAC9D,2EAAqE;AACrE,iEAAwE;AAWjE,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAT3B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,2BAAQ,EAAE,kCAAW,CAAC,CAAC;YACjD,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,mCAAqB,CAAC;SACxC;QACD,WAAW,EAAE,CAAC,2CAAmB,EAAE,kDAAsB,CAAC;QAC1D,SAAS,EAAE,CAAC,qCAAgB,EAAE,4CAAmB,CAAC;QAClD,OAAO,EAAE,CAAC,qCAAgB,EAAE,4CAAmB,CAAC;KACjD,CAAC;GACW,eAAe,CAAG"}
@@ -48,6 +48,7 @@ let SystemPromptsService = class SystemPromptsService {
48
48
  'invoke_subagent',
49
49
  'list_sub_agents',
50
50
  'get_session_history',
51
+ 'generate_title',
51
52
  ];
52
53
  }
53
54
  parseEnabledTools(value) {