用途:作为参考数据组件(非审查器),帮助智能体识别并解析 Lighthouse CI 的无障碍审计结果,将发现映射到统一严重级别模型,并检测分数回归。
主要能力:检测工作流与配置文件(如 treosh/lighthouse-ci-action、lhci autorun、lighthouserc.js/json 等);解析无障碍总分(0-100)与单项审计结果;按权重映射严重级别(权重10失败为Critical,7为Serious,3为Moderate,1为Minor);与本地 axe-core 扫描按规则ID和URL关联,区分高/中置信度;通过前后分数对比检测回归(下降10+为Critical,5-9为Serious,1-4为Moderate);输出结构化发现,含 ruleId、wcagCriterion、severity、confidence、url、element 等字段。
使用方式:在仓库中搜索 Lighthouse CI 配置与工作流,读取 lighthouserc 配置的 collect.url、numberOfRuns、assert.assertions、upload.target;从工作流产物下载 JSON 报告,提取 categories.accessibility.score 与 audits 明细。常用检测命令:grep -rl "treosh/lighthouse-ci-action" .github/workflows/ 与 ls lighthouserc.js lighthouserc.json .lighthouserc.js .lighthouserc.json .lighthouserc.yml。
适用场景:CI 中无障碍回归监控、与本地扫描结果交叉验证、生成带置信度的无障碍发现报告。
限制:Lighthouse 无障碍类别仅覆盖 axe-core 规则子集,未覆盖项不会报告;仅 Lighthouse 发现标记为 CI-only 中等置信度;本地独有发现标记为 local-only;具体平台、收费与效果资料暂未提供。