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
package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js
DELETED
|
@@ -1,239 +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 ManageCustomVariablesHandler_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ManageCustomVariablesHandler = void 0;
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const custom_variables_service_1 = require("../../custom-variables/custom-variables.service");
|
|
16
|
-
let ManageCustomVariablesHandler = ManageCustomVariablesHandler_1 = class ManageCustomVariablesHandler {
|
|
17
|
-
constructor(customVariablesService) {
|
|
18
|
-
this.customVariablesService = customVariablesService;
|
|
19
|
-
this.toolName = 'manage_custom_variables';
|
|
20
|
-
this.logger = new common_1.Logger(ManageCustomVariablesHandler_1.name);
|
|
21
|
-
}
|
|
22
|
-
getMetadata() {
|
|
23
|
-
return {
|
|
24
|
-
name: this.toolName,
|
|
25
|
-
description: 'Manage RepoBurg custom variables — key-value pairs available in context templates via it.variables.KEY.',
|
|
26
|
-
arguments: [
|
|
27
|
-
{
|
|
28
|
-
name: 'action',
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'Operation: list|create|update|delete',
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'id',
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'UUID of the variable (required for update/delete)',
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'data',
|
|
41
|
-
type: 'object',
|
|
42
|
-
description: 'Fields for create/update. Keys: key (required for create, unique identifier), value (required for create), enabled (boolean), is_freq_used (boolean), order_number (number).',
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
getDefinition() {
|
|
49
|
-
return `## manage_custom_variables
|
|
50
|
-
|
|
51
|
-
Manage RepoBurg custom variables — key-value pairs available in context templates via \`it.variables.KEY\`. Use for frequently-changing values like API endpoints, author names, project names, etc.
|
|
52
|
-
|
|
53
|
-
### Actions:
|
|
54
|
-
|
|
55
|
-
- **list** — List all custom variables (returns id, key, value, enabled, order_number)
|
|
56
|
-
- **create** — Create a new variable. Provide \`data\` with: key (required, unique), value (required), enabled (default true), is_freq_used (default false), order_number (default 0)
|
|
57
|
-
- **update** — Update a variable. Provide \`id\` and \`data\` with fields to change
|
|
58
|
-
- **delete** — Delete a variable by ID
|
|
59
|
-
|
|
60
|
-
### Parameters:
|
|
61
|
-
- **action** (required): Operation to perform
|
|
62
|
-
- **id** (optional): UUID of the variable
|
|
63
|
-
- **data** (optional): Object with variable fields
|
|
64
|
-
|
|
65
|
-
### Examples:
|
|
66
|
-
|
|
67
|
-
List all variables:
|
|
68
|
-
\`\`\`typescript
|
|
69
|
-
tool: manage_custom_variables
|
|
70
|
-
args: { action: "list" }
|
|
71
|
-
\`\`\`
|
|
72
|
-
|
|
73
|
-
Create a variable:
|
|
74
|
-
\`\`\`typescript
|
|
75
|
-
tool: manage_custom_variables
|
|
76
|
-
args: { action: "create", data: { key: "project_name", value: "MyApp", enabled: true } }
|
|
77
|
-
\`\`\`
|
|
78
|
-
|
|
79
|
-
Update a variable:
|
|
80
|
-
\`\`\`typescript
|
|
81
|
-
tool: manage_custom_variables
|
|
82
|
-
args: { action: "update", id: "uuid-here", data: { value: "NewValue", enabled: false } }
|
|
83
|
-
\`\`\``;
|
|
84
|
-
}
|
|
85
|
-
async execute(args, _context) {
|
|
86
|
-
const { action } = args;
|
|
87
|
-
try {
|
|
88
|
-
let result;
|
|
89
|
-
switch (action) {
|
|
90
|
-
case 'list':
|
|
91
|
-
result = await this.handleList();
|
|
92
|
-
break;
|
|
93
|
-
case 'create':
|
|
94
|
-
result = await this.handleCreate(args.data);
|
|
95
|
-
break;
|
|
96
|
-
case 'update':
|
|
97
|
-
result = await this.handleUpdate(args.id, args.data);
|
|
98
|
-
break;
|
|
99
|
-
case 'delete':
|
|
100
|
-
result = await this.handleDelete(args.id);
|
|
101
|
-
break;
|
|
102
|
-
default:
|
|
103
|
-
result = {
|
|
104
|
-
status: 'FAILURE',
|
|
105
|
-
summary: `Unknown action "${action}". Valid actions: list, create, update, delete`,
|
|
106
|
-
error_message: `Unknown action: ${action}`,
|
|
107
|
-
execution_log: {
|
|
108
|
-
output: '',
|
|
109
|
-
error_message: `Unknown action: ${action}`,
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
if (!result.persisted_args)
|
|
114
|
-
result.persisted_args = {};
|
|
115
|
-
if (!result.persisted_args.command_string)
|
|
116
|
-
result.persisted_args.command_string = `${action}`;
|
|
117
|
-
if (!result.persisted_args.reason)
|
|
118
|
-
result.persisted_args.reason = result.summary || '';
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
catch (error) {
|
|
122
|
-
this.logger.error(`manage_custom_variables error: ${error.message}`, error.stack);
|
|
123
|
-
return {
|
|
124
|
-
status: 'FAILURE',
|
|
125
|
-
summary: `Failed to ${action} custom variable: ${error.message}`,
|
|
126
|
-
error_message: error.message,
|
|
127
|
-
execution_log: { output: '', error_message: error.message },
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
async handleList() {
|
|
132
|
-
const variables = await this.customVariablesService.findAll();
|
|
133
|
-
const summary = variables.map((v) => ({
|
|
134
|
-
id: v.id,
|
|
135
|
-
key: v.key,
|
|
136
|
-
value: v.value,
|
|
137
|
-
enabled: v.enabled,
|
|
138
|
-
is_freq_used: v.is_freq_used,
|
|
139
|
-
order_number: v.order_number,
|
|
140
|
-
}));
|
|
141
|
-
return {
|
|
142
|
-
status: 'SUCCESS',
|
|
143
|
-
summary: `Found ${variables.length} custom variable(s).`,
|
|
144
|
-
execution_log: {
|
|
145
|
-
output: JSON.stringify(summary, null, 2),
|
|
146
|
-
error_message: '',
|
|
147
|
-
},
|
|
148
|
-
persisted_args: {},
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
async handleCreate(data) {
|
|
152
|
-
if (!data || !data.key || data.value === undefined || data.value === null) {
|
|
153
|
-
return {
|
|
154
|
-
status: 'FAILURE',
|
|
155
|
-
summary: 'data.key and data.value are required for create',
|
|
156
|
-
error_message: 'Missing required fields',
|
|
157
|
-
execution_log: { output: '', error_message: 'Missing required fields' },
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
const variable = await this.customVariablesService.create({
|
|
161
|
-
key: data.key,
|
|
162
|
-
value: String(data.value),
|
|
163
|
-
enabled: data.enabled ?? true,
|
|
164
|
-
is_freq_used: data.is_freq_used ?? false,
|
|
165
|
-
order_number: data.order_number ?? 0,
|
|
166
|
-
});
|
|
167
|
-
const result = {
|
|
168
|
-
id: variable.id,
|
|
169
|
-
key: variable.key,
|
|
170
|
-
value: variable.value,
|
|
171
|
-
};
|
|
172
|
-
return {
|
|
173
|
-
status: 'SUCCESS',
|
|
174
|
-
summary: `Custom variable "${variable.key}" created with ID ${variable.id}`,
|
|
175
|
-
execution_log: {
|
|
176
|
-
output: JSON.stringify(result, null, 2),
|
|
177
|
-
error_message: '',
|
|
178
|
-
},
|
|
179
|
-
persisted_args: {},
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
async handleUpdate(id, data) {
|
|
183
|
-
if (!id || !data) {
|
|
184
|
-
return {
|
|
185
|
-
status: 'FAILURE',
|
|
186
|
-
summary: 'id and data are required for update action',
|
|
187
|
-
error_message: 'Missing parameters',
|
|
188
|
-
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
const updateData = {};
|
|
192
|
-
if (data.key !== undefined)
|
|
193
|
-
updateData.key = data.key;
|
|
194
|
-
if (data.value !== undefined)
|
|
195
|
-
updateData.value = String(data.value);
|
|
196
|
-
if (data.enabled !== undefined)
|
|
197
|
-
updateData.enabled = data.enabled;
|
|
198
|
-
if (data.is_freq_used !== undefined)
|
|
199
|
-
updateData.is_freq_used = data.is_freq_used;
|
|
200
|
-
if (data.order_number !== undefined)
|
|
201
|
-
updateData.order_number = data.order_number;
|
|
202
|
-
const variable = await this.customVariablesService.update(id, updateData);
|
|
203
|
-
return {
|
|
204
|
-
status: 'SUCCESS',
|
|
205
|
-
summary: `Custom variable "${variable.key}" updated`,
|
|
206
|
-
execution_log: {
|
|
207
|
-
output: JSON.stringify({ id: variable.id, key: variable.key, value: variable.value }, null, 2),
|
|
208
|
-
error_message: '',
|
|
209
|
-
},
|
|
210
|
-
persisted_args: {},
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
async handleDelete(id) {
|
|
214
|
-
if (!id) {
|
|
215
|
-
return {
|
|
216
|
-
status: 'FAILURE',
|
|
217
|
-
summary: 'id is required for delete action',
|
|
218
|
-
error_message: 'Missing id',
|
|
219
|
-
execution_log: { output: '', error_message: 'Missing id' },
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
await this.customVariablesService.remove(id);
|
|
223
|
-
return {
|
|
224
|
-
status: 'SUCCESS',
|
|
225
|
-
summary: `Custom variable ${id} deleted`,
|
|
226
|
-
execution_log: {
|
|
227
|
-
output: JSON.stringify({ deleted: true, id }),
|
|
228
|
-
error_message: '',
|
|
229
|
-
},
|
|
230
|
-
persisted_args: {},
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
exports.ManageCustomVariablesHandler = ManageCustomVariablesHandler;
|
|
235
|
-
exports.ManageCustomVariablesHandler = ManageCustomVariablesHandler = ManageCustomVariablesHandler_1 = __decorate([
|
|
236
|
-
(0, common_1.Injectable)(),
|
|
237
|
-
__metadata("design:paramtypes", [custom_variables_service_1.CustomVariablesService])
|
|
238
|
-
], ManageCustomVariablesHandler);
|
|
239
|
-
//# sourceMappingURL=manage-custom-variables.handler.js.map
|
package/backend/dist/src/llm-orchestration/action-handlers/manage-custom-variables.handler.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage-custom-variables.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/manage-custom-variables.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAQpD,8FAAyF;AAKlF,IAAM,4BAA4B,oCAAlC,MAAM,4BAA4B;IAIvC,YACmB,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;QAJxD,aAAQ,GAAG,yBAAyB,CAAC;QAC7B,WAAM,GAAG,IAAI,eAAM,CAAC,8BAA4B,CAAC,IAAI,CAAC,CAAC;IAIrE,CAAC;IAEJ,WAAW;QACT,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,WAAW,EACT,yGAAyG;YAC3G,SAAS,EAAE;gBACT;oBACE,IAAI,EAAE,Q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I,CAAC,SAAS,CACpB,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,EAC7D,IAAI,EACJ,CAAC,CACF;gBACD,aAAa,EAAE,EAAE;aAClB;YACD,cAAc,EAAE,EAAE;SACnB,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,YAAY,CAAC,EAAU;QACnC,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,OAAO,EAAE,kCAAkC;gBAC3C,aAAa,EAAE,YAAY;gBAC3B,aAAa,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,YAAY,EAAE;aAC3D,CAAC;QACJ,CAAC;QACD,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7C,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,mBAAmB,EAAE,UAAU;YACxC,aAAa,EAAE;gBACb,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;gBAC7C,aAAa,EAAE,EAAE;aAClB;YACD,cAAc,EAAE,EAAE;SACnB,CAAC;IACJ,CAAC;CACF,CAAA;AAhPY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,mBAAU,GAAE;qCAMgC,iDAAsB;GALtD,4BAA4B,CAgPxC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ActionHandler } from './action-handler.interface';
|
|
2
|
-
import { ActionExecutionResult, PlanExecutionContext, ToolMetadata } from '../llm-orchestration.interfaces';
|
|
3
|
-
import { McpService } from '../../mcp/mcp.service';
|
|
4
|
-
export type McpServerAction = 'list' | 'create' | 'toggle_active' | 'delete' | 'toggle_tools';
|
|
5
|
-
export declare class ManageMcpServersHandler implements ActionHandler {
|
|
6
|
-
private readonly mcpService;
|
|
7
|
-
readonly toolName = "manage_mcp_servers";
|
|
8
|
-
private readonly logger;
|
|
9
|
-
constructor(mcpService: McpService);
|
|
10
|
-
getMetadata(): ToolMetadata;
|
|
11
|
-
getDefinition(): string;
|
|
12
|
-
execute(args: Record<string, any>, _context: PlanExecutionContext): Promise<ActionExecutionResult>;
|
|
13
|
-
private handleList;
|
|
14
|
-
private handleCreate;
|
|
15
|
-
private handleToggleActive;
|
|
16
|
-
private handleDelete;
|
|
17
|
-
private handleToggleTools;
|
|
18
|
-
}
|
|
@@ -1,259 +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 ManageMcpServersHandler_1;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.ManageMcpServersHandler = void 0;
|
|
14
|
-
const common_1 = require("@nestjs/common");
|
|
15
|
-
const mcp_service_1 = require("../../mcp/mcp.service");
|
|
16
|
-
let ManageMcpServersHandler = ManageMcpServersHandler_1 = class ManageMcpServersHandler {
|
|
17
|
-
constructor(mcpService) {
|
|
18
|
-
this.mcpService = mcpService;
|
|
19
|
-
this.toolName = 'manage_mcp_servers';
|
|
20
|
-
this.logger = new common_1.Logger(ManageMcpServersHandler_1.name);
|
|
21
|
-
}
|
|
22
|
-
getMetadata() {
|
|
23
|
-
return {
|
|
24
|
-
name: this.toolName,
|
|
25
|
-
description: 'Manage RepoBurg MCP (Model Context Protocol) servers — external tool servers that provide additional capabilities to the AI.',
|
|
26
|
-
arguments: [
|
|
27
|
-
{
|
|
28
|
-
name: 'action',
|
|
29
|
-
type: 'string',
|
|
30
|
-
description: 'Operation: list|create|toggle_active|delete|toggle_tools',
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'server_name',
|
|
35
|
-
type: 'string',
|
|
36
|
-
description: 'Name of the MCP server (required for toggle_active, delete)',
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'config_json',
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'JSON configuration for create action. Format: {"serverName": {"command": "...", "args": [...], "env": {...}}}',
|
|
43
|
-
required: false,
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
name: 'is_active',
|
|
47
|
-
type: 'boolean',
|
|
48
|
-
description: 'For toggle_active: true to activate, false to deactivate',
|
|
49
|
-
required: false,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'tool_ids',
|
|
53
|
-
type: 'array',
|
|
54
|
-
description: 'For toggle_tools: array of MCP tool UUIDs to toggle',
|
|
55
|
-
required: false,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'tools_active',
|
|
59
|
-
type: 'boolean',
|
|
60
|
-
description: 'For toggle_tools: whether to activate (true) or deactivate (false) the specified tools',
|
|
61
|
-
required: false,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
getDefinition() {
|
|
67
|
-
return `## manage_mcp_servers
|
|
68
|
-
|
|
69
|
-
Manage RepoBurg MCP (Model Context Protocol) servers — external tool servers that provide additional capabilities to the AI. Each MCP server exposes tools that become available as native tool definitions with the naming pattern \`serverName__toolName\`.
|
|
70
|
-
|
|
71
|
-
### Actions:
|
|
72
|
-
|
|
73
|
-
- **list** — List all MCP servers with their tools and status
|
|
74
|
-
- **create** — Add a new MCP server. Provide \`config_json\` with the server configuration. Format: \`{"serverName": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path"], "env": {}}}\`
|
|
75
|
-
- **toggle_active** — Activate or deactivate an MCP server. Provide \`server_name\` and \`is_active\` (boolean). Deactivating disconnects the server.
|
|
76
|
-
- **delete** — Remove an MCP server configuration. Provide \`server_name\`. Disconnects and removes the server and all its tools.
|
|
77
|
-
- **toggle_tools** — Batch enable/disable specific MCP tools. Provide \`tool_ids\` (array of tool UUIDs) and \`tools_active\` (boolean).
|
|
78
|
-
|
|
79
|
-
### Parameters:
|
|
80
|
-
- **action** (required): Operation to perform
|
|
81
|
-
- **server_name** (optional): Name of the MCP server
|
|
82
|
-
- **config_json** (optional): JSON config string for create
|
|
83
|
-
- **is_active** (optional): Boolean for toggle_active
|
|
84
|
-
- **tool_ids** (optional): Array of tool UUIDs for toggle_tools
|
|
85
|
-
- **tools_active** (optional): Boolean for toggle_tools
|
|
86
|
-
|
|
87
|
-
### Examples:
|
|
88
|
-
|
|
89
|
-
List all servers:
|
|
90
|
-
\`\`\`typescript
|
|
91
|
-
tool: manage_mcp_servers
|
|
92
|
-
args: { action: "list" }
|
|
93
|
-
\`\`\`
|
|
94
|
-
|
|
95
|
-
Add a filesystem server:
|
|
96
|
-
\`\`\`typescript
|
|
97
|
-
tool: manage_mcp_servers
|
|
98
|
-
args: { action: "create", config_json: '{"filesystem": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/home/user/projects"], "env": {}}}' }
|
|
99
|
-
\`\`\`
|
|
100
|
-
|
|
101
|
-
Deactivate a server:
|
|
102
|
-
\`\`\`typescript
|
|
103
|
-
tool: manage_mcp_servers
|
|
104
|
-
args: { action: "toggle_active", server_name: "filesystem", is_active: false }
|
|
105
|
-
\`\`\``;
|
|
106
|
-
}
|
|
107
|
-
async execute(args, _context) {
|
|
108
|
-
const { action } = args;
|
|
109
|
-
try {
|
|
110
|
-
let result;
|
|
111
|
-
switch (action) {
|
|
112
|
-
case 'list':
|
|
113
|
-
result = await this.handleList();
|
|
114
|
-
break;
|
|
115
|
-
case 'create':
|
|
116
|
-
result = await this.handleCreate(args.config_json);
|
|
117
|
-
break;
|
|
118
|
-
case 'toggle_active':
|
|
119
|
-
result = await this.handleToggleActive(args.server_name, args.is_active);
|
|
120
|
-
break;
|
|
121
|
-
case 'delete':
|
|
122
|
-
result = await this.handleDelete(args.server_name);
|
|
123
|
-
break;
|
|
124
|
-
case 'toggle_tools':
|
|
125
|
-
result = await this.handleToggleTools(args.tool_ids, args.tools_active);
|
|
126
|
-
break;
|
|
127
|
-
default:
|
|
128
|
-
result = {
|
|
129
|
-
status: 'FAILURE',
|
|
130
|
-
summary: `Unknown action "${action}". Valid actions: list, create, toggle_active, delete, toggle_tools`,
|
|
131
|
-
error_message: `Unknown action: ${action}`,
|
|
132
|
-
execution_log: {
|
|
133
|
-
output: '',
|
|
134
|
-
error_message: `Unknown action: ${action}`,
|
|
135
|
-
},
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
if (!result.persisted_args)
|
|
139
|
-
result.persisted_args = {};
|
|
140
|
-
if (!result.persisted_args.command_string)
|
|
141
|
-
result.persisted_args.command_string = `${action}`;
|
|
142
|
-
if (!result.persisted_args.reason)
|
|
143
|
-
result.persisted_args.reason = result.summary || '';
|
|
144
|
-
return result;
|
|
145
|
-
}
|
|
146
|
-
catch (error) {
|
|
147
|
-
this.logger.error(`manage_mcp_servers error: ${error.message}`, error.stack);
|
|
148
|
-
return {
|
|
149
|
-
status: 'FAILURE',
|
|
150
|
-
summary: `Failed to ${action} MCP server: ${error.message}`,
|
|
151
|
-
error_message: error.message,
|
|
152
|
-
execution_log: { output: '', error_message: error.message },
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
async handleList() {
|
|
157
|
-
const servers = await this.mcpService.getMcpServers();
|
|
158
|
-
return {
|
|
159
|
-
status: 'SUCCESS',
|
|
160
|
-
summary: `Found ${servers.length} MCP server(s).`,
|
|
161
|
-
execution_log: {
|
|
162
|
-
output: JSON.stringify(servers, null, 2),
|
|
163
|
-
error_message: '',
|
|
164
|
-
},
|
|
165
|
-
persisted_args: {},
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
async handleCreate(configJson) {
|
|
169
|
-
if (!configJson) {
|
|
170
|
-
return {
|
|
171
|
-
status: 'FAILURE',
|
|
172
|
-
summary: 'config_json is required for create action',
|
|
173
|
-
error_message: 'Missing config_json',
|
|
174
|
-
execution_log: { output: '', error_message: 'Missing config_json' },
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
const config = await this.mcpService.createMcpConfig(configJson);
|
|
178
|
-
const result = {
|
|
179
|
-
server_name: config.server_name,
|
|
180
|
-
command: config.command,
|
|
181
|
-
is_active: config.is_active,
|
|
182
|
-
};
|
|
183
|
-
return {
|
|
184
|
-
status: 'SUCCESS',
|
|
185
|
-
summary: `MCP server "${config.server_name}" created and connected`,
|
|
186
|
-
execution_log: {
|
|
187
|
-
output: JSON.stringify(result, null, 2),
|
|
188
|
-
error_message: '',
|
|
189
|
-
},
|
|
190
|
-
persisted_args: {},
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
async handleToggleActive(serverName, isActive) {
|
|
194
|
-
if (!serverName || isActive === undefined || isActive === null) {
|
|
195
|
-
return {
|
|
196
|
-
status: 'FAILURE',
|
|
197
|
-
summary: 'server_name and is_active are required for toggle_active action',
|
|
198
|
-
error_message: 'Missing parameters',
|
|
199
|
-
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
200
|
-
};
|
|
201
|
-
}
|
|
202
|
-
const config = await this.mcpService.updateMcpConfigStatus(serverName, isActive);
|
|
203
|
-
return {
|
|
204
|
-
status: 'SUCCESS',
|
|
205
|
-
summary: `MCP server "${serverName}" ${isActive ? 'activated' : 'deactivated'}`,
|
|
206
|
-
execution_log: {
|
|
207
|
-
output: JSON.stringify({ server_name: config.server_name, is_active: config.is_active }, null, 2),
|
|
208
|
-
error_message: '',
|
|
209
|
-
},
|
|
210
|
-
persisted_args: {},
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
async handleDelete(serverName) {
|
|
214
|
-
if (!serverName) {
|
|
215
|
-
return {
|
|
216
|
-
status: 'FAILURE',
|
|
217
|
-
summary: 'server_name is required for delete action',
|
|
218
|
-
error_message: 'Missing server_name',
|
|
219
|
-
execution_log: { output: '', error_message: 'Missing server_name' },
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
await this.mcpService.deleteMcpConfig(serverName);
|
|
223
|
-
return {
|
|
224
|
-
status: 'SUCCESS',
|
|
225
|
-
summary: `MCP server "${serverName}" deleted`,
|
|
226
|
-
execution_log: {
|
|
227
|
-
output: JSON.stringify({ deleted: true, server_name: serverName }),
|
|
228
|
-
error_message: '',
|
|
229
|
-
},
|
|
230
|
-
persisted_args: {},
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
async handleToggleTools(toolIds, toolsActive) {
|
|
234
|
-
if (!toolIds || !Array.isArray(toolIds) || toolIds.length === 0) {
|
|
235
|
-
return {
|
|
236
|
-
status: 'FAILURE',
|
|
237
|
-
summary: 'tool_ids (non-empty array) and tools_active are required for toggle_tools action',
|
|
238
|
-
error_message: 'Missing parameters',
|
|
239
|
-
execution_log: { output: '', error_message: 'Missing parameters' },
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
const result = await this.mcpService.batchUpdateToolStatus(toolIds, toolsActive);
|
|
243
|
-
return {
|
|
244
|
-
status: 'SUCCESS',
|
|
245
|
-
summary: `${toolsActive ? 'Activated' : 'Deactivated'} ${result.affected} MCP tool(s)`,
|
|
246
|
-
execution_log: {
|
|
247
|
-
output: JSON.stringify(result, null, 2),
|
|
248
|
-
error_message: '',
|
|
249
|
-
},
|
|
250
|
-
persisted_args: {},
|
|
251
|
-
};
|
|
252
|
-
}
|
|
253
|
-
};
|
|
254
|
-
exports.ManageMcpServersHandler = ManageMcpServersHandler;
|
|
255
|
-
exports.ManageMcpServersHandler = ManageMcpServersHandler = ManageMcpServersHandler_1 = __decorate([
|
|
256
|
-
(0, common_1.Injectable)(),
|
|
257
|
-
__metadata("design:paramtypes", [mcp_service_1.McpService])
|
|
258
|
-
], ManageMcpServersHandler);
|
|
259
|
-
//# sourceMappingURL=manage-mcp-servers.handler.js.map
|
package/backend/dist/src/llm-orchestration/action-handlers/manage-mcp-servers.handler.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"manage-mcp-servers.handler.js","sourceRoot":"","sources":["../../../../src/llm-orchestration/action-handlers/manage-mcp-servers.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAoD;AAQpD,uDAAmD;AAM5C,IAAM,uBAAuB,+BAA7B,MAAM,uBAAuB;IAIlC,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QAH1C,aAAQ,GAAG,oBAAoB,CAAC;QACxB,WAAM,GAAG,IAAI,eAAM,CAAC,yBAAuB,CAAC,IAAI,CAAC,CAAC;IAEb,CAAC;IAEvD,WAAW;QACT,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,QAAQ;YACnB,WAAW,EACT,8HAA8H;YAChI,SAAS,EAAE;gBACT;oBACE,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,0DAA0D;oBAC5D,QAAQ,EAAE,IAAI;iBACf;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,6DAA6D;oBAC/D,QAAQ,EAAE,KAAK;iBAChB;gBACD;oBACE,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,QAAiB;oBACvB,WAAW,EACT,+GAA+G;oBACjH,Q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AC,EAAE,CAAC;YAChE,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,OAAO,EACL,kFAAkF;gBACpF,aAAa,EAAE,oBAAoB;gBACnC,aAAa,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,oBAAoB,EAAE;aACnE,CAAC;QACJ,CAAC;QACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,qBAAqB,CACxD,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO;YACL,MAAM,EAAE,SAAS;YACjB,OAAO,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,aAAa,IAAI,MAAM,CAAC,QAAQ,cAAc;YACtF,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;AA5RY,0DAAuB;kCAAvB,uBAAuB;IADnC,IAAA,mBAAU,GAAE;qCAK8B,wBAAU;GAJxC,uBAAuB,CA4RnC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ActionHandler } from './action-handler.interface';
|
|
2
|
-
import { ActionExecutionResult, PlanExecutionContext, ToolMetadata } from '../llm-orchestration.interfaces';
|
|
3
|
-
import { SubAgentsService } from '../../sub-agents/sub-agents.service';
|
|
4
|
-
export type SubAgentAction = 'list' | 'get' | 'create' | 'update' | 'delete' | 'duplicate';
|
|
5
|
-
export declare class ManageSubAgentsHandler implements ActionHandler {
|
|
6
|
-
private readonly subAgentsService;
|
|
7
|
-
readonly toolName = "manage_sub_agents";
|
|
8
|
-
private readonly logger;
|
|
9
|
-
constructor(subAgentsService: SubAgentsService);
|
|
10
|
-
getMetadata(): ToolMetadata;
|
|
11
|
-
getDefinition(): string;
|
|
12
|
-
execute(args: Record<string, any>, _context: PlanExecutionContext): Promise<ActionExecutionResult>;
|
|
13
|
-
private handleList;
|
|
14
|
-
private handleGet;
|
|
15
|
-
private handleCreate;
|
|
16
|
-
private handleUpdate;
|
|
17
|
-
private handleDelete;
|
|
18
|
-
private handleDuplicate;
|
|
19
|
-
}
|