@brutalist/mcp 0.8.1 → 1.0.0
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/README.md +34 -7
- package/dist/brutalist-server.d.ts +55 -16
- package/dist/brutalist-server.d.ts.map +1 -1
- package/dist/brutalist-server.js +550 -732
- package/dist/brutalist-server.js.map +1 -1
- package/dist/cli-agents.d.ts +9 -7
- package/dist/cli-agents.d.ts.map +1 -1
- package/dist/cli-agents.js +290 -202
- package/dist/cli-agents.js.map +1 -1
- package/dist/domains/argument-space.d.ts +12 -3
- package/dist/domains/argument-space.d.ts.map +1 -1
- package/dist/domains/argument-space.js +30 -23
- package/dist/domains/argument-space.js.map +1 -1
- package/dist/domains/critique-domain.d.ts +12 -0
- package/dist/domains/critique-domain.d.ts.map +1 -1
- package/dist/domains/critique-domain.js +12 -1
- package/dist/domains/critique-domain.js.map +1 -1
- package/dist/formatting/response-formatter.d.ts +43 -0
- package/dist/formatting/response-formatter.d.ts.map +1 -0
- package/dist/formatting/response-formatter.js +277 -0
- package/dist/formatting/response-formatter.js.map +1 -0
- package/dist/generators/tool-generator.d.ts.map +1 -1
- package/dist/generators/tool-generator.js +8 -6
- package/dist/generators/tool-generator.js.map +1 -1
- package/dist/handlers/tool-handler.d.ts +33 -0
- package/dist/handlers/tool-handler.d.ts.map +1 -0
- package/dist/handlers/tool-handler.js +307 -0
- package/dist/handlers/tool-handler.js.map +1 -0
- package/dist/registry/argument-spaces.js +17 -17
- package/dist/registry/argument-spaces.js.map +1 -1
- package/dist/registry/domains.d.ts +10 -0
- package/dist/registry/domains.d.ts.map +1 -1
- package/dist/registry/domains.js +153 -11
- package/dist/registry/domains.js.map +1 -1
- package/dist/system-prompts.d.ts +8 -0
- package/dist/system-prompts.d.ts.map +1 -0
- package/dist/system-prompts.js +596 -0
- package/dist/system-prompts.js.map +1 -0
- package/dist/tool-definitions.d.ts +20 -1
- package/dist/tool-definitions.d.ts.map +1 -1
- package/dist/tool-definitions.js +42 -213
- package/dist/tool-definitions.js.map +1 -1
- package/dist/tool-router.d.ts +12 -0
- package/dist/tool-router.d.ts.map +1 -0
- package/dist/tool-router.js +59 -0
- package/dist/tool-router.js.map +1 -0
- package/dist/transport/http-transport.d.ts +40 -0
- package/dist/transport/http-transport.d.ts.map +1 -0
- package/dist/transport/http-transport.js +182 -0
- package/dist/transport/http-transport.js.map +1 -0
- package/dist/types/brutalist.d.ts +1 -0
- package/dist/types/brutalist.d.ts.map +1 -1
- package/dist/types/tool-config.d.ts +4 -3
- package/dist/types/tool-config.d.ts.map +1 -1
- package/dist/types/tool-config.js +7 -6
- package/dist/types/tool-config.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +13 -6
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/registry/domains.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* These are extracted from the original TOOL_CONFIGS and elevated to first-class abstractions.
|
|
5
5
|
*/
|
|
6
|
+
import { ARGUMENT_SPACES } from './argument-spaces.js';
|
|
6
7
|
export const DOMAINS = {
|
|
7
8
|
CODEBASE: {
|
|
8
9
|
id: 'codebase',
|
|
@@ -14,42 +15,78 @@ export const DOMAINS = {
|
|
|
14
15
|
'performance_profiling',
|
|
15
16
|
'scalability_analysis'
|
|
16
17
|
],
|
|
17
|
-
artifactTypes: ['code', 'directory_structure']
|
|
18
|
+
artifactTypes: ['code', 'directory_structure'],
|
|
19
|
+
inputType: 'filesystem',
|
|
20
|
+
requiredFields: ['targetPath'],
|
|
21
|
+
optionalFields: [],
|
|
22
|
+
argumentSpaceId: 'FILESYSTEM',
|
|
23
|
+
promptType: 'codebase',
|
|
24
|
+
keywords: ['code', 'codebase', 'review', 'audit', 'quality']
|
|
18
25
|
},
|
|
19
26
|
FILE_STRUCTURE: {
|
|
20
27
|
id: 'file_structure',
|
|
21
28
|
name: 'File Organization',
|
|
22
29
|
description: 'File and directory structure organization review',
|
|
23
30
|
capabilities: ['static_analysis'],
|
|
24
|
-
artifactTypes: ['directory_structure']
|
|
31
|
+
artifactTypes: ['directory_structure'],
|
|
32
|
+
inputType: 'filesystem',
|
|
33
|
+
requiredFields: ['targetPath'],
|
|
34
|
+
optionalFields: ['depth'],
|
|
35
|
+
argumentSpaceId: 'FILESYSTEM_DEPTH',
|
|
36
|
+
promptType: 'fileStructure',
|
|
37
|
+
keywords: ['files', 'structure', 'organization', 'directory']
|
|
25
38
|
},
|
|
26
39
|
DEPENDENCIES: {
|
|
27
40
|
id: 'dependencies',
|
|
28
41
|
name: 'Dependency Management',
|
|
29
42
|
description: 'Package dependency analysis for security and version conflicts',
|
|
30
43
|
capabilities: ['security_scanning', 'compliance_audit'],
|
|
31
|
-
artifactTypes: ['package_manifest']
|
|
44
|
+
artifactTypes: ['package_manifest'],
|
|
45
|
+
inputType: 'filesystem',
|
|
46
|
+
requiredFields: ['targetPath'],
|
|
47
|
+
optionalFields: ['includeDevDeps'],
|
|
48
|
+
argumentSpaceId: 'PACKAGE_MANIFEST',
|
|
49
|
+
promptType: 'dependencies',
|
|
50
|
+
keywords: ['dependencies', 'packages', 'npm', 'security', 'versions']
|
|
32
51
|
},
|
|
33
52
|
GIT_HISTORY: {
|
|
34
53
|
id: 'git_history',
|
|
35
54
|
name: 'Git History',
|
|
36
55
|
description: 'Version control history and workflow analysis',
|
|
37
56
|
capabilities: ['static_analysis'],
|
|
38
|
-
artifactTypes: ['git_history']
|
|
57
|
+
artifactTypes: ['git_history'],
|
|
58
|
+
inputType: 'filesystem',
|
|
59
|
+
requiredFields: ['targetPath'],
|
|
60
|
+
optionalFields: ['commitRange'],
|
|
61
|
+
argumentSpaceId: 'GIT_REPOSITORY',
|
|
62
|
+
promptType: 'gitHistory',
|
|
63
|
+
keywords: ['git', 'commits', 'history', 'workflow']
|
|
39
64
|
},
|
|
40
65
|
TEST_COVERAGE: {
|
|
41
66
|
id: 'test_coverage',
|
|
42
67
|
name: 'Test Coverage',
|
|
43
68
|
description: 'Testing strategy and coverage analysis',
|
|
44
69
|
capabilities: ['static_analysis'],
|
|
45
|
-
artifactTypes: ['test_suite', 'code']
|
|
70
|
+
artifactTypes: ['test_suite', 'code'],
|
|
71
|
+
inputType: 'filesystem',
|
|
72
|
+
requiredFields: ['targetPath'],
|
|
73
|
+
optionalFields: ['runCoverage'],
|
|
74
|
+
argumentSpaceId: 'TEST_SUITE',
|
|
75
|
+
promptType: 'testCoverage',
|
|
76
|
+
keywords: ['tests', 'coverage', 'testing', 'quality']
|
|
46
77
|
},
|
|
47
78
|
IDEA: {
|
|
48
79
|
id: 'idea',
|
|
49
80
|
name: 'Idea Validation',
|
|
50
81
|
description: 'Business and technical idea feasibility analysis',
|
|
51
82
|
capabilities: ['threat_modeling', 'scalability_analysis', 'cost_estimation'],
|
|
52
|
-
artifactTypes: ['text_description']
|
|
83
|
+
artifactTypes: ['text_description'],
|
|
84
|
+
inputType: 'content',
|
|
85
|
+
requiredFields: ['content', 'targetPath'],
|
|
86
|
+
optionalFields: ['resources', 'timeline'],
|
|
87
|
+
argumentSpaceId: 'EXTENDED_TEXT_INPUT',
|
|
88
|
+
promptType: 'idea',
|
|
89
|
+
keywords: ['idea', 'startup', 'concept', 'feasibility']
|
|
53
90
|
},
|
|
54
91
|
ARCHITECTURE: {
|
|
55
92
|
id: 'architecture',
|
|
@@ -61,14 +98,26 @@ export const DOMAINS = {
|
|
|
61
98
|
'performance_profiling',
|
|
62
99
|
'threat_modeling'
|
|
63
100
|
],
|
|
64
|
-
artifactTypes: ['architecture_diagram', 'text_description', 'code']
|
|
101
|
+
artifactTypes: ['architecture_diagram', 'text_description', 'code'],
|
|
102
|
+
inputType: 'content',
|
|
103
|
+
requiredFields: ['content', 'targetPath'],
|
|
104
|
+
optionalFields: ['scale', 'constraints', 'deployment'],
|
|
105
|
+
argumentSpaceId: 'ARCHITECTURE_SPECIFIC',
|
|
106
|
+
promptType: 'architecture',
|
|
107
|
+
keywords: ['architecture', 'design', 'system', 'scale']
|
|
65
108
|
},
|
|
66
109
|
RESEARCH: {
|
|
67
110
|
id: 'research',
|
|
68
111
|
name: 'Research Methodology',
|
|
69
112
|
description: 'Academic research methodology and statistical validity review',
|
|
70
113
|
capabilities: ['static_analysis'],
|
|
71
|
-
artifactTypes: ['text_description', 'documentation']
|
|
114
|
+
artifactTypes: ['text_description', 'documentation'],
|
|
115
|
+
inputType: 'content',
|
|
116
|
+
requiredFields: ['content', 'targetPath'],
|
|
117
|
+
optionalFields: ['field', 'claims', 'data'],
|
|
118
|
+
argumentSpaceId: 'RESEARCH_SPECIFIC',
|
|
119
|
+
promptType: 'research',
|
|
120
|
+
keywords: ['research', 'methodology', 'academic', 'statistics']
|
|
72
121
|
},
|
|
73
122
|
SECURITY: {
|
|
74
123
|
id: 'security',
|
|
@@ -80,14 +129,26 @@ export const DOMAINS = {
|
|
|
80
129
|
'security_scanning',
|
|
81
130
|
'compliance_audit'
|
|
82
131
|
],
|
|
83
|
-
artifactTypes: ['code', 'architecture_diagram', 'api_spec', 'deployment_config']
|
|
132
|
+
artifactTypes: ['code', 'architecture_diagram', 'api_spec', 'deployment_config'],
|
|
133
|
+
inputType: 'content',
|
|
134
|
+
requiredFields: ['content', 'targetPath'],
|
|
135
|
+
optionalFields: ['assets', 'threatModel', 'compliance'],
|
|
136
|
+
argumentSpaceId: 'SECURITY_SPECIFIC',
|
|
137
|
+
promptType: 'security',
|
|
138
|
+
keywords: ['security', 'vulnerability', 'threat', 'pentest']
|
|
84
139
|
},
|
|
85
140
|
PRODUCT: {
|
|
86
141
|
id: 'product',
|
|
87
142
|
name: 'Product Review',
|
|
88
143
|
description: 'Product design and user experience analysis',
|
|
89
144
|
capabilities: ['usability_review', 'threat_modeling'],
|
|
90
|
-
artifactTypes: ['text_description', 'documentation', 'code']
|
|
145
|
+
artifactTypes: ['text_description', 'documentation', 'code'],
|
|
146
|
+
inputType: 'content',
|
|
147
|
+
requiredFields: ['content', 'targetPath'],
|
|
148
|
+
optionalFields: ['users', 'competition', 'metrics'],
|
|
149
|
+
argumentSpaceId: 'PRODUCT_SPECIFIC',
|
|
150
|
+
promptType: 'product',
|
|
151
|
+
keywords: ['product', 'ux', 'user', 'market']
|
|
91
152
|
},
|
|
92
153
|
INFRASTRUCTURE: {
|
|
93
154
|
id: 'infrastructure',
|
|
@@ -99,7 +160,13 @@ export const DOMAINS = {
|
|
|
99
160
|
'threat_modeling',
|
|
100
161
|
'performance_profiling'
|
|
101
162
|
],
|
|
102
|
-
artifactTypes: ['deployment_config', 'text_description', 'architecture_diagram']
|
|
163
|
+
artifactTypes: ['deployment_config', 'text_description', 'architecture_diagram'],
|
|
164
|
+
inputType: 'content',
|
|
165
|
+
requiredFields: ['content', 'targetPath'],
|
|
166
|
+
optionalFields: ['scale', 'sla', 'budget'],
|
|
167
|
+
argumentSpaceId: 'INFRASTRUCTURE_SPECIFIC',
|
|
168
|
+
promptType: 'infrastructure',
|
|
169
|
+
keywords: ['infrastructure', 'devops', 'cloud', 'operations']
|
|
103
170
|
}
|
|
104
171
|
};
|
|
105
172
|
/**
|
|
@@ -126,4 +193,79 @@ export function findDomainsByCapability(capability) {
|
|
|
126
193
|
export function findDomainsByArtifactType(artifactType) {
|
|
127
194
|
return Object.values(DOMAINS).filter(d => d.artifactTypes.includes(artifactType));
|
|
128
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Create a context builder function based on domain configuration
|
|
198
|
+
*/
|
|
199
|
+
function createContextBuilder(domain, argSpace) {
|
|
200
|
+
// Special case: file_structure has a custom format
|
|
201
|
+
if (domain.id === 'file_structure') {
|
|
202
|
+
return (args) => `Project structure analysis (depth: ${args.depth || 3}). ${args.context || ''}`;
|
|
203
|
+
}
|
|
204
|
+
// Special case: dependencies has a prefix
|
|
205
|
+
if (domain.id === 'dependencies') {
|
|
206
|
+
return (args) => `Dependency analysis${args.includeDevDeps === false ? ' (production only)' : ''}. ${args.context || ''}`;
|
|
207
|
+
}
|
|
208
|
+
// Special case: git_history has a custom format
|
|
209
|
+
if (domain.id === 'git_history') {
|
|
210
|
+
return (args) => `Git history analysis${args.commitRange ? ` for ${args.commitRange}` : ' (last 20 commits)'}. ${args.context || ''}`;
|
|
211
|
+
}
|
|
212
|
+
// Special case: test_coverage has a custom format
|
|
213
|
+
if (domain.id === 'test_coverage') {
|
|
214
|
+
return (args) => `Test coverage analysis${args.runCoverage === false ? ' (static analysis only)' : ''}. ${args.context || ''}`;
|
|
215
|
+
}
|
|
216
|
+
// Field label overrides for better readability
|
|
217
|
+
const labelOverrides = {
|
|
218
|
+
threatModel: 'Threats',
|
|
219
|
+
includeDevDeps: 'Include Dev Dependencies',
|
|
220
|
+
runCoverage: 'Run Coverage'
|
|
221
|
+
};
|
|
222
|
+
// For domains with optional fields, build context from those fields
|
|
223
|
+
if (domain.optionalFields.length > 0) {
|
|
224
|
+
return (args) => {
|
|
225
|
+
let ctx = args.context || '';
|
|
226
|
+
// Add optional fields with human-readable labels
|
|
227
|
+
for (const field of domain.optionalFields) {
|
|
228
|
+
if (args[field]) {
|
|
229
|
+
// Use override label if available, otherwise convert camelCase to Title Case
|
|
230
|
+
const label = labelOverrides[field] ||
|
|
231
|
+
(field.charAt(0).toUpperCase() + field.slice(1).replace(/([A-Z])/g, ' $1'));
|
|
232
|
+
ctx += ` ${label}: ${args[field]}.`;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return ctx.trim();
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
// No context builder needed for simple domains
|
|
239
|
+
return undefined;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Generate a ToolConfig from a CritiqueDomain.
|
|
243
|
+
* This is the canonical way to create tools - no more duplication.
|
|
244
|
+
*/
|
|
245
|
+
export function generateToolConfig(domain) {
|
|
246
|
+
const argSpace = ARGUMENT_SPACES[domain.argumentSpaceId];
|
|
247
|
+
if (!argSpace) {
|
|
248
|
+
throw new Error(`Unknown argument space: ${domain.argumentSpaceId}`);
|
|
249
|
+
}
|
|
250
|
+
// Build schema extensions from argument space DOMAIN fields only
|
|
251
|
+
// BASE_ROAST_SCHEMA is merged separately in brutalist-server.ts
|
|
252
|
+
const schemaExtensions = { ...argSpace.domain.shape };
|
|
253
|
+
// Build context builder based on domain type
|
|
254
|
+
const contextBuilder = createContextBuilder(domain, argSpace);
|
|
255
|
+
return {
|
|
256
|
+
name: `roast_${domain.id}`,
|
|
257
|
+
description: `Deploy brutal AI critics to systematically destroy your ${domain.name.toLowerCase()}. ${domain.description}.`,
|
|
258
|
+
analysisType: domain.promptType,
|
|
259
|
+
schemaExtensions,
|
|
260
|
+
cacheKeyFields: [...domain.requiredFields, ...domain.optionalFields, 'context', 'clis', 'models'],
|
|
261
|
+
primaryArgField: domain.inputType === 'filesystem' ? 'targetPath' : 'content',
|
|
262
|
+
contextBuilder
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Generate all tool configs from the domain registry.
|
|
267
|
+
*/
|
|
268
|
+
export function generateAllToolConfigs() {
|
|
269
|
+
return Object.values(DOMAINS).map(generateToolConfig);
|
|
270
|
+
}
|
|
129
271
|
//# sourceMappingURL=domains.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../src/registry/domains.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../src/registry/domains.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,CAAC,MAAM,OAAO,GAAmC;IACrD,QAAQ,EAAE;QACR,EAAE,EAAE,UAAU;QACd,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,+EAA+E;QAC5F,YAAY,EAAE;YACZ,iBAAiB;YACjB,mBAAmB;YACnB,uBAAuB;YACvB,sBAAsB;SACvB;QACD,aAAa,E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TEM_PROMPTS: Record<BrutalistPromptType, string>;
|
|
3
|
+
/**
|
|
4
|
+
* Get the system prompt for a given analysis type.
|
|
5
|
+
* Falls back to a generic brutal prompt if type is not found.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getSystemPrompt(analysisType: BrutalistPromptType): string;
|
|
8
|
+
//# sourceMappingURL=system-prompts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-prompts.d.ts","sourceRoot":"","sources":["../src/system-prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAyEtD,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAmgB9D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,mBAAmB,GAAG,MAAM,CA4BzE"}
|