eaa-kit 0.7.0 → 0.11.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.
Files changed (115) hide show
  1. package/README.md +182 -135
  2. package/dist/astro/index.d.ts +1 -3
  3. package/dist/astro/index.js +2 -3
  4. package/dist/audit/runners/worker.js +2 -3
  5. package/dist/{audit-DRjAY2iY.js → audit-DbqNIrt6.js} +85 -219
  6. package/dist/audit-rUhqnm3o.js +1 -0
  7. package/dist/{baseline-BpE7DbDq.js → baseline-CKElWbx4.js} +18 -8
  8. package/dist/baseline-DU0EPiTq.js +1 -0
  9. package/dist/baseline-DYOejLFO.js +1 -0
  10. package/dist/baseline-DvdsFTQy.js +126 -0
  11. package/dist/{cache-D4dOIuOi.js → cache-DIV4G0TI.js} +24 -5
  12. package/dist/{checklist-DDd9jewi.js → checklist-CA0Ri71Z.js} +8 -9
  13. package/dist/cli/index.js +115 -158
  14. package/dist/{collect-Cu1q9NTB.js → collect-CjucwTEF.js} +16 -8
  15. package/dist/{command-3r4fht5f.js → command-C8ZFvcc1.js} +33 -10
  16. package/dist/completeness-Cg-XIKWN.js +1 -0
  17. package/dist/completeness-Dzyvgr4Z.js +72 -0
  18. package/dist/component-CgbeRgJa.js +1 -0
  19. package/dist/{component-ChisoFyY.js → component-ZLd8DA_a.js} +3 -4
  20. package/dist/countries-B_PE6r5R.js +180 -0
  21. package/dist/countries-CCqog6dy.js +28 -0
  22. package/dist/coverage-B9_6yv_8.js +2 -0
  23. package/dist/{coverage-cb5kPp48.js → coverage-C1Z6t9Ct.js} +5 -7
  24. package/dist/{crawl-BHkJmUkA.js → crawl-CkHJJV4w.js} +135 -25
  25. package/dist/{criteria-CnPJKGeb.js → criteria-CacF0HP1.js} +1 -2
  26. package/dist/{load-BaWMa-G_.js → define-BdTPIfqE.js} +46 -99
  27. package/dist/detect-DnFHXpWh.js +49 -0
  28. package/dist/detect-oLDadgee.js +160 -0
  29. package/dist/doctor-q8IebwAb.js +248 -0
  30. package/dist/eleventy/index.d.ts +1 -3
  31. package/dist/eleventy/index.js +2 -3
  32. package/dist/entry-kf94P140.js +173 -0
  33. package/dist/{fingerprint-BjYV_0F7.js → fingerprint-CcoQ1WxQ.js} +1 -2
  34. package/dist/{frameworks-B4ClIJgE.js → frameworks-BboC8eNk.js} +234 -28
  35. package/dist/frameworks-Y-n3NUuG.js +1 -0
  36. package/dist/{fs-BmPtmFke.js → fs-tPD5r0wY.js} +1 -2
  37. package/dist/hosts-B48qR6Vt.js +19 -0
  38. package/dist/{html-BIxxF3FC.js → html-Bjq3Iw3g.js} +56 -14
  39. package/dist/{impact-luGCnN8F.js → impact-BGlJ6j0Y.js} +1 -2
  40. package/dist/{impact-EEB9ZXmC.d.ts → impact-CZjUloYC.d.ts} +0 -2
  41. package/dist/index.d.ts +50 -26
  42. package/dist/index.js +3 -2
  43. package/dist/init-3Ti3ao5Z.js +232 -0
  44. package/dist/issues-WLlepU95.js +120 -0
  45. package/dist/{jsdom-CsW_xVcA.js → jsdom-C4pLIMyP.js} +2 -3
  46. package/dist/jsdom-Zle--VQ1.js +2 -0
  47. package/dist/{json-Bus6YhxB.js → json-B_k4CDmR.js} +5 -6
  48. package/dist/json-IL1JxlTL.js +1 -0
  49. package/dist/load-C3eFEdoH.js +98 -0
  50. package/dist/load-oQQJPNlV.js +1 -0
  51. package/dist/markdown-D-QpPYsz.js +138 -0
  52. package/dist/next-8zDgH0nP.js +119 -0
  53. package/dist/nuxt/index.d.ts +1 -3
  54. package/dist/nuxt/index.js +2 -3
  55. package/dist/pages-CCP1WfYe.js +363 -0
  56. package/dist/{playwright-ukCr_5o3.js → playwright-ky4b_HME.js} +98 -16
  57. package/dist/{pool-B4tEUa2S.js → pool-B3XKdk57.js} +4 -5
  58. package/dist/project-B21NT_aX.js +502 -0
  59. package/dist/project-Dht13sb1.js +1 -0
  60. package/dist/{remediation-C0klJblu.js → remediation-BkE7q7dT.js} +2 -176
  61. package/dist/{render-C1sUZZI_.js → render-ky8cm4QF.js} +50 -24
  62. package/dist/result-DhoT4g0P.js +1 -0
  63. package/dist/{result-B7_zVxAX.js → result-g8dGsrcv.js} +1 -2
  64. package/dist/{review-CdMK2GpQ.js → review-BGjTBFvd.js} +11 -4
  65. package/dist/review-iheEjp7_.js +1 -0
  66. package/dist/{routes-CmdRUuOs.js → routes-BpQeBDmM.js} +4 -5
  67. package/dist/{run-DrS0Komf.js → run-D7tc7IU2.js} +2 -3
  68. package/dist/{run-BK2blxMI.d.ts → run-VXnP4uLp.d.ts} +2 -6
  69. package/dist/{sarif-BNCE0PNT.js → sarif-v66-PjdE.js} +9 -9
  70. package/dist/{schema-DJSF4K05.js → schema-DfC-Ww1w.js} +1 -2
  71. package/dist/setup-BYlqHlo0.js +2 -0
  72. package/dist/setup-Cf82ONw0.js +353 -0
  73. package/dist/shell-BdQYTaBQ.js +89 -0
  74. package/dist/site-CxVyh8IO.js +71 -0
  75. package/dist/start-bdanSxZr.js +100 -0
  76. package/dist/statement/templates/be.de.md +148 -0
  77. package/dist/statement/templates/be.en.md +142 -0
  78. package/dist/statement/templates/be.fr.md +146 -0
  79. package/dist/statement/templates/be.nl.md +147 -0
  80. package/dist/statement/templates/cz.cs.md +138 -0
  81. package/dist/statement/templates/cz.en.md +140 -0
  82. package/dist/statement/templates/dk.da.md +142 -0
  83. package/dist/statement/templates/dk.en.md +142 -0
  84. package/dist/statement/templates/fi.en.md +139 -0
  85. package/dist/statement/templates/fi.fi.md +141 -0
  86. package/dist/statement/templates/ie.en.md +144 -0
  87. package/dist/statement/templates/pl.en.md +143 -0
  88. package/dist/statement/templates/pl.pl.md +144 -0
  89. package/dist/statement/templates/pt.en.md +143 -0
  90. package/dist/statement/templates/pt.pt.md +145 -0
  91. package/dist/statement/templates/se.en.md +148 -0
  92. package/dist/statement/templates/se.sv.md +150 -0
  93. package/dist/{text-BF1LHMiV.js → text-CISDPU49.js} +11 -3
  94. package/dist/{version-B3v4rNoG.js → version-C8aJm8YJ.js} +1 -2
  95. package/dist/vite/index.d.ts +1 -3
  96. package/dist/vite/index.js +2 -3
  97. package/dist/watch-CefxwMsZ.js +121 -0
  98. package/dist/webpack/index.d.ts +1 -3
  99. package/dist/webpack/index.js +2 -3
  100. package/dist/{worksheet-BIxMtbUd.js → worksheet-CcBo9G7s.js} +4 -5
  101. package/dist/workspaces-BBFXOyeV.js +85 -0
  102. package/package.json +16 -14
  103. package/dist/audit-Bwm1xBdJ.js +0 -2
  104. package/dist/baseline-rtnj3RHB.js +0 -2
  105. package/dist/component-DcCn3BJS.js +0 -2
  106. package/dist/coverage-n1X9CkiG.js +0 -3
  107. package/dist/frameworks-etFg_O8K.js +0 -2
  108. package/dist/init-DrFfzjvm.js +0 -119
  109. package/dist/jsdom-BUYuVJJm.js +0 -3
  110. package/dist/json-CrQmoTj6.js +0 -2
  111. package/dist/load-n62iXDq_.js +0 -2
  112. package/dist/project-CzOnkLH6.js +0 -274
  113. package/dist/project-MFrXcw1M.js +0 -2
  114. package/dist/result-CRmjjoAA.js +0 -2
  115. package/dist/review-DIbOTmOM.js +0 -2
@@ -1,14 +1,15 @@
1
- import { n as IMPACT_LEVELS, o as impactRank } from "./impact-luGCnN8F.js";
2
- import { c as nullable, h as string, l as number, m as safeParse, p as record, s as isoDateTime, t as array, u as object, y as withDefault } from "./schema-DJSF4K05.js";
3
- import { u as STATEMENT_LOCALES } from "./load-BaWMa-G_.js";
4
- import { n as isDirectory } from "./fs-BmPtmFke.js";
5
- import { a as isoDate, i as escapeText, n as count, r as escapeAttribute, s as standardsReference } from "./text-BF1LHMiV.js";
6
- import { t as TOOL_VERSION } from "./version-B3v4rNoG.js";
7
- import { t as WCAG22_AA_CRITERIA } from "./criteria-CnPJKGeb.js";
1
+ import { n as IMPACT_LEVELS, o as impactRank } from "./impact-BGlJ6j0Y.js";
2
+ import { c as nullable, h as string, l as number, m as safeParse, p as record, s as isoDateTime, t as array, u as object, y as withDefault } from "./schema-DfC-Ww1w.js";
3
+ import { s as STATEMENT_LOCALES } from "./define-BdTPIfqE.js";
4
+ import { n as isDirectory } from "./fs-tPD5r0wY.js";
5
+ import { a as isCalendarDate, c as standardsReference, i as escapeText, n as count, o as isoDate, r as escapeAttribute } from "./text-CISDPU49.js";
6
+ import { t as TOOL_VERSION } from "./version-C8aJm8YJ.js";
7
+ import { t as WCAG22_AA_CRITERIA } from "./criteria-CacF0HP1.js";
8
+ import { n as authorityChanged, o as localToday } from "./countries-B_PE6r5R.js";
8
9
  import { readFile, readdir } from "node:fs/promises";
9
10
  import path from "node:path";
10
11
  import { fileURLToPath } from "node:url";
11
- //#region src/statement/error.ts
12
+ // src/statement/error.ts
12
13
  /**
13
14
  * Lives in its own module so that both the renderer and the audit-report reader
14
15
  * can throw it without importing each other.
@@ -19,10 +20,14 @@ import { fileURLToPath } from "node:url";
19
20
  * it — nothing is emitted at all.
20
21
  */
21
22
  var StatementError = class extends Error {
23
+ next;
22
24
  name = "StatementError";
25
+ constructor(message, next) {
26
+ super(message);
27
+ this.next = next;
28
+ }
23
29
  };
24
- //#endregion
25
- //#region src/statement/evidence.ts
30
+ // src/statement/evidence.ts
26
31
  /**
27
32
  * How old a claim or a report may be before the document says so.
28
33
  *
@@ -161,7 +166,10 @@ function summariseAuditReport(value, source = "audit report") {
161
166
  const result = safeParse(reportSchema, value);
162
167
  if (!result.success) throw new StatementError(`${source} is not an eaa-kit JSON report (${result.error.issues.map((issue) => `${issue.path.join(".") || "document"}: ${issue.message}`).slice(0, 5).join("; ")})`);
163
168
  const report = result.data;
164
- if (report.schemaVersion !== 2) throw new StatementError(`${source} has schemaVersion ${report.schemaVersion}; this version of eaa-kit reads 2`);
169
+ if (report.schemaVersion !== 2) throw new StatementError(`${source} has schemaVersion ${report.schemaVersion}; this version of eaa-kit reads 2`, {
170
+ command: `eaa-kit audit --format json --output ${source}`,
171
+ why: "write it again with this version"
172
+ });
165
173
  const byRule = /* @__PURE__ */ new Map();
166
174
  const rules = new Map(Object.entries(report.rules));
167
175
  for (const page of report.pages) for (const violation of page.violations) {
@@ -199,7 +207,10 @@ async function readAuditReport(file, cwd = process.cwd()) {
199
207
  try {
200
208
  raw = await readFile(target, "utf8");
201
209
  } catch {
202
- throw new StatementError(`Could not read the audit report at ${file}`);
210
+ throw new StatementError(`Could not read the audit report at ${file}`, {
211
+ command: `eaa-kit audit --format json --output ${file}`,
212
+ why: "write the report the statement reads its barriers from"
213
+ });
203
214
  }
204
215
  let value;
205
216
  try {
@@ -219,8 +230,7 @@ function toImpact(value) {
219
230
  function bySeverityThenRule(a, b) {
220
231
  return impactRank(a.impact) - impactRank(b.impact) || a.ruleId.localeCompare(b.ruleId);
221
232
  }
222
- //#endregion
223
- //#region src/statement/html.ts
233
+ // src/statement/html.ts
224
234
  /**
225
235
  * A standalone, self-contained HTML page.
226
236
  *
@@ -392,8 +402,7 @@ function trailingPunctuation(candidate) {
392
402
  }
393
403
  return candidate.slice(end);
394
404
  }
395
- //#endregion
396
- //#region src/statement/template.ts
405
+ // src/statement/template.ts
397
406
  var TemplateError = class extends Error {
398
407
  name = "TemplateError";
399
408
  };
@@ -499,8 +508,7 @@ function stringify(value) {
499
508
  if (Array.isArray(value)) return value.map(stringify).join(", ");
500
509
  return String(value);
501
510
  }
502
- //#endregion
503
- //#region src/statement/render.ts
511
+ // src/statement/render.ts
504
512
  /** How many affected pages a barrier lists before it starts counting instead. */
505
513
  const MAX_LISTED_PAGES = 5;
506
514
  /**
@@ -514,7 +522,7 @@ async function renderStatement(config, options = {}) {
514
522
  const country = options.country ?? config.enforcement.country;
515
523
  const locale = options.locale ?? defaultLocale(config);
516
524
  const template = `${country.toLowerCase()}.${locale}`;
517
- const markdown = tidy(renderTemplate(await loadTemplate(country, locale), buildScope(config, locale, options)));
525
+ const markdown = tidy(renderTemplate(await loadTemplate(country, locale), buildScope(config, country, locale, options)));
518
526
  return {
519
527
  markdown,
520
528
  html: toHtmlDocument(markdown, {
@@ -544,8 +552,10 @@ function defaultLocale(config) {
544
552
  * template, which keeps the template language trivial and puts the mapping
545
553
  * somewhere that can be typechecked.
546
554
  */
547
- function buildScope(config, locale, options) {
555
+ function buildScope(config, country, locale, options) {
548
556
  const audit = options.audit;
557
+ if (options.today !== void 0 && !isCalendarDate(options.today)) throw new StatementError(`today must be an ISO date (YYYY-MM-DD), got "${options.today}"`);
558
+ const changed = authorityChanged(country, options.today ?? localToday());
549
559
  const review = options.review ? toReviewScope(options.review, locale) : void 0;
550
560
  const issues = [...config.compliance.knownIssues.map((issue) => toIssueScope(issue, locale)), ...(audit?.findings ?? []).map((finding) => toFindingScope(finding, config.compliance.auditReason))];
551
561
  return {
@@ -566,7 +576,11 @@ function buildScope(config, locale, options) {
566
576
  review,
567
577
  hasReview: review !== void 0,
568
578
  hasKnownIssues: issues.length > 0,
569
- hasNoKnownIssues: issues.length === 0
579
+ hasNoKnownIssues: issues.length === 0,
580
+ supervision: {
581
+ changed,
582
+ unchanged: !changed
583
+ }
570
584
  };
571
585
  }
572
586
  /**
@@ -677,12 +691,18 @@ function reasonScope(reason) {
677
691
  * 20 August 2026, not August 20, 2026, in a European legal document.
678
692
  */
679
693
  const DATE_LOCALES = {
694
+ cs: "cs-CZ",
695
+ da: "da-DK",
680
696
  de: "de-AT",
681
697
  en: "en-GB",
682
698
  es: "es-ES",
699
+ fi: "fi-FI",
683
700
  fr: "fr-FR",
684
701
  it: "it-IT",
685
- nl: "nl-NL"
702
+ nl: "nl-NL",
703
+ pl: "pl-PL",
704
+ pt: "pt-PT",
705
+ sv: "sv-SE"
686
706
  };
687
707
  /**
688
708
  * 2026-08-20 becomes 20. August 2026 or 20 August 2026.
@@ -733,7 +753,14 @@ async function loadTemplate(country, locale) {
733
753
  const templates = (await readdir(directory)).filter((entry) => entry.endsWith(".md")).map((entry) => entry.replace(/\.md$/, "")).sort();
734
754
  const prefix = `${country.toLowerCase()}.`;
735
755
  const forCountry = templates.filter((entry) => entry.startsWith(prefix)).map((entry) => entry.slice(prefix.length));
736
- throw new StatementError(forCountry.length > 0 ? `No ${country} statement in ${locale}. ${country} has: ${forCountry.join(", ")}` : `No statement template for ${name}. Available: ${templates.join(", ")}`);
756
+ const first = forCountry[0];
757
+ throw new StatementError(first !== void 0 ? `No ${country} statement in ${locale}. ${country} has: ${forCountry.join(", ")}` : `No statement template for ${name}. Available: ${templates.join(", ")}`, first !== void 0 ? {
758
+ command: `eaa-kit statement --lang ${first}`,
759
+ why: `the ${country} statement in ${first}`
760
+ } : {
761
+ command: "eaa-kit countries",
762
+ why: "the countries a statement can be written for"
763
+ });
737
764
  }
738
765
  }
739
766
  /**
@@ -752,5 +779,4 @@ async function findTemplateDirectory() {
752
779
  for (const candidate of candidates) if (await isDirectory(candidate)) return candidate;
753
780
  throw new StatementError(`Could not locate the statement templates. Looked in: ${candidates.join(", ")}`);
754
781
  }
755
- //#endregion
756
782
  export { summariseAuditReport as a, StatementError as c, readAuditReport as i, toHtmlBody as n, checkStatementEvidence as o, toHtmlDocument as r, refuses as s, renderStatement as t };
@@ -0,0 +1 @@
1
+ export { c as pageUrl } from "./result-g8dGsrcv.js";
@@ -1,6 +1,6 @@
1
1
  import { pathToFileURL } from "node:url";
2
2
  import axe from "axe-core";
3
- //#region src/audit/result.ts
3
+ // src/audit/result.ts
4
4
  /**
5
5
  * Per-page ceiling for an audit, in milliseconds.
6
6
  *
@@ -335,5 +335,4 @@ function enClauses(tags) {
335
335
  }
336
336
  return [...clauses].sort();
337
337
  }
338
- //#endregion
339
338
  export { enClauses as a, pageUrl as c, runOptions as d, shapeResults as f, blindRulesInScope as i, ruleOutcomes as l, uniqueRuleOutcomes as m, DEFAULT_TAGS as n, failedPage as o, successCriteria as p, ENGINE_BLIND_RULES as r, findingElements as s, DEFAULT_PAGE_TIMEOUT_MS as t, runEngine as u };
@@ -1,5 +1,5 @@
1
- import { d as optional, h as string, i as enumeration, l as number, m as safeParse, o as isoDate, p as record, u as object, y as withDefault } from "./schema-DJSF4K05.js";
2
- import { a as isoDate$1 } from "./text-BF1LHMiV.js";
1
+ import { d as optional, h as string, i as enumeration, l as number, m as safeParse, o as isoDate, p as record, u as object, y as withDefault } from "./schema-DfC-Ww1w.js";
2
+ import { o as isoDate$1 } from "./text-CISDPU49.js";
3
3
  import { mkdir, readFile, writeFile } from "node:fs/promises";
4
4
  import path from "node:path";
5
5
  /** Default filename, used by the CLI when no path is given. */
@@ -35,7 +35,12 @@ const reviewSchema = object({
35
35
  criteria: withDefault(record(entrySchema), () => ({}))
36
36
  });
37
37
  var ReviewError = class extends Error {
38
+ next;
38
39
  name = "ReviewError";
40
+ constructor(message, next) {
41
+ super(message);
42
+ this.next = next;
43
+ }
39
44
  };
40
45
  /**
41
46
  * What the record says about one criterion, and whether it counts.
@@ -135,7 +140,10 @@ async function readReview(file, cwd = process.cwd()) {
135
140
  try {
136
141
  raw = await readFile(target, "utf8");
137
142
  } catch {
138
- throw new ReviewError(`Could not read the review record at ${file}. Create one with: eaa-kit checklist`);
143
+ throw new ReviewError(`Could not read the review record at ${file}`, {
144
+ command: `eaa-kit checklist --record ${file}`,
145
+ why: "write the record and the worksheet that goes with it"
146
+ });
139
147
  }
140
148
  let value;
141
149
  try {
@@ -157,5 +165,4 @@ async function writeReview(file, record, cwd = process.cwd()) {
157
165
  await writeFile(target, serialiseReview(record), "utf8");
158
166
  return target;
159
167
  }
160
- //#endregion
161
168
  export { blankReview as a, readReview as c, writeReview as d, answeredCount as i, reviewSentence as l, REVIEW_RESULTS as n, compareCriteria as o, ReviewError as r, criterionReview as s, DEFAULT_REVIEW_FILE as t, serialiseReview as u };
@@ -0,0 +1 @@
1
+ export { r as ReviewError, i as answeredCount, a as blankReview, c as readReview, d as writeReview } from "./review-BGjTBFvd.js";
@@ -1,9 +1,9 @@
1
- import { i as toPosix, n as isDirectory } from "./fs-BmPtmFke.js";
2
- import { i as detectFramework } from "./frameworks-B4ClIJgE.js";
3
- import { i as readPackageJson } from "./project-CzOnkLH6.js";
1
+ import { i as toPosix, n as isDirectory } from "./fs-tPD5r0wY.js";
2
+ import { i as detectFramework } from "./frameworks-BboC8eNk.js";
3
+ import { o as readPackageJson } from "./project-B21NT_aX.js";
4
4
  import path from "node:path";
5
5
  import { glob } from "tinyglobby";
6
- //#region src/audit/routes.ts
6
+ // src/audit/routes.ts
7
7
  /**
8
8
  * A path segment that serves more than one page, or none.
9
9
  *
@@ -261,5 +261,4 @@ function sourceFor(map, pagePath) {
261
261
  if (map === void 0) return void 0;
262
262
  return map.sources.get(pagePath) ?? map.sources.get(pagePath.replace(/^\//, ""));
263
263
  }
264
- //#endregion
265
264
  export { buildRouteMap, sourceFor };
@@ -1,4 +1,4 @@
1
- //#region src/integration/run.ts
1
+ // src/integration/run.ts
2
2
  /**
3
3
  * Where an integration writes when its host offers no logger of its own.
4
4
  *
@@ -39,7 +39,7 @@ async function auditBuild(directory, options, logger) {
39
39
  logger.info("skipped (enabled: false)");
40
40
  return;
41
41
  }
42
- const { runAuditCommand } = await import("./audit-Bwm1xBdJ.js");
42
+ const { runAuditCommand } = await import("./audit-rUhqnm3o.js");
43
43
  const { exitCode } = await runAuditCommand(directory, auditOptions);
44
44
  if (exitCode === 0) {
45
45
  logger.info("no violations at or above the threshold");
@@ -53,5 +53,4 @@ async function auditBuild(directory, options, logger) {
53
53
  logger.error(message);
54
54
  throw new BuildAuditError(`eaa-kit: ${message}`);
55
55
  }
56
- //#endregion
57
56
  export { auditBuild as n, stderrLogger as r, BuildAuditError as t };
@@ -1,9 +1,6 @@
1
- import { t as ImpactLevel } from "./impact-EEB9ZXmC.js";
2
- //#region src/cli/audit.d.ts
3
- declare const OUTPUT_FORMATS: readonly ['console', 'json', 'sarif', 'html'];
1
+ import { t as ImpactLevel } from "./impact-CZjUloYC.js";
2
+ declare const OUTPUT_FORMATS: readonly ['console', 'json', 'sarif', 'html', 'markdown'];
4
3
  type OutputFormat = (typeof OUTPUT_FORMATS)[number];
5
- //#endregion
6
- //#region src/integration/run.d.ts
7
4
  /**
8
5
  * What a build-time integration does once the build has written its files.
9
6
  *
@@ -66,5 +63,4 @@ interface IntegrationOptions {
66
63
  declare class BuildAuditError extends Error {
67
64
  readonly name = "BuildAuditError";
68
65
  }
69
- //#endregion
70
66
  export { IntegrationOptions as n, BuildAuditError as t };
@@ -1,11 +1,11 @@
1
- import { s as isImpactLevel } from "./impact-luGCnN8F.js";
2
- import { s as standardsReference } from "./text-BF1LHMiV.js";
3
- import { t as TOOL_VERSION } from "./version-B3v4rNoG.js";
4
- import { t as elementFingerprint } from "./fingerprint-BjYV_0F7.js";
5
- import { m as uniqueRuleOutcomes, s as findingElements, u as runEngine } from "./result-B7_zVxAX.js";
6
- import { t as buildCoverage } from "./coverage-cb5kPp48.js";
1
+ import { c as standardsReference } from "./text-CISDPU49.js";
2
+ import { t as TOOL_VERSION } from "./version-C8aJm8YJ.js";
3
+ import { t as buildCoverage } from "./coverage-C1Z6t9Ct.js";
4
+ import { t as elementFingerprint } from "./fingerprint-CcoQ1WxQ.js";
5
+ import { s as isImpactLevel } from "./impact-BGlJ6j0Y.js";
6
+ import { m as uniqueRuleOutcomes, s as findingElements, u as runEngine } from "./result-g8dGsrcv.js";
7
7
  import path from "node:path";
8
- //#region src/audit/report/sarif.ts
8
+ // src/audit/report/sarif.ts
9
9
  const SARIF_VERSION = "2.1.0";
10
10
  const SARIF_SCHEMA = "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json";
11
11
  /**
@@ -158,7 +158,8 @@ function summaryProperties(audits, completeness, review) {
158
158
  pagesReused: completeness.reused,
159
159
  pagesErrored: completeness.errored,
160
160
  pagesUnreachable: completeness.unreachable.length,
161
- truncated: completeness.truncated
161
+ truncated: completeness.truncated,
162
+ ...completeness.entryRedirect === void 0 ? {} : { entryRedirect: completeness.entryRedirect }
162
163
  } : {}
163
164
  };
164
165
  }
@@ -186,5 +187,4 @@ function artifactUri(directory, relativePath, cwd) {
186
187
  if (!relative || relative.startsWith("..") || path.isAbsolute(relative)) return relativePath;
187
188
  return relative.split(path.sep).join("/");
188
189
  }
189
- //#endregion
190
190
  export { buildSarifReport, serialiseSarifReport };
@@ -1,4 +1,4 @@
1
- //#region src/schema.ts
1
+ // src/schema.ts
2
2
  function safeParse(schema, value) {
3
3
  const issues = [];
4
4
  const data = schema.read(value, [], issues);
@@ -205,5 +205,4 @@ function email() {
205
205
  return value;
206
206
  } };
207
207
  }
208
- //#endregion
209
208
  export { union as _, integer as a, nullable as c, optional as d, pipe as f, transform as g, string as h, enumeration as i, number as l, safeParse as m, boolean as n, isoDate as o, record as p, email as r, isoDateTime as s, array as t, object as u, url as v, withDefault as y };
@@ -0,0 +1,2 @@
1
+ import "./hosts-B48qR6Vt.js";
2
+ export { s as findGitRoot } from "./setup-Cf82ONw0.js";