@vibecheckai/cli 2.5.7 → 2.7.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/LICENSE +1 -1
- package/dist/bundles/vibecheck-core.js +20 -20
- package/dist/commands/secrets-allowlist.js +4 -4
- package/dist/commands/secrets-allowlist.js.map +1 -1
- package/dist/commands/ship-consolidated.js +193 -193
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/init/ci-generator.d.ts +2 -2
- package/dist/init/hooks-installer.d.ts +2 -2
- package/dist/init/index.d.ts +1 -1
- package/dist/init/index.d.ts.map +1 -1
- package/dist/init/index.js +2 -2
- package/dist/init/index.js.map +1 -1
- package/dist/init/templates.d.ts +6 -285
- package/dist/init/templates.d.ts.map +1 -1
- package/dist/init/templates.js +2 -3
- package/dist/init/templates.js.map +1 -1
- package/dist/runtime/json-output.d.ts +2 -2
- package/package.json +11 -3
- package/dist/bundles/guardrail-core.js +0 -25799
- package/dist/bundles/guardrail-security.js +0 -208687
- package/dist/bundles/guardrail-ship.js +0 -2318
- package/dist/commands/autopilot-decision.d.ts +0 -24
- package/dist/commands/autopilot-decision.d.ts.map +0 -1
- package/dist/commands/autopilot-decision.js +0 -304
- package/dist/commands/autopilot-decision.js.map +0 -1
- package/dist/commands/autopilot.d.ts +0 -33
- package/dist/commands/autopilot.d.ts.map +0 -1
- package/dist/commands/autopilot.js +0 -1539
- package/dist/commands/autopilot.js.map +0 -1
- package/dist/commands/context.d.ts +0 -8
- package/dist/commands/context.d.ts.map +0 -1
- package/dist/commands/context.js +0 -340
- package/dist/commands/context.js.map +0 -1
- package/dist/commands/debug.d.ts +0 -78
- package/dist/commands/debug.d.ts.map +0 -1
- package/dist/commands/debug.js +0 -381
- package/dist/commands/debug.js.map +0 -1
- package/dist/commands/preview.d.ts +0 -54
- package/dist/commands/preview.d.ts.map +0 -1
- package/dist/commands/preview.js +0 -352
- package/dist/commands/preview.js.map +0 -1
- package/dist/commands/quality/check.d.ts +0 -31
- package/dist/commands/quality/check.d.ts.map +0 -1
- package/dist/commands/quality/check.js +0 -242
- package/dist/commands/quality/check.js.map +0 -1
- package/dist/commands/quality/index.d.ts +0 -8
- package/dist/commands/quality/index.d.ts.map +0 -1
- package/dist/commands/quality/index.js +0 -14
- package/dist/commands/quality/index.js.map +0 -1
- package/dist/commands/quality/setup-quality.d.ts +0 -23
- package/dist/commands/quality/setup-quality.d.ts.map +0 -1
- package/dist/commands/quality/setup-quality.js +0 -452
- package/dist/commands/quality/setup-quality.js.map +0 -1
- package/dist/commands/quality/tidy.d.ts +0 -41
- package/dist/commands/quality/tidy.d.ts.map +0 -1
- package/dist/commands/quality/tidy.js +0 -466
- package/dist/commands/quality/tidy.js.map +0 -1
- package/dist/commands/quality/utils.d.ts +0 -73
- package/dist/commands/quality/utils.d.ts.map +0 -1
- package/dist/commands/quality/utils.js +0 -158
- package/dist/commands/quality/utils.js.map +0 -1
- package/dist/fix/analytics.d.ts +0 -121
- package/dist/fix/analytics.d.ts.map +0 -1
- package/dist/fix/analytics.js +0 -289
- package/dist/fix/analytics.js.map +0 -1
- package/dist/fix/audit.d.ts +0 -61
- package/dist/fix/audit.d.ts.map +0 -1
- package/dist/fix/audit.js +0 -149
- package/dist/fix/audit.js.map +0 -1
- package/dist/fix/config.d.ts +0 -78
- package/dist/fix/config.d.ts.map +0 -1
- package/dist/fix/config.js +0 -200
- package/dist/fix/config.js.map +0 -1
- package/dist/fix/impact.d.ts +0 -74
- package/dist/fix/impact.d.ts.map +0 -1
- package/dist/fix/impact.js +0 -281
- package/dist/fix/impact.js.map +0 -1
- package/dist/fix/learning.d.ts +0 -109
- package/dist/fix/learning.d.ts.map +0 -1
- package/dist/fix/learning.js +0 -296
- package/dist/fix/learning.js.map +0 -1
- package/dist/fix/metrics.d.ts +0 -106
- package/dist/fix/metrics.d.ts.map +0 -1
- package/dist/fix/metrics.js +0 -138
- package/dist/fix/metrics.js.map +0 -1
- package/dist/fix/parallel.d.ts +0 -69
- package/dist/fix/parallel.d.ts.map +0 -1
- package/dist/fix/parallel.js +0 -203
- package/dist/fix/parallel.js.map +0 -1
- package/dist/fix/report.d.ts +0 -40
- package/dist/fix/report.d.ts.map +0 -1
- package/dist/fix/report.js +0 -212
- package/dist/fix/report.js.map +0 -1
- package/dist/fix/strategy.d.ts +0 -53
- package/dist/fix/strategy.d.ts.map +0 -1
- package/dist/fix/strategy.js +0 -143
- package/dist/fix/strategy.js.map +0 -1
- package/dist/fix/templates.d.ts +0 -58
- package/dist/fix/templates.d.ts.map +0 -1
- package/dist/fix/templates.js +0 -259
- package/dist/fix/templates.js.map +0 -1
- package/dist/fix/testing.d.ts +0 -68
- package/dist/fix/testing.d.ts.map +0 -1
- package/dist/fix/testing.js +0 -245
- package/dist/fix/testing.js.map +0 -1
- package/dist/fix/validation.d.ts +0 -71
- package/dist/fix/validation.d.ts.map +0 -1
- package/dist/fix/validation.js +0 -267
- package/dist/fix/validation.js.map +0 -1
- package/dist/fix/visualization.d.ts +0 -73
- package/dist/fix/visualization.d.ts.map +0 -1
- package/dist/fix/visualization.js +0 -243
- package/dist/fix/visualization.js.map +0 -1
- package/dist/runtime/cli-errors.d.ts +0 -38
- package/dist/runtime/cli-errors.d.ts.map +0 -1
- package/dist/runtime/cli-errors.js +0 -354
- package/dist/runtime/cli-errors.js.map +0 -1
- package/dist/runtime/owner-mode.d.ts +0 -48
- package/dist/runtime/owner-mode.d.ts.map +0 -1
- package/dist/runtime/owner-mode.js +0 -284
- package/dist/runtime/owner-mode.js.map +0 -1
- package/dist/scanner/index.d.ts +0 -8
- package/dist/scanner/index.d.ts.map +0 -1
- package/dist/scanner/index.js +0 -15
- package/dist/scanner/index.js.map +0 -1
- package/dist/scanner/placeholder-detector.d.ts +0 -56
- package/dist/scanner/placeholder-detector.d.ts.map +0 -1
- package/dist/scanner/placeholder-detector.js +0 -220
- package/dist/scanner/placeholder-detector.js.map +0 -1
- package/dist/scanner/route-detector.d.ts +0 -100
- package/dist/scanner/route-detector.d.ts.map +0 -1
- package/dist/scanner/route-detector.js +0 -455
- package/dist/scanner/route-detector.js.map +0 -1
- package/dist/scanner/scoring.d.ts +0 -67
- package/dist/scanner/scoring.d.ts.map +0 -1
- package/dist/scanner/scoring.js +0 -284
- package/dist/scanner/scoring.js.map +0 -1
- package/dist/ship-baseline.d.ts +0 -56
- package/dist/ship-baseline.d.ts.map +0 -1
- package/dist/ship-baseline.js +0 -194
- package/dist/ship-baseline.js.map +0 -1
- package/dist/ship-config.d.ts +0 -91
- package/dist/ship-config.d.ts.map +0 -1
- package/dist/ship-config.js +0 -133
- package/dist/ship-config.js.map +0 -1
- package/dist/ship-data-loader.d.ts +0 -70
- package/dist/ship-data-loader.d.ts.map +0 -1
- package/dist/ship-data-loader.js +0 -301
- package/dist/ship-data-loader.js.map +0 -1
- package/dist/utils/ai-helpers.d.ts +0 -72
- package/dist/utils/ai-helpers.d.ts.map +0 -1
- package/dist/utils/ai-helpers.js +0 -339
- package/dist/utils/ai-helpers.js.map +0 -1
- package/dist/utils/validation.d.ts +0 -34
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -160
- package/dist/utils/validation.js.map +0 -1
package/dist/fix/parallel.js
DELETED
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Parallel Fix Application
|
|
4
|
-
*
|
|
5
|
-
* Applies fixes in parallel with safety checks and conflict detection.
|
|
6
|
-
* Optimizes performance for large codebases while maintaining safety.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ParallelFixApplicator = void 0;
|
|
10
|
-
const applicator_1 = require("./applicator");
|
|
11
|
-
class ParallelFixApplicator {
|
|
12
|
-
constructor(projectPath) {
|
|
13
|
-
this.projectPath = projectPath;
|
|
14
|
-
this.applicator = new applicator_1.FixApplicator(projectPath);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Apply fixes in parallel with safety checks
|
|
18
|
-
*/
|
|
19
|
-
async applyParallel(packs, options) {
|
|
20
|
-
const startTime = Date.now();
|
|
21
|
-
const allFixes = packs.flatMap((p) => p.fixes);
|
|
22
|
-
const conflicts = this.detectConflicts(allFixes);
|
|
23
|
-
// Remove conflicting fixes from parallel application
|
|
24
|
-
const conflictFixIds = new Set(conflicts.flatMap((c) => [c.fix1.findingId, c.fix2.findingId]));
|
|
25
|
-
const safeFixes = allFixes.filter((f) => !conflictFixIds.has(f.findingId));
|
|
26
|
-
const conflictingFixes = allFixes.filter((f) => conflictFixIds.has(f.findingId));
|
|
27
|
-
// Group fixes by file for batch processing
|
|
28
|
-
const fixesByFile = this.groupFixesByFile(safeFixes);
|
|
29
|
-
// Apply fixes in parallel batches
|
|
30
|
-
const results = await this.applyBatches(fixesByFile, options);
|
|
31
|
-
// Apply conflicting fixes sequentially
|
|
32
|
-
const conflictResults = await this.applySequentially(conflictingFixes);
|
|
33
|
-
// Merge results
|
|
34
|
-
const mergedResult = this.mergeResults(results, conflictResults, conflicts, startTime);
|
|
35
|
-
if (options.onProgress) {
|
|
36
|
-
options.onProgress(allFixes.length, allFixes.length);
|
|
37
|
-
}
|
|
38
|
-
return mergedResult;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Group fixes by file
|
|
42
|
-
*/
|
|
43
|
-
groupFixesByFile(fixes) {
|
|
44
|
-
const grouped = new Map();
|
|
45
|
-
for (const fix of fixes) {
|
|
46
|
-
if (!grouped.has(fix.file)) {
|
|
47
|
-
grouped.set(fix.file, []);
|
|
48
|
-
}
|
|
49
|
-
grouped.get(fix.file).push(fix);
|
|
50
|
-
}
|
|
51
|
-
return grouped;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Apply fixes in batches
|
|
55
|
-
*/
|
|
56
|
-
async applyBatches(fixesByFile, options) {
|
|
57
|
-
const files = Array.from(fixesByFile.keys());
|
|
58
|
-
const batches = [];
|
|
59
|
-
// Create batches
|
|
60
|
-
for (let i = 0; i < files.length; i += options.batchSize) {
|
|
61
|
-
batches.push(files.slice(i, i + options.batchSize));
|
|
62
|
-
}
|
|
63
|
-
const results = [];
|
|
64
|
-
// Process batches with concurrency limit
|
|
65
|
-
for (const batch of batches) {
|
|
66
|
-
const batchPromises = batch.map((file) => {
|
|
67
|
-
const fixes = fixesByFile.get(file);
|
|
68
|
-
// Create a temporary pack for this file's fixes
|
|
69
|
-
const tempPack = {
|
|
70
|
-
id: `temp-${file}`,
|
|
71
|
-
category: 'quality',
|
|
72
|
-
name: `Fixes for ${file}`,
|
|
73
|
-
description: '',
|
|
74
|
-
findings: [],
|
|
75
|
-
fixes,
|
|
76
|
-
estimatedRisk: 'low',
|
|
77
|
-
impactedFiles: [file],
|
|
78
|
-
priority: 0,
|
|
79
|
-
confidence: 0.8,
|
|
80
|
-
};
|
|
81
|
-
return this.applicator.applyPacks([tempPack]);
|
|
82
|
-
});
|
|
83
|
-
// Limit concurrency
|
|
84
|
-
const concurrentBatch = [];
|
|
85
|
-
for (let i = 0; i < batchPromises.length; i += options.maxConcurrent) {
|
|
86
|
-
const chunk = batchPromises.slice(i, i + options.maxConcurrent);
|
|
87
|
-
concurrentBatch.push(...(await Promise.all(chunk)));
|
|
88
|
-
}
|
|
89
|
-
results.push(...concurrentBatch);
|
|
90
|
-
}
|
|
91
|
-
return results;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Apply fixes sequentially (for conflicts)
|
|
95
|
-
*/
|
|
96
|
-
async applySequentially(fixes) {
|
|
97
|
-
if (fixes.length === 0) {
|
|
98
|
-
return {
|
|
99
|
-
success: true,
|
|
100
|
-
appliedFixes: 0,
|
|
101
|
-
failedFixes: 0,
|
|
102
|
-
errors: [],
|
|
103
|
-
filesChanged: [],
|
|
104
|
-
warnings: [],
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
// Create temporary pack
|
|
108
|
-
const tempPack = {
|
|
109
|
-
id: 'conflict-fixes',
|
|
110
|
-
category: 'quality',
|
|
111
|
-
name: 'Sequential conflict fixes',
|
|
112
|
-
description: '',
|
|
113
|
-
findings: [],
|
|
114
|
-
fixes,
|
|
115
|
-
estimatedRisk: 'medium',
|
|
116
|
-
impactedFiles: Array.from(new Set(fixes.map((f) => f.file))),
|
|
117
|
-
priority: 0,
|
|
118
|
-
confidence: 0.7,
|
|
119
|
-
};
|
|
120
|
-
return this.applicator.applyPacks([tempPack]);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Detect conflicts between fixes
|
|
124
|
-
*/
|
|
125
|
-
detectConflicts(fixes) {
|
|
126
|
-
const conflicts = [];
|
|
127
|
-
for (let i = 0; i < fixes.length; i++) {
|
|
128
|
-
for (let j = i + 1; j < fixes.length; j++) {
|
|
129
|
-
const fix1 = fixes[i];
|
|
130
|
-
const fix2 = fixes[j];
|
|
131
|
-
// Same file and line
|
|
132
|
-
if (fix1.file === fix2.file && fix1.line === fix2.line) {
|
|
133
|
-
conflicts.push({
|
|
134
|
-
fix1,
|
|
135
|
-
fix2,
|
|
136
|
-
reason: 'Same file and line - cannot apply both fixes',
|
|
137
|
-
});
|
|
138
|
-
continue;
|
|
139
|
-
}
|
|
140
|
-
// Overlapping code blocks (simplified check)
|
|
141
|
-
if (fix1.file === fix2.file && Math.abs(fix1.line - fix2.line) <= 2) {
|
|
142
|
-
conflicts.push({
|
|
143
|
-
fix1,
|
|
144
|
-
fix2,
|
|
145
|
-
reason: 'Overlapping code blocks - potential conflict',
|
|
146
|
-
});
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
// Dependency conflicts (one fix modifies a file that another depends on)
|
|
150
|
-
// This is a simplified check - full analysis would require AST parsing
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return conflicts;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Merge multiple apply results
|
|
157
|
-
*/
|
|
158
|
-
mergeResults(batchResults, conflictResults, conflicts, startTime) {
|
|
159
|
-
let appliedFixes = 0;
|
|
160
|
-
let failedFixes = 0;
|
|
161
|
-
const allErrors = [];
|
|
162
|
-
const allFilesChanged = new Set();
|
|
163
|
-
const allWarnings = [];
|
|
164
|
-
// Merge batch results
|
|
165
|
-
for (const result of batchResults) {
|
|
166
|
-
appliedFixes += result.appliedFixes;
|
|
167
|
-
failedFixes += result.failedFixes;
|
|
168
|
-
allErrors.push(...result.errors);
|
|
169
|
-
result.filesChanged.forEach((f) => allFilesChanged.add(f));
|
|
170
|
-
allWarnings.push(...result.warnings);
|
|
171
|
-
}
|
|
172
|
-
// Merge conflict results
|
|
173
|
-
appliedFixes += conflictResults.appliedFixes;
|
|
174
|
-
failedFixes += conflictResults.failedFixes;
|
|
175
|
-
allErrors.push(...conflictResults.errors);
|
|
176
|
-
conflictResults.filesChanged.forEach((f) => allFilesChanged.add(f));
|
|
177
|
-
allWarnings.push(...conflictResults.warnings);
|
|
178
|
-
const totalDuration = Date.now() - startTime;
|
|
179
|
-
const totalFixes = appliedFixes + failedFixes;
|
|
180
|
-
const averageFixDuration = totalFixes > 0 ? totalDuration / totalFixes : 0;
|
|
181
|
-
// Calculate parallel efficiency (simplified - compares to sequential)
|
|
182
|
-
// In a perfect parallel scenario, efficiency would be close to maxConcurrent
|
|
183
|
-
// For simplicity, we estimate based on batch processing
|
|
184
|
-
const sequentialTime = totalFixes * averageFixDuration;
|
|
185
|
-
const parallelEfficiency = sequentialTime > 0 ? Math.min(sequentialTime / totalDuration, 1) : 1;
|
|
186
|
-
return {
|
|
187
|
-
success: failedFixes === 0 && conflicts.length === 0,
|
|
188
|
-
appliedFixes,
|
|
189
|
-
failedFixes,
|
|
190
|
-
errors: allErrors,
|
|
191
|
-
filesChanged: Array.from(allFilesChanged),
|
|
192
|
-
warnings: allWarnings,
|
|
193
|
-
conflicts,
|
|
194
|
-
performance: {
|
|
195
|
-
totalDuration,
|
|
196
|
-
averageFixDuration,
|
|
197
|
-
parallelEfficiency,
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
exports.ParallelFixApplicator = ParallelFixApplicator;
|
|
203
|
-
//# sourceMappingURL=parallel.js.map
|
package/dist/fix/parallel.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parallel.js","sourceRoot":"","sources":["../../src/fix/parallel.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAGH,6CAA0D;AA8B1D,MAAa,qBAAqB;IAIhC,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAI,0BAAa,CAAC,WAAW,CAAC,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CACjB,KAAgB,EAChB,OAA6B;QAE7B,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAEjD,qDAAqD;QACrD,MAAM,cAAc,GAAG,IAAI,GAAG,CAC5B,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAC/D,CAAC;QAEF,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC3E,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC7C,cAAc,CAAC,GAAG,CAAC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,EAAE,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;YACzC,QAAQ,EAAE,WAAW;YACrB,SAAS;YACT,WAAW,EAAE;gBACX,aAAa;gBACb,kBAAkB;gBAClB,kBAAkB;aACnB;SACF,CAAC;IACJ,CAAC;CACF;AA/PD,sDA+PC"}
|
package/dist/fix/report.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enterprise Report Generation for Fix Service
|
|
3
|
-
*
|
|
4
|
-
* Generates comprehensive markdown reports and evidence for compliance
|
|
5
|
-
* and audit purposes.
|
|
6
|
-
*/
|
|
7
|
-
import { FixPack } from './engine';
|
|
8
|
-
import { ApplyResult, VerificationResult } from './applicator';
|
|
9
|
-
import { ComplianceMetrics, FixMetrics } from './metrics';
|
|
10
|
-
export interface FixReportOptions {
|
|
11
|
-
runId: string;
|
|
12
|
-
timestamp: string;
|
|
13
|
-
projectPath: string;
|
|
14
|
-
packs: FixPack[];
|
|
15
|
-
selectedPacks: FixPack[];
|
|
16
|
-
applyResult: ApplyResult;
|
|
17
|
-
verificationResult?: VerificationResult;
|
|
18
|
-
metrics: FixMetrics;
|
|
19
|
-
compliance: ComplianceMetrics;
|
|
20
|
-
gitBranch?: string;
|
|
21
|
-
gitCommit?: string;
|
|
22
|
-
}
|
|
23
|
-
export declare class ReportGenerator {
|
|
24
|
-
private projectPath;
|
|
25
|
-
private reportsDir;
|
|
26
|
-
constructor(projectPath: string);
|
|
27
|
-
/**
|
|
28
|
-
* Generate comprehensive markdown report
|
|
29
|
-
*/
|
|
30
|
-
generateMarkdownReport(options: FixReportOptions): string;
|
|
31
|
-
/**
|
|
32
|
-
* Save report to file
|
|
33
|
-
*/
|
|
34
|
-
saveReport(report: string, runId: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* Format duration in human-readable format
|
|
37
|
-
*/
|
|
38
|
-
private formatDuration;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=report.d.ts.map
|
package/dist/fix/report.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/fix/report.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,aAAa,EAAE,OAAO,EAAE,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,OAAO,EAAE,UAAU,CAAC;IACpB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAAa,eAAe;IAC1B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,UAAU,CAAS;gBAEf,WAAW,EAAE,MAAM;IAK/B;;OAEG;IACH,sBAAsB,CAAC,OAAO,EAAE,gBAAgB,GAAG,MAAM;IAwLzD;;OAEG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAiBjD;;OAEG;IACH,OAAO,CAAC,cAAc;CAOvB"}
|
package/dist/fix/report.js
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Enterprise Report Generation for Fix Service
|
|
4
|
-
*
|
|
5
|
-
* Generates comprehensive markdown reports and evidence for compliance
|
|
6
|
-
* and audit purposes.
|
|
7
|
-
*/
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ReportGenerator = void 0;
|
|
10
|
-
const fs_1 = require("fs");
|
|
11
|
-
const path_1 = require("path");
|
|
12
|
-
class ReportGenerator {
|
|
13
|
-
constructor(projectPath) {
|
|
14
|
-
this.projectPath = projectPath;
|
|
15
|
-
this.reportsDir = (0, path_1.join)(projectPath, '.guardrail', 'reports');
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Generate comprehensive markdown report
|
|
19
|
-
*/
|
|
20
|
-
generateMarkdownReport(options) {
|
|
21
|
-
const { runId, timestamp, packs, selectedPacks, applyResult, verificationResult, metrics, compliance, gitBranch, gitCommit, } = options;
|
|
22
|
-
const filesChanged = new Set(applyResult.filesChanged);
|
|
23
|
-
const successfulFixes = selectedPacks
|
|
24
|
-
.flatMap((p) => p.fixes)
|
|
25
|
-
.slice(0, applyResult.appliedFixes);
|
|
26
|
-
const failedFixes = applyResult.errors.map((e) => e.fix);
|
|
27
|
-
const report = [
|
|
28
|
-
'# Fix Service Execution Report',
|
|
29
|
-
'',
|
|
30
|
-
`**Run ID:** ${runId}`,
|
|
31
|
-
`**Timestamp:** ${timestamp}`,
|
|
32
|
-
`**Project Path:** ${this.projectPath}`,
|
|
33
|
-
'',
|
|
34
|
-
'## Executive Summary',
|
|
35
|
-
'',
|
|
36
|
-
`- **Total Fix Packs Generated:** ${packs.length}`,
|
|
37
|
-
`- **Fix Packs Selected:** ${selectedPacks.length}`,
|
|
38
|
-
`- **Fixes Applied:** ${applyResult.appliedFixes}`,
|
|
39
|
-
`- **Fixes Failed:** ${applyResult.failedFixes}`,
|
|
40
|
-
`- **Files Changed:** ${filesChanged.size}`,
|
|
41
|
-
`- **Success Rate:** ${selectedPacks.length > 0 ? ((applyResult.appliedFixes / selectedPacks.reduce((sum, p) => sum + p.fixes.length, 0)) * 100).toFixed(1) : 0}%`,
|
|
42
|
-
'',
|
|
43
|
-
'## Compliance Metrics',
|
|
44
|
-
'',
|
|
45
|
-
`### Change Control`,
|
|
46
|
-
`- **Changes Applied:** ${compliance.compliance.changeControl.changesApplied}`,
|
|
47
|
-
`- **Files Modified:** ${compliance.compliance.changeControl.filesModified}`,
|
|
48
|
-
`- **Verification Passed:** ${compliance.compliance.changeControl.verificationPassed ? '✅ YES' : '❌ NO'}`,
|
|
49
|
-
`- **Rollback Available:** ${compliance.compliance.changeControl.rollbackAvailable ? '✅ YES' : '❌ NO'}`,
|
|
50
|
-
'',
|
|
51
|
-
`### Audit Trail`,
|
|
52
|
-
`- **Run ID:** ${compliance.compliance.auditTrail.runId}`,
|
|
53
|
-
`- **Audit Log Available:** ${compliance.compliance.auditTrail.auditLogAvailable ? '✅ YES' : '❌ NO'}`,
|
|
54
|
-
`- **Evidence Generated:** ${compliance.compliance.auditTrail.evidenceGenerated ? '✅ YES' : '❌ NO'}`,
|
|
55
|
-
...(gitBranch ? [`- **Git Branch:** ${gitBranch}`] : []),
|
|
56
|
-
...(gitCommit ? [`- **Git Commit:** ${gitCommit.substring(0, 8)}`] : []),
|
|
57
|
-
'',
|
|
58
|
-
`### Quality Gates`,
|
|
59
|
-
...(verificationResult
|
|
60
|
-
? [
|
|
61
|
-
`- **Typecheck:** ${verificationResult.typecheck.passed ? '✅ PASS' : '❌ FAIL'}`,
|
|
62
|
-
`- **Build:** ${verificationResult.build.passed ? '✅ PASS' : '❌ FAIL'}`,
|
|
63
|
-
...(verificationResult.tests
|
|
64
|
-
? [
|
|
65
|
-
`- **Tests:** ${verificationResult.tests.passed ? '✅ PASS' : '❌ FAIL'}`,
|
|
66
|
-
]
|
|
67
|
-
: []),
|
|
68
|
-
`- **Overall:** ${verificationResult.passed ? '✅ PASS' : '❌ FAIL'}`,
|
|
69
|
-
]
|
|
70
|
-
: ['- Verification skipped']),
|
|
71
|
-
'',
|
|
72
|
-
`### Remediation`,
|
|
73
|
-
`- **Findings Before:** ${compliance.compliance.remediation.findingsBefore}`,
|
|
74
|
-
`- **Findings After:** ${compliance.compliance.remediation.findingsAfter}`,
|
|
75
|
-
`- **Improvement:** ${compliance.compliance.remediation.improvementPercent}%`,
|
|
76
|
-
`- **Remediation Rate:** ${compliance.compliance.remediation.remediationRate} findings`,
|
|
77
|
-
'',
|
|
78
|
-
'## Performance Metrics',
|
|
79
|
-
'',
|
|
80
|
-
`- **Total Duration:** ${this.formatDuration(metrics.performance.totalDuration)}`,
|
|
81
|
-
...(metrics.performance.analysisDuration
|
|
82
|
-
? [
|
|
83
|
-
`- **Analysis Duration:** ${this.formatDuration(metrics.performance.analysisDuration)}`,
|
|
84
|
-
]
|
|
85
|
-
: []),
|
|
86
|
-
...(metrics.performance.planningDuration
|
|
87
|
-
? [
|
|
88
|
-
`- **Planning Duration:** ${this.formatDuration(metrics.performance.planningDuration)}`,
|
|
89
|
-
]
|
|
90
|
-
: []),
|
|
91
|
-
...(metrics.performance.applicationDuration
|
|
92
|
-
? [
|
|
93
|
-
`- **Application Duration:** ${this.formatDuration(metrics.performance.applicationDuration)}`,
|
|
94
|
-
]
|
|
95
|
-
: []),
|
|
96
|
-
...(metrics.performance.verificationDuration
|
|
97
|
-
? [
|
|
98
|
-
`- **Verification Duration:** ${this.formatDuration(metrics.performance.verificationDuration)}`,
|
|
99
|
-
]
|
|
100
|
-
: []),
|
|
101
|
-
'',
|
|
102
|
-
'## Quality Metrics',
|
|
103
|
-
'',
|
|
104
|
-
`- **Average Confidence:** ${(metrics.quality.averageConfidence * 100).toFixed(1)}%`,
|
|
105
|
-
`- **High Confidence Fixes:** ${metrics.quality.highConfidenceFixes}`,
|
|
106
|
-
`- **Medium Confidence Fixes:** ${metrics.quality.mediumConfidenceFixes}`,
|
|
107
|
-
`- **Low Confidence Fixes:** ${metrics.quality.lowConfidenceFixes}`,
|
|
108
|
-
'',
|
|
109
|
-
'## Risk Assessment',
|
|
110
|
-
'',
|
|
111
|
-
`- **Estimated Risk:** ${metrics.risk.estimatedRisk.toUpperCase()}`,
|
|
112
|
-
`- **High Risk Fixes:** ${metrics.risk.highRiskFixes}`,
|
|
113
|
-
`- **Medium Risk Fixes:** ${metrics.risk.mediumRiskFixes}`,
|
|
114
|
-
`- **Low Risk Fixes:** ${metrics.risk.lowRiskFixes}`,
|
|
115
|
-
'',
|
|
116
|
-
'## Fix Packs Applied',
|
|
117
|
-
'',
|
|
118
|
-
];
|
|
119
|
-
for (const pack of selectedPacks) {
|
|
120
|
-
report.push(`### ${pack.name}`, '');
|
|
121
|
-
report.push(`- **Category:** ${pack.category}`);
|
|
122
|
-
report.push(`- **Risk:** ${pack.estimatedRisk}`);
|
|
123
|
-
report.push(`- **Confidence:** ${(pack.confidence * 100).toFixed(0)}%`);
|
|
124
|
-
report.push(`- **Fixes:** ${pack.fixes.length}`);
|
|
125
|
-
report.push(`- **Impacted Files:** ${pack.impactedFiles.length}`);
|
|
126
|
-
report.push('');
|
|
127
|
-
}
|
|
128
|
-
if (filesChanged.size > 0) {
|
|
129
|
-
report.push('## Files Changed', '');
|
|
130
|
-
const fileList = Array.from(filesChanged).slice(0, 100);
|
|
131
|
-
for (const file of fileList) {
|
|
132
|
-
const fixCount = successfulFixes.filter((f) => f.file === file).length;
|
|
133
|
-
report.push(`- \`${file}\` (${fixCount} fix${fixCount !== 1 ? 'es' : ''})`);
|
|
134
|
-
}
|
|
135
|
-
if (filesChanged.size > 100) {
|
|
136
|
-
report.push(`\n... and ${filesChanged.size - 100} more files`);
|
|
137
|
-
}
|
|
138
|
-
report.push('');
|
|
139
|
-
}
|
|
140
|
-
if (applyResult.errors.length > 0) {
|
|
141
|
-
report.push('## Errors', '');
|
|
142
|
-
for (const error of applyResult.errors.slice(0, 50)) {
|
|
143
|
-
report.push(`### ${error.fix.file}:${error.fix.line}`, '');
|
|
144
|
-
report.push(`- **Error:** ${error.error}`);
|
|
145
|
-
if (error.errorCode) {
|
|
146
|
-
report.push(`- **Error Code:** ${error.errorCode}`);
|
|
147
|
-
}
|
|
148
|
-
if (error.recoverySuggestion) {
|
|
149
|
-
report.push(`- **Suggestion:** ${error.recoverySuggestion}`);
|
|
150
|
-
}
|
|
151
|
-
report.push('');
|
|
152
|
-
}
|
|
153
|
-
if (applyResult.errors.length > 50) {
|
|
154
|
-
report.push(`... and ${applyResult.errors.length - 50} more errors\n`);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
if (verificationResult && !verificationResult.passed) {
|
|
158
|
-
report.push('## Verification Results', '');
|
|
159
|
-
if (!verificationResult.typecheck.passed) {
|
|
160
|
-
report.push('### Typecheck Failed', '');
|
|
161
|
-
report.push('```');
|
|
162
|
-
report.push(verificationResult.typecheck.output);
|
|
163
|
-
report.push('```');
|
|
164
|
-
report.push('');
|
|
165
|
-
}
|
|
166
|
-
if (!verificationResult.build.passed) {
|
|
167
|
-
report.push('### Build Failed', '');
|
|
168
|
-
report.push('```');
|
|
169
|
-
report.push(verificationResult.build.output);
|
|
170
|
-
report.push('```');
|
|
171
|
-
report.push('');
|
|
172
|
-
}
|
|
173
|
-
if (verificationResult.tests && !verificationResult.tests.passed) {
|
|
174
|
-
report.push('### Tests Failed', '');
|
|
175
|
-
report.push('```');
|
|
176
|
-
report.push(verificationResult.tests.output);
|
|
177
|
-
report.push('```');
|
|
178
|
-
report.push('');
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return report.join('\n');
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Save report to file
|
|
185
|
-
*/
|
|
186
|
-
saveReport(report, runId) {
|
|
187
|
-
if (!(0, fs_1.existsSync)(this.reportsDir)) {
|
|
188
|
-
(0, fs_1.mkdirSync)(this.reportsDir, { recursive: true });
|
|
189
|
-
}
|
|
190
|
-
const timestamp = new Date()
|
|
191
|
-
.toISOString()
|
|
192
|
-
.replace(/[:.]/g, '-')
|
|
193
|
-
.split('T')[0];
|
|
194
|
-
const reportFile = (0, path_1.join)(this.reportsDir, `fix-report-${runId}-${timestamp}.md`);
|
|
195
|
-
(0, fs_1.writeFileSync)(reportFile, report, 'utf-8');
|
|
196
|
-
return reportFile;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Format duration in human-readable format
|
|
200
|
-
*/
|
|
201
|
-
formatDuration(ms) {
|
|
202
|
-
if (ms < 1000)
|
|
203
|
-
return `${ms}ms`;
|
|
204
|
-
if (ms < 60000)
|
|
205
|
-
return `${(ms / 1000).toFixed(1)}s`;
|
|
206
|
-
const minutes = Math.floor(ms / 60000);
|
|
207
|
-
const seconds = Math.floor((ms % 60000) / 1000);
|
|
208
|
-
return `${minutes}m ${seconds}s`;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
exports.ReportGenerator = ReportGenerator;
|
|
212
|
-
//# sourceMappingURL=report.js.map
|
package/dist/fix/report.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../src/fix/report.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,2BAA0D;AAC1D,+BAA4B;AAmB5B,MAAa,eAAe;IAI1B,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,IAAA,WAAI,EAAC,WAAW,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,sBAAsB,CAAC,OAAyB;QAC9C,MAAM,EACJ,KAAK,EACL,SAAS,EACT,KAAK,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,SAAS,EACT,SAAS,GACV,GAAG,OAAO,CAAC;QAEZ,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,aAAa;aAClC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;aACvB,KAAK,CAAC,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;QACtC,MAAM,WAAW,G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,CAAC,CAAC,GAAG,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAChD,OAAO,GAAG,OAAO,KAAK,OAAO,GAAG,CAAC;IACnC,CAAC;CACF;AAlOD,0CAkOC"}
|
package/dist/fix/strategy.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fix Strategies and Profiles
|
|
3
|
-
*
|
|
4
|
-
* Provides different fixing strategies (conservative, balanced, aggressive)
|
|
5
|
-
* to control how fixes are applied based on risk tolerance and confidence levels.
|
|
6
|
-
*/
|
|
7
|
-
import { FixPack } from './engine';
|
|
8
|
-
export type FixStrategy = 'conservative' | 'balanced' | 'aggressive';
|
|
9
|
-
export interface StrategyConfig {
|
|
10
|
-
strategy: FixStrategy;
|
|
11
|
-
minConfidence: number;
|
|
12
|
-
maxRisk: 'low' | 'medium' | 'high';
|
|
13
|
-
allowHighRisk: boolean;
|
|
14
|
-
requireVerification: boolean;
|
|
15
|
-
maxConcurrentFixes: number;
|
|
16
|
-
batchSize: number;
|
|
17
|
-
retryOnFailure: boolean;
|
|
18
|
-
autoRollback: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const STRATEGY_PRESETS: Record<FixStrategy, StrategyConfig>;
|
|
21
|
-
export declare class FixStrategyFilter {
|
|
22
|
-
private config;
|
|
23
|
-
constructor(config: StrategyConfig | FixStrategy);
|
|
24
|
-
/**
|
|
25
|
-
* Filter fix packs based on strategy
|
|
26
|
-
*/
|
|
27
|
-
filterPacks(packs: FixPack[]): FixPack[];
|
|
28
|
-
/**
|
|
29
|
-
* Filter a single pack based on strategy
|
|
30
|
-
*/
|
|
31
|
-
private filterPack;
|
|
32
|
-
/**
|
|
33
|
-
* Determine if a fix should be applied based on strategy
|
|
34
|
-
*/
|
|
35
|
-
private shouldApplyFix;
|
|
36
|
-
/**
|
|
37
|
-
* Calculate pack risk based on filtered fixes
|
|
38
|
-
*/
|
|
39
|
-
private calculatePackRisk;
|
|
40
|
-
/**
|
|
41
|
-
* Batch fixes according to strategy
|
|
42
|
-
*/
|
|
43
|
-
batchFixes(packs: FixPack[]): FixPack[][];
|
|
44
|
-
/**
|
|
45
|
-
* Get configuration
|
|
46
|
-
*/
|
|
47
|
-
getConfig(): StrategyConfig;
|
|
48
|
-
/**
|
|
49
|
-
* Merge custom config with strategy preset
|
|
50
|
-
*/
|
|
51
|
-
static mergeConfig(strategy: FixStrategy, overrides: Partial<StrategyConfig>): StrategyConfig;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=strategy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"strategy.d.ts","sourceRoot":"","sources":["../../src/fix/strategy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,OAAO,EAAO,MAAM,UAAU,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAErE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,WAAW,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,EAAE,cAAc,CAkChE,CAAC;AAEF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAiB;gBAEnB,MAAM,EAAE,cAAc,GAAG,W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