repoburg 1.3.134 → 1.3.135
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/.playwright-mcp/console-2026-05-14T23-58-12-858Z.log +28 -0
- package/.playwright-mcp/console-2026-05-15T00-15-00-760Z.log +81 -0
- package/.playwright-mcp/page-2026-05-14T23-58-13-064Z.yml +3 -0
- package/.playwright-mcp/page-2026-05-14T23-58-33-500Z.yml +1561 -0
- package/.playwright-mcp/page-2026-05-15T00-15-00-945Z.yml +3 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.d.ts +18 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js +224 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.d.ts +20 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js +309 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.d.ts +19 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js +249 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.d.ts +17 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js +227 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.d.ts +18 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js +246 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.d.ts +19 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js +297 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.d.ts +27 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js +493 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.d.ts +20 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js +313 -0
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js.map +1 -0
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +41 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
- package/backend/dist/src/seeding/data/sub-agents/config-manager.d.ts +4 -0
- package/backend/dist/src/seeding/data/sub-agents/config-manager.js +25 -0
- package/backend/dist/src/seeding/data/sub-agents/config-manager.js.map +1 -0
- package/backend/dist/src/seeding/data/system-prompts/config-manager-agent.d.ts +3 -0
- package/backend/dist/src/seeding/data/system-prompts/config-manager-agent.js +78 -0
- package/backend/dist/src/seeding/data/system-prompts/config-manager-agent.js.map +1 -0
- package/backend/dist/src/system-prompts/system-prompts.service.js +8 -0
- package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,313 @@
|
|
|
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 ManageToolHooksHandler_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ManageToolHooksHandler = void 0;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const tool_hooks_service_1 = require("../../tool-hooks/tool-hooks.service");
|
|
16
|
+
let ManageToolHooksHandler = ManageToolHooksHandler_1 = class ManageToolHooksHandler {
|
|
17
|
+
constructor(toolHooksService) {
|
|
18
|
+
this.toolHooksService = toolHooksService;
|
|
19
|
+
this.toolName = 'manage_tool_hooks';
|
|
20
|
+
this.logger = new common_1.Logger(ManageToolHooksHandler_1.name);
|
|
21
|
+
}
|
|
22
|
+
getMetadata() {
|
|
23
|
+
return {
|
|
24
|
+
name: this.toolName,
|
|
25
|
+
description: 'Manage RepoBurg tool hooks — custom scripts that run before or after tool execution to validate, modify, or log actions.',
|
|
26
|
+
arguments: [
|
|
27
|
+
{
|
|
28
|
+
name: 'action',
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'Operation: list|create|update|delete|list_scripts|create_script|test',
|
|
31
|
+
required: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'id',
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'UUID of the tool hook (required for update/delete)',
|
|
37
|
+
required: false,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'data',
|
|
41
|
+
type: 'object',
|
|
42
|
+
description: 'Fields for create/update. Keys: tool_name (required for create, e.g. "create_file"), timing ("before"|"after", required for create), script_filename (required for create), is_active (boolean).',
|
|
43
|
+
required: false,
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'filename',
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'For create_script/test: the script filename (e.g. "my-hook.ts")',
|
|
49
|
+
required: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'content',
|
|
53
|
+
type: 'string',
|
|
54
|
+
description: 'For create_script: the script content (TypeScript)',
|
|
55
|
+
required: false,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'payload',
|
|
59
|
+
type: 'object',
|
|
60
|
+
description: 'For test: the test payload to pass to the hook script',
|
|
61
|
+
required: false,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
getDefinition() {
|
|
67
|
+
return `## manage_tool_hooks
|
|
68
|
+
|
|
69
|
+
Manage RepoBurg tool hooks — custom TypeScript scripts that run before or after tool execution. Hooks allow extending RepoBurg's behavior without modifying core code. Use hooks for validation, logging, or post-processing.
|
|
70
|
+
|
|
71
|
+
### Actions:
|
|
72
|
+
|
|
73
|
+
- **list** — List all tool hook configurations
|
|
74
|
+
- **create** — Create a new hook configuration. Provide \`data\` with: tool_name (required), timing ("before"|"after", required), script_filename (required), is_active (default true)
|
|
75
|
+
- **update** — Update a hook configuration. Provide \`id\` and \`data\` with fields to change
|
|
76
|
+
- **delete** — Delete a hook configuration by ID
|
|
77
|
+
- **list_scripts** — List available hook script files in .repoburg/hooks/
|
|
78
|
+
- **create_script** — Create a new hook script file. Provide \`filename\` and \`content\` (TypeScript code)
|
|
79
|
+
- **test** — Test a hook script with a sample payload. Provide \`filename\` and \`payload\`
|
|
80
|
+
|
|
81
|
+
### Parameters:
|
|
82
|
+
- **action** (required): Operation to perform
|
|
83
|
+
- **id** (optional): UUID of the hook configuration
|
|
84
|
+
- **data** (optional): Object with hook fields
|
|
85
|
+
- **filename** (optional): Script filename for create_script/test
|
|
86
|
+
- **content** (optional): Script content for create_script
|
|
87
|
+
- **payload** (optional): Test payload for test action
|
|
88
|
+
|
|
89
|
+
### Examples:
|
|
90
|
+
|
|
91
|
+
List all hooks:
|
|
92
|
+
\`\`\`typescript
|
|
93
|
+
tool: manage_tool_hooks
|
|
94
|
+
args: { action: "list" }
|
|
95
|
+
\`\`\`
|
|
96
|
+
|
|
97
|
+
Create a hook configuration:
|
|
98
|
+
\`\`\`typescript
|
|
99
|
+
tool: manage_tool_hooks
|
|
100
|
+
args: { action: "create", data: { tool_name: "create_file", timing: "before", script_filename: "my-validator.ts", is_active: true } }
|
|
101
|
+
\`\`\`
|
|
102
|
+
|
|
103
|
+
Create a hook script:
|
|
104
|
+
\`\`\`typescript
|
|
105
|
+
tool: manage_tool_hooks
|
|
106
|
+
args: { action: "create_script", filename: "my-validator.ts", content: "export default async function(context) { return { should_halt_plan: false }; }" }
|
|
107
|
+
\`\`\``;
|
|
108
|
+
}
|
|
109
|
+
async execute(args, _context) {
|
|
110
|
+
const { action } = args;
|
|
111
|
+
try {
|
|
112
|
+
switch (action) {
|
|
113
|
+
case 'list':
|
|
114
|
+
return await this.handleList();
|
|
115
|
+
case 'create':
|
|
116
|
+
return await this.handleCreate(args.data);
|
|
117
|
+
case 'update':
|
|
118
|
+
return await this.handleUpdate(args.id, args.data);
|
|
119
|
+
case 'delete':
|
|
120
|
+
return await this.handleDelete(args.id);
|
|
121
|
+
case 'list_scripts':
|
|
122
|
+
return await this.handleListScripts();
|
|
123
|
+
case 'create_script':
|
|
124
|
+
return await this.handleCreateScript(args.filename, args.content);
|
|
125
|
+
case 'test':
|
|
126
|
+
return await this.handleTest(args.filename, args.payload);
|
|
127
|
+
default:
|
|
128
|
+
return {
|
|
129
|
+
status: 'FAILURE',
|
|
130
|
+
summary: `Unknown action "${action}". Valid actions: list, create, update, delete, list_scripts, create_script, test`,
|
|
131
|
+
error_message: `Unknown action: ${action}`,
|
|
132
|
+
execution_log: {
|
|
133
|
+
output: '',
|
|
134
|
+
error_message: `Unknown action: ${action}`,
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
this.logger.error(`manage_tool_hooks error: ${error.message}`, error.stack);
|
|
141
|
+
return {
|
|
142
|
+
status: 'FAILURE',
|
|
143
|
+
summary: `Failed to ${action} tool hook: ${error.message}`,
|
|
144
|
+
error_message: error.message,
|
|
145
|
+
execution_log: { output: '', error_message: error.message },
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
async handleList() {
|
|
150
|
+
const hooks = await this.toolHooksService.findAll();
|
|
151
|
+
const summary = hooks.map((h) => ({
|
|
152
|
+
id: h.id,
|
|
153
|
+
tool_name: h.tool_name,
|
|
154
|
+
timing: h.timing,
|
|
155
|
+
script_filename: h.script_filename,
|
|
156
|
+
is_active: h.is_active,
|
|
157
|
+
}));
|
|
158
|
+
return {
|
|
159
|
+
status: 'SUCCESS',
|
|
160
|
+
summary: `Found ${hooks.length} tool hook(s).`,
|
|
161
|
+
execution_log: {
|
|
162
|
+
output: JSON.stringify(summary, null, 2),
|
|
163
|
+
error_message: '',
|
|
164
|
+
},
|
|
165
|
+
persisted_args: {},
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
async handleCreate(data) {
|
|
169
|
+
if (!data || !data.tool_name || !data.timing || !data.script_filename) {
|
|
170
|
+
return {
|
|
171
|
+
status: 'FAILURE',
|
|
172
|
+
summary: 'data.tool_name, data.timing, and data.script_filename are required for create',
|
|
173
|
+
error_message: 'Missing required fields',
|
|
174
|
+
execution_log: { output: '', error_message: 'Missing required fields' },
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
const hook = await this.toolHooksService.create({
|
|
178
|
+
tool_name: data.tool_name,
|
|
179
|
+
timing: data.timing,
|
|
180
|
+
script_filename: data.script_filename,
|
|
181
|
+
is_active: data.is_active ?? true,
|
|
182
|
+
});
|
|
183
|
+
const result = {
|
|
184
|
+
id: hook.id,
|
|
185
|
+
tool_name: hook.tool_name,
|
|
186
|
+
timing: hook.timing,
|
|
187
|
+
script_filename: hook.script_filename,
|
|
188
|
+
};
|
|
189
|
+
return {
|
|
190
|
+
status: 'SUCCESS',
|
|
191
|
+
summary: `Tool hook created for "${hook.tool_name}" (${hook.timing})`,
|
|
192
|
+
execution_log: {
|
|
193
|
+
output: JSON.stringify(result, null, 2),
|
|
194
|
+
error_message: '',
|
|
195
|
+
},
|
|
196
|
+
persisted_args: {},
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
async handleUpdate(id, data) {
|
|
200
|
+
if (!id || !data) {
|
|
201
|
+
return {
|
|
202
|
+
status: 'FAILURE',
|
|
203
|
+
summary: 'id and data are required for update action',
|
|
204
|
+
error_message: 'Missing parameters',
|
|
205
|
+
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
const updateData = {};
|
|
209
|
+
if (data.tool_name !== undefined)
|
|
210
|
+
updateData.tool_name = data.tool_name;
|
|
211
|
+
if (data.timing !== undefined)
|
|
212
|
+
updateData.timing = data.timing;
|
|
213
|
+
if (data.script_filename !== undefined)
|
|
214
|
+
updateData.script_filename = data.script_filename;
|
|
215
|
+
if (data.is_active !== undefined)
|
|
216
|
+
updateData.is_active = data.is_active;
|
|
217
|
+
const hook = await this.toolHooksService.update(id, updateData);
|
|
218
|
+
return {
|
|
219
|
+
status: 'SUCCESS',
|
|
220
|
+
summary: `Tool hook ${id} updated`,
|
|
221
|
+
execution_log: {
|
|
222
|
+
output: JSON.stringify({
|
|
223
|
+
id: hook.id,
|
|
224
|
+
tool_name: hook.tool_name,
|
|
225
|
+
timing: hook.timing,
|
|
226
|
+
is_active: hook.is_active,
|
|
227
|
+
}, null, 2),
|
|
228
|
+
error_message: '',
|
|
229
|
+
},
|
|
230
|
+
persisted_args: {},
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
async handleDelete(id) {
|
|
234
|
+
if (!id) {
|
|
235
|
+
return {
|
|
236
|
+
status: 'FAILURE',
|
|
237
|
+
summary: 'id is required for delete action',
|
|
238
|
+
error_message: 'Missing id',
|
|
239
|
+
execution_log: { output: '', error_message: 'Missing id' },
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
await this.toolHooksService.remove(id);
|
|
243
|
+
return {
|
|
244
|
+
status: 'SUCCESS',
|
|
245
|
+
summary: `Tool hook ${id} deleted`,
|
|
246
|
+
execution_log: {
|
|
247
|
+
output: JSON.stringify({ deleted: true, id }),
|
|
248
|
+
error_message: '',
|
|
249
|
+
},
|
|
250
|
+
persisted_args: {},
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
async handleListScripts() {
|
|
254
|
+
const scripts = await this.toolHooksService.listScripts();
|
|
255
|
+
return {
|
|
256
|
+
status: 'SUCCESS',
|
|
257
|
+
summary: `Found ${scripts.length} hook script(s) in .repoburg/hooks/`,
|
|
258
|
+
execution_log: {
|
|
259
|
+
output: JSON.stringify(scripts, null, 2),
|
|
260
|
+
error_message: '',
|
|
261
|
+
},
|
|
262
|
+
persisted_args: {},
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
async handleCreateScript(filename, content) {
|
|
266
|
+
if (!filename || !content) {
|
|
267
|
+
return {
|
|
268
|
+
status: 'FAILURE',
|
|
269
|
+
summary: 'filename and content are required for create_script action',
|
|
270
|
+
error_message: 'Missing parameters',
|
|
271
|
+
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
await this.toolHooksService.createScript(filename, content);
|
|
275
|
+
return {
|
|
276
|
+
status: 'SUCCESS',
|
|
277
|
+
summary: `Hook script "${filename}" created in .repoburg/hooks/`,
|
|
278
|
+
execution_log: {
|
|
279
|
+
output: JSON.stringify({ created: true, filename }),
|
|
280
|
+
error_message: '',
|
|
281
|
+
},
|
|
282
|
+
persisted_args: {},
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
async handleTest(filename, payload) {
|
|
286
|
+
if (!filename) {
|
|
287
|
+
return {
|
|
288
|
+
status: 'FAILURE',
|
|
289
|
+
summary: 'filename is required for test action',
|
|
290
|
+
error_message: 'Missing filename',
|
|
291
|
+
execution_log: { output: '', error_message: 'Missing filename' },
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
const testPayload = payload ||
|
|
295
|
+
this.toolHooksService.generateSamplePayload('create_file', 'before');
|
|
296
|
+
const result = await this.toolHooksService.testHook(filename, testPayload);
|
|
297
|
+
return {
|
|
298
|
+
status: 'SUCCESS',
|
|
299
|
+
summary: `Hook script "${filename}" test completed`,
|
|
300
|
+
execution_log: {
|
|
301
|
+
output: JSON.stringify(result, null, 2),
|
|
302
|
+
error_message: '',
|
|
303
|
+
},
|
|
304
|
+
persisted_args: {},
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
exports.ManageToolHooksHandler = ManageToolHooksHandler;
|
|
309
|
+
exports.ManageToolHooksHandler = ManageToolHooksHandler = ManageToolHooksHandler_1 = __decorate([
|
|
310
|
+
(0, common_1.Injectable)(),
|
|
311
|
+
__metadata("design:paramtypes", [tool_hooks_service_1.ToolHooksService])
|
|
312
|
+
], ManageToolHooksHandler);
|
|
313
|
+
//# sourceMappingURL=manage-tool-hooks.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manage-tool-hooks.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/manage-tool-hooks.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAQpD,4EAAuE;AAYhE,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAIjC,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAHtD,aAAQ,GAAG,mBAAmB,CAAC;QACvB,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAC;IAEA,CAAC;IAEnE,WAAW;QACT,OAAO;YACL,IAA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AAE,SAAS;YACjB,OAAO,EAAE,gBAAgB,QAAQ,kBAAkB;YACnD,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;gBACvC,aAAa,EAAE,EAAE;aAClB;YACD,cAAc,EAAE,EAAE;SACnB,CAAC;IACJ,CAAC;CACF,CAAA;AApUY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAKoC,qCAAgB;GAJpD,sBAAsB,CAoUlC"}
|
|
@@ -29,6 +29,10 @@ const sub_agents_module_1 = require("../sub-agents/sub-agents.module");
|
|
|
29
29
|
const tool_hooks_module_1 = require("../tool-hooks/tool-hooks.module");
|
|
30
30
|
const syntax_validation_module_1 = require("../syntax-validation/syntax-validation.module");
|
|
31
31
|
const context_generation_module_1 = require("../context-generation/context-generation.module");
|
|
32
|
+
const context_templates_module_1 = require("../context-templates/context-templates.module");
|
|
33
|
+
const context_snippets_module_1 = require("../context-snippets/context-snippets.module");
|
|
34
|
+
const custom_snippets_module_1 = require("../custom-snippets/custom-snippets.module");
|
|
35
|
+
const custom_variables_module_1 = require("../custom-variables/custom-variables.module");
|
|
32
36
|
const create_file_handler_1 = require("./action-handlers/create-file.handler");
|
|
33
37
|
const delete_file_handler_1 = require("./action-handlers/delete-file.handler");
|
|
34
38
|
const overwrite_file_handler_1 = require("./action-handlers/overwrite-file.handler");
|
|
@@ -50,6 +54,14 @@ const ask_user_handler_1 = require("./action-handlers/ask-user.handler");
|
|
|
50
54
|
const get_messages_handler_1 = require("./action-handlers/get-messages.handler");
|
|
51
55
|
const discard_messages_handler_1 = require("./action-handlers/discard-messages.handler");
|
|
52
56
|
const html_final_handler_1 = require("./action-handlers/html-final.handler");
|
|
57
|
+
const manage_system_prompts_handler_1 = require("./action-handlers/manage-system-prompts.handler");
|
|
58
|
+
const manage_context_templates_handler_1 = require("./action-handlers/manage-context-templates.handler");
|
|
59
|
+
const manage_context_snippets_handler_1 = require("./action-handlers/manage-context-snippets.handler");
|
|
60
|
+
const manage_custom_snippets_handler_1 = require("./action-handlers/manage-custom-snippets.handler");
|
|
61
|
+
const manage_custom_variables_handler_1 = require("./action-handlers/manage-custom-variables.handler");
|
|
62
|
+
const manage_sub_agents_handler_1 = require("./action-handlers/manage-sub-agents.handler");
|
|
63
|
+
const manage_mcp_servers_handler_1 = require("./action-handlers/manage-mcp-servers.handler");
|
|
64
|
+
const manage_tool_hooks_handler_1 = require("./action-handlers/manage-tool-hooks.handler");
|
|
53
65
|
const invalid_tool_feedback_hook_1 = require("./hooks/invalid-tool-feedback.hook");
|
|
54
66
|
const frontend_notification_hook_1 = require("./hooks/frontend-notification.hook");
|
|
55
67
|
const follow_up_post_execution_hook_1 = require("./hooks/follow-up-post-execution.hook");
|
|
@@ -76,6 +88,10 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
|
|
|
76
88
|
tool_hooks_module_1.ToolHooksModule,
|
|
77
89
|
syntax_validation_module_1.SyntaxValidationModule,
|
|
78
90
|
context_generation_module_1.ContextGenerationModule,
|
|
91
|
+
context_templates_module_1.ContextTemplatesModule,
|
|
92
|
+
context_snippets_module_1.ContextSnippetsModule,
|
|
93
|
+
custom_snippets_module_1.CustomSnippetsModule,
|
|
94
|
+
custom_variables_module_1.CustomVariablesModule,
|
|
79
95
|
],
|
|
80
96
|
providers: [
|
|
81
97
|
llm_output_parser_service_1.LlmOutputParserService,
|
|
@@ -103,13 +119,21 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
|
|
|
103
119
|
get_messages_handler_1.GetMessagesHandler,
|
|
104
120
|
discard_messages_handler_1.DiscardMessagesHandler,
|
|
105
121
|
html_final_handler_1.HtmlFinalHandler,
|
|
122
|
+
manage_system_prompts_handler_1.ManageSystemPromptsHandler,
|
|
123
|
+
manage_context_templates_handler_1.ManageContextTemplatesHandler,
|
|
124
|
+
manage_context_snippets_handler_1.ManageContextSnippetsHandler,
|
|
125
|
+
manage_custom_snippets_handler_1.ManageCustomSnippetsHandler,
|
|
126
|
+
manage_custom_variables_handler_1.ManageCustomVariablesHandler,
|
|
127
|
+
manage_sub_agents_handler_1.ManageSubAgentsHandler,
|
|
128
|
+
manage_mcp_servers_handler_1.ManageMcpServersHandler,
|
|
129
|
+
manage_tool_hooks_handler_1.ManageToolHooksHandler,
|
|
106
130
|
invalid_tool_feedback_hook_1.InvalidToolFeedbackHook,
|
|
107
131
|
frontend_notification_hook_1.FrontendNotificationHook,
|
|
108
132
|
follow_up_post_execution_hook_1.FollowUpPostExecutionHook,
|
|
109
133
|
yolo_mode_post_execution_hook_1.YoloModePostExecutionHook,
|
|
110
134
|
{
|
|
111
135
|
provide: 'ACTION_HANDLER_REGISTRY',
|
|
112
|
-
useFactory: (createFile, deleteFile, overwriteFile, runCommand, requestContext, final, quickEdit, applyDiff, patch, newSession, writeTodo, executeCode, howto, invokeSubAgent, listSubAgents, getSessionHistory, generateTitle, askUser, getMessages, discardMessages, htmlFinal) => {
|
|
136
|
+
useFactory: (createFile, deleteFile, overwriteFile, runCommand, requestContext, final, quickEdit, applyDiff, patch, newSession, writeTodo, executeCode, howto, invokeSubAgent, listSubAgents, getSessionHistory, generateTitle, askUser, getMessages, discardMessages, htmlFinal, manageSystemPrompts, manageContextTemplates, manageContextSnippets, manageCustomSnippets, manageCustomVariables, manageSubAgents, manageMcpServers, manageToolHooks) => {
|
|
113
137
|
const registry = new Map();
|
|
114
138
|
registry.set(createFile.toolName, createFile);
|
|
115
139
|
registry.set(deleteFile.toolName, deleteFile);
|
|
@@ -132,6 +156,14 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
|
|
|
132
156
|
registry.set(getMessages.toolName, getMessages);
|
|
133
157
|
registry.set(discardMessages.toolName, discardMessages);
|
|
134
158
|
registry.set(htmlFinal.toolName, htmlFinal);
|
|
159
|
+
registry.set(manageSystemPrompts.toolName, manageSystemPrompts);
|
|
160
|
+
registry.set(manageContextTemplates.toolName, manageContextTemplates);
|
|
161
|
+
registry.set(manageContextSnippets.toolName, manageContextSnippets);
|
|
162
|
+
registry.set(manageCustomSnippets.toolName, manageCustomSnippets);
|
|
163
|
+
registry.set(manageCustomVariables.toolName, manageCustomVariables);
|
|
164
|
+
registry.set(manageSubAgents.toolName, manageSubAgents);
|
|
165
|
+
registry.set(manageMcpServers.toolName, manageMcpServers);
|
|
166
|
+
registry.set(manageToolHooks.toolName, manageToolHooks);
|
|
135
167
|
return registry;
|
|
136
168
|
},
|
|
137
169
|
inject: [
|
|
@@ -156,6 +188,14 @@ exports.LlmOrchestrationModule = LlmOrchestrationModule = __decorate([
|
|
|
156
188
|
get_messages_handler_1.GetMessagesHandler,
|
|
157
189
|
discard_messages_handler_1.DiscardMessagesHandler,
|
|
158
190
|
html_final_handler_1.HtmlFinalHandler,
|
|
191
|
+
manage_system_prompts_handler_1.ManageSystemPromptsHandler,
|
|
192
|
+
manage_context_templates_handler_1.ManageContextTemplatesHandler,
|
|
193
|
+
manage_context_snippets_handler_1.ManageContextSnippetsHandler,
|
|
194
|
+
manage_custom_snippets_handler_1.ManageCustomSnippetsHandler,
|
|
195
|
+
manage_custom_variables_handler_1.ManageCustomVariablesHandler,
|
|
196
|
+
manage_sub_agents_handler_1.ManageSubAgentsHandler,
|
|
197
|
+
manage_mcp_servers_handler_1.ManageMcpServersHandler,
|
|
198
|
+
manage_tool_hooks_handler_1.ManageToolHooksHandler,
|
|
159
199
|
],
|
|
160
200
|
},
|
|
161
201
|
{
|
|
@@ -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;
|
|
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;AAC1F,4FAAuF;AACvF,yFAAoF;AACpF,sFAAiF;AACjF,yFAAoF;AAGpF,+EAA0E;AAC1E,+EAA0E;AAC1E,qFAAgF;AAChF,+EAA0E;AAC1E,uFAAkF;AAClF,mEAA+D;AAC/D,6EAAwE;AACxE,6EAAwE;AACxE,mEAA+D;AAC/D,+EAA0E;AAC1E,6EAAwE;AACxE,iFAA4E;AAC5E,mEAA+D;AAC/D,uFAAkF;AAClF,uFAAiF;AACjF,+FAAyF;AACzF,qFAAgF;AAChF,yEAAoE;AACpE,iFAA4E;AAC5E,yFAAoF;AACpF,6EAAwE;AACxE,mGAA6F;AAC7F,yGAAmG;AACnG,uGAAiG;AACjG,qGAA+F;AAC/F,uGAAiG;AACjG,2FAAqF;AACrF,6FAAuF;AACvF,2FAAqF;AAGrF,mFAA6E;AAC7E,mFAA8E;AAC9E,yFAAkF;AAClF,yFAAkF;AAgM3E,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,wDAAsB;iCAAtB,s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,CAAC,eAAe,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;oBACxD,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;oBAC1D,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;oBACxD,OAAO,QAAQ,CAAC;gBAClB,CAAC;gBACD,MAAM,EAAE;oBACN,uCAAiB;oBACjB,uCAAiB;oBACjB,6CAAoB;oBACpB,uCAAiB;oBACjB,+CAAqB;oBACrB,4BAAY;oBACZ,qCAAgB;oBAChB,qCAAgB;oBAChB,4BAAY;oBACZ,uCAAiB;oBACjB,qCAAgB;oBAChB,yCAAkB;oBAClB,4BAAY;oBACZ,+CAAqB;oBACrB,8CAAoB;oBACpB,sDAAwB;oBACxB,6CAAoB;oBACpB,iCAAc;oBACd,yCAAkB;oBAClB,iDAAsB;oBACtB,qCAAgB;oBAChB,0DAA0B;oBAC1B,gEAA6B;oBAC7B,8DAA4B;oBAC5B,4DAA2B;oBAC3B,8DAA4B;oBAC5B,kDAAsB;oBACtB,oDAAuB;oBACvB,kDAAsB;iBACvB;aACF;YACD;gBACE,OAAO,EAAE,sBAAsB;gBAC/B,UAAU,EAAE,CACV,WAAoC,EACpC,oBAA8C,EAC9C,QAAmC,EACnC,QAAmC,EACnC,EAAE;oBAGF,OAAO,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,CAAC,CAAC;gBACjE,CAAC;gBACD,MAAM,EAAE;oBACN,oDAAuB;oBACvB,qDAAwB;oBACxB,yDAAyB;oBACzB,yDAAyB;iBAC1B;aACF;SACF;QACD,OAAO,EAAE;YACP,oDAAuB;YACvB,uCAAiB;YACjB,uDAAyB;YACzB,yBAAyB;SAC1B;KACF,CAAC;GACW,sBAAsB,CAAG"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const name = "Config Manager";
|
|
2
|
+
export declare const description = "Specialized agent for managing RepoBurg configuration \u2014 system prompts, context templates, snippets, variables, sub-agents, MCP servers, and tool hooks.";
|
|
3
|
+
export declare const system_prompt_name = "config-manager-agent";
|
|
4
|
+
export declare const enabled_tools: string[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.enabled_tools = exports.system_prompt_name = exports.description = exports.name = void 0;
|
|
4
|
+
exports.name = 'Config Manager';
|
|
5
|
+
exports.description = 'Specialized agent for managing RepoBurg configuration — system prompts, context templates, snippets, variables, sub-agents, MCP servers, and tool hooks.';
|
|
6
|
+
exports.system_prompt_name = 'config-manager-agent';
|
|
7
|
+
exports.enabled_tools = [
|
|
8
|
+
'request_context',
|
|
9
|
+
'run_command',
|
|
10
|
+
'write_todo',
|
|
11
|
+
'manage_system_prompts',
|
|
12
|
+
'manage_context_templates',
|
|
13
|
+
'manage_context_snippets',
|
|
14
|
+
'manage_custom_snippets',
|
|
15
|
+
'manage_custom_variables',
|
|
16
|
+
'manage_sub_agents',
|
|
17
|
+
'manage_mcp_servers',
|
|
18
|
+
'manage_tool_hooks',
|
|
19
|
+
'final',
|
|
20
|
+
'html_final',
|
|
21
|
+
'ask_user',
|
|
22
|
+
'get_messages',
|
|
23
|
+
'discard_messages',
|
|
24
|
+
];
|
|
25
|
+
//# sourceMappingURL=config-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-manager.js","sourceRoot":"","sources":["../../../../../src/seeding/data/sub-agents/config-manager.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,WAAW,GACtB,0JAA0J,CAAC;AAChJ,QAAA,kBAAkB,GAAG,sBAAsB,CAAC;AAC5C,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,uBAAuB;IACvB,0BAA0B;IAC1B,yBAAyB;IACzB,wBAAwB;IACxB,yBAAyB;IACzB,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,OAAO;IACP,YAAY;IACZ,UAAU;IACV,cAAc;IACd,kBAAkB;CACnB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const name = "Config Manager";
|
|
2
|
+
export declare const enabled_tools: string[];
|
|
3
|
+
export declare const content = "You are a RepoBurg Configuration Manager \u2014 a specialized agent for managing all aspects of the RepoBurg system configuration.\n\n## Role\nYou manage RepoBurg's own configuration: system prompts, context templates, context snippets, custom snippets, custom variables, sub-agents, MCP servers, and tool hooks. Think of you as the admin panel agent.\n\n## Key Principles\n1. **Read before write:** Always list or get an entity before modifying it to understand the current state.\n2. **Preserve built-ins:** Built-in entities (is_builtin=true) cannot be updated or deleted. Duplicate them to create editable copies.\n3. **Be precise:** Use exact UUIDs when referencing entities by ID. Use exact names when referencing by name.\n4. **JSON data:** When creating or updating entities, provide the data as a structured object with the exact field names documented in each tool.\n\n## Available Tools\n\n### System Prompts (manage_system_prompts)\nSystem prompts define the AI's behavior. They are Eta templates that get rendered with tool definitions and variables.\n- Actions: list, get, get_raw, create, update, delete, duplicate, set_default, set_enabled_tools, set_enabled_mcp_tools, toggle_tool, toggle_mcp_tool, preview\n- Key fields: prompt_name, prompt_content (Eta template), is_default, url, followup_token_limit\n\n### Context Templates (manage_context_templates)\nContext templates define how context (files, folders, tools) is assembled for LLM prompts. They use Eta syntax.\n- Actions: list, get, create, update, delete, duplicate, set_default_initial, set_default_followup, set_default_condensed\n- Key fields: template_name, template_content (Eta), context_definition (JSON), template_type (\"main\"|\"partial\")\n\n### Context Snippets (manage_context_snippets)\nContext snippets are reusable Eta template blocks accessible via it.snippets.handle in context templates.\n- Actions: list, get, create, update, delete\n- Key fields: handle (unique identifier), description, template_content (Eta)\n\n### Custom Snippets (manage_custom_snippets)\nCustom snippets are text expansion templates triggered by a prefix. Like VS Code snippets.\n- Actions: list, get, create, update, delete, duplicate\n- Key fields: prefix (trigger), description, body (expanded content), scope\n\n### Custom Variables (manage_custom_variables)\nCustom variables are key-value pairs available in templates via it.variables.KEY.\n- Actions: list, create, update, delete\n- Key fields: key (unique), value, enabled, is_freq_used, order_number\n\n### Sub-Agents (manage_sub_agents)\nSub-agents are specialized agent configurations with their own system prompt, context templates, and enabled tools.\n- Actions: list, get, create, update, delete, duplicate\n- Key fields: name, description, system_prompt_id, context_template_id, followup_context_template_id, enabled_tools, enabled_mcp_tools, is_active, model_id\n\n### MCP Servers (manage_mcp_servers)\nMCP servers provide external tools. Each active server's tools become available to the AI.\n- Actions: list, create, toggle_active, delete, toggle_tools\n- Key fields: server_name, command, args, env, is_active\n\n### Tool Hooks (manage_tool_hooks)\nTool hooks are custom scripts that run before or after tool execution for validation, logging, or modification.\n- Actions: list, create, update, delete, list_scripts, create_script, test\n- Key fields: tool_name, timing (\"before\"|\"after\"), script_filename, is_active\n\n\n";
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.content = exports.enabled_tools = exports.name = void 0;
|
|
4
|
+
exports.name = 'Config Manager';
|
|
5
|
+
exports.enabled_tools = [
|
|
6
|
+
'request_context',
|
|
7
|
+
'run_command',
|
|
8
|
+
'write_todo',
|
|
9
|
+
'manage_system_prompts',
|
|
10
|
+
'manage_context_templates',
|
|
11
|
+
'manage_context_snippets',
|
|
12
|
+
'manage_custom_snippets',
|
|
13
|
+
'manage_custom_variables',
|
|
14
|
+
'manage_sub_agents',
|
|
15
|
+
'manage_mcp_servers',
|
|
16
|
+
'manage_tool_hooks',
|
|
17
|
+
'final',
|
|
18
|
+
'html_final',
|
|
19
|
+
'ask_user',
|
|
20
|
+
'get_messages',
|
|
21
|
+
'discard_messages',
|
|
22
|
+
];
|
|
23
|
+
exports.content = `You are a RepoBurg Configuration Manager — a specialized agent for managing all aspects of the RepoBurg system configuration.
|
|
24
|
+
|
|
25
|
+
## Role
|
|
26
|
+
You manage RepoBurg's own configuration: system prompts, context templates, context snippets, custom snippets, custom variables, sub-agents, MCP servers, and tool hooks. Think of you as the admin panel agent.
|
|
27
|
+
|
|
28
|
+
## Key Principles
|
|
29
|
+
1. **Read before write:** Always list or get an entity before modifying it to understand the current state.
|
|
30
|
+
2. **Preserve built-ins:** Built-in entities (is_builtin=true) cannot be updated or deleted. Duplicate them to create editable copies.
|
|
31
|
+
3. **Be precise:** Use exact UUIDs when referencing entities by ID. Use exact names when referencing by name.
|
|
32
|
+
4. **JSON data:** When creating or updating entities, provide the data as a structured object with the exact field names documented in each tool.
|
|
33
|
+
|
|
34
|
+
## Available Tools
|
|
35
|
+
|
|
36
|
+
### System Prompts (manage_system_prompts)
|
|
37
|
+
System prompts define the AI's behavior. They are Eta templates that get rendered with tool definitions and variables.
|
|
38
|
+
- Actions: list, get, get_raw, create, update, delete, duplicate, set_default, set_enabled_tools, set_enabled_mcp_tools, toggle_tool, toggle_mcp_tool, preview
|
|
39
|
+
- Key fields: prompt_name, prompt_content (Eta template), is_default, url, followup_token_limit
|
|
40
|
+
|
|
41
|
+
### Context Templates (manage_context_templates)
|
|
42
|
+
Context templates define how context (files, folders, tools) is assembled for LLM prompts. They use Eta syntax.
|
|
43
|
+
- Actions: list, get, create, update, delete, duplicate, set_default_initial, set_default_followup, set_default_condensed
|
|
44
|
+
- Key fields: template_name, template_content (Eta), context_definition (JSON), template_type ("main"|"partial")
|
|
45
|
+
|
|
46
|
+
### Context Snippets (manage_context_snippets)
|
|
47
|
+
Context snippets are reusable Eta template blocks accessible via it.snippets.handle in context templates.
|
|
48
|
+
- Actions: list, get, create, update, delete
|
|
49
|
+
- Key fields: handle (unique identifier), description, template_content (Eta)
|
|
50
|
+
|
|
51
|
+
### Custom Snippets (manage_custom_snippets)
|
|
52
|
+
Custom snippets are text expansion templates triggered by a prefix. Like VS Code snippets.
|
|
53
|
+
- Actions: list, get, create, update, delete, duplicate
|
|
54
|
+
- Key fields: prefix (trigger), description, body (expanded content), scope
|
|
55
|
+
|
|
56
|
+
### Custom Variables (manage_custom_variables)
|
|
57
|
+
Custom variables are key-value pairs available in templates via it.variables.KEY.
|
|
58
|
+
- Actions: list, create, update, delete
|
|
59
|
+
- Key fields: key (unique), value, enabled, is_freq_used, order_number
|
|
60
|
+
|
|
61
|
+
### Sub-Agents (manage_sub_agents)
|
|
62
|
+
Sub-agents are specialized agent configurations with their own system prompt, context templates, and enabled tools.
|
|
63
|
+
- Actions: list, get, create, update, delete, duplicate
|
|
64
|
+
- Key fields: name, description, system_prompt_id, context_template_id, followup_context_template_id, enabled_tools, enabled_mcp_tools, is_active, model_id
|
|
65
|
+
|
|
66
|
+
### MCP Servers (manage_mcp_servers)
|
|
67
|
+
MCP servers provide external tools. Each active server's tools become available to the AI.
|
|
68
|
+
- Actions: list, create, toggle_active, delete, toggle_tools
|
|
69
|
+
- Key fields: server_name, command, args, env, is_active
|
|
70
|
+
|
|
71
|
+
### Tool Hooks (manage_tool_hooks)
|
|
72
|
+
Tool hooks are custom scripts that run before or after tool execution for validation, logging, or modification.
|
|
73
|
+
- Actions: list, create, update, delete, list_scripts, create_script, test
|
|
74
|
+
- Key fields: tool_name, timing ("before"|"after"), script_filename, is_active
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
`;
|
|
78
|
+
//# sourceMappingURL=config-manager-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-manager-agent.js","sourceRoot":"","sources":["../../../../../src/seeding/data/system-prompts/config-manager-agent.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG,gBAAgB,CAAC;AACxB,QAAA,aAAa,GAAG;IAC3B,iBAAiB;IACjB,aAAa;IACb,YAAY;IACZ,uBAAuB;IACvB,0BAA0B;IAC1B,yBAAyB;IACzB,wBAAwB;IACxB,yBAAyB;IACzB,mBAAmB;IACnB,oBAAoB;IACpB,mBAAmB;IACnB,OAAO;IACP,YAAY;IACZ,UAAU;IACV,cAAc;IACd,kBAAkB;CACnB,CAAC;AACW,QAAA,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDtB,CAAC"}
|
|
@@ -52,6 +52,14 @@ let SystemPromptsService = class SystemPromptsService {
|
|
|
52
52
|
'generate_title',
|
|
53
53
|
'get_messages',
|
|
54
54
|
'discard_messages',
|
|
55
|
+
'manage_system_prompts',
|
|
56
|
+
'manage_context_templates',
|
|
57
|
+
'manage_context_snippets',
|
|
58
|
+
'manage_custom_snippets',
|
|
59
|
+
'manage_custom_variables',
|
|
60
|
+
'manage_sub_agents',
|
|
61
|
+
'manage_mcp_servers',
|
|
62
|
+
'manage_tool_hooks',
|
|
55
63
|
];
|
|
56
64
|
}
|
|
57
65
|
parseEnabledTools(value) {
|