mcp-adr-analysis-server 2.7.23 → 2.7.25
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/dist/.tsbuildinfo +1 -1
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts +0 -178
- package/dist/src/tools/bootstrap-validation-loop-tool.d.ts.map +1 -1
- package/dist/src/tools/bootstrap-validation-loop-tool.js +0 -1580
- package/dist/src/tools/bootstrap-validation-loop-tool.js.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.d.ts +19 -1
- package/dist/src/tools/deployment-guidance-tool.d.ts.map +1 -1
- package/dist/src/tools/deployment-guidance-tool.js +9 -4
- package/dist/src/tools/deployment-guidance-tool.js.map +1 -1
- package/package.json +1 -2
- package/dist/src/utils/dag-executor.d.ts +0 -106
- package/dist/src/utils/dag-executor.d.ts.map +0 -1
- package/dist/src/utils/dag-executor.js +0 -453
- package/dist/src/utils/dag-executor.js.map +0 -1
- package/dist/src/utils/deployment-task-integration.d.ts +0 -260
- package/dist/src/utils/deployment-task-integration.d.ts.map +0 -1
- package/dist/src/utils/deployment-task-integration.js +0 -393
- package/dist/src/utils/deployment-task-integration.js.map +0 -1
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts +0 -117
- package/dist/src/utils/dynamic-deployment-intelligence.d.ts.map +0 -1
- package/dist/src/utils/dynamic-deployment-intelligence.js +0 -445
- package/dist/src/utils/dynamic-deployment-intelligence.js.map +0 -1
- package/dist/src/utils/pattern-contribution-helper.d.ts +0 -60
- package/dist/src/utils/pattern-contribution-helper.d.ts.map +0 -1
- package/dist/src/utils/pattern-contribution-helper.js +0 -308
- package/dist/src/utils/pattern-contribution-helper.js.map +0 -1
- package/dist/src/utils/pattern-loader.d.ts +0 -183
- package/dist/src/utils/pattern-loader.d.ts.map +0 -1
- package/dist/src/utils/pattern-loader.js +0 -198
- package/dist/src/utils/pattern-loader.js.map +0 -1
- package/dist/src/utils/pattern-to-dag-converter.d.ts +0 -62
- package/dist/src/utils/pattern-to-dag-converter.d.ts.map +0 -1
- package/dist/src/utils/pattern-to-dag-converter.js +0 -265
- package/dist/src/utils/pattern-to-dag-converter.js.map +0 -1
- package/dist/src/utils/resource-extractor.d.ts +0 -57
- package/dist/src/utils/resource-extractor.d.ts.map +0 -1
- package/dist/src/utils/resource-extractor.js +0 -323
- package/dist/src/utils/resource-extractor.js.map +0 -1
- package/dist/src/utils/system-card-manager.d.ts +0 -194
- package/dist/src/utils/system-card-manager.d.ts.map +0 -1
- package/dist/src/utils/system-card-manager.js +0 -336
- package/dist/src/utils/system-card-manager.js.map +0 -1
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
* This creates a bidirectional feedback loop where ADRs evolve
|
|
14
14
|
* based on real-world deployment experience.
|
|
15
15
|
*/
|
|
16
|
-
import { EnhancedLogger } from '../utils/enhanced-logging.js';
|
|
17
|
-
import { ResearchOrchestrator } from '../utils/research-orchestrator.js';
|
|
18
|
-
import { MemoryEntityManager } from '../utils/memory-entity-manager.js';
|
|
19
|
-
import { DynamicDeploymentPlan } from '../utils/dynamic-deployment-intelligence.js';
|
|
20
|
-
import { PlatformDetectionResult } from '../utils/platform-detector.js';
|
|
21
|
-
import { DAGExecutionResult } from '../utils/dag-executor.js';
|
|
22
16
|
/**
|
|
23
17
|
* Bootstrap execution result with environment context
|
|
24
18
|
*/
|
|
@@ -93,178 +87,6 @@ export interface MissingFileInfo {
|
|
|
93
87
|
templateContent: string | undefined;
|
|
94
88
|
recommendation: string;
|
|
95
89
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Dependencies for BootstrapValidationLoop (enables DI and mocking)
|
|
98
|
-
* Uses concrete types for full compatibility with existing implementations
|
|
99
|
-
* @see Issue #310 - Dependency injection for improved testability
|
|
100
|
-
*/
|
|
101
|
-
export interface BootstrapValidationLoopDeps {
|
|
102
|
-
logger?: EnhancedLogger;
|
|
103
|
-
researchOrchestrator?: ResearchOrchestrator;
|
|
104
|
-
memoryManager?: MemoryEntityManager;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Bootstrap Validation Loop orchestrator
|
|
108
|
-
* Supports dependency injection for improved testability
|
|
109
|
-
* @see Issue #310 - Dependency injection for improved testability
|
|
110
|
-
*/
|
|
111
|
-
export declare class BootstrapValidationLoop {
|
|
112
|
-
private logger;
|
|
113
|
-
private projectPath;
|
|
114
|
-
private adrDirectory;
|
|
115
|
-
private researchOrchestrator;
|
|
116
|
-
private memoryManager;
|
|
117
|
-
private deploymentIntelligence;
|
|
118
|
-
private executionHistory;
|
|
119
|
-
private maxIterations;
|
|
120
|
-
private currentIteration;
|
|
121
|
-
private deploymentPlan;
|
|
122
|
-
private platformDetection;
|
|
123
|
-
private validatedPattern;
|
|
124
|
-
private patternResearchReport;
|
|
125
|
-
private contextManager;
|
|
126
|
-
private dagExecutor;
|
|
127
|
-
private patternLoader;
|
|
128
|
-
private patternConverter;
|
|
129
|
-
private contributionHelper;
|
|
130
|
-
private systemCardManager;
|
|
131
|
-
/**
|
|
132
|
-
* Constructor with optional dependency injection
|
|
133
|
-
* @param projectPath - Path to the project
|
|
134
|
-
* @param adrDirectory - Path to ADR directory
|
|
135
|
-
* @param maxIterations - Maximum validation iterations
|
|
136
|
-
* @param deps - Optional dependencies for testing (defaults create real instances)
|
|
137
|
-
*/
|
|
138
|
-
constructor(projectPath: string, adrDirectory: string, maxIterations?: number, deps?: BootstrapValidationLoopDeps);
|
|
139
|
-
/**
|
|
140
|
-
* Initialize the validation loop
|
|
141
|
-
*/
|
|
142
|
-
initialize(): Promise<void>;
|
|
143
|
-
/**
|
|
144
|
-
* Execute the complete validation loop
|
|
145
|
-
*/
|
|
146
|
-
executeLoop(args: {
|
|
147
|
-
targetEnvironment: string;
|
|
148
|
-
autoFix: boolean;
|
|
149
|
-
validateAfterFix: boolean;
|
|
150
|
-
captureEnvironmentSnapshot: boolean;
|
|
151
|
-
updateAdrsWithLearnings: boolean;
|
|
152
|
-
}): Promise<{
|
|
153
|
-
success: boolean;
|
|
154
|
-
iterations: number;
|
|
155
|
-
finalResult: BootstrapExecutionResult;
|
|
156
|
-
adrUpdates: AdrUpdateProposal[];
|
|
157
|
-
executionHistory: BootstrapExecutionResult[];
|
|
158
|
-
deploymentPlan?: DynamicDeploymentPlan;
|
|
159
|
-
bootstrapAdrPath?: string;
|
|
160
|
-
contextDocumentPath?: string;
|
|
161
|
-
requiresHumanApproval: boolean;
|
|
162
|
-
}>;
|
|
163
|
-
/**
|
|
164
|
-
* Create Bootstrap ADR with deployment plan and architecture diagrams
|
|
165
|
-
*/
|
|
166
|
-
private createBootstrapAdr;
|
|
167
|
-
/**
|
|
168
|
-
* Save bootstrap context document for future sessions
|
|
169
|
-
*/
|
|
170
|
-
private saveBootstrapContext;
|
|
171
|
-
/**
|
|
172
|
-
* Generate bootstrap scripts from validated pattern (NEW)
|
|
173
|
-
*/
|
|
174
|
-
private generateBootstrapScriptsFromPattern;
|
|
175
|
-
/**
|
|
176
|
-
* Generate bootstrap scripts from current ADRs (FALLBACK)
|
|
177
|
-
*/
|
|
178
|
-
private generateBootstrapScripts;
|
|
179
|
-
/**
|
|
180
|
-
* Execute bootstrap.sh with environment monitoring
|
|
181
|
-
*/
|
|
182
|
-
private executeBootstrapWithMonitoring;
|
|
183
|
-
/**
|
|
184
|
-
* Execute validate_bootstrap.sh and analyze results
|
|
185
|
-
*/
|
|
186
|
-
private executeValidationScript;
|
|
187
|
-
/**
|
|
188
|
-
* Extract learnings from execution results
|
|
189
|
-
*/
|
|
190
|
-
private extractLearnings;
|
|
191
|
-
/**
|
|
192
|
-
* Generate recommendation for a failed validation
|
|
193
|
-
*/
|
|
194
|
-
private generateRecommendation;
|
|
195
|
-
/**
|
|
196
|
-
* Update bootstrap scripts based on learnings
|
|
197
|
-
*/
|
|
198
|
-
private updateBootstrapScriptsFromLearnings;
|
|
199
|
-
/**
|
|
200
|
-
* Generate ADR update proposals based on learnings
|
|
201
|
-
*/
|
|
202
|
-
private generateAdrUpdates;
|
|
203
|
-
/**
|
|
204
|
-
* Generate deployment experience section content
|
|
205
|
-
*/
|
|
206
|
-
private generateDeploymentExperienceSection;
|
|
207
|
-
/**
|
|
208
|
-
* Detect missing files that might break bootstrap
|
|
209
|
-
*/
|
|
210
|
-
private detectMissingFiles;
|
|
211
|
-
/**
|
|
212
|
-
* Parse .gitignore file patterns
|
|
213
|
-
*/
|
|
214
|
-
private parseGitignore;
|
|
215
|
-
/**
|
|
216
|
-
* Check if a file path matches gitignore patterns
|
|
217
|
-
*/
|
|
218
|
-
private isFileIgnored;
|
|
219
|
-
/**
|
|
220
|
-
* Extract file references from ADR content
|
|
221
|
-
*/
|
|
222
|
-
private extractFileReferencesFromAdrs;
|
|
223
|
-
/**
|
|
224
|
-
* Analyze a missing file and provide recommendations
|
|
225
|
-
*/
|
|
226
|
-
private analyzeMissingFile;
|
|
227
|
-
/**
|
|
228
|
-
* Generate template content for missing files
|
|
229
|
-
*/
|
|
230
|
-
private generateTemplateContent;
|
|
231
|
-
/**
|
|
232
|
-
* Generate recommendation for missing file
|
|
233
|
-
*/
|
|
234
|
-
private generateMissingFileRecommendation;
|
|
235
|
-
/**
|
|
236
|
-
* Handle missing files - create templates or add to bootstrap prerequisites
|
|
237
|
-
*/
|
|
238
|
-
private handleMissingFiles;
|
|
239
|
-
/**
|
|
240
|
-
* Capture environment snapshot
|
|
241
|
-
*/
|
|
242
|
-
private captureEnvironmentSnapshot;
|
|
243
|
-
/**
|
|
244
|
-
* Store execution result in memory system
|
|
245
|
-
*/
|
|
246
|
-
private storeExecutionInMemory;
|
|
247
|
-
/**
|
|
248
|
-
* Compute SHA-256 hash of validated pattern for change detection
|
|
249
|
-
* @param pattern - Validated pattern to hash
|
|
250
|
-
* @returns Hex-encoded SHA-256 hash
|
|
251
|
-
*/
|
|
252
|
-
/**
|
|
253
|
-
* Execute Infrastructure Layer using DAG with validated pattern
|
|
254
|
-
*
|
|
255
|
-
* This method:
|
|
256
|
-
* 1. Attempts to load validated pattern from YAML
|
|
257
|
-
* 2. If pattern exists: Auto-generates DAG tasks from pattern definition
|
|
258
|
-
* 3. If pattern doesn't exist: Works with user to create GitHub issue
|
|
259
|
-
* 4. Executes infrastructure DAG with parallel execution where possible
|
|
260
|
-
*/
|
|
261
|
-
executeInfrastructureDAG(platformDetection: PlatformDetectionResult): Promise<DAGExecutionResult>;
|
|
262
|
-
/**
|
|
263
|
-
* Generate fallback pattern using AI when validated pattern doesn't exist
|
|
264
|
-
*/
|
|
265
|
-
private generateFallbackPattern;
|
|
266
|
-
private computePatternHash;
|
|
267
|
-
}
|
|
268
90
|
/**
|
|
269
91
|
* Main tool function for bootstrap validation loop
|
|
270
92
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap-validation-loop-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/bootstrap-validation-loop-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"bootstrap-validation-loop-tool.d.ts","sourceRoot":"","sources":["../../../src/tools/bootstrap-validation-loop-tool.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE;QACnB,MAAM,CAAC,EAAE,GAAG,CAAC;QACb,UAAU,CAAC,EAAE,GAAG,CAAC;QACjB,SAAS,CAAC,EAAE,GAAG,CAAC;QAChB,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,UAAU,CAAC,EAAE,GAAG,CAAC;KAClB,CAAC;IACF,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,S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