laxy-verify 1.3.0 → 1.3.2
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 +486 -474
- package/dist/ai-analysis.d.ts +28 -0
- package/dist/ai-analysis.js +32 -0
- package/dist/audit/broken-links.d.ts +25 -25
- package/dist/audit/broken-links.js +97 -97
- package/dist/badge.d.ts +2 -2
- package/dist/badge.js +18 -18
- package/dist/cli.js +1242 -1250
- package/dist/compare-env.d.ts +23 -0
- package/dist/compare-env.js +55 -0
- package/dist/config.d.ts +102 -102
- package/dist/config.js +360 -360
- package/dist/entitlement.d.ts +15 -15
- package/dist/entitlement.js +98 -98
- package/dist/init-analysis.d.ts +6 -0
- package/dist/init-analysis.js +302 -0
- package/dist/init.js +132 -132
- package/dist/lighthouse.d.ts +37 -37
- package/dist/lighthouse.js +231 -231
- package/dist/report-markdown.d.ts +53 -53
- package/dist/report-markdown.js +407 -407
- package/dist/route-discovery.d.ts +7 -0
- package/dist/route-discovery.js +108 -0
- package/dist/security-audit.d.ts +17 -17
- package/dist/security-audit.js +127 -127
- package/dist/serve.d.ts +1 -0
- package/dist/serve.js +36 -0
- package/dist/verification-core/report.js +526 -526
- package/dist/verification-core/types.d.ts +164 -164
- package/dist/visual-diff.d.ts +33 -33
- package/dist/visual-diff.js +213 -213
- package/package.json +1 -1
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
export type VerificationGrade = "gold" | "silver" | "bronze" | "unverified";
|
|
2
|
-
export type VerificationTier = "free" | "pro" | "team";
|
|
3
|
-
export type ReleaseVerdict = "quick-pass" | "client-ready" | "investigate" | "hold" | "release-ready" | "build-failed";
|
|
4
|
-
export interface LighthouseThresholds {
|
|
5
|
-
performance: number;
|
|
6
|
-
accessibility: number;
|
|
7
|
-
seo: number;
|
|
8
|
-
bestPractices: number;
|
|
9
|
-
}
|
|
10
|
-
export interface LighthouseScores {
|
|
11
|
-
performance: number;
|
|
12
|
-
accessibility: number;
|
|
13
|
-
bestPractices: number;
|
|
14
|
-
seo: number;
|
|
15
|
-
}
|
|
16
|
-
export interface VerificationInput {
|
|
17
|
-
buildSuccess?: boolean;
|
|
18
|
-
buildErrors?: string[];
|
|
19
|
-
e2ePassed?: number;
|
|
20
|
-
e2eTotal?: number;
|
|
21
|
-
e2eCoverageGaps?: string[];
|
|
22
|
-
e2eStabilityPassed?: boolean;
|
|
23
|
-
e2eConsoleErrorCount?: number;
|
|
24
|
-
lighthouseSkipped?: boolean;
|
|
25
|
-
lighthouseErrorCount?: number;
|
|
26
|
-
viewportIssues?: number;
|
|
27
|
-
multiViewportPassed?: boolean;
|
|
28
|
-
multiViewportSummary?: string;
|
|
29
|
-
visualDiffVerdict?: "pass" | "warn" | "rollback";
|
|
30
|
-
visualDiffPercentage?: number;
|
|
31
|
-
hasVisualBaseline?: boolean;
|
|
32
|
-
failureEvidence?: string[];
|
|
33
|
-
lighthouseScores?: LighthouseScores;
|
|
34
|
-
mobileLighthouseScores?: LighthouseScores;
|
|
35
|
-
securityAudit?: {
|
|
36
|
-
totalVulnerabilities: number;
|
|
37
|
-
critical: number;
|
|
38
|
-
high: number;
|
|
39
|
-
summary: string;
|
|
40
|
-
};
|
|
41
|
-
brokenLinksAudit?: {
|
|
42
|
-
checkedCount: number;
|
|
43
|
-
brokenCount: number;
|
|
44
|
-
summary: string;
|
|
45
|
-
};
|
|
46
|
-
typecheck?: {
|
|
47
|
-
passed: boolean;
|
|
48
|
-
errorCount: number;
|
|
49
|
-
skipped: boolean;
|
|
50
|
-
};
|
|
51
|
-
secretScan?: {
|
|
52
|
-
passed: boolean;
|
|
53
|
-
findingsCount: number;
|
|
54
|
-
filesScanned: number;
|
|
55
|
-
skipped: boolean;
|
|
56
|
-
};
|
|
57
|
-
a11yDeep?: {
|
|
58
|
-
passed: boolean;
|
|
59
|
-
criticalCount: number;
|
|
60
|
-
seriousCount: number;
|
|
61
|
-
summary: string;
|
|
62
|
-
skipped: boolean;
|
|
63
|
-
};
|
|
64
|
-
seoDeep?: {
|
|
65
|
-
passed: boolean;
|
|
66
|
-
errorCount: number;
|
|
67
|
-
warningCount: number;
|
|
68
|
-
summary: string;
|
|
69
|
-
skipped: boolean;
|
|
70
|
-
};
|
|
71
|
-
vitalsBudget?: {
|
|
72
|
-
passed: boolean;
|
|
73
|
-
lcp: number | null;
|
|
74
|
-
cls: number | null;
|
|
75
|
-
inp: number | null;
|
|
76
|
-
summary: string;
|
|
77
|
-
skipped: boolean;
|
|
78
|
-
};
|
|
79
|
-
bundleSize?: {
|
|
80
|
-
framework: string;
|
|
81
|
-
firstLoadJsKb: number | null;
|
|
82
|
-
largestChunkKb: number | null;
|
|
83
|
-
advisory: string;
|
|
84
|
-
skipped: boolean;
|
|
85
|
-
};
|
|
86
|
-
outdatedCheck?: {
|
|
87
|
-
outdatedCount: number;
|
|
88
|
-
majorOutdated: number;
|
|
89
|
-
advisory: string;
|
|
90
|
-
skipped: boolean;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export interface VerificationCheck {
|
|
94
|
-
key: "build" | "e2e" | "lighthouse" | "viewport" | "visual" | "security" | "mobile-lh" | "console-errors" | "broken-links" | "typecheck" | "secret-scan" | "a11y-deep" | "seo-deep" | "vitals-budget" | "bundle-size" | "outdated-check";
|
|
95
|
-
label: string;
|
|
96
|
-
passed: boolean;
|
|
97
|
-
}
|
|
98
|
-
export interface VerificationFinding {
|
|
99
|
-
category: "build" | "performance" | "accessibility" | "seo" | "bestPractices" | "e2e" | "viewport" | "visual" | "security" | "runtime" | "typecheck" | "secrets" | "vitals";
|
|
100
|
-
severity: "critical" | "high" | "medium";
|
|
101
|
-
title: string;
|
|
102
|
-
description: string;
|
|
103
|
-
action: string;
|
|
104
|
-
}
|
|
105
|
-
export interface VerificationEvidence {
|
|
106
|
-
input: VerificationInput;
|
|
107
|
-
thresholds: LighthouseThresholds;
|
|
108
|
-
buildPassed: boolean;
|
|
109
|
-
e2ePassedAll: boolean;
|
|
110
|
-
e2eStabilityPassed: boolean;
|
|
111
|
-
hasE2EData: boolean;
|
|
112
|
-
hasLighthouseData: boolean;
|
|
113
|
-
lighthouseSkipped: boolean;
|
|
114
|
-
hasMultiViewportData: boolean;
|
|
115
|
-
multiViewportPassed: boolean;
|
|
116
|
-
hasVisualDiffData: boolean;
|
|
117
|
-
hasComparableVisualDiffData: boolean;
|
|
118
|
-
visualDiffPassed: boolean;
|
|
119
|
-
lighthousePassed: boolean;
|
|
120
|
-
hasConsoleErrors: boolean;
|
|
121
|
-
hasSecurityData: boolean;
|
|
122
|
-
securityPassed: boolean;
|
|
123
|
-
hasMobileLighthouseData: boolean;
|
|
124
|
-
mobileLighthousePassed: boolean;
|
|
125
|
-
hasTypecheckData: boolean;
|
|
126
|
-
typecheckPassed: boolean;
|
|
127
|
-
hasSecretScanData: boolean;
|
|
128
|
-
secretScanPassed: boolean;
|
|
129
|
-
hasA11yDeepData: boolean;
|
|
130
|
-
a11yDeepPassed: boolean;
|
|
131
|
-
hasSeoDeepData: boolean;
|
|
132
|
-
seoDeepPassed: boolean;
|
|
133
|
-
hasVitalsBudgetData: boolean;
|
|
134
|
-
vitalsBudgetPassed: boolean;
|
|
135
|
-
}
|
|
136
|
-
export interface VerificationReport {
|
|
137
|
-
tier: VerificationTier;
|
|
138
|
-
verdict: ReleaseVerdict;
|
|
139
|
-
confidence: "low" | "medium" | "high";
|
|
140
|
-
summary: string;
|
|
141
|
-
grade: VerificationGrade;
|
|
142
|
-
blockers: VerificationFinding[];
|
|
143
|
-
warnings: VerificationFinding[];
|
|
144
|
-
passes: VerificationCheck[];
|
|
145
|
-
nextActions: string[];
|
|
146
|
-
failureEvidence: string[];
|
|
147
|
-
evidence: VerificationEvidence;
|
|
148
|
-
}
|
|
149
|
-
export interface TierVerificationView {
|
|
150
|
-
tier: VerificationTier;
|
|
151
|
-
question: string;
|
|
152
|
-
verdict: ReleaseVerdict;
|
|
153
|
-
confidence: "low" | "medium" | "high";
|
|
154
|
-
summary: string;
|
|
155
|
-
grade: VerificationGrade;
|
|
156
|
-
blockers: VerificationFinding[];
|
|
157
|
-
warnings: VerificationFinding[];
|
|
158
|
-
passes: VerificationCheck[];
|
|
159
|
-
nextActions: string[];
|
|
160
|
-
failureEvidence: string[];
|
|
161
|
-
showDetailedLighthouse: boolean;
|
|
162
|
-
showDetailedE2E: boolean;
|
|
163
|
-
showReportExport: boolean;
|
|
164
|
-
}
|
|
1
|
+
export type VerificationGrade = "gold" | "silver" | "bronze" | "unverified";
|
|
2
|
+
export type VerificationTier = "free" | "pro" | "team";
|
|
3
|
+
export type ReleaseVerdict = "quick-pass" | "client-ready" | "investigate" | "hold" | "release-ready" | "build-failed";
|
|
4
|
+
export interface LighthouseThresholds {
|
|
5
|
+
performance: number;
|
|
6
|
+
accessibility: number;
|
|
7
|
+
seo: number;
|
|
8
|
+
bestPractices: number;
|
|
9
|
+
}
|
|
10
|
+
export interface LighthouseScores {
|
|
11
|
+
performance: number;
|
|
12
|
+
accessibility: number;
|
|
13
|
+
bestPractices: number;
|
|
14
|
+
seo: number;
|
|
15
|
+
}
|
|
16
|
+
export interface VerificationInput {
|
|
17
|
+
buildSuccess?: boolean;
|
|
18
|
+
buildErrors?: string[];
|
|
19
|
+
e2ePassed?: number;
|
|
20
|
+
e2eTotal?: number;
|
|
21
|
+
e2eCoverageGaps?: string[];
|
|
22
|
+
e2eStabilityPassed?: boolean;
|
|
23
|
+
e2eConsoleErrorCount?: number;
|
|
24
|
+
lighthouseSkipped?: boolean;
|
|
25
|
+
lighthouseErrorCount?: number;
|
|
26
|
+
viewportIssues?: number;
|
|
27
|
+
multiViewportPassed?: boolean;
|
|
28
|
+
multiViewportSummary?: string;
|
|
29
|
+
visualDiffVerdict?: "pass" | "warn" | "rollback";
|
|
30
|
+
visualDiffPercentage?: number;
|
|
31
|
+
hasVisualBaseline?: boolean;
|
|
32
|
+
failureEvidence?: string[];
|
|
33
|
+
lighthouseScores?: LighthouseScores;
|
|
34
|
+
mobileLighthouseScores?: LighthouseScores;
|
|
35
|
+
securityAudit?: {
|
|
36
|
+
totalVulnerabilities: number;
|
|
37
|
+
critical: number;
|
|
38
|
+
high: number;
|
|
39
|
+
summary: string;
|
|
40
|
+
};
|
|
41
|
+
brokenLinksAudit?: {
|
|
42
|
+
checkedCount: number;
|
|
43
|
+
brokenCount: number;
|
|
44
|
+
summary: string;
|
|
45
|
+
};
|
|
46
|
+
typecheck?: {
|
|
47
|
+
passed: boolean;
|
|
48
|
+
errorCount: number;
|
|
49
|
+
skipped: boolean;
|
|
50
|
+
};
|
|
51
|
+
secretScan?: {
|
|
52
|
+
passed: boolean;
|
|
53
|
+
findingsCount: number;
|
|
54
|
+
filesScanned: number;
|
|
55
|
+
skipped: boolean;
|
|
56
|
+
};
|
|
57
|
+
a11yDeep?: {
|
|
58
|
+
passed: boolean;
|
|
59
|
+
criticalCount: number;
|
|
60
|
+
seriousCount: number;
|
|
61
|
+
summary: string;
|
|
62
|
+
skipped: boolean;
|
|
63
|
+
};
|
|
64
|
+
seoDeep?: {
|
|
65
|
+
passed: boolean;
|
|
66
|
+
errorCount: number;
|
|
67
|
+
warningCount: number;
|
|
68
|
+
summary: string;
|
|
69
|
+
skipped: boolean;
|
|
70
|
+
};
|
|
71
|
+
vitalsBudget?: {
|
|
72
|
+
passed: boolean;
|
|
73
|
+
lcp: number | null;
|
|
74
|
+
cls: number | null;
|
|
75
|
+
inp: number | null;
|
|
76
|
+
summary: string;
|
|
77
|
+
skipped: boolean;
|
|
78
|
+
};
|
|
79
|
+
bundleSize?: {
|
|
80
|
+
framework: string;
|
|
81
|
+
firstLoadJsKb: number | null;
|
|
82
|
+
largestChunkKb: number | null;
|
|
83
|
+
advisory: string;
|
|
84
|
+
skipped: boolean;
|
|
85
|
+
};
|
|
86
|
+
outdatedCheck?: {
|
|
87
|
+
outdatedCount: number;
|
|
88
|
+
majorOutdated: number;
|
|
89
|
+
advisory: string;
|
|
90
|
+
skipped: boolean;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface VerificationCheck {
|
|
94
|
+
key: "build" | "e2e" | "lighthouse" | "viewport" | "visual" | "security" | "mobile-lh" | "console-errors" | "broken-links" | "typecheck" | "secret-scan" | "a11y-deep" | "seo-deep" | "vitals-budget" | "bundle-size" | "outdated-check";
|
|
95
|
+
label: string;
|
|
96
|
+
passed: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface VerificationFinding {
|
|
99
|
+
category: "build" | "performance" | "accessibility" | "seo" | "bestPractices" | "e2e" | "viewport" | "visual" | "security" | "runtime" | "typecheck" | "secrets" | "vitals";
|
|
100
|
+
severity: "critical" | "high" | "medium";
|
|
101
|
+
title: string;
|
|
102
|
+
description: string;
|
|
103
|
+
action: string;
|
|
104
|
+
}
|
|
105
|
+
export interface VerificationEvidence {
|
|
106
|
+
input: VerificationInput;
|
|
107
|
+
thresholds: LighthouseThresholds;
|
|
108
|
+
buildPassed: boolean;
|
|
109
|
+
e2ePassedAll: boolean;
|
|
110
|
+
e2eStabilityPassed: boolean;
|
|
111
|
+
hasE2EData: boolean;
|
|
112
|
+
hasLighthouseData: boolean;
|
|
113
|
+
lighthouseSkipped: boolean;
|
|
114
|
+
hasMultiViewportData: boolean;
|
|
115
|
+
multiViewportPassed: boolean;
|
|
116
|
+
hasVisualDiffData: boolean;
|
|
117
|
+
hasComparableVisualDiffData: boolean;
|
|
118
|
+
visualDiffPassed: boolean;
|
|
119
|
+
lighthousePassed: boolean;
|
|
120
|
+
hasConsoleErrors: boolean;
|
|
121
|
+
hasSecurityData: boolean;
|
|
122
|
+
securityPassed: boolean;
|
|
123
|
+
hasMobileLighthouseData: boolean;
|
|
124
|
+
mobileLighthousePassed: boolean;
|
|
125
|
+
hasTypecheckData: boolean;
|
|
126
|
+
typecheckPassed: boolean;
|
|
127
|
+
hasSecretScanData: boolean;
|
|
128
|
+
secretScanPassed: boolean;
|
|
129
|
+
hasA11yDeepData: boolean;
|
|
130
|
+
a11yDeepPassed: boolean;
|
|
131
|
+
hasSeoDeepData: boolean;
|
|
132
|
+
seoDeepPassed: boolean;
|
|
133
|
+
hasVitalsBudgetData: boolean;
|
|
134
|
+
vitalsBudgetPassed: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface VerificationReport {
|
|
137
|
+
tier: VerificationTier;
|
|
138
|
+
verdict: ReleaseVerdict;
|
|
139
|
+
confidence: "low" | "medium" | "high";
|
|
140
|
+
summary: string;
|
|
141
|
+
grade: VerificationGrade;
|
|
142
|
+
blockers: VerificationFinding[];
|
|
143
|
+
warnings: VerificationFinding[];
|
|
144
|
+
passes: VerificationCheck[];
|
|
145
|
+
nextActions: string[];
|
|
146
|
+
failureEvidence: string[];
|
|
147
|
+
evidence: VerificationEvidence;
|
|
148
|
+
}
|
|
149
|
+
export interface TierVerificationView {
|
|
150
|
+
tier: VerificationTier;
|
|
151
|
+
question: string;
|
|
152
|
+
verdict: ReleaseVerdict;
|
|
153
|
+
confidence: "low" | "medium" | "high";
|
|
154
|
+
summary: string;
|
|
155
|
+
grade: VerificationGrade;
|
|
156
|
+
blockers: VerificationFinding[];
|
|
157
|
+
warnings: VerificationFinding[];
|
|
158
|
+
passes: VerificationCheck[];
|
|
159
|
+
nextActions: string[];
|
|
160
|
+
failureEvidence: string[];
|
|
161
|
+
showDetailedLighthouse: boolean;
|
|
162
|
+
showDetailedE2E: boolean;
|
|
163
|
+
showReportExport: boolean;
|
|
164
|
+
}
|
package/dist/visual-diff.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export type VisualDiffViewportName = "desktop" | "tablet" | "mobile";
|
|
2
|
-
export interface VisualDiffViewportResult {
|
|
3
|
-
viewport: VisualDiffViewportName;
|
|
4
|
-
hasBaseline: boolean;
|
|
5
|
-
diffPercentage: number;
|
|
6
|
-
verdict: "pass" | "warn" | "rollback";
|
|
7
|
-
diffPixels: number;
|
|
8
|
-
totalPixels: number;
|
|
9
|
-
baselinePath: string;
|
|
10
|
-
currentPath: string;
|
|
11
|
-
diffPath: string;
|
|
12
|
-
}
|
|
13
|
-
export interface VisualDiffResult {
|
|
14
|
-
hasBaseline: boolean;
|
|
15
|
-
diffPercentage: number;
|
|
16
|
-
verdict: "pass" | "warn" | "rollback";
|
|
17
|
-
diffPixels: number;
|
|
18
|
-
totalPixels: number;
|
|
19
|
-
baselinePath: string;
|
|
20
|
-
currentPath: string;
|
|
21
|
-
diffPath: string;
|
|
22
|
-
viewports: VisualDiffViewportResult[];
|
|
23
|
-
summary: string;
|
|
24
|
-
}
|
|
25
|
-
export interface VisualDiffOptions {
|
|
26
|
-
pixelmatchThreshold?: number;
|
|
27
|
-
warnThreshold?: number;
|
|
28
|
-
rollbackThreshold?: number;
|
|
29
|
-
ignoreSelectors?: string[];
|
|
30
|
-
disableAnimations?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare function formatVisualDiffSummary(result: VisualDiffResult): string;
|
|
33
|
-
export declare function runVisualDiff(projectDir: string, url: string, label?: string, options?: VisualDiffOptions): Promise<VisualDiffResult>;
|
|
1
|
+
export type VisualDiffViewportName = "desktop" | "tablet" | "mobile";
|
|
2
|
+
export interface VisualDiffViewportResult {
|
|
3
|
+
viewport: VisualDiffViewportName;
|
|
4
|
+
hasBaseline: boolean;
|
|
5
|
+
diffPercentage: number;
|
|
6
|
+
verdict: "pass" | "warn" | "rollback";
|
|
7
|
+
diffPixels: number;
|
|
8
|
+
totalPixels: number;
|
|
9
|
+
baselinePath: string;
|
|
10
|
+
currentPath: string;
|
|
11
|
+
diffPath: string;
|
|
12
|
+
}
|
|
13
|
+
export interface VisualDiffResult {
|
|
14
|
+
hasBaseline: boolean;
|
|
15
|
+
diffPercentage: number;
|
|
16
|
+
verdict: "pass" | "warn" | "rollback";
|
|
17
|
+
diffPixels: number;
|
|
18
|
+
totalPixels: number;
|
|
19
|
+
baselinePath: string;
|
|
20
|
+
currentPath: string;
|
|
21
|
+
diffPath: string;
|
|
22
|
+
viewports: VisualDiffViewportResult[];
|
|
23
|
+
summary: string;
|
|
24
|
+
}
|
|
25
|
+
export interface VisualDiffOptions {
|
|
26
|
+
pixelmatchThreshold?: number;
|
|
27
|
+
warnThreshold?: number;
|
|
28
|
+
rollbackThreshold?: number;
|
|
29
|
+
ignoreSelectors?: string[];
|
|
30
|
+
disableAnimations?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function formatVisualDiffSummary(result: VisualDiffResult): string;
|
|
33
|
+
export declare function runVisualDiff(projectDir: string, url: string, label?: string, options?: VisualDiffOptions): Promise<VisualDiffResult>;
|