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.
- package/agent-pane/frontend/dist/assets/{index-DNe6bagG.css → index-DUnfaPeK.css} +1 -1
- package/agent-pane/frontend/dist/assets/{index-CBTsbWig.js → index-hYkepxdY.js} +113 -108
- package/agent-pane/frontend/dist/index.html +2 -2
- package/backend/dist/bin/metadata-validate.ts +66 -31
- package/backend/dist/src/bin/metadata-validate.js +49 -26
- package/backend/dist/src/bin/metadata-validate.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +1 -37
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.d.ts +1 -1
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js +3 -3
- package/backend/dist/src/mcp/dto/batch-update-mcp-tools.dto.js.map +1 -1
- package/backend/dist/src/mcp/mcp-tools.store.d.ts +56 -0
- package/backend/dist/src/mcp/mcp-tools.store.js +280 -0
- package/backend/dist/src/mcp/mcp-tools.store.js.map +1 -0
- package/backend/dist/src/mcp/mcp.controller.js +1 -1
- package/backend/dist/src/mcp/mcp.controller.js.map +1 -1
- package/backend/dist/src/mcp/mcp.module.js +2 -1
- package/backend/dist/src/mcp/mcp.module.js.map +1 -1
- package/backend/dist/src/mcp/mcp.service.d.ts +5 -3
- package/backend/dist/src/mcp/mcp.service.js +30 -73
- package/backend/dist/src/mcp/mcp.service.js.map +1 -1
- package/backend/dist/src/mcp-server/mcp-server.constants.js +0 -9
- package/backend/dist/src/mcp-server/mcp-server.constants.js.map +1 -1
- package/backend/dist/src/mcp-server/mcp-server.controller.js +1 -1
- package/backend/dist/src/mcp-server/mcp-server.controller.js.map +1 -1
- package/backend/dist/src/metadata-store/metadata-migration.d.ts +1 -0
- package/backend/dist/src/metadata-store/metadata-migration.js +54 -1
- package/backend/dist/src/metadata-store/metadata-migration.js.map +1 -1
- package/backend/dist/src/metadata-store/metadata-readme.d.ts +1 -1
- package/backend/dist/src/metadata-store/metadata-readme.js +1 -1
- package/backend/dist/src/metadata-store/metadata-store.module.js +0 -5
- package/backend/dist/src/metadata-store/metadata-store.module.js.map +1 -1
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.d.ts +6 -2
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.js +26 -12
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.js.map +1 -1
- package/backend/dist/src/metadata-store/store-configs.d.ts +1 -2
- package/backend/dist/src/metadata-store/store-configs.js +1 -9
- package/backend/dist/src/metadata-store/store-configs.js.map +1 -1
- package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js +4 -9
- package/backend/dist/src/seeding/data/sub-agents/control-repoburg.js.map +1 -1
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.d.ts +1 -1
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js +45 -74
- package/backend/dist/src/seeding/data/system-prompts/control-repoburg-agent.js.map +1 -1
- package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +0 -9
- package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
- package/backend/dist/src/system-prompts/system-prompts.service.js +0 -9
- package/backend/dist/src/system-prompts/system-prompts.service.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/daemon/dist/index.js +0 -0
- package/package.json +1 -1
- package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +1 -1
- package/backend/.env +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.d.ts +0 -20
- package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.js +0 -336
- package/backend/dist/src/llm-orchestration/action-handlers/manage-agents.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.d.ts +0 -18
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js +0 -237
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-snippets.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.d.ts +0 -20
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js +0 -326
- package/backend/dist/src/llm-orchestration/action-handlers/manage-context-templates.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.d.ts +0 -19
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js +0 -263
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-snippets.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.d.ts +0 -17
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js +0 -239
- package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.d.ts +0 -18
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js +0 -259
- package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.d.ts +0 -19
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js +0 -308
- package/backend/dist/src/llm-orchestration/action-handlers/manage-sub-agents.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.d.ts +0 -25
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js +0 -489
- package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.js.map +0 -1
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.d.ts +0 -20
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js +0 -328
- package/backend/dist/src/llm-orchestration/action-handlers/manage-tool-hooks.handler.js.map +0 -1
- package/backend/section-modified.txt +0 -1
- package/deleted.txt +0 -1
- package/miniapp-catalog-modal.png +0 -0
- package/miniapp-daemon-e2e-green.png +0 -0
- package/miniapp-faz31-codex-green.png +0 -0
- package/miniapp-pr-review-green.png +0 -0
- package/miniapp-typesafe-verified.png +0 -0
- package/miniapp-workspace-scoped.png +0 -0
- package/modified.txt +0 -1
- package/test-modified.txt +0 -1
- package/vscode-serve-web-test.png +0 -0
|
@@ -1,308 +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 ManageSubAgentsHandler_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ManageSubAgentsHandler = void 0;
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const sub_agents_service_1 = require("../../sub-agents/sub-agents.service");
|
|
16
|
-
let ManageSubAgentsHandler = ManageSubAgentsHandler_1 = class ManageSubAgentsHandler {
|
|
17
|
-
constructor(subAgentsService) {
|
|
18
|
-
this.subAgentsService = subAgentsService;
|
|
19
|
-
this.toolName = 'manage_sub_agents';
|
|
20
|
-
this.logger = new common_1.Logger(ManageSubAgentsHandler_1.name);
|
|
21
|
-
}
|
|
22
|
-
getMetadata() {
|
|
23
|
-
return {
|
|
24
|
-
name: this.toolName,
|
|
25
|
-
description: 'Manage RepoBurg sub-agents — specialized agent configurations with their own system prompt, context templates, and enabled tools.',
|
|
26
|
-
arguments: [
|
|
27
|
-
{
|
|
28
|
-
name: 'action',
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'Operation: list|get|create|update|delete|duplicate',
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'id',
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'UUID of the sub-agent (required for get/update/delete/duplicate)',
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'data',
|
|
41
|
-
type: 'object',
|
|
42
|
-
description: 'Fields for create/update. Keys: name (required), description, system_prompt_id, context_template_id, followup_context_template_id, enabled_tools (array|null|"all"), is_active, model_id.',
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
getDefinition() {
|
|
49
|
-
return `## manage_sub_agents
|
|
50
|
-
|
|
51
|
-
Manage RepoBurg sub-agents — specialized agent configurations with their own system prompt, context templates, and enabled tools. Sub-agents are used by the invoke_subagent tool to delegate specialized tasks.
|
|
52
|
-
|
|
53
|
-
### Actions:
|
|
54
|
-
|
|
55
|
-
- **list** — List all sub-agents (returns id, name, description, is_active, model_id, is_builtin)
|
|
56
|
-
- **get** — Get full details of a sub-agent by ID
|
|
57
|
-
- **create** — Create a new sub-agent. Provide \`data\` with: name (required), description, system_prompt_id, context_template_id, followup_context_template_id, enabled_tools (array of tool names, null for all), is_active (default true), model_id
|
|
58
|
-
- **update** — Update a sub-agent. Provide \`id\` and \`data\` with fields to change. Built-in sub-agents can only change is_active and model_id.
|
|
59
|
-
- **delete** — Delete a sub-agent by ID
|
|
60
|
-
- **duplicate** — Duplicate a sub-agent by ID (works for built-in too). Returns the new copy.
|
|
61
|
-
|
|
62
|
-
### Parameters:
|
|
63
|
-
- **action** (required): Operation to perform
|
|
64
|
-
- **id** (optional): UUID of the sub-agent
|
|
65
|
-
- **data** (optional): Object with sub-agent fields
|
|
66
|
-
|
|
67
|
-
### Examples:
|
|
68
|
-
|
|
69
|
-
List all sub-agents:
|
|
70
|
-
\`\`\`typescript
|
|
71
|
-
tool: manage_sub_agents
|
|
72
|
-
args: { action: "list" }
|
|
73
|
-
\`\`\`
|
|
74
|
-
|
|
75
|
-
Create a sub-agent:
|
|
76
|
-
\`\`\`typescript
|
|
77
|
-
tool: manage_sub_agents
|
|
78
|
-
args: { action: "create", data: { name: "Bug Fixer", description: "Specialized in fixing bugs", enabled_tools: ["create_file", "overwrite_file", "delete_file", "request_context", "run_command"], model_id: "ollama/glm-5.1:cloud" } }
|
|
79
|
-
\`\`\`
|
|
80
|
-
|
|
81
|
-
Update a sub-agent's active status:
|
|
82
|
-
\`\`\`typescript
|
|
83
|
-
tool: manage_sub_agents
|
|
84
|
-
args: { action: "update", id: "uuid-here", data: { is_active: false } }
|
|
85
|
-
\`\`\``;
|
|
86
|
-
}
|
|
87
|
-
async execute(args, _context) {
|
|
88
|
-
const { action } = args;
|
|
89
|
-
try {
|
|
90
|
-
let result;
|
|
91
|
-
switch (action) {
|
|
92
|
-
case 'list':
|
|
93
|
-
result = await this.handleList();
|
|
94
|
-
break;
|
|
95
|
-
case 'get':
|
|
96
|
-
result = await this.handleGet(args.id);
|
|
97
|
-
break;
|
|
98
|
-
case 'create':
|
|
99
|
-
result = await this.handleCreate(args.data);
|
|
100
|
-
break;
|
|
101
|
-
case 'update':
|
|
102
|
-
result = await this.handleUpdate(args.id, args.data);
|
|
103
|
-
break;
|
|
104
|
-
case 'delete':
|
|
105
|
-
result = await this.handleDelete(args.id);
|
|
106
|
-
break;
|
|
107
|
-
case 'duplicate':
|
|
108
|
-
result = await this.handleDuplicate(args.id);
|
|
109
|
-
break;
|
|
110
|
-
default:
|
|
111
|
-
result = {
|
|
112
|
-
status: 'FAILURE',
|
|
113
|
-
summary: `Unknown action "${action}". Valid actions: list, get, create, update, delete, duplicate`,
|
|
114
|
-
error_message: `Unknown action: ${action}`,
|
|
115
|
-
execution_log: {
|
|
116
|
-
output: '',
|
|
117
|
-
error_message: `Unknown action: ${action}`,
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
if (!result.persisted_args)
|
|
122
|
-
result.persisted_args = {};
|
|
123
|
-
if (!result.persisted_args.command_string)
|
|
124
|
-
result.persisted_args.command_string = `${action}`;
|
|
125
|
-
if (!result.persisted_args.reason)
|
|
126
|
-
result.persisted_args.reason = result.summary || '';
|
|
127
|
-
return result;
|
|
128
|
-
}
|
|
129
|
-
catch (error) {
|
|
130
|
-
this.logger.error(`manage_sub_agents error: ${error.message}`, error.stack);
|
|
131
|
-
return {
|
|
132
|
-
status: 'FAILURE',
|
|
133
|
-
summary: `Failed to ${action} sub-agent: ${error.message}`,
|
|
134
|
-
error_message: error.message,
|
|
135
|
-
execution_log: { output: '', error_message: error.message },
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
async handleList() {
|
|
140
|
-
const subAgents = await this.subAgentsService.findAll();
|
|
141
|
-
const summary = subAgents.map((a) => ({
|
|
142
|
-
id: a.id,
|
|
143
|
-
name: a.name,
|
|
144
|
-
description: a.description,
|
|
145
|
-
is_active: a.is_active,
|
|
146
|
-
model_id: a.model_id,
|
|
147
|
-
is_builtin: a.is_builtin,
|
|
148
|
-
builtin_key: a.builtin_key,
|
|
149
|
-
system_prompt_id: a.system_prompt_id,
|
|
150
|
-
context_template_id: a.context_template_id,
|
|
151
|
-
followup_context_template_id: a.followup_context_template_id,
|
|
152
|
-
enabled_tools: a.enabled_tools,
|
|
153
|
-
}));
|
|
154
|
-
return {
|
|
155
|
-
status: 'SUCCESS',
|
|
156
|
-
summary: `Found ${subAgents.length} sub-agent(s).`,
|
|
157
|
-
execution_log: {
|
|
158
|
-
output: JSON.stringify(summary, null, 2),
|
|
159
|
-
error_message: '',
|
|
160
|
-
},
|
|
161
|
-
persisted_args: {},
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
async handleGet(id) {
|
|
165
|
-
if (!id) {
|
|
166
|
-
return {
|
|
167
|
-
status: 'FAILURE',
|
|
168
|
-
summary: 'id is required for get action',
|
|
169
|
-
error_message: 'Missing id',
|
|
170
|
-
execution_log: { output: '', error_message: 'Missing id' },
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
const subAgent = await this.subAgentsService.findOne(id);
|
|
174
|
-
return {
|
|
175
|
-
status: 'SUCCESS',
|
|
176
|
-
summary: `Sub-agent "${subAgent.name}"`,
|
|
177
|
-
execution_log: {
|
|
178
|
-
output: JSON.stringify(subAgent, null, 2),
|
|
179
|
-
error_message: '',
|
|
180
|
-
},
|
|
181
|
-
persisted_args: {},
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
async handleCreate(data) {
|
|
185
|
-
if (!data || !data.name) {
|
|
186
|
-
return {
|
|
187
|
-
status: 'FAILURE',
|
|
188
|
-
summary: 'data.name is required for create',
|
|
189
|
-
error_message: 'Missing required field: name',
|
|
190
|
-
execution_log: {
|
|
191
|
-
output: '',
|
|
192
|
-
error_message: 'Missing required field: name',
|
|
193
|
-
},
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
const createDto = {
|
|
197
|
-
name: data.name,
|
|
198
|
-
description: data.description ?? null,
|
|
199
|
-
system_prompt_id: data.system_prompt_id ?? null,
|
|
200
|
-
context_template_id: data.context_template_id ?? null,
|
|
201
|
-
followup_context_template_id: data.followup_context_template_id ?? null,
|
|
202
|
-
enabled_tools: data.enabled_tools ?? null,
|
|
203
|
-
is_active: data.is_active ?? true,
|
|
204
|
-
model_id: data.model_id ?? null,
|
|
205
|
-
};
|
|
206
|
-
const subAgent = await this.subAgentsService.create(createDto);
|
|
207
|
-
const result = {
|
|
208
|
-
id: subAgent.id,
|
|
209
|
-
name: subAgent.name,
|
|
210
|
-
is_active: subAgent.is_active,
|
|
211
|
-
};
|
|
212
|
-
return {
|
|
213
|
-
status: 'SUCCESS',
|
|
214
|
-
summary: `Sub-agent "${subAgent.name}" created with ID ${subAgent.id}`,
|
|
215
|
-
execution_log: {
|
|
216
|
-
output: JSON.stringify(result, null, 2),
|
|
217
|
-
error_message: '',
|
|
218
|
-
},
|
|
219
|
-
persisted_args: {},
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
async handleUpdate(id, data) {
|
|
223
|
-
if (!id || !data) {
|
|
224
|
-
return {
|
|
225
|
-
status: 'FAILURE',
|
|
226
|
-
summary: 'id and data are required for update action',
|
|
227
|
-
error_message: 'Missing parameters',
|
|
228
|
-
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
229
|
-
};
|
|
230
|
-
}
|
|
231
|
-
const updateDto = {};
|
|
232
|
-
const allowedFields = [
|
|
233
|
-
'name',
|
|
234
|
-
'description',
|
|
235
|
-
'system_prompt_id',
|
|
236
|
-
'context_template_id',
|
|
237
|
-
'followup_context_template_id',
|
|
238
|
-
'enabled_tools',
|
|
239
|
-
'is_active',
|
|
240
|
-
'model_id',
|
|
241
|
-
];
|
|
242
|
-
for (const key of allowedFields) {
|
|
243
|
-
if (data[key] !== undefined) {
|
|
244
|
-
updateDto[key] = data[key];
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
const subAgent = await this.subAgentsService.update(id, updateDto);
|
|
248
|
-
return {
|
|
249
|
-
status: 'SUCCESS',
|
|
250
|
-
summary: `Sub-agent "${subAgent.name}" updated`,
|
|
251
|
-
execution_log: {
|
|
252
|
-
output: JSON.stringify({
|
|
253
|
-
id: subAgent.id,
|
|
254
|
-
name: subAgent.name,
|
|
255
|
-
is_active: subAgent.is_active,
|
|
256
|
-
}, null, 2),
|
|
257
|
-
error_message: '',
|
|
258
|
-
},
|
|
259
|
-
persisted_args: {},
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
async handleDelete(id) {
|
|
263
|
-
if (!id) {
|
|
264
|
-
return {
|
|
265
|
-
status: 'FAILURE',
|
|
266
|
-
summary: 'id is required for delete action',
|
|
267
|
-
error_message: 'Missing id',
|
|
268
|
-
execution_log: { output: '', error_message: 'Missing id' },
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
await this.subAgentsService.remove(id);
|
|
272
|
-
return {
|
|
273
|
-
status: 'SUCCESS',
|
|
274
|
-
summary: `Sub-agent ${id} deleted`,
|
|
275
|
-
execution_log: {
|
|
276
|
-
output: JSON.stringify({ deleted: true, id }),
|
|
277
|
-
error_message: '',
|
|
278
|
-
},
|
|
279
|
-
persisted_args: {},
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
async handleDuplicate(id) {
|
|
283
|
-
if (!id) {
|
|
284
|
-
return {
|
|
285
|
-
status: 'FAILURE',
|
|
286
|
-
summary: 'id is required for duplicate action',
|
|
287
|
-
error_message: 'Missing id',
|
|
288
|
-
execution_log: { output: '', error_message: 'Missing id' },
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
const subAgent = await this.subAgentsService.duplicate(id);
|
|
292
|
-
return {
|
|
293
|
-
status: 'SUCCESS',
|
|
294
|
-
summary: `Sub-agent duplicated as "${subAgent.name}"`,
|
|
295
|
-
execution_log: {
|
|
296
|
-
output: JSON.stringify({ id: subAgent.id, name: subAgent.name }, null, 2),
|
|
297
|
-
error_message: '',
|
|
298
|
-
},
|
|
299
|
-
persisted_args: {},
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
};
|
|
303
|
-
exports.ManageSubAgentsHandler = ManageSubAgentsHandler;
|
|
304
|
-
exports.ManageSubAgentsHandler = ManageSubAgentsHandler = ManageSubAgentsHandler_1 = __decorate([
|
|
305
|
-
(0, common_1.Injectable)(),
|
|
306
|
-
__metadata("design:paramtypes", [sub_agents_service_1.SubAgentsService])
|
|
307
|
-
], ManageSubAgentsHandler);
|
|
308
|
-
//# sourceMappingURL=manage-sub-agents.handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage-sub-agents.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/manage-sub-agents.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAQpD,4EAAuE;AAMhE,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,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,WAAW,EACT,mIAAmI;YACrI,SAAS,EAAE;gBACT;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAiB;oBACvB,WAAW,EAAE,oDAAoD;oBACjE,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,kEAAkE;oBACpE,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,2LAA2L;oBAC7L,QAAQ,EAAE,KAAK;iBAChB;aACgB;SACpB,CAAC;IACJ,CAAC;IAED,aAAa;QACX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoCJ,CAAC;IACN,CAAC;IAED,KAAK,CAAC,OAAO,CACX,IAAyB,EACzB,QAA8B;QAE9B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAExB,IAAI,CAAC;YACH,IAAI,MAA6B,CAAC;YAClC,QAAQ,MAAwB,EAAE,CAAC;gBACjC,KAAK,MAAM;oBACT,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;oBACjC,MAAM;gBACR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qCAAqC;gBAC9C,aAAa,EAAE,YAAY;gBAC3B,aAAa,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE;aAC3D,CAAC;QACJ,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QAC3D,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,4BAA4B,QAAQ,CAAC,IAAI,GAAG;YACrD,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI,CAAC,SAAS,CACpB,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,EACxC,IAAI,EACJ,CAAC,CACF;gBACD,aAAa,EAAE,EAAE;aAClB;YACD,cAAc,EAAE,EAAE;SACnB,CAAC;IACJ,CAAC;CACF,CAAA;AA5TY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAKoC,qCAAgB;GAJpD,sBAAsB,CA4TlC"}
|
package/backend/dist/src/llm-orchestration/action-handlers/manage-system-prompts.handler.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ModuleRef } from '@nestjs/core';
|
|
2
|
-
import { ActionHandler } from './action-handler.interface';
|
|
3
|
-
import { ActionExecutionResult, PlanExecutionContext, ToolMetadata } from '../llm-orchestration.interfaces';
|
|
4
|
-
export type SystemPromptAction = 'list' | 'get' | 'get_raw' | 'create' | 'update' | 'delete' | 'duplicate' | 'set_default' | 'set_enabled_tools' | 'toggle_tool' | 'preview';
|
|
5
|
-
export declare class ManageSystemPromptsHandler implements ActionHandler {
|
|
6
|
-
private readonly moduleRef;
|
|
7
|
-
readonly toolName = "manage_system_prompts";
|
|
8
|
-
private readonly logger;
|
|
9
|
-
constructor(moduleRef: ModuleRef);
|
|
10
|
-
private getSystemPromptsService;
|
|
11
|
-
getMetadata(): ToolMetadata;
|
|
12
|
-
getDefinition(): string;
|
|
13
|
-
execute(args: Record<string, any>, _context: PlanExecutionContext): Promise<ActionExecutionResult>;
|
|
14
|
-
private handleList;
|
|
15
|
-
private handleGetRaw;
|
|
16
|
-
private handleGet;
|
|
17
|
-
private handleCreate;
|
|
18
|
-
private handleUpdate;
|
|
19
|
-
private handleDelete;
|
|
20
|
-
private handleDuplicate;
|
|
21
|
-
private handleSetDefault;
|
|
22
|
-
private handleSetEnabledTools;
|
|
23
|
-
private handleToggleTool;
|
|
24
|
-
private handlePreview;
|
|
25
|
-
}
|