frontend-guardian-core 3.10.0 → 3.10.1
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/bin/fg-core.js +28 -1
- package/bin/fg-lsp.js +1 -1
- package/bin/fg-server.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/integrations/index.d.ts +12 -14
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +28 -23
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/page-health.d.ts +14 -0
- package/dist/integrations/page-health.d.ts.map +1 -1
- package/dist/integrations/page-health.js +184 -105
- package/dist/integrations/page-health.js.map +1 -1
- package/dist/mcp/mcp-server.js +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +22 -0
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/types.d.ts +4 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/utils/page-health-profile.d.ts +28 -0
- package/dist/utils/page-health-profile.d.ts.map +1 -0
- package/dist/utils/page-health-profile.js +66 -0
- package/dist/utils/page-health-profile.js.map +1 -0
- package/dist/utils/visual-regression.d.ts +5 -5
- package/dist/utils/visual-regression.d.ts.map +1 -1
- package/dist/utils/visual-regression.js +18 -14
- package/dist/utils/visual-regression.js.map +1 -1
- package/package.json +1 -1
package/bin/fg-core.js
CHANGED
|
@@ -107,7 +107,7 @@ const MODULE_RULES = {
|
|
|
107
107
|
|
|
108
108
|
function showHelp() {
|
|
109
109
|
console.log(`
|
|
110
|
-
Frontend Guardian Core v3.10.
|
|
110
|
+
Frontend Guardian Core v3.10.1
|
|
111
111
|
|
|
112
112
|
Usage:
|
|
113
113
|
fg-core <project-dir> [options]
|
|
@@ -184,6 +184,10 @@ Options:
|
|
|
184
184
|
--page-health-metrics 启用 Lighthouse Core Web Vitals(配合 --page-health)
|
|
185
185
|
--a11y 启用运行时无障碍检测(配合 --page-health)
|
|
186
186
|
--a11y-tags <list> axe-core 过滤标签,逗号分隔(默认 wcag2a,wcag2aa,配合 --page-health)
|
|
187
|
+
--browser <name> 页面健康检查浏览器: chromium | firefox | webkit | all (默认 chromium)
|
|
188
|
+
--device <name> 页面健康检查模拟设备(如 "iPhone 14 Pro",配合 --page-health)
|
|
189
|
+
--viewport <WxH> 页面健康检查自定义视口(如 390x844,配合 --page-health)
|
|
190
|
+
--viewport-mobile 页面健康检查使用移动端预设视口(配合 --page-health)
|
|
187
191
|
--build-index 建立项目索引(预索引文件结构、符号、路由)
|
|
188
192
|
--watch-index 监听文件变更并自动同步索引
|
|
189
193
|
--index-status 查看项目索引状态
|
|
@@ -284,6 +288,11 @@ async function main() {
|
|
|
284
288
|
cwvThresholds: undefined,
|
|
285
289
|
a11y: false,
|
|
286
290
|
a11yTags: undefined,
|
|
291
|
+
// v3.10.1
|
|
292
|
+
browser: undefined,
|
|
293
|
+
device: undefined,
|
|
294
|
+
viewport: undefined,
|
|
295
|
+
viewportMobile: false,
|
|
287
296
|
buildIndex: false,
|
|
288
297
|
watchIndex: false,
|
|
289
298
|
indexStatus: false,
|
|
@@ -517,6 +526,19 @@ async function main() {
|
|
|
517
526
|
case "--a11y-tags":
|
|
518
527
|
options.a11yTags = args[++i].split(",");
|
|
519
528
|
break;
|
|
529
|
+
// v3.10.1 跨浏览器与移动端视口
|
|
530
|
+
case "--browser":
|
|
531
|
+
options.browser = args[++i];
|
|
532
|
+
break;
|
|
533
|
+
case "--device":
|
|
534
|
+
options.device = args[++i];
|
|
535
|
+
break;
|
|
536
|
+
case "--viewport":
|
|
537
|
+
options.viewport = args[++i];
|
|
538
|
+
break;
|
|
539
|
+
case "--viewport-mobile":
|
|
540
|
+
options.viewportMobile = true;
|
|
541
|
+
break;
|
|
520
542
|
case "--build-index":
|
|
521
543
|
options.buildIndex = true;
|
|
522
544
|
break;
|
|
@@ -659,6 +681,11 @@ async function main() {
|
|
|
659
681
|
cwvThresholds: options.cwvThresholds,
|
|
660
682
|
a11y: options.a11y,
|
|
661
683
|
a11yTags: options.a11yTags,
|
|
684
|
+
// v3.10.1
|
|
685
|
+
browser: options.browser,
|
|
686
|
+
device: options.device,
|
|
687
|
+
viewport: options.viewport,
|
|
688
|
+
viewportMobile: options.viewportMobile,
|
|
662
689
|
});
|
|
663
690
|
|
|
664
691
|
if (options.json) {
|
package/bin/fg-lsp.js
CHANGED
|
@@ -27,7 +27,7 @@ for (let i = 0; i < args.length; i++) {
|
|
|
27
27
|
} else if (arg === "--severity" || arg === "-s") {
|
|
28
28
|
minSeverity = args[++i] ?? "suggestion";
|
|
29
29
|
} else if (arg === "--help" || arg === "-h") {
|
|
30
|
-
console.log(`Frontend Guardian LSP Server v3.10.
|
|
30
|
+
console.log(`Frontend Guardian LSP Server v3.10.1
|
|
31
31
|
|
|
32
32
|
Usage: fg-lsp [options]
|
|
33
33
|
|
package/bin/fg-server.js
CHANGED
|
@@ -10,7 +10,7 @@ import { DashboardServer } from "../dist/index.js";
|
|
|
10
10
|
|
|
11
11
|
function showHelp() {
|
|
12
12
|
console.log(`
|
|
13
|
-
Frontend Guardian Dashboard Server v3.10.
|
|
13
|
+
Frontend Guardian Dashboard Server v3.10.1
|
|
14
14
|
|
|
15
15
|
Usage:
|
|
16
16
|
fg-server [options]
|
|
@@ -62,7 +62,7 @@ async function main() {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
console.log(pc.cyan("Frontend Guardian Dashboard Server"));
|
|
65
|
-
console.log(pc.gray(` Version: 3.10.
|
|
65
|
+
console.log(pc.gray(` Version: 3.10.1`));
|
|
66
66
|
console.log("");
|
|
67
67
|
|
|
68
68
|
const server = new DashboardServer({
|
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export type { DiagnosticResult, IncrementalDiagnosticOptions } from "./ide/incre
|
|
|
17
17
|
export { createIncrementalDiagnostic, IncrementalDiagnostic } from "./ide/incremental-diagnostic.js";
|
|
18
18
|
export type { LSPServerOptions } from "./ide/lsp-server.js";
|
|
19
19
|
export { runLSPServer } from "./ide/lsp-server.js";
|
|
20
|
-
export type { CheckedRoute, CoreWebVitalsResult, CWVThresholds, ExternalTool, ExternalToolResult, PageHealthOptions, PageHealthResult, VisualRegressionOptions, VisualRegressionResult, } from "./integrations/index.js";
|
|
21
|
-
export { allExternalTools, axeViolationsToIssues, checkCWVThresholds, compareScreenshotsPixel, eslintIntegration, extractCoreWebVitals, formatCoreWebVitals, formatPageHealthJson, formatPageHealthReport, getBaselinePath, getCurrentScreenshotPath, getDiffImagePath, isAxeCoreAvailable, isLighthouseAvailable, isPixelmatchAvailable, isPlaywrightAvailable, isPngjsAvailable, playwrightIntegration, runAllExternalTools, runLighthouseForUrl, runPageHealthCheck, safeRouteName, stylelintIntegration, toScanResult, typescriptIntegration, uploadPageHealthResult, } from "./integrations/index.js";
|
|
20
|
+
export type { BrowserName, CheckedRoute, CoreWebVitalsResult, CWVThresholds, ExternalTool, ExternalToolResult, PageHealthOptions, PageHealthResult, VisualRegressionOptions, VisualRegressionResult, } from "./integrations/index.js";
|
|
21
|
+
export { allExternalTools, axeViolationsToIssues, buildProfileKey, checkCWVThresholds, compareScreenshotsPixel, eslintIntegration, extractCoreWebVitals, formatCoreWebVitals, formatPageHealthJson, formatPageHealthReport, getBaselinePath, getCurrentScreenshotPath, getDiffImagePath, isAxeCoreAvailable, isLighthouseAvailable, isPixelmatchAvailable, isPlaywrightAvailable, isPngjsAvailable, playwrightIntegration, resolveBrowserTypes, runAllExternalTools, runLighthouseForUrl, runPageHealthCheck, safeRouteName, stylelintIntegration, toScanResult, typescriptIntegration, uploadPageHealthResult, } from "./integrations/index.js";
|
|
22
22
|
export type { MCPServerOptions } from "./mcp/mcp-server.js";
|
|
23
23
|
export { runMCPServer } from "./mcp/mcp-server.js";
|
|
24
24
|
export { getToolDefinitions } from "./mcp/tools.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
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BAAyB,CAAC;AACvE,OAAO,EACH,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEnH,OAAO,EACH,qBAAqB,EACrB,yBAAyB,EACzB,cAAc,GACjB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EACR,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,GACnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* 导出所有公共 API
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.scanWorkspace = exports.formatWorkspaceReport = exports.formatWorkspaceJson = exports.recommendTests = exports.formatRecommendationsJson = exports.formatRecommendations = exports.parseVueRouterConfig = exports.parseUniAppRoutes = exports.parseTaroRoutes = exports.parseRoutes = exports.parseReactRouterConfig = exports.parseNuxtRoutes = exports.parseNextJsRoutes = exports.parseAllRoutes = exports.findRouteFiles = exports.detectRouteFramework = exports.uploadReport = exports.detectUploadConfig = exports.detectProjectMeta = exports.GitLabMRPublisher = exports.GitHubPRPublisher = exports.detectPublisherConfig = exports.createPublisher = exports.autoPublishComment = exports.sendNotifications = exports.detectNotificationConfig = exports.buildNotificationPayload = exports.detectMonorepo = exports.analyzeCrossPackageDeps = exports.initConfig = exports.generateDefaultConfig = exports.HistoryReport = exports.formatHistoryCompareJson = exports.formatHistoryCompare = exports.compareHistoryReports = exports.uninstallGitHooks = exports.installGitHooks = exports.hasGitHook = exports.detectHusky = exports.runFixBot = exports.detectFixBotConfig = void 0;
|
|
7
|
+
exports.RuleRegistry = exports.createRegistry = exports.getToolDefinitions = exports.runMCPServer = exports.uploadPageHealthResult = exports.typescriptIntegration = exports.toScanResult = exports.stylelintIntegration = exports.safeRouteName = exports.runPageHealthCheck = exports.runLighthouseForUrl = exports.runAllExternalTools = exports.resolveBrowserTypes = exports.playwrightIntegration = exports.isPngjsAvailable = exports.isPlaywrightAvailable = exports.isPixelmatchAvailable = exports.isLighthouseAvailable = exports.isAxeCoreAvailable = exports.getDiffImagePath = exports.getCurrentScreenshotPath = exports.getBaselinePath = exports.formatPageHealthReport = exports.formatPageHealthJson = exports.formatCoreWebVitals = exports.extractCoreWebVitals = exports.eslintIntegration = exports.compareScreenshotsPixel = exports.checkCWVThresholds = exports.buildProfileKey = exports.axeViolationsToIssues = exports.allExternalTools = exports.runLSPServer = exports.IncrementalDiagnostic = exports.createIncrementalDiagnostic = exports.generateSarif = exports.formatSarif = exports.isGuardianComment = exports.generatePRCommentSummary = exports.generatePRComment = exports.COMMENT_MARKER = exports.writeJobSummary = exports.isGitHubActions = exports.formatIssuesAnnotations = exports.formatIssueAnnotation = exports.formatAllAnnotations = exports.RuleEngine = exports.createEngine = exports.ProjectIndexer = exports.SmartCache = void 0;
|
|
8
|
+
exports.formatE2EGapReport = exports.formatE2EGapJson = exports.detectE2EGaps = exports.uploadToDashboardServer = exports.detectDashboardConfig = exports.generateDashboard = exports.loadConfig = exports.getAdaptiveConcurrency = exports.saveComplianceReport = exports.registerComplianceMapping = exports.getComplianceMapping = exports.generateComplianceReport = exports.complianceReportToMarkdown = exports.getJSXTagName = exports.getFileExt = exports.parseCodeowners = exports.matchOwner = exports.loadCodeowners = exports.findCodeowners = exports.CodeownersParser = exports.generateCIConfig = exports.detectCIProvider = exports.toBaselineIssue = exports.saveBaseline = exports.loadBaselineAsync = exports.loadBaseline = exports.generateBaseline = exports.downloadBaseline = exports.compareWithBaseline = exports.BaselineManager = exports.walkAST = exports.parseAST = exports.hasImport = exports.getImports = exports.generateAIFixSuggestions = exports.detectAIConfig = exports.AIFixSuggester = exports.DashboardServer = exports.generateDashboardHtml = exports.svelteRules = exports.securityRules = exports.platformRules = exports.performanceRules = exports.namingRules = exports.i18nRules = exports.hooksRules = exports.e2eRules = exports.crossFileRules = exports.componentRules = exports.a11yRules = void 0;
|
|
9
|
+
exports.scanWorkspace = exports.formatWorkspaceReport = exports.formatWorkspaceJson = exports.recommendTests = exports.formatRecommendationsJson = exports.formatRecommendations = exports.parseVueRouterConfig = exports.parseUniAppRoutes = exports.parseTaroRoutes = exports.parseRoutes = exports.parseReactRouterConfig = exports.parseNuxtRoutes = exports.parseNextJsRoutes = exports.parseAllRoutes = exports.findRouteFiles = exports.detectRouteFramework = exports.uploadReport = exports.detectUploadConfig = exports.detectProjectMeta = exports.GitLabMRPublisher = exports.GitHubPRPublisher = exports.detectPublisherConfig = exports.createPublisher = exports.autoPublishComment = exports.sendNotifications = exports.detectNotificationConfig = exports.buildNotificationPayload = exports.detectMonorepo = exports.analyzeCrossPackageDeps = exports.initConfig = exports.generateDefaultConfig = exports.HistoryReport = exports.formatHistoryCompareJson = exports.formatHistoryCompare = exports.compareHistoryReports = exports.uninstallGitHooks = exports.installGitHooks = exports.hasGitHook = exports.detectHusky = exports.runFixBot = exports.detectFixBotConfig = exports.watchProject = exports.FileWatcher = void 0;
|
|
10
10
|
var cache_js_1 = require("./engine/cache.js");
|
|
11
11
|
Object.defineProperty(exports, "SmartCache", { enumerable: true, get: function () { return cache_js_1.SmartCache; } });
|
|
12
12
|
// v3.7.0: Incremental Index & Impact Analysis
|
|
@@ -42,6 +42,7 @@ Object.defineProperty(exports, "runLSPServer", { enumerable: true, get: function
|
|
|
42
42
|
var index_js_1 = require("./integrations/index.js");
|
|
43
43
|
Object.defineProperty(exports, "allExternalTools", { enumerable: true, get: function () { return index_js_1.allExternalTools; } });
|
|
44
44
|
Object.defineProperty(exports, "axeViolationsToIssues", { enumerable: true, get: function () { return index_js_1.axeViolationsToIssues; } });
|
|
45
|
+
Object.defineProperty(exports, "buildProfileKey", { enumerable: true, get: function () { return index_js_1.buildProfileKey; } });
|
|
45
46
|
Object.defineProperty(exports, "checkCWVThresholds", { enumerable: true, get: function () { return index_js_1.checkCWVThresholds; } });
|
|
46
47
|
Object.defineProperty(exports, "compareScreenshotsPixel", { enumerable: true, get: function () { return index_js_1.compareScreenshotsPixel; } });
|
|
47
48
|
Object.defineProperty(exports, "eslintIntegration", { enumerable: true, get: function () { return index_js_1.eslintIntegration; } });
|
|
@@ -58,6 +59,7 @@ Object.defineProperty(exports, "isPixelmatchAvailable", { enumerable: true, get:
|
|
|
58
59
|
Object.defineProperty(exports, "isPlaywrightAvailable", { enumerable: true, get: function () { return index_js_1.isPlaywrightAvailable; } });
|
|
59
60
|
Object.defineProperty(exports, "isPngjsAvailable", { enumerable: true, get: function () { return index_js_1.isPngjsAvailable; } });
|
|
60
61
|
Object.defineProperty(exports, "playwrightIntegration", { enumerable: true, get: function () { return index_js_1.playwrightIntegration; } });
|
|
62
|
+
Object.defineProperty(exports, "resolveBrowserTypes", { enumerable: true, get: function () { return index_js_1.resolveBrowserTypes; } });
|
|
61
63
|
Object.defineProperty(exports, "runAllExternalTools", { enumerable: true, get: function () { return index_js_1.runAllExternalTools; } });
|
|
62
64
|
Object.defineProperty(exports, "runLighthouseForUrl", { enumerable: true, get: function () { return index_js_1.runLighthouseForUrl; } });
|
|
63
65
|
Object.defineProperty(exports, "runPageHealthCheck", { enumerable: true, get: function () { return index_js_1.runPageHealthCheck; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAGH,8CAA+C;AAAtC,sGAAA,UAAU,OAAA;AAOnB,8CAA8C;AAC9C,kDAAqD;AAA5C,4GAAA,cAAc,OAAA;AAEvB,0DAAmE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AAiB,OAAA;AAErB,mEAAgE;AAAvD,wHAAA,iBAAiB,OAAA;AAE1B,eAAe;AACf,iEAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAAE,kHAAA,YAAY,OAAA;AAEzC,2DAWiC;AAV7B,uHAAA,oBAAoB,OAAA;AACpB,iHAAA,cAAc,OAAA;AACd,iHAAA,cAAc,OAAA;AACd,oHAAA,iBAAiB,OAAA;AACjB,kHAAA,eAAe,OAAA;AACf,yHAAA,sBAAsB,OAAA;AACtB,8GAAA,WAAW,OAAA;AACX,kHAAA,eAAe,OAAA;AACf,oHAAA,iBAAiB,OAAA;AACjB,uHAAA,oBAAoB,OAAA;AAGxB,0CAA0C;AAC1C,mEAIqC;AAHjC,4HAAA,qBAAqB,OAAA;AACrB,gIAAA,yBAAyB,OAAA;AACzB,qHAAA,cAAc,OAAA;AAQlB,qEAAyG;AAAhG,2HAAA,mBAAmB,OAAA;AAAE,6HAAA,qBAAqB,OAAA;AAAE,qHAAA,aAAa,OAAA"}
|
|
@@ -3,25 +3,23 @@
|
|
|
3
3
|
* Phase 4: 覆盖全面化 — 集成 ESLint / TypeScript / Stylelint
|
|
4
4
|
*/
|
|
5
5
|
export type { ExternalTool, ExternalToolResult } from "./base.js";
|
|
6
|
-
export {
|
|
6
|
+
export { eslintSeverityToFg, hasPackage, runAllExternalTools, runCommand } from "./base.js";
|
|
7
7
|
import { eslintIntegration as _eslintIntegration } from "./eslint.js";
|
|
8
|
-
import { typescriptIntegration as _typescriptIntegration } from "./typescript.js";
|
|
9
8
|
import { stylelintIntegration as _stylelintIntegration } from "./stylelint.js";
|
|
10
|
-
|
|
11
|
-
export { _typescriptIntegration as typescriptIntegration };
|
|
12
|
-
export { _stylelintIntegration as stylelintIntegration };
|
|
9
|
+
import { typescriptIntegration as _typescriptIntegration } from "./typescript.js";
|
|
10
|
+
export { _eslintIntegration as eslintIntegration, _stylelintIntegration as stylelintIntegration, _typescriptIntegration as typescriptIntegration, };
|
|
13
11
|
import { playwrightIntegration as _playwrightIntegration } from "./playwright.js";
|
|
14
|
-
export { _playwrightIntegration as playwrightIntegration };
|
|
15
|
-
export { runPageHealthCheck, isPlaywrightAvailable, formatPageHealthReport, formatPageHealthJson, toScanResult, uploadPageHealthResult, } from "./page-health.js";
|
|
16
|
-
export type { PageHealthOptions, PageHealthResult, CheckedRoute, } from "./page-health.js";
|
|
17
|
-
export { compareScreenshotsPixel, getBaselinePath, getCurrentScreenshotPath, getDiffImagePath, isPixelmatchAvailable, isPngjsAvailable, safeRouteName, } from "../utils/visual-regression.js";
|
|
18
|
-
export type { VisualRegressionOptions, VisualRegressionResult } from "../utils/visual-regression.js";
|
|
19
|
-
export { checkCWVThresholds, extractCoreWebVitals, formatCoreWebVitals, isLighthouseAvailable, runLighthouseForUrl, } from "../utils/lighthouse-metrics.js";
|
|
20
12
|
export type { CoreWebVitalsResult, CWVThresholds } from "../utils/lighthouse-metrics.js";
|
|
21
|
-
export {
|
|
13
|
+
export { checkCWVThresholds, extractCoreWebVitals, formatCoreWebVitals, isLighthouseAvailable, runLighthouseForUrl, } from "../utils/lighthouse-metrics.js";
|
|
14
|
+
export { buildProfileKey, parseViewport, resolveBrowserTypes, sanitizeProfileName, } from "../utils/page-health-profile.js";
|
|
22
15
|
export type { AxeRunResult, AxeViolation } from "../utils/runtime-a11y.js";
|
|
23
|
-
|
|
16
|
+
export { axeViolationsToIssues, isAxeCoreAvailable, mapAxeImpact, runAxeOnPage } from "../utils/runtime-a11y.js";
|
|
17
|
+
export type { VisualRegressionOptions, VisualRegressionResult } from "../utils/visual-regression.js";
|
|
18
|
+
export { compareScreenshotsPixel, getBaselinePath, getCurrentScreenshotPath, getDiffImagePath, isPixelmatchAvailable, isPngjsAvailable, safeRouteName, } from "../utils/visual-regression.js";
|
|
19
|
+
export type { BrowserName, CheckedRoute, PageHealthOptions, PageHealthResult, } from "./page-health.js";
|
|
20
|
+
export { formatPageHealthJson, formatPageHealthReport, isPlaywrightAvailable, runPageHealthCheck, toScanResult, uploadPageHealthResult, } from "./page-health.js";
|
|
21
|
+
export { _playwrightIntegration as playwrightIntegration };
|
|
24
22
|
export declare const allExternalTools: import("./base.js").ExternalTool[];
|
|
25
|
-
export { detectFormatter, runFormat } from "./formatter.js";
|
|
26
23
|
export type { FormatResult, FormatterTool } from "./formatter.js";
|
|
24
|
+
export { detectFormatter, runFormat } from "./formatter.js";
|
|
27
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5F,OAAO,EAAE,iBAAiB,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAElF,OAAO,EACH,kBAAkB,IAAI,iBAAiB,EACvC,qBAAqB,IAAI,oBAAoB,EAC7C,sBAAsB,IAAI,qBAAqB,GAClD,CAAC;AAGF,OAAO,EAAE,qBAAqB,IAAI,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAElF,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EACH,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,GACtB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACH,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,mBAAmB,GACtB,MAAM,iCAAiC,CAAC;AACzC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACjH,YAAY,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAErG,OAAO,EACH,uBAAuB,EACvB,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,GAChB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACR,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,YAAY,EACZ,sBAAsB,GACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,sBAAsB,IAAI,qBAAqB,EAAE,CAAC;AAC3D,eAAO,MAAM,gBAAgB,oCAK5B,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -4,50 +4,55 @@
|
|
|
4
4
|
* Phase 4: 覆盖全面化 — 集成 ESLint / TypeScript / Stylelint
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.runFormat = exports.detectFormatter = exports.allExternalTools = exports.
|
|
7
|
+
exports.runFormat = exports.detectFormatter = exports.allExternalTools = exports.playwrightIntegration = exports.uploadPageHealthResult = exports.toScanResult = exports.runPageHealthCheck = exports.isPlaywrightAvailable = exports.formatPageHealthReport = exports.formatPageHealthJson = exports.safeRouteName = exports.isPngjsAvailable = exports.isPixelmatchAvailable = exports.getDiffImagePath = exports.getCurrentScreenshotPath = exports.getBaselinePath = exports.compareScreenshotsPixel = exports.runAxeOnPage = exports.mapAxeImpact = exports.isAxeCoreAvailable = exports.axeViolationsToIssues = exports.sanitizeProfileName = exports.resolveBrowserTypes = exports.parseViewport = exports.buildProfileKey = exports.runLighthouseForUrl = exports.isLighthouseAvailable = exports.formatCoreWebVitals = exports.extractCoreWebVitals = exports.checkCWVThresholds = exports.typescriptIntegration = exports.stylelintIntegration = exports.eslintIntegration = exports.runCommand = exports.runAllExternalTools = exports.hasPackage = exports.eslintSeverityToFg = void 0;
|
|
8
8
|
var base_js_1 = require("./base.js");
|
|
9
|
-
Object.defineProperty(exports, "runAllExternalTools", { enumerable: true, get: function () { return base_js_1.runAllExternalTools; } });
|
|
10
|
-
Object.defineProperty(exports, "runCommand", { enumerable: true, get: function () { return base_js_1.runCommand; } });
|
|
11
9
|
Object.defineProperty(exports, "eslintSeverityToFg", { enumerable: true, get: function () { return base_js_1.eslintSeverityToFg; } });
|
|
12
10
|
Object.defineProperty(exports, "hasPackage", { enumerable: true, get: function () { return base_js_1.hasPackage; } });
|
|
11
|
+
Object.defineProperty(exports, "runAllExternalTools", { enumerable: true, get: function () { return base_js_1.runAllExternalTools; } });
|
|
12
|
+
Object.defineProperty(exports, "runCommand", { enumerable: true, get: function () { return base_js_1.runCommand; } });
|
|
13
13
|
const eslint_js_1 = require("./eslint.js");
|
|
14
14
|
Object.defineProperty(exports, "eslintIntegration", { enumerable: true, get: function () { return eslint_js_1.eslintIntegration; } });
|
|
15
|
-
const typescript_js_1 = require("./typescript.js");
|
|
16
|
-
Object.defineProperty(exports, "typescriptIntegration", { enumerable: true, get: function () { return typescript_js_1.typescriptIntegration; } });
|
|
17
15
|
const stylelint_js_1 = require("./stylelint.js");
|
|
18
16
|
Object.defineProperty(exports, "stylelintIntegration", { enumerable: true, get: function () { return stylelint_js_1.stylelintIntegration; } });
|
|
17
|
+
const typescript_js_1 = require("./typescript.js");
|
|
18
|
+
Object.defineProperty(exports, "typescriptIntegration", { enumerable: true, get: function () { return typescript_js_1.typescriptIntegration; } });
|
|
19
19
|
// v3.6.1: Playwright E2E 测试集成
|
|
20
20
|
const playwright_js_1 = require("./playwright.js");
|
|
21
21
|
Object.defineProperty(exports, "playwrightIntegration", { enumerable: true, get: function () { return playwright_js_1.playwrightIntegration; } });
|
|
22
|
-
// v3.7.1: 页面健康检查
|
|
23
|
-
var page_health_js_1 = require("./page-health.js");
|
|
24
|
-
Object.defineProperty(exports, "runPageHealthCheck", { enumerable: true, get: function () { return page_health_js_1.runPageHealthCheck; } });
|
|
25
|
-
Object.defineProperty(exports, "isPlaywrightAvailable", { enumerable: true, get: function () { return page_health_js_1.isPlaywrightAvailable; } });
|
|
26
|
-
Object.defineProperty(exports, "formatPageHealthReport", { enumerable: true, get: function () { return page_health_js_1.formatPageHealthReport; } });
|
|
27
|
-
Object.defineProperty(exports, "formatPageHealthJson", { enumerable: true, get: function () { return page_health_js_1.formatPageHealthJson; } });
|
|
28
|
-
Object.defineProperty(exports, "toScanResult", { enumerable: true, get: function () { return page_health_js_1.toScanResult; } });
|
|
29
|
-
Object.defineProperty(exports, "uploadPageHealthResult", { enumerable: true, get: function () { return page_health_js_1.uploadPageHealthResult; } });
|
|
30
|
-
// v3.10.0: 页面测试进阶工具
|
|
31
|
-
var visual_regression_js_1 = require("../utils/visual-regression.js");
|
|
32
|
-
Object.defineProperty(exports, "compareScreenshotsPixel", { enumerable: true, get: function () { return visual_regression_js_1.compareScreenshotsPixel; } });
|
|
33
|
-
Object.defineProperty(exports, "getBaselinePath", { enumerable: true, get: function () { return visual_regression_js_1.getBaselinePath; } });
|
|
34
|
-
Object.defineProperty(exports, "getCurrentScreenshotPath", { enumerable: true, get: function () { return visual_regression_js_1.getCurrentScreenshotPath; } });
|
|
35
|
-
Object.defineProperty(exports, "getDiffImagePath", { enumerable: true, get: function () { return visual_regression_js_1.getDiffImagePath; } });
|
|
36
|
-
Object.defineProperty(exports, "isPixelmatchAvailable", { enumerable: true, get: function () { return visual_regression_js_1.isPixelmatchAvailable; } });
|
|
37
|
-
Object.defineProperty(exports, "isPngjsAvailable", { enumerable: true, get: function () { return visual_regression_js_1.isPngjsAvailable; } });
|
|
38
|
-
Object.defineProperty(exports, "safeRouteName", { enumerable: true, get: function () { return visual_regression_js_1.safeRouteName; } });
|
|
39
22
|
var lighthouse_metrics_js_1 = require("../utils/lighthouse-metrics.js");
|
|
40
23
|
Object.defineProperty(exports, "checkCWVThresholds", { enumerable: true, get: function () { return lighthouse_metrics_js_1.checkCWVThresholds; } });
|
|
41
24
|
Object.defineProperty(exports, "extractCoreWebVitals", { enumerable: true, get: function () { return lighthouse_metrics_js_1.extractCoreWebVitals; } });
|
|
42
25
|
Object.defineProperty(exports, "formatCoreWebVitals", { enumerable: true, get: function () { return lighthouse_metrics_js_1.formatCoreWebVitals; } });
|
|
43
26
|
Object.defineProperty(exports, "isLighthouseAvailable", { enumerable: true, get: function () { return lighthouse_metrics_js_1.isLighthouseAvailable; } });
|
|
44
27
|
Object.defineProperty(exports, "runLighthouseForUrl", { enumerable: true, get: function () { return lighthouse_metrics_js_1.runLighthouseForUrl; } });
|
|
28
|
+
// v3.10.1: 浏览器/视口 profile 工具
|
|
29
|
+
var page_health_profile_js_1 = require("../utils/page-health-profile.js");
|
|
30
|
+
Object.defineProperty(exports, "buildProfileKey", { enumerable: true, get: function () { return page_health_profile_js_1.buildProfileKey; } });
|
|
31
|
+
Object.defineProperty(exports, "parseViewport", { enumerable: true, get: function () { return page_health_profile_js_1.parseViewport; } });
|
|
32
|
+
Object.defineProperty(exports, "resolveBrowserTypes", { enumerable: true, get: function () { return page_health_profile_js_1.resolveBrowserTypes; } });
|
|
33
|
+
Object.defineProperty(exports, "sanitizeProfileName", { enumerable: true, get: function () { return page_health_profile_js_1.sanitizeProfileName; } });
|
|
45
34
|
var runtime_a11y_js_1 = require("../utils/runtime-a11y.js");
|
|
46
35
|
Object.defineProperty(exports, "axeViolationsToIssues", { enumerable: true, get: function () { return runtime_a11y_js_1.axeViolationsToIssues; } });
|
|
47
36
|
Object.defineProperty(exports, "isAxeCoreAvailable", { enumerable: true, get: function () { return runtime_a11y_js_1.isAxeCoreAvailable; } });
|
|
48
37
|
Object.defineProperty(exports, "mapAxeImpact", { enumerable: true, get: function () { return runtime_a11y_js_1.mapAxeImpact; } });
|
|
49
38
|
Object.defineProperty(exports, "runAxeOnPage", { enumerable: true, get: function () { return runtime_a11y_js_1.runAxeOnPage; } });
|
|
50
|
-
|
|
39
|
+
// v3.10.0: 页面测试进阶工具
|
|
40
|
+
var visual_regression_js_1 = require("../utils/visual-regression.js");
|
|
41
|
+
Object.defineProperty(exports, "compareScreenshotsPixel", { enumerable: true, get: function () { return visual_regression_js_1.compareScreenshotsPixel; } });
|
|
42
|
+
Object.defineProperty(exports, "getBaselinePath", { enumerable: true, get: function () { return visual_regression_js_1.getBaselinePath; } });
|
|
43
|
+
Object.defineProperty(exports, "getCurrentScreenshotPath", { enumerable: true, get: function () { return visual_regression_js_1.getCurrentScreenshotPath; } });
|
|
44
|
+
Object.defineProperty(exports, "getDiffImagePath", { enumerable: true, get: function () { return visual_regression_js_1.getDiffImagePath; } });
|
|
45
|
+
Object.defineProperty(exports, "isPixelmatchAvailable", { enumerable: true, get: function () { return visual_regression_js_1.isPixelmatchAvailable; } });
|
|
46
|
+
Object.defineProperty(exports, "isPngjsAvailable", { enumerable: true, get: function () { return visual_regression_js_1.isPngjsAvailable; } });
|
|
47
|
+
Object.defineProperty(exports, "safeRouteName", { enumerable: true, get: function () { return visual_regression_js_1.safeRouteName; } });
|
|
48
|
+
// v3.7.1: 页面健康检查
|
|
49
|
+
var page_health_js_1 = require("./page-health.js");
|
|
50
|
+
Object.defineProperty(exports, "formatPageHealthJson", { enumerable: true, get: function () { return page_health_js_1.formatPageHealthJson; } });
|
|
51
|
+
Object.defineProperty(exports, "formatPageHealthReport", { enumerable: true, get: function () { return page_health_js_1.formatPageHealthReport; } });
|
|
52
|
+
Object.defineProperty(exports, "isPlaywrightAvailable", { enumerable: true, get: function () { return page_health_js_1.isPlaywrightAvailable; } });
|
|
53
|
+
Object.defineProperty(exports, "runPageHealthCheck", { enumerable: true, get: function () { return page_health_js_1.runPageHealthCheck; } });
|
|
54
|
+
Object.defineProperty(exports, "toScanResult", { enumerable: true, get: function () { return page_health_js_1.toScanResult; } });
|
|
55
|
+
Object.defineProperty(exports, "uploadPageHealthResult", { enumerable: true, get: function () { return page_health_js_1.uploadPageHealthResult; } });
|
|
51
56
|
exports.allExternalTools = [
|
|
52
57
|
eslint_js_1.eslintIntegration,
|
|
53
58
|
typescript_js_1.typescriptIntegration,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,qCAA4F;AAAnF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/integrations/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,qCAA4F;AAAnF,6GAAA,kBAAkB,OAAA;AAAE,qGAAA,UAAU,OAAA;AAAE,8GAAA,mBAAmB,OAAA;AAAE,qGAAA,UAAU,OAAA;AAExE,2CAAsE;AAK5C,kGALI,6BAAkB,OAKL;AAJ3C,iDAA+E;AAKlD,qGALI,mCAAqB,OAKL;AAJjD,mDAAkF;AAKpD,sGALI,qCAAsB,OAKL;AAGnD,8BAA8B;AAC9B,mDAAkF;AA6C/C,sGA7CD,qCAAsB,OA6CA;AA1CxD,wEAMwC;AALpC,2HAAA,kBAAkB,OAAA;AAClB,6HAAA,oBAAoB,OAAA;AACpB,4HAAA,mBAAmB,OAAA;AACnB,8HAAA,qBAAqB,OAAA;AACrB,4HAAA,mBAAmB,OAAA;AAEvB,6BAA6B;AAC7B,0EAKyC;AAJrC,yHAAA,eAAe,OAAA;AACf,uHAAA,aAAa,OAAA;AACb,6HAAA,mBAAmB,OAAA;AACnB,6HAAA,mBAAmB,OAAA;AAGvB,4DAAiH;AAAxG,wHAAA,qBAAqB,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,+GAAA,YAAY,OAAA;AAAE,+GAAA,YAAY,OAAA;AAE9E,oBAAoB;AACpB,sEAQuC;AAPnC,+HAAA,uBAAuB,OAAA;AACvB,uHAAA,eAAe,OAAA;AACf,gIAAA,wBAAwB,OAAA;AACxB,wHAAA,gBAAgB,OAAA;AAChB,6HAAA,qBAAqB,OAAA;AACrB,wHAAA,gBAAgB,OAAA;AAChB,qHAAA,aAAa,OAAA;AAQjB,iBAAiB;AACjB,mDAO0B;AANtB,sHAAA,oBAAoB,OAAA;AACpB,wHAAA,sBAAsB,OAAA;AACtB,uHAAA,qBAAqB,OAAA;AACrB,oHAAA,kBAAkB,OAAA;AAClB,8GAAA,YAAY,OAAA;AACZ,wHAAA,sBAAsB,OAAA;AAGb,QAAA,gBAAgB,GAAG;IAC5B,6BAAkB;IAClB,qCAAsB;IACtB,mCAAqB;IACrB,qCAAsB;CACzB,CAAC;AAGF,oBAAoB;AACpB,+CAA4D;AAAnD,+GAAA,eAAe,OAAA;AAAE,yGAAA,SAAS,OAAA"}
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
import { type ChildProcess } from "node:child_process";
|
|
14
14
|
import type { Issue, ScanResult } from "../types.js";
|
|
15
15
|
import { type CoreWebVitalsResult } from "../utils/lighthouse-metrics.js";
|
|
16
|
+
import { type BrowserName } from "../utils/page-health-profile.js";
|
|
16
17
|
import { type AxeViolation } from "../utils/runtime-a11y.js";
|
|
17
18
|
import { type VisualRegressionResult } from "../utils/visual-regression.js";
|
|
19
|
+
export type { BrowserName } from "../utils/page-health-profile.js";
|
|
18
20
|
import { type DashboardClientConfig, type DashboardUploadResult } from "../utils/dashboard-client.js";
|
|
19
21
|
export interface PageHealthOptions {
|
|
20
22
|
/** 项目根目录 */
|
|
@@ -75,6 +77,14 @@ export interface PageHealthOptions {
|
|
|
75
77
|
a11y?: boolean;
|
|
76
78
|
/** axe-core 过滤标签 */
|
|
77
79
|
a11yTags?: string[];
|
|
80
|
+
/** 浏览器引擎,默认 chromium;all 会依次跑 chromium/firefox/webkit */
|
|
81
|
+
browser?: BrowserName | "all";
|
|
82
|
+
/** Playwright 设备名称,如 "iPhone 14 Pro" */
|
|
83
|
+
device?: string;
|
|
84
|
+
/** 自定义视口尺寸,如 "390x844" */
|
|
85
|
+
viewport?: string;
|
|
86
|
+
/** 使用移动端预设视口(iPhone 14 Pro) */
|
|
87
|
+
viewportMobile?: boolean;
|
|
78
88
|
}
|
|
79
89
|
export interface CheckedRoute {
|
|
80
90
|
/** 路由路径 */
|
|
@@ -113,6 +123,10 @@ export interface CheckedRoute {
|
|
|
113
123
|
metrics?: CoreWebVitalsResult;
|
|
114
124
|
/** v3.10.0: axe-core 运行时无障碍问题 */
|
|
115
125
|
a11yViolations?: AxeViolation[];
|
|
126
|
+
/** v3.10.1: 浏览器引擎 */
|
|
127
|
+
browser?: BrowserName;
|
|
128
|
+
/** v3.10.1: 视口/设备标识 */
|
|
129
|
+
viewport?: string;
|
|
116
130
|
}
|
|
117
131
|
export interface PageHealthResult {
|
|
118
132
|
/** 发现的 Issue */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-health.d.ts","sourceRoot":"","sources":["../../src/integrations/page-health.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"page-health.d.ts","sourceRoot":"","sources":["../../src/integrations/page-health.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,oBAAoB,CAAC;AAK9D,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EACH,KAAK,mBAAmB,EAK3B,MAAM,+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