repoburg 1.3.251 → 1.3.253

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 (90) hide show
  1. package/agent-pane/frontend/dist/assets/{index-DNe6bagG.css → index-DUnfaPeK.css} +1 -1
  2. package/agent-pane/frontend/dist/assets/{index-CBTsbWig.js → index-hYkepxdY.js} +113 -108
  3. package/agent-pane/frontend/dist/index.html +2 -2
  4. package/backend/dist/bin/metadata-validate.ts +66 -31
  5. package/backend/dist/src/bin/metadata-validate.js +49 -26
  6. package/backend/dist/src/bin/metadata-validate.js.map +1 -1
  7. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +1 -37
  8. package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
  9. package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.d.ts +1 -1
  10. package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js +3 -3
  11. package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js.map +1 -1
  12. package/backend/dist/src/mcp/mcp-tools.store.d.ts +56 -0
  13. package/backend/dist/src/mcp/mcp-tools.store.js +280 -0
  14. package/backend/dist/src/mcp/mcp-tools.store.js.map +1 -0
  15. package/backend/dist/src/mcp/mcp.controller.js +1 -1
  16. package/backend/dist/src/mcp/mcp.controller.js.map +1 -1
  17. package/backend/dist/src/mcp/mcp.module.js +2 -1
  18. package/backend/dist/src/mcp/mcp.module.js.map +1 -1
  19. package/backend/dist/src/mcp/mcp.service.d.ts +5 -3
  20. package/backend/dist/src/mcp/mcp.service.js +30 -73
  21. package/backend/dist/src/mcp/mcp.service.js.map +1 -1
  22. package/backend/dist/src/mcp-server/mcp-server.constants.js +0 -9
  23. package/backend/dist/src/mcp-server/mcp-server.constants.js.map +1 -1
  24. package/backend/dist/src/mcp-server/mcp-server.controller.js +1 -1
  25. package/backend/dist/src/mcp-server/mcp-server.controller.js.map +1 -1
  26. package/backend/dist/src/metadata-store/metadata-migration.d.ts +1 -0
  27. package/backend/dist/src/metadata-store/metadata-migration.js +54 -1
  28. package/backend/dist/src/metadata-store/metadata-migration.js.map +1 -1
  29. package/backend/dist/src/metadata-store/metadata-readme.d.ts +1 -1
  30. package/backend/dist/src/metadata-store/metadata-readme.js +1 -1
  31. package/backend/dist/src/metadata-store/metadata-store.module.js +0 -5
  32. package/backend/dist/src/metadata-store/metadata-store.module.js.map +1 -1
  33. package/backend/dist/src/metadata-store/schemas/metadata-schemas.d.ts +6 -2
  34. package/backend/dist/src/metadata-store/schemas/metadata-schemas.js +26 -12
  35. package/backend/dist/src/metadata-store/schemas/metadata-schemas.js.map +1 -1
  36. package/backend/dist/src/metadata-store/store-configs.d.ts +1 -2
  37. package/backend/dist/src/metadata-store/store-configs.js +1 -9
  38. package/backend/dist/src/metadata-store/store-configs.js.map +1 -1
  39. package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js +4 -9
  40. package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js.map +1 -1
  41. package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.d.ts +1 -1
  42. package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js +45 -74
  43. package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js.map +1 -1
  44. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +0 -9
  45. package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
  46. package/backend/dist/src/system-prompts/system-prompts.service.js +0 -9
  47. package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
  48. package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
  49. package/daemon/dist/index.js +0 -0
  50. package/package.json +1 -1
  51. package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -1
  52. package/backend/.env +0 -1
  53. package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.d.ts +0 -20
  54. package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.js +0 -336
  55. package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.js.map +0 -1
  56. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.d.ts +0 -18
  57. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js +0 -237
  58. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js.map +0 -1
  59. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.d.ts +0 -20
  60. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js +0 -326
  61. package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js.map +0 -1
  62. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.d.ts +0 -19
  63. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js +0 -263
  64. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js.map +0 -1
  65. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.d.ts +0 -17
  66. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js +0 -239
  67. package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js.map +0 -1
  68. package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.d.ts +0 -18
  69. package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js +0 -259
  70. package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js.map +0 -1
  71. package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.d.ts +0 -19
  72. package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js +0 -308
  73. package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js.map +0 -1
  74. package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.d.ts +0 -25
  75. package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js +0 -489
  76. package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js.map +0 -1
  77. package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.d.ts +0 -20
  78. package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js +0 -328
  79. package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js.map +0 -1
  80. package/backend/section-modified.txt +0 -1
  81. package/deleted.txt +0 -1
  82. package/miniapp-catalog-modal.png +0 -0
  83. package/miniapp-daemon-e2e-green.png +0 -0
  84. package/miniapp-faz31-codex-green.png +0 -0
  85. package/miniapp-pr-review-green.png +0 -0
  86. package/miniapp-typesafe-verified.png +0 -0
  87. package/miniapp-workspace-scoped.png +0 -0
  88. package/modified.txt +0 -1
  89. package/test-modified.txt +0 -1
  90. package/vscode-serve-web-test.png +0 -0
@@ -1,489 +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 ManageSystemPromptsHandler_1;
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.ManageSystemPromptsHandler = void 0;
14
- const common_1 = require("@nestjs/common");
15
- const core_1 = require("@nestjs/core");
16
- const system_prompts_service_1 = require("../../system-prompts/system-prompts.service");
17
- let ManageSystemPromptsHandler = ManageSystemPromptsHandler_1 = class ManageSystemPromptsHandler {
18
- constructor(moduleRef) {
19
- this.moduleRef = moduleRef;
20
- this.toolName = 'manage_system_prompts';
21
- this.logger = new common_1.Logger(ManageSystemPromptsHandler_1.name);
22
- }
23
- getSystemPromptsService() {
24
- return this.moduleRef.get(system_prompts_service_1.SystemPromptsService, { strict: false });
25
- }
26
- getMetadata() {
27
- return {
28
- name: this.toolName,
29
- description: 'Manage RepoBurg system prompts — the AI behavior configurations that define how agents operate.',
30
- arguments: [
31
- {
32
- name: 'action',
33
- type: 'string',
34
- description: 'Operation: list|get|get_raw|create|update|delete|duplicate|set_default|set_enabled_tools|toggle_tool|preview',
35
- required: true,
36
- },
37
- {
38
- name: 'id',
39
- type: 'string',
40
- description: 'UUID of the system prompt (required for get/get_raw/update/delete/duplicate/set_default/toggle_tool/preview)',
41
- required: false,
42
- },
43
- {
44
- name: 'data',
45
- type: 'object',
46
- description: 'Fields for create/update. Keys: prompt_name, prompt_content (Eta template), is_default, url, followup_token_limit, enabledTools (array of tool names or "all"). For create, prompt_name and prompt_content are required. ALWAYS specify enabledTools — use "all" if unsure.',
47
- required: false,
48
- },
49
- {
50
- name: 'enabled_tools',
51
- type: 'array',
52
- description: 'For set_enabled_tools: array of tool names or "all". Example: ["create_file","overwrite_file"] or "all"',
53
- required: false,
54
- },
55
- {
56
- name: 'tool_name',
57
- type: 'string',
58
- description: 'For toggle_tool: the single tool name to toggle on/off',
59
- required: false,
60
- },
61
- ],
62
- };
63
- }
64
- getDefinition() {
65
- return `## manage_system_prompts
66
-
67
- Manage RepoBurg system prompts — the AI behavior configurations that define how agents operate. Each prompt is an Eta template that gets rendered with tool definitions and variables before being sent to the LLM.
68
-
69
- ### Actions:
70
-
71
- - **list** — List all system prompts (returns id, name, is_default, is_builtin, url)
72
- - **get** — Get full details of a prompt by ID (rendered content with tools injected)
73
- - **get_raw** — Get raw unrendered prompt content by ID
74
- - **create** — Create a new system prompt. Provide \`data\` with fields: prompt_name (required), prompt_content (required), is_default, url, followup_token_limit, enabledTools (array of tool names or "all", default "all"). **Always specify enabledTools when creating a system prompt.** MCP tools are dynamically loaded via list_mcp/list_tools/load_tool — no per-prompt MCP configuration needed.
75
- - **update** — Update an existing prompt. Provide \`id\` and \`data\` with fields to change. Built-in prompts cannot be updated.
76
- - **delete** — Delete a prompt by ID. Built-in prompts cannot be deleted.
77
- - **duplicate** — Duplicate a prompt by ID (works for built-in too). Returns the new copy.
78
- - **set_default** — Set a prompt as the default for new sessions
79
- - **set_enabled_tools** — Set which native tools a prompt allows. Provide \`id\` and \`enabled_tools\` (array of tool names or "all")
80
- - **toggle_tool** — Toggle a single native tool on/off for a prompt. Provide \`id\` and \`tool_name\`
81
- - **preview** — Render a prompt content string with tools injected (no ID needed, provide \`data.prompt_content\`)
82
-
83
- ### Parameters:
84
- - **action** (required): Operation to perform
85
- - **id** (optional): UUID of the system prompt
86
- - **data** (optional): Object with prompt fields for create/update. **When creating, always include enabledTools.**
87
- - **enabled_tools** (optional): Tool names array or "all" for set_enabled_tools
88
- - **tool_name** (optional): Single tool name for toggle_tool
89
-
90
- ### Examples:
91
-
92
- List all prompts:
93
- \`\`\`typescript
94
- tool: manage_system_prompts
95
- args: { action: "list" }
96
- \`\`\`
97
-
98
- Create a new prompt with specific tools:
99
- \`\`\`typescript
100
- tool: manage_system_prompts
101
- args: { action: "create", data: { prompt_name: "Code Reviewer", prompt_content: "You are a code reviewer...", enabledTools: ["request_context", "run_command", "final"] } }
102
- \`\`\`
103
-
104
- Enable specific tools:
105
- \`\`\`typescript
106
- tool: manage_system_prompts
107
- args: { action: "set_enabled_tools", id: "uuid-here", enabled_tools: ["create_file", "overwrite_file", "delete_file", "request_context"] }
108
- \`\`\``;
109
- }
110
- async execute(args, _context) {
111
- const { action } = args;
112
- const systemPromptsService = this.getSystemPromptsService();
113
- try {
114
- let result;
115
- switch (action) {
116
- case 'list':
117
- result = await this.handleList(systemPromptsService);
118
- break;
119
- case 'get':
120
- result = await this.handleGet(systemPromptsService, args.id);
121
- break;
122
- case 'get_raw':
123
- result = await this.handleGetRaw(systemPromptsService, args.id);
124
- break;
125
- case 'create':
126
- result = await this.handleCreate(systemPromptsService, args.data);
127
- break;
128
- case 'update':
129
- result = await this.handleUpdate(systemPromptsService, args.id, args.data);
130
- break;
131
- case 'delete':
132
- result = await this.handleDelete(systemPromptsService, args.id);
133
- break;
134
- case 'duplicate':
135
- result = await this.handleDuplicate(systemPromptsService, args.id);
136
- break;
137
- case 'set_default':
138
- result = await this.handleSetDefault(systemPromptsService, args.id);
139
- break;
140
- case 'set_enabled_tools':
141
- result = await this.handleSetEnabledTools(systemPromptsService, args.id, args.enabled_tools);
142
- break;
143
- case 'toggle_tool':
144
- result = await this.handleToggleTool(systemPromptsService, args.id, args.tool_name);
145
- break;
146
- case 'preview':
147
- result = await this.handlePreview(systemPromptsService, args.data);
148
- break;
149
- default:
150
- result = {
151
- status: 'FAILURE',
152
- summary: `Unknown action "${action}". Valid actions: list, get, get_raw, create, update, delete, duplicate, set_default, set_enabled_tools, toggle_tool, preview`,
153
- error_message: `Unknown action: ${action}`,
154
- execution_log: {
155
- output: '',
156
- error_message: `Unknown action: ${action}`,
157
- },
158
- };
159
- }
160
- if (!result.persisted_args)
161
- result.persisted_args = {};
162
- if (!result.persisted_args.command_string)
163
- result.persisted_args.command_string = `${action}`;
164
- if (!result.persisted_args.reason)
165
- result.persisted_args.reason = result.summary || '';
166
- return result;
167
- }
168
- catch (error) {
169
- this.logger.error(`manage_system_prompts error: ${error.message}`, error.stack);
170
- return {
171
- status: 'FAILURE',
172
- summary: `Failed to ${action} system prompt: ${error.message}`,
173
- error_message: error.message,
174
- execution_log: { output: '', error_message: error.message },
175
- };
176
- }
177
- }
178
- async handleList(service) {
179
- const prompts = await service.findAll();
180
- const summary = prompts.map((p) => ({
181
- id: p.id,
182
- prompt_name: p.prompt_name,
183
- is_default: p.is_default,
184
- is_builtin: p.is_builtin,
185
- builtin_key: p.builtin_key,
186
- url: p.url,
187
- followup_token_limit: p.followup_token_limit,
188
- }));
189
- return {
190
- status: 'SUCCESS',
191
- summary: `Found ${prompts.length} system prompt(s).`,
192
- execution_log: {
193
- output: JSON.stringify(summary, null, 2),
194
- error_message: '',
195
- },
196
- persisted_args: {
197
- command_string: 'list',
198
- reason: `Found ${prompts.length} system prompt(s).`,
199
- },
200
- };
201
- }
202
- async handleGetRaw(service, id) {
203
- if (!id) {
204
- return {
205
- status: 'FAILURE',
206
- summary: 'id is required for get_raw action',
207
- error_message: 'Missing id',
208
- execution_log: { output: '', error_message: 'Missing id' },
209
- };
210
- }
211
- const prompt = await service.findOneRaw(id);
212
- const result = {
213
- id: prompt.id,
214
- prompt_name: prompt.prompt_name,
215
- prompt_content: prompt.prompt_content,
216
- is_default: prompt.is_default,
217
- is_builtin: prompt.is_builtin,
218
- builtin_key: prompt.builtin_key,
219
- url: prompt.url,
220
- enabledTools: prompt.enabledTools,
221
- followup_token_limit: prompt.followup_token_limit,
222
- };
223
- return {
224
- status: 'SUCCESS',
225
- summary: `System prompt "${prompt.prompt_name}" (raw)`,
226
- execution_log: {
227
- output: JSON.stringify(result, null, 2),
228
- error_message: '',
229
- },
230
- persisted_args: {
231
- command_string: `get_raw "${prompt.prompt_name}"`,
232
- reason: `Got raw system prompt "${prompt.prompt_name}".`,
233
- },
234
- };
235
- }
236
- async handleGet(service, id) {
237
- if (!id) {
238
- return {
239
- status: 'FAILURE',
240
- summary: 'id is required for get action',
241
- error_message: 'Missing id',
242
- execution_log: { output: '', error_message: 'Missing id' },
243
- };
244
- }
245
- const prompt = await service.findOne(id);
246
- const result = {
247
- id: prompt.id,
248
- prompt_name: prompt.prompt_name,
249
- prompt_content: prompt.prompt_content,
250
- is_default: prompt.is_default,
251
- is_builtin: prompt.is_builtin,
252
- builtin_key: prompt.builtin_key,
253
- url: prompt.url,
254
- enabledTools: prompt.enabledTools,
255
- followup_token_limit: prompt.followup_token_limit,
256
- };
257
- return {
258
- status: 'SUCCESS',
259
- summary: `System prompt "${prompt.prompt_name}"`,
260
- execution_log: {
261
- output: JSON.stringify(result, null, 2),
262
- error_message: '',
263
- },
264
- persisted_args: {
265
- command_string: `get "${prompt.prompt_name}"`,
266
- reason: `Got system prompt "${prompt.prompt_name}".`,
267
- },
268
- };
269
- }
270
- async handleCreate(service, data) {
271
- if (!data || !data.prompt_name || !data.prompt_content) {
272
- return {
273
- status: 'FAILURE',
274
- summary: 'data.prompt_name and data.prompt_content are required for create',
275
- error_message: 'Missing required fields',
276
- execution_log: { output: '', error_message: 'Missing required fields' },
277
- };
278
- }
279
- const createDto = {
280
- prompt_name: data.prompt_name,
281
- prompt_content: data.prompt_content,
282
- url: data.url,
283
- followup_token_limit: data.followup_token_limit,
284
- enabledTools: data.enabledTools,
285
- };
286
- Object.keys(createDto).forEach((k) => createDto[k] === undefined && delete createDto[k]);
287
- const prompt = await service.create(createDto);
288
- const result = {
289
- id: prompt.id,
290
- prompt_name: prompt.prompt_name,
291
- is_default: prompt.is_default,
292
- };
293
- return {
294
- status: 'SUCCESS',
295
- summary: `System prompt "${prompt.prompt_name}" created with ID ${prompt.id}`,
296
- execution_log: {
297
- output: JSON.stringify(result, null, 2),
298
- error_message: '',
299
- },
300
- persisted_args: {
301
- command_string: `create "${prompt.prompt_name}"`,
302
- reason: `System prompt "${prompt.prompt_name}" created with ID ${prompt.id}`,
303
- },
304
- };
305
- }
306
- async handleUpdate(service, id, data) {
307
- if (!id || !data) {
308
- return {
309
- status: 'FAILURE',
310
- summary: 'id and data are required for update action',
311
- error_message: 'Missing parameters',
312
- execution_log: { output: '', error_message: 'Missing parameters' },
313
- };
314
- }
315
- const prompt = await service.update(id, data);
316
- const result = {
317
- id: prompt.id,
318
- prompt_name: prompt.prompt_name,
319
- is_default: prompt.is_default,
320
- };
321
- return {
322
- status: 'SUCCESS',
323
- summary: `System prompt "${prompt.prompt_name}" updated`,
324
- execution_log: {
325
- output: JSON.stringify(result, null, 2),
326
- error_message: '',
327
- },
328
- persisted_args: {
329
- command_string: `update "${prompt.prompt_name}"`,
330
- reason: `System prompt "${prompt.prompt_name}" updated.`,
331
- },
332
- };
333
- }
334
- async handleDelete(service, id) {
335
- if (!id) {
336
- return {
337
- status: 'FAILURE',
338
- summary: 'id is required for delete action',
339
- error_message: 'Missing id',
340
- execution_log: { output: '', error_message: 'Missing id' },
341
- };
342
- }
343
- await service.remove(id);
344
- return {
345
- status: 'SUCCESS',
346
- summary: `System prompt ${id} deleted`,
347
- execution_log: {
348
- output: JSON.stringify({ deleted: true, id }),
349
- error_message: '',
350
- },
351
- persisted_args: {
352
- command_string: `delete ${id}`,
353
- reason: `System prompt ${id} deleted.`,
354
- },
355
- };
356
- }
357
- async handleDuplicate(service, id) {
358
- if (!id) {
359
- return {
360
- status: 'FAILURE',
361
- summary: 'id is required for duplicate action',
362
- error_message: 'Missing id',
363
- execution_log: { output: '', error_message: 'Missing id' },
364
- };
365
- }
366
- const prompt = await service.duplicate(id);
367
- const result = {
368
- id: prompt.id,
369
- prompt_name: prompt.prompt_name,
370
- is_default: prompt.is_default,
371
- };
372
- return {
373
- status: 'SUCCESS',
374
- summary: `System prompt duplicated as "${prompt.prompt_name}"`,
375
- execution_log: {
376
- output: JSON.stringify(result, null, 2),
377
- error_message: '',
378
- },
379
- persisted_args: {
380
- command_string: `duplicate "${prompt.prompt_name}"`,
381
- reason: `System prompt duplicated as "${prompt.prompt_name}".`,
382
- },
383
- };
384
- }
385
- async handleSetDefault(service, id) {
386
- if (!id) {
387
- return {
388
- status: 'FAILURE',
389
- summary: 'id is required for set_default action',
390
- error_message: 'Missing id',
391
- execution_log: { output: '', error_message: 'Missing id' },
392
- };
393
- }
394
- const prompt = await service.setDefault(id);
395
- return {
396
- status: 'SUCCESS',
397
- summary: `System prompt "${prompt.prompt_name}" set as default`,
398
- execution_log: {
399
- output: JSON.stringify({
400
- id: prompt.id,
401
- prompt_name: prompt.prompt_name,
402
- is_default: true,
403
- }),
404
- error_message: '',
405
- },
406
- persisted_args: {
407
- command_string: `set_default "${prompt.prompt_name}"`,
408
- reason: `System prompt "${prompt.prompt_name}" set as default.`,
409
- },
410
- };
411
- }
412
- async handleSetEnabledTools(service, id, enabledTools) {
413
- if (!id) {
414
- return {
415
- status: 'FAILURE',
416
- summary: 'id is required for set_enabled_tools action',
417
- error_message: 'Missing id',
418
- execution_log: { output: '', error_message: 'Missing id' },
419
- };
420
- }
421
- const result = await service.setEnabledTools(id, enabledTools);
422
- return {
423
- status: 'SUCCESS',
424
- summary: `Enabled tools updated for system prompt ${id}`,
425
- execution_log: {
426
- output: JSON.stringify(result, null, 2),
427
- error_message: '',
428
- },
429
- persisted_args: {
430
- command_string: `set_enabled_tools ${id}`,
431
- reason: `Enabled tools updated for system prompt.`,
432
- },
433
- };
434
- }
435
- async handleToggleTool(service, id, toolName) {
436
- if (!id || !toolName) {
437
- return {
438
- status: 'FAILURE',
439
- summary: 'id and tool_name are required for toggle_tool action',
440
- error_message: 'Missing parameters',
441
- execution_log: { output: '', error_message: 'Missing parameters' },
442
- };
443
- }
444
- const result = await service.toggleTool(id, toolName);
445
- return {
446
- status: 'SUCCESS',
447
- summary: `Tool "${toolName}" toggled for system prompt ${id}`,
448
- execution_log: {
449
- output: JSON.stringify(result, null, 2),
450
- error_message: '',
451
- },
452
- persisted_args: {
453
- command_string: `toggle_tool "${toolName}"`,
454
- reason: `Tool "${toolName}" toggled for system prompt.`,
455
- },
456
- };
457
- }
458
- async handlePreview(service, data) {
459
- if (!data || !data.prompt_content) {
460
- return {
461
- status: 'FAILURE',
462
- summary: 'data.prompt_content is required for preview action',
463
- error_message: 'Missing prompt_content',
464
- execution_log: { output: '', error_message: 'Missing prompt_content' },
465
- };
466
- }
467
- const result = await service.preview({
468
- prompt_content: data.prompt_content,
469
- });
470
- return {
471
- status: 'SUCCESS',
472
- summary: 'Preview rendered successfully',
473
- execution_log: {
474
- output: JSON.stringify(result, null, 2),
475
- error_message: '',
476
- },
477
- persisted_args: {
478
- command_string: 'preview',
479
- reason: 'Preview rendered successfully.',
480
- },
481
- };
482
- }
483
- };
484
- exports.ManageSystemPromptsHandler = ManageSystemPromptsHandler;
485
- exports.ManageSystemPromptsHandler = ManageSystemPromptsHandler = ManageSystemPromptsHandler_1 = __decorate([
486
- (0, common_1.Injectable)(),
487
- __metadata("design:paramtypes", [core_1.ModuleRef])
488
- ], ManageSystemPromptsHandler);
489
- //# sourceMappingURL=manage-system-prompts.handler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manage-system-prompts.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/manage-system-prompts.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AACpD,uCAAyC;AAQzC,wFAAmF;AAgB5E,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAIrC,YAA6B,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QAHxC,aAAQ,GAAG,uBAAuB,CAAC;QAC3B,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI,CAAC,CAAC;IAElB,CAAC;IAM7C,uBAAuB;QAC7B,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,6CAAoB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,WAAW;QACT,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,WAAW,EACT,iGAAiG;YACnG,SAAS,EAAE;gBACT;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,8GAA8G;oBAChH,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,8GAA8G;oBAChH,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,6QAA6Q;oBAC/Q,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,eAAe;oBACrB,IAAI,EAAE,OAAgB;oBACtB,WAAW,EACT,yGAAyG;oBAC3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EAAE,SAAS;YACjB,OAAO,EAAE,+BAA+B;YACxC,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;gBACvC,aAAa,EAAE,EAAE;aAClB;YACD,cAAc,EAAE;gBACd,cAAc,EAAE,SAAS;gBACzB,MAAM,EAAE,gCAAgC;aACzC;SACF,CAAC;IACJ,CAAC;CACF,CAAA;AAliBY,gEAA0B;qCAA1B,0BAA0B;IADtC,IAAA,mBAAU,GAAE;qCAK6B,gBAAS;GAJtC,0BAA0B,CAkiBtC"}
@@ -1,20 +0,0 @@
1
- import { ActionHandler } from './action-handler.interface';
2
- import { ActionExecutionResult, PlanExecutionContext, ToolMetadata } from '../llm-orchestration.interfaces';
3
- import { ToolHooksService } from '../../tool-hooks/tool-hooks.service';
4
- export type ToolHookAction = 'list' | 'create' | 'update' | 'delete' | 'list_scripts' | 'create_script' | 'test';
5
- export declare class ManageToolHooksHandler implements ActionHandler {
6
- private readonly toolHooksService;
7
- readonly toolName = "manage_tool_hooks";
8
- private readonly logger;
9
- constructor(toolHooksService: ToolHooksService);
10
- getMetadata(): ToolMetadata;
11
- getDefinition(): string;
12
- execute(args: Record<string, any>, _context: PlanExecutionContext): Promise<ActionExecutionResult>;
13
- private handleList;
14
- private handleCreate;
15
- private handleUpdate;
16
- private handleDelete;
17
- private handleListScripts;
18
- private handleCreateScript;
19
- private handleTest;
20
- }