bpmax-cli 0.2.1-beta.36 → 0.2.1-beta.37

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 CHANGED
@@ -288,6 +288,8 @@ The project-owned skills live under `skills/`.
288
288
 
289
289
  Use `bpmax-functional-test-design` to derive traceable functional test cases from BPMAX requirements with equivalence classes and boundaries, decision tables, state transitions, and end-to-end use cases. It designs cases and maps them toward `.ai_test`; real browser and workflow execution remains the responsibility of `bpmax-e2e-flow-test-operator`.
290
290
 
291
+ Use `bpmax-ui-ux-audit` to review BPMAX forms, lists, details, approval pages, and full journeys with current-run evidence. Every confirmed experience issue is a severity-rated BUG, and E2E completion is gated by the structured UX findings plus `test-suite lint-report`.
292
+
291
293
  Running `npm install` or `npm run install:skills` copies project skills into detected local agent skill directories, including:
292
294
 
293
295
  - `~/.codex/skills`
package/dist/bin.js CHANGED
@@ -496,7 +496,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
496
496
  // package.json
497
497
  var package_default = {
498
498
  name: "bpmax-cli",
499
- version: "0.2.1-beta.36",
499
+ version: "0.2.1-beta.37",
500
500
  description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
501
501
  type: "module",
502
502
  bin: {
@@ -16172,6 +16172,12 @@ var CONFIG_BASIS_ALLOWED_PREFIXES = [
16172
16172
  ".codex/skills/"
16173
16173
  ];
16174
16174
  var REPORT_REQUIRED_KEYS = ["run_id:", "scenario_id:", "source_suite:", "result:"];
16175
+ var REPORT_REQUIRED_SKILLS = {
16176
+ test_design_skill: "bpmax-functional-test-design",
16177
+ ux_audit_skill: "bpmax-ui-ux-audit"
16178
+ };
16179
+ var UX_SEVERITIES = ["P0", "P1", "P2", "P3"];
16180
+ var UX_FINDING_STATUSES = /* @__PURE__ */ new Set(["open", "fixed", "verified"]);
16175
16181
  var REPORT_EXECUTION_KEYS = [
16176
16182
  "planned_cases:",
16177
16183
  "executed_cases:",
@@ -17441,6 +17447,19 @@ async function startTestSuiteRun(options) {
17441
17447
  steps: selectedSteps.map((step) => ({ ...step, status: "planned", evidence: [] }))
17442
17448
  };
17443
17449
  await writeExecutionManifest(manifestPath, manifest);
17450
+ await writeFile9(
17451
+ path10.join(reportDir, "ux-findings.json"),
17452
+ `${JSON.stringify({
17453
+ version: 1,
17454
+ run_id: runId,
17455
+ scenario_id: options.scenario,
17456
+ audit_status: "blocked",
17457
+ evaluated_surfaces: [],
17458
+ findings: []
17459
+ }, null, 2)}
17460
+ `,
17461
+ "utf8"
17462
+ );
17444
17463
  const scenarioReport = path10.join(reportDir, `${options.scenario}.md`);
17445
17464
  const plannedSteps = selectedSteps.map((step) => `${options.caseId}/${step.step_id}`).join(", ");
17446
17465
  await writeFile9(
@@ -17450,6 +17469,11 @@ async function startTestSuiteRun(options) {
17450
17469
  `scenario_id: ${options.scenario}`,
17451
17470
  `source_suite: ${path10.resolve(scenarioDir)}`,
17452
17471
  "result: partial",
17472
+ "test_design_skill: bpmax-functional-test-design",
17473
+ "ux_audit_skill: bpmax-ui-ux-audit",
17474
+ "ux_audit_status: blocked",
17475
+ "ux_findings: ux-findings.json",
17476
+ "ux_bug_counts: P0=0,P1=0,P2=0,P3=0",
17453
17477
  "rerun_policy: full_rerun",
17454
17478
  `started_at: ${manifest.started_at}`,
17455
17479
  "finished_at: pending",
@@ -18354,12 +18378,232 @@ async function reportHasValidBlockedEvidence(text5, reportPath, runDir, manifest
18354
18378
  blockedStep && ["browser", "e2e_create_page"].includes(blockedStep.runner) && await hasStructuredBlockedEvidence(manifest, blockedStep, evidencePath)
18355
18379
  );
18356
18380
  }
18381
+ function emptyUxBugCounts() {
18382
+ return { P0: 0, P1: 0, P2: 0, P3: 0 };
18383
+ }
18384
+ function parseUxBugCounts(value) {
18385
+ const counts = emptyUxBugCounts();
18386
+ const matches = [...value.matchAll(/(?:^|,)\s*(P[0-3])\s*=\s*(\d+)\s*(?=,|$)/g)];
18387
+ if (matches.length !== UX_SEVERITIES.length) return null;
18388
+ for (const match of matches) counts[match[1]] = Number(match[2]);
18389
+ return UX_SEVERITIES.every((severity) => matches.filter((match) => match[1] === severity).length === 1) ? counts : null;
18390
+ }
18391
+ function nonEmptyString(value) {
18392
+ return typeof value === "string" && value.trim().length > 0;
18393
+ }
18394
+ function nonEmptyStringArray(value) {
18395
+ return Array.isArray(value) && value.length > 0 && value.every(nonEmptyString);
18396
+ }
18397
+ async function uxManifestArtifacts(text5, reportPath, runDir) {
18398
+ const artifacts = /* @__PURE__ */ new Set();
18399
+ const manifestValue = reportKeyValue(text5, "execution_manifest:");
18400
+ if (!manifestValue) return artifacts;
18401
+ const manifestPath = path10.resolve(path10.dirname(reportPath), manifestValue);
18402
+ if (!pathInside(runDir, manifestPath) || !await exists3(manifestPath) || !await pathInsideReal(runDir, manifestPath)) {
18403
+ return artifacts;
18404
+ }
18405
+ try {
18406
+ const manifest = JSON.parse(await readText(manifestPath));
18407
+ for (const step of manifest.steps ?? []) {
18408
+ for (const item of step.evidence ?? []) {
18409
+ const evidencePath = path10.isAbsolute(item) ? path10.resolve(item) : path10.resolve(path10.dirname(manifestPath), item);
18410
+ if (!pathInside(runDir, evidencePath) || !await exists3(evidencePath) || !await pathInsideReal(runDir, evidencePath)) continue;
18411
+ artifacts.add(evidencePath);
18412
+ for (const { value, source } of await evidenceJsonRecords(evidencePath)) {
18413
+ artifacts.add(path10.resolve(source));
18414
+ for (const key of ["screenshot", "dom_snapshot", "source_evidence"]) {
18415
+ const referenced = typeof value[key] === "string" ? value[key].trim() : "";
18416
+ if (!referenced) continue;
18417
+ const referencedPath = path10.resolve(path10.dirname(source), referenced);
18418
+ if (pathInside(runDir, referencedPath) && await exists3(referencedPath) && await pathInsideReal(runDir, referencedPath)) {
18419
+ artifacts.add(referencedPath);
18420
+ }
18421
+ }
18422
+ }
18423
+ }
18424
+ }
18425
+ } catch {
18426
+ }
18427
+ return artifacts;
18428
+ }
18429
+ async function validateUxEvidence(values, options) {
18430
+ const errors = [];
18431
+ const mtimes = [];
18432
+ for (const evidenceValue of values) {
18433
+ const evidencePath = path10.resolve(options.runDir, evidenceValue);
18434
+ if (!pathInside(options.runDir, evidencePath) || !await exists3(evidencePath) || !await pathInsideReal(options.runDir, evidencePath) || evidencePath === options.findingsPath) {
18435
+ errors.push(`[test_suite.report.ux_evidence] ${options.prefix}: UX BUG \u8BC1\u636E\u5FC5\u987B\u662F\u672C\u8F6E\u76EE\u5F55\u5185\u5B58\u5728\u7684\u72EC\u7ACB\u6587\u4EF6: ${evidenceValue}`);
18436
+ continue;
18437
+ }
18438
+ const info = await stat6(evidencePath);
18439
+ if (!info.isFile()) {
18440
+ errors.push(`[test_suite.report.ux_evidence] ${options.prefix}: UX BUG \u8BC1\u636E\u5FC5\u987B\u662F\u666E\u901A\u6587\u4EF6\uFF0C\u4E0D\u80FD\u662F\u76EE\u5F55: ${evidenceValue}`);
18441
+ continue;
18442
+ }
18443
+ if (!options.manifestArtifacts.has(evidencePath)) {
18444
+ errors.push(`[test_suite.report.ux_evidence_manifest] ${options.prefix}: UX BUG \u8BC1\u636E\u5FC5\u987B\u7531\u672C\u8F6E execution manifest \u767B\u8BB0\u6216\u5F15\u7528: ${evidenceValue}`);
18445
+ }
18446
+ if (!isWithinWindow(info.mtime, options.window)) {
18447
+ errors.push(`[test_suite.report.ux_evidence_current_run] ${options.prefix}: UX BUG \u8BC1\u636E\u5FC5\u987B\u5728\u672C\u8F6E\u6267\u884C\u7A97\u53E3\u5185\u751F\u6210: ${evidenceValue}`);
18448
+ }
18449
+ const extension = path10.extname(evidencePath).toLowerCase();
18450
+ if (extension === ".png") {
18451
+ if (!await isValidCurrentRunScreenshot(evidencePath)) {
18452
+ errors.push(`[test_suite.report.ux_evidence_invalid] ${options.prefix}: UX \u622A\u56FE\u8BC1\u636E\u5FC5\u987B\u662F\u53EF\u89E3\u6790\u3001\u5C3A\u5BF8\u81F3\u5C11 100x80 \u7684\u771F\u5B9E PNG: ${evidenceValue}`);
18453
+ }
18454
+ } else if (extension === ".json") {
18455
+ try {
18456
+ const parsed = JSON.parse(await readText(evidencePath));
18457
+ if (parsed === null || typeof parsed !== "object") throw new Error("expected object or array");
18458
+ } catch {
18459
+ errors.push(`[test_suite.report.ux_evidence_invalid] ${options.prefix}: UX \u7ED3\u6784\u5316\u8BC1\u636E\u5FC5\u987B\u662F\u6709\u6548 JSON: ${evidenceValue}`);
18460
+ }
18461
+ } else if ([".html", ".htm", ".txt", ".md"].includes(extension)) {
18462
+ if (!(await readText(evidencePath)).trim()) {
18463
+ errors.push(`[test_suite.report.ux_evidence_invalid] ${options.prefix}: UX \u6587\u672C\u6216 DOM \u8BC1\u636E\u4E0D\u80FD\u4E3A\u7A7A: ${evidenceValue}`);
18464
+ }
18465
+ } else {
18466
+ errors.push(`[test_suite.report.ux_evidence_invalid] ${options.prefix}: UX \u8BC1\u636E\u53EA\u63A5\u53D7 PNG\u3001JSON\u3001HTML\u3001TXT \u6216 Markdown \u6587\u4EF6: ${evidenceValue}`);
18467
+ }
18468
+ mtimes.push(info.mtime);
18469
+ }
18470
+ return { errors, mtimes };
18471
+ }
18472
+ async function lintUxAudit(text5, reportPath, runDir, runName) {
18473
+ const errors = [];
18474
+ const testDesignSkill = reportKeyValue(text5, "test_design_skill:");
18475
+ const uxAuditSkill = reportKeyValue(text5, "ux_audit_skill:");
18476
+ if (testDesignSkill !== REPORT_REQUIRED_SKILLS.test_design_skill || uxAuditSkill !== REPORT_REQUIRED_SKILLS.ux_audit_skill) {
18477
+ errors.push(`[test_suite.report.required_skills] ${reportPath}: test_design_skill \u5FC5\u987B\u4E3A ${REPORT_REQUIRED_SKILLS.test_design_skill}\uFF0Cux_audit_skill \u5FC5\u987B\u4E3A ${REPORT_REQUIRED_SKILLS.ux_audit_skill}`);
18478
+ }
18479
+ const reportAuditStatus = reportKeyValue(text5, "ux_audit_status:").toLowerCase();
18480
+ if (!["completed", "blocked"].includes(reportAuditStatus)) {
18481
+ errors.push(`[test_suite.report.ux_audit_status] ${reportPath}: ux_audit_status \u5FC5\u987B\u662F completed \u6216 blocked`);
18482
+ }
18483
+ const countsValue = reportKeyValue(text5, "ux_bug_counts:");
18484
+ const reportedCounts = parseUxBugCounts(countsValue);
18485
+ if (!reportedCounts) {
18486
+ errors.push(`[test_suite.report.ux_bug_counts] ${reportPath}: ux_bug_counts \u5FC5\u987B\u5B8C\u6574\u4F7F\u7528 P0=<n>,P1=<n>,P2=<n>,P3=<n>`);
18487
+ }
18488
+ const findingsValue = reportKeyValue(text5, "ux_findings:");
18489
+ const scenarioId = reportKeyValue(text5, "scenario_id:");
18490
+ const resultValue = reportKeyValue(text5, "result:").toLowerCase();
18491
+ const manifestArtifacts = await uxManifestArtifacts(text5, reportPath, runDir);
18492
+ const window = reportExecutionWindow(runName, text5);
18493
+ let actualCounts = emptyUxBugCounts();
18494
+ if (!findingsValue) {
18495
+ errors.push(`[test_suite.report.ux_findings_missing] ${reportPath}: missing \`ux_findings:\``);
18496
+ } else {
18497
+ const findingsPath = path10.resolve(path10.dirname(reportPath), findingsValue);
18498
+ if (!pathInside(runDir, findingsPath)) {
18499
+ errors.push(`[test_suite.report.ux_findings_scope] ${reportPath}: ux_findings \u5FC5\u987B\u4F4D\u4E8E\u672C\u8F6E\u62A5\u544A\u76EE\u5F55\u5185`);
18500
+ } else if (!await exists3(findingsPath)) {
18501
+ errors.push(`[test_suite.report.ux_findings_missing] ${reportPath}: ux_findings \u4E0D\u5B58\u5728: ${findingsValue}`);
18502
+ } else if (!await pathInsideReal(runDir, findingsPath)) {
18503
+ errors.push(`[test_suite.report.ux_findings_scope] ${reportPath}: ux_findings \u5FC5\u987B\u771F\u5B9E\u4F4D\u4E8E\u672C\u8F6E\u62A5\u544A\u76EE\u5F55\u5185`);
18504
+ } else {
18505
+ try {
18506
+ const raw = JSON.parse(await readText(findingsPath));
18507
+ if (raw.version !== 1 || raw.run_id !== runName || raw.scenario_id !== scenarioId) {
18508
+ errors.push(`[test_suite.report.ux_findings_identity] ${reportPath}: ux-findings.json \u7684 version/run_id/scenario_id \u5FC5\u987B\u4E0E\u672C\u8F6E\u62A5\u544A\u4E00\u81F4`);
18509
+ }
18510
+ const auditStatus = typeof raw.audit_status === "string" ? raw.audit_status.toLowerCase() : "";
18511
+ if (!["completed", "blocked"].includes(auditStatus) || auditStatus !== reportAuditStatus) {
18512
+ errors.push(`[test_suite.report.ux_audit_status] ${reportPath}: \u62A5\u544A\u4E0E ux-findings.json \u7684 audit_status \u5FC5\u987B\u4E00\u81F4\u4E14\u4E3A completed|blocked`);
18513
+ }
18514
+ if (auditStatus === "completed" && !nonEmptyStringArray(raw.evaluated_surfaces)) {
18515
+ errors.push(`[test_suite.report.ux_surfaces] ${reportPath}: completed UX audit \u5FC5\u987B\u5217\u51FA evaluated_surfaces`);
18516
+ }
18517
+ if (!Array.isArray(raw.findings)) {
18518
+ errors.push(`[test_suite.report.ux_findings_invalid] ${reportPath}: findings \u5FC5\u987B\u662F\u6570\u7EC4`);
18519
+ } else {
18520
+ for (const [index, unknownFinding] of raw.findings.entries()) {
18521
+ const finding = unknownFinding;
18522
+ const prefix = `${reportPath}: findings[${index}]`;
18523
+ const severity = nonEmptyString(finding.severity) && UX_SEVERITIES.includes(finding.severity) ? finding.severity : null;
18524
+ const valid = finding.classification === "BUG" && severity && nonEmptyString(finding.bug_id) && nonEmptyString(finding.title) && nonEmptyString(finding.surface) && nonEmptyString(finding.user_impact) && nonEmptyStringArray(finding.reproduction_steps) && nonEmptyStringArray(finding.heuristic_refs) && nonEmptyStringArray(finding.evidence) && nonEmptyString(finding.recommendation) && nonEmptyString(finding.status) && UX_FINDING_STATUSES.has(finding.status);
18525
+ if (!valid || !severity) {
18526
+ errors.push(`[test_suite.report.ux_finding_invalid] ${prefix}: \u6BCF\u4E2A\u4F53\u9A8C\u95EE\u9898\u90FD\u5FC5\u987B classification=BUG\uFF0C\u5E76\u5305\u542B\u5408\u6CD5\u4E25\u91CD\u5EA6\u3001\u5F71\u54CD\u3001\u590D\u73B0\u3001\u542F\u53D1\u5F0F\u3001\u8BC1\u636E\u3001\u5EFA\u8BAE\u548C\u72B6\u6001`);
18527
+ continue;
18528
+ }
18529
+ const evidenceCheck = await validateUxEvidence(finding.evidence, {
18530
+ findingsPath,
18531
+ manifestArtifacts,
18532
+ prefix,
18533
+ reportPath,
18534
+ runDir,
18535
+ window
18536
+ });
18537
+ errors.push(...evidenceCheck.errors);
18538
+ if (finding.status === "verified") {
18539
+ if (!nonEmptyStringArray(finding.retest_evidence)) {
18540
+ errors.push(`[test_suite.report.ux_verified_evidence] ${prefix}: verified UX BUG \u5FC5\u987B\u5305\u542B retest_evidence`);
18541
+ } else {
18542
+ const retestCheck = await validateUxEvidence(finding.retest_evidence, {
18543
+ findingsPath,
18544
+ manifestArtifacts,
18545
+ prefix,
18546
+ reportPath,
18547
+ runDir,
18548
+ window
18549
+ });
18550
+ errors.push(...retestCheck.errors);
18551
+ const initialPaths = new Set(finding.evidence.map((item) => path10.resolve(runDir, item)));
18552
+ if (finding.retest_evidence.some((item) => initialPaths.has(path10.resolve(runDir, item)))) {
18553
+ errors.push(`[test_suite.report.ux_verified_evidence] ${prefix}: retest_evidence \u5FC5\u987B\u4F7F\u7528\u4FEE\u590D\u540E\u7684\u65B0\u8BC1\u636E\uFF0C\u4E0D\u80FD\u590D\u7528\u539F\u59CB evidence`);
18554
+ }
18555
+ const latestInitial = Math.max(...evidenceCheck.mtimes.map((item) => item.getTime()));
18556
+ if (retestCheck.mtimes.length === 0 || retestCheck.mtimes.some((item) => item.getTime() <= latestInitial)) {
18557
+ errors.push(`[test_suite.report.ux_verified_evidence] ${prefix}: retest_evidence \u5FC5\u987B\u665A\u4E8E\u539F\u59CB BUG \u8BC1\u636E`);
18558
+ }
18559
+ }
18560
+ } else {
18561
+ actualCounts[severity] += 1;
18562
+ }
18563
+ }
18564
+ }
18565
+ } catch (error) {
18566
+ errors.push(`[test_suite.report.ux_findings_invalid] ${reportPath}: ux_findings \u65E0\u6CD5\u89E3\u6790: ${error instanceof Error ? error.message : String(error)}`);
18567
+ }
18568
+ }
18569
+ }
18570
+ if (reportedCounts && UX_SEVERITIES.some((severity) => reportedCounts[severity] !== actualCounts[severity])) {
18571
+ errors.push(`[test_suite.report.ux_bug_counts] ${reportPath}: ux_bug_counts \u4E0E ux-findings.json \u4E0D\u4E00\u81F4`);
18572
+ }
18573
+ const counts = reportedCounts ?? actualCounts;
18574
+ if (reportAuditStatus === "blocked" && !["partial", "blocked"].includes(resultValue)) {
18575
+ errors.push(`[test_suite.report.ux_result] ${reportPath}: UX \u5BA1\u8BA1 blocked \u65F6 result \u53EA\u80FD\u662F partial \u6216 blocked`);
18576
+ } else if (counts.P0 > 0 || counts.P1 > 0) {
18577
+ if (resultValue !== "fail") errors.push(`[test_suite.report.ux_result] ${reportPath}: \u5B58\u5728 P0/P1 UX BUG \u65F6 result \u5FC5\u987B\u662F fail`);
18578
+ } else if (counts.P2 > 0 || counts.P3 > 0) {
18579
+ if (!["pass-with-warnings", "fail"].includes(resultValue)) errors.push(`[test_suite.report.ux_result] ${reportPath}: \u53EA\u6709 P2/P3 UX BUG \u65F6 result \u5FC5\u987B\u662F pass-with-warnings\uFF1B\u5B58\u5728\u5176\u4ED6\u5931\u8D25\u65F6\u53EF\u4E3A fail`);
18580
+ } else if (reportAuditStatus === "completed" && resultValue === "pass-with-warnings") {
18581
+ errors.push(`[test_suite.report.ux_result] ${reportPath}: \u65E0 UX BUG \u65F6\u4E0D\u80FD\u7528 pass-with-warnings \u89C4\u907F\u660E\u786E\u7ED3\u8BBA`);
18582
+ }
18583
+ if (reportedCounts && testDesignSkill && uxAuditSkill && reportAuditStatus && scenarioId) {
18584
+ return {
18585
+ errors,
18586
+ summary: {
18587
+ report: reportPath,
18588
+ run_id: runName,
18589
+ scenario_id: scenarioId,
18590
+ result: resultValue,
18591
+ test_design_skill: testDesignSkill,
18592
+ ux_audit_skill: uxAuditSkill,
18593
+ ux_audit_status: reportAuditStatus,
18594
+ ux_bug_counts: reportedCounts
18595
+ }
18596
+ };
18597
+ }
18598
+ return { errors };
18599
+ }
18357
18600
  async function lintReport(root = DEFAULT_REPORT_ROOT, options = {}) {
18358
- if (!await exists3(root)) return [`report root not found: ${root}`];
18601
+ if (!await exists3(root)) return { errors: [`report root not found: ${root}`], reports: [] };
18359
18602
  const errors = [];
18603
+ const reports = [];
18360
18604
  const resolvedRoot = path10.resolve(root);
18361
18605
  const candidateDirs = RUN_RE.test(path10.basename(resolvedRoot)) ? [resolvedRoot] : (await scenarioDirs(resolvedRoot)).filter((dir) => RUN_RE.test(path10.basename(dir)));
18362
- if (candidateDirs.length === 0) return [`report run not found under: ${resolvedRoot}`];
18606
+ if (candidateDirs.length === 0) return { errors: [`report run not found under: ${resolvedRoot}`], reports };
18363
18607
  const runDirs = options.allRuns ? candidateDirs : candidateDirs.slice(-1);
18364
18608
  for (const runDir of runDirs) {
18365
18609
  const runName = path10.basename(runDir);
@@ -18374,6 +18618,9 @@ async function lintReport(root = DEFAULT_REPORT_ROOT, options = {}) {
18374
18618
  for (const reportName of scenarioReports) {
18375
18619
  const reportPath = path10.join(runDir, reportName);
18376
18620
  const text5 = await readText(reportPath);
18621
+ const uxAudit = await lintUxAudit(text5, reportPath, runDir, runName);
18622
+ errors.push(...uxAudit.errors);
18623
+ if (uxAudit.summary) reports.push(uxAudit.summary);
18377
18624
  for (const key of REPORT_REQUIRED_KEYS) if (!reportKeyValue(text5, key)) errors.push(`${reportPath}: missing \`${key}\``);
18378
18625
  for (const key of REPORT_EXECUTION_KEYS) if (!reportKeyValue(text5, key)) errors.push(`${reportPath}: missing \`${key}\``);
18379
18626
  for (const heading of REPORT_REQUIRED_HEADINGS) if (!text5.includes(heading)) errors.push(`${reportPath}: missing \`${heading}\``);
@@ -18586,7 +18833,7 @@ async function lintReport(root = DEFAULT_REPORT_ROOT, options = {}) {
18586
18833
  }
18587
18834
  }
18588
18835
  }
18589
- return errors;
18836
+ return { errors, reports };
18590
18837
  }
18591
18838
  async function validateCopyDiffArtifacts(scenarioDir) {
18592
18839
  const diffDir = path10.join(scenarioDir, COPY_DIFF_DIR);
@@ -25480,11 +25727,12 @@ function registerTestSuiteCommands(program2) {
25480
25727
  printResult(options.format, { path: reportDir });
25481
25728
  });
25482
25729
  suite.command("lint-report").description("Lint BPMAX E2E test report artifacts").option("--root <path>", "Report root directory", DEFAULT_REPORT_ROOT).option("--all-runs", "Lint every historical run instead of only the latest/current run").option("--format <format>", "Output format", "json").action(async (options) => {
25483
- const errors = await lintReport(options.root, { allRuns: Boolean(options.allRuns) });
25484
- if (errors.length > 0) {
25485
- throw new Error(errors.join("\n"));
25730
+ const lint = await lintReport(options.root, { allRuns: Boolean(options.allRuns) });
25731
+ if (lint.errors.length > 0) {
25732
+ throw new Error(lint.errors.join("\n"));
25486
25733
  }
25487
- printResult(options.format, { ok: true });
25734
+ const summary = lint.reports.length === 1 ? lint.reports[0] : { reports: lint.reports };
25735
+ printResult(options.format, { ok: true, ...summary });
25488
25736
  });
25489
25737
  }
25490
25738