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,8 +1,8 @@
1
- import { c as nullable, d as optional, h as string, i as enumeration, l as number, m as safeParse, t as array, u as object, y as withDefault } from "./schema-DJSF4K05.js";
2
- import { a as isoDate } from "./text-BF1LHMiV.js";
1
+ import { c as nullable, d as optional, h as string, i as enumeration, l as number, m as safeParse, t as array, u as object, y as withDefault } from "./schema-DfC-Ww1w.js";
2
+ import { o as isoDate } from "./text-CISDPU49.js";
3
3
  import { mkdir, readFile, readdir, rm, writeFile } from "node:fs/promises";
4
4
  import path from "node:path";
5
- import { createHash } from "node:crypto";
5
+ import { createHash, scryptSync } from "node:crypto";
6
6
  const MANIFEST_FILE = "manifest.json";
7
7
  const outcomeSchema = object({
8
8
  ruleId: string(),
@@ -86,10 +86,30 @@ function inputsKey(inputs) {
86
86
  `viewport=${inputs.viewport ? `${inputs.viewport.width}x${inputs.viewport.height}` : ""}`,
87
87
  `baseUrl=${inputs.baseUrl ?? ""}`,
88
88
  `timeout=${inputs.timeoutMs ?? ""}`,
89
- `headers=${createHash("sha256").update(headers).digest("hex")}`
89
+ `headers=${headersDigest(headers)}`
90
90
  ].join("\n")).digest("hex");
91
91
  }
92
92
  /**
93
+ * The credentials, as something that changes when they do and that nobody
94
+ * can work backwards from.
95
+ *
96
+ * A fast hash is not that. The cache directory is meant to be kept between CI
97
+ * runs, and with everything else in the key guessable, a SHA-256 of
98
+ * `authorization=Basic …` lets whoever can read the cache try billions of
99
+ * passwords a second until one matches. scrypt makes each guess cost what one
100
+ * run pays once, tens of milliseconds. No headers is the ordinary case and
101
+ * keeps the old digest, so existing caches stay valid.
102
+ */
103
+ function headersDigest(headers) {
104
+ if (headers === "") return createHash("sha256").update("").digest("hex");
105
+ return scryptSync(headers, "eaa-kit cache: request headers", 32, {
106
+ N: 2 ** 15,
107
+ r: 8,
108
+ p: 1,
109
+ maxmem: 67108864
110
+ }).toString("hex");
111
+ }
112
+ /**
93
113
  * Open the cache for a run, discarding it if anything about the run changed.
94
114
  *
95
115
  * Everything is read up front and held in memory: an audit asks about every
@@ -215,5 +235,4 @@ function fromEntry(entry, page, context) {
215
235
  reused: { on: entry.cachedOn }
216
236
  };
217
237
  }
218
- //#endregion
219
238
  export { fromEntry, openCache };
@@ -1,21 +1,21 @@
1
- import { n as count } from "./text-BF1LHMiV.js";
2
- import { a as emitDocument, o as fail, s as note } from "./command-3r4fht5f.js";
3
- import "./review-CdMK2GpQ.js";
1
+ import "./review-BGjTBFvd.js";
2
+ import { n as count } from "./text-CISDPU49.js";
3
+ import { a as emitDocument, l as note, s as failWith } from "./command-C8ZFvcc1.js";
4
4
  import { access } from "node:fs/promises";
5
5
  import path from "node:path";
6
- //#region src/cli/checklist.ts
6
+ // src/cli/checklist.ts
7
7
  async function runChecklistCommand(options = {}) {
8
8
  const cwd = options.cwd ?? process.cwd();
9
9
  const recordPath = options.record ?? "eaa-review.json";
10
- const { WCAG22_AA_CRITERIA } = await import("./coverage-n1X9CkiG.js");
11
- const { answeredCount, blankReview, readReview, ReviewError, writeReview } = await import("./review-DIbOTmOM.js");
10
+ const { WCAG22_AA_CRITERIA } = await import("./coverage-B9_6yv_8.js");
11
+ const { answeredCount, blankReview, readReview, ReviewError, writeReview } = await import("./review-iheEjp7_.js");
12
12
  let existing;
13
13
  try {
14
14
  existing = await readReview(recordPath, cwd);
15
15
  } catch (cause) {
16
16
  if (!(cause instanceof ReviewError)) throw cause;
17
17
  if (await exists(path.resolve(cwd, recordPath))) {
18
- fail(cause.message);
18
+ failWith(cause);
19
19
  return { exitCode: 2 };
20
20
  }
21
21
  }
@@ -23,7 +23,7 @@ async function runChecklistCommand(options = {}) {
23
23
  if (options.reviewedBy !== void 0) record.reviewedBy = options.reviewedBy;
24
24
  await writeReview(recordPath, record, cwd);
25
25
  note(existing === void 0 ? `Review record written to ${recordPath}` : `Review record updated at ${recordPath}: ${count(answeredCount(record), "criterion")} already answered`);
26
- const { buildWorksheet } = await import("./worksheet-BIxMtbUd.js");
26
+ const { buildWorksheet } = await import("./worksheet-CcBo9G7s.js");
27
27
  await emitDocument(buildWorksheet({
28
28
  recordPath,
29
29
  review: record
@@ -40,5 +40,4 @@ async function exists(target) {
40
40
  return false;
41
41
  }
42
42
  }
43
- //#endregion
44
43
  export { runChecklistCommand };
package/dist/cli/index.js CHANGED
@@ -1,142 +1,30 @@
1
1
  #!/usr/bin/env node
2
- import { c as meetsThreshold, n as IMPACT_LEVELS, o as impactRank, s as isImpactLevel, t as DEFAULT_FAIL_ON } from "../impact-luGCnN8F.js";
3
- import { c as nullable, d as optional, h as string, l as number, m as safeParse, n as boolean, p as record, t as array, u as object, y as withDefault } from "../schema-DJSF4K05.js";
4
- import { c as ConfigError, i as loadConfig, s as COUNTRIES, u as STATEMENT_LOCALES } from "../load-BaWMa-G_.js";
5
- import { c as StatementError, i as readAuditReport, o as checkStatementEvidence, s as refuses, t as renderStatement } from "../render-C1sUZZI_.js";
6
- import { n as count, t as collapse } from "../text-BF1LHMiV.js";
7
- import { t as TOOL_VERSION } from "../version-B3v4rNoG.js";
8
- import { t as elementFingerprint } from "../fingerprint-BjYV_0F7.js";
9
- import { a as pruneBaseline, c as writeBaseline, i as buildBaseline, n as DEFAULT_BASELINE_FILE, o as readBaseline, r as applyBaseline, t as BaselineError } from "../baseline-BpE7DbDq.js";
10
- import { a as emitDocument, c as runEngine, d as parseHeader, i as baselineInvocation, l as warn, n as auditDefaults, o as fail, r as auditInvocation, s as note, t as advise, u as basicAuth } from "../command-3r4fht5f.js";
11
- import { t as DEFAULT_REVIEW_FILE } from "../review-CdMK2GpQ.js";
12
- import { n as runAuditCommand, r as resolvePages, t as OUTPUT_FORMATS } from "../audit-DRjAY2iY.js";
2
+ import { n as DEFAULT_BASELINE_FILE } from "../baseline-CKElWbx4.js";
3
+ import { a as emitDocument, c as nextStep, d as warn, f as basicAuth, i as baselineInvocation, l as note, n as auditDefaults, o as fail, p as parseHeader, r as auditInvocation, s as failWith, t as advise } from "../command-C8ZFvcc1.js";
4
+ import { c as meetsThreshold, n as IMPACT_LEVELS, o as impactRank, s as isImpactLevel, t as DEFAULT_FAIL_ON } from "../impact-BGlJ6j0Y.js";
5
+ import { t as DEFAULT_REVIEW_FILE } from "../review-BGjTBFvd.js";
6
+ import { i as ConfigError, o as REDIRECT_MODES, r as COUNTRIES, s as STATEMENT_LOCALES } from "../define-BdTPIfqE.js";
7
+ import { a as isCalendarDate, n as count, t as collapse } from "../text-CISDPU49.js";
8
+ import { t as TOOL_VERSION } from "../version-C8aJm8YJ.js";
9
+ import { n as runAuditCommand, t as OUTPUT_FORMATS } from "../audit-DbqNIrt6.js";
10
+ import { t as runBaselineCommand } from "../baseline-DvdsFTQy.js";
11
+ import { c as nullable, d as optional, h as string, l as number, m as safeParse, n as boolean, p as record, t as array, u as object, y as withDefault } from "../schema-DfC-Ww1w.js";
12
+ import { t as elementFingerprint } from "../fingerprint-CcoQ1WxQ.js";
13
+ import { t as CI_HOSTS } from "../hosts-B48qR6Vt.js";
14
+ import { i as loadConfig } from "../load-C3eFEdoH.js";
15
+ import { c as StatementError, i as readAuditReport, o as checkStatementEvidence, s as refuses, t as renderStatement } from "../render-ky8cm4QF.js";
13
16
  import { enableCompileCache } from "node:module";
14
17
  import { readFile } from "node:fs/promises";
15
18
  import path from "node:path";
16
19
  import { Command, InvalidArgumentError } from "commander";
17
20
  import pc from "picocolors";
18
- //#region src/cli/baseline.ts
19
- /**
20
- * `eaa-kit baseline [dir]`.
21
- *
22
- * Runs the same audit the audit command runs and writes down every violation it
23
- * found, so that a later run can fail on what is new instead of on everything.
24
- *
25
- * Deliberately a subcommand rather than a flag on `audit`. Accepting a set of
26
- * violations is a decision somebody makes once and commits to a file others
27
- * will read; folding it into the command that checks them would make it far too
28
- * easy to type by reflex when a build goes red, which is precisely the moment
29
- * it should take a deliberate act.
30
- */
31
- async function runBaselineCommand(dir, options = {}) {
32
- const cwd = options.cwd ?? process.cwd();
33
- const resolved = await resolvePages(path.resolve(cwd, dir), {
34
- ...options,
35
- label: dir
36
- });
37
- if (!resolved) return {
38
- entries: 0,
39
- exitCode: 2
40
- };
41
- const { pages, origin, label, directory } = resolved;
42
- note(`Auditing ${count(pages.length, "page")} in ${label}…`);
43
- const baseUrl = options.baseUrl ?? origin;
44
- const audits = await runEngine(pages, {
45
- cwd,
46
- ...options.headers === void 0 ? {} : { headers: options.headers },
47
- ...baseUrl === void 0 ? {} : { baseUrl },
48
- ...options.timeoutMs === void 0 ? {} : { timeoutMs: options.timeoutMs },
49
- ...options.browser ? { browser: true } : {},
50
- ...options.concurrency === void 0 ? {} : { concurrency: options.concurrency },
51
- ...directory === void 0 ? {} : { directory }
52
- });
53
- if (!audits) return {
54
- entries: 0,
55
- exitCode: 2
56
- };
57
- const unaudited = audits.filter((audit) => audit.error);
58
- if (unaudited.length > 0) {
59
- fail(`${unaudited.length} of ${audits.length} pages could not be audited, so no baseline was written`);
60
- return {
61
- entries: 0,
62
- exitCode: 2
63
- };
64
- }
65
- const target = options.output ?? "eaa-baseline.json";
66
- if (options.prune) return await prune(audits, target, cwd);
67
- const baseline = buildBaseline(audits, {
68
- ...options.note ? { note: options.note } : {},
69
- ...options.expiresOn ? { expiresOn: options.expiresOn } : {}
70
- });
71
- try {
72
- await writeBaseline(target, baseline, cwd);
73
- } catch (cause) {
74
- if (cause instanceof BaselineError) {
75
- fail(cause.message);
76
- return {
77
- entries: 0,
78
- exitCode: 2
79
- };
80
- }
81
- throw cause;
82
- }
83
- const entries = baseline.entries.length;
84
- note(`Wrote ${count(entries, "entry")} to ${target}`);
85
- if (entries > 0) advise("These are barriers, not exceptions. Commit the file, then work the list down.");
86
- return {
87
- entries,
88
- exitCode: 0
89
- };
90
- }
91
- /**
92
- * `--prune`: take out what this run shows is gone, and add nothing.
93
- *
94
- * The audit already tells anybody running it that entries no longer match and
95
- * can be removed. Acting on that advice meant editing JSON by hand, entry by
96
- * entry, against a file whose whole purpose is that nobody has to remember what
97
- * is in it — so most people did not, and a baseline accumulated barriers that
98
- * were fixed years ago while looking exactly like one that had not been read.
99
- *
100
- * Recording a new baseline is not the same operation and is not a substitute:
101
- * it accepts whatever the site fails today, which on a bad day quietly adopts a
102
- * barrier nobody agreed to.
103
- */
104
- async function prune(audits, target, cwd) {
105
- let existing;
106
- try {
107
- existing = await readBaseline(target, cwd);
108
- } catch (cause) {
109
- if (cause instanceof BaselineError) {
110
- fail(cause.message);
111
- return {
112
- entries: 0,
113
- exitCode: 2
114
- };
115
- }
116
- throw cause;
117
- }
118
- const outcome = applyBaseline(audits, existing);
119
- const { baseline, removed } = pruneBaseline(existing, outcome.stale);
120
- if (removed.length === 0) {
121
- note(`Nothing to remove from ${target}: every entry still matches something on this run`);
122
- return {
123
- entries: existing.entries.length,
124
- removed: 0,
125
- exitCode: 0
126
- };
127
- }
128
- await writeBaseline(target, baseline, cwd);
129
- note(`Removed ${count(removed.length, "entry")} from ${target}; ${count(baseline.entries.length, "entry")} left`);
130
- for (const entry of removed) note(` ${entry.page} ${entry.ruleId}`);
131
- if (outcome.expired.length > 0) advise(`${count(outcome.expired.length, "entry")} have expired and suppress nothing; --prune leaves them for you to decide about`);
132
- return {
133
- entries: baseline.entries.length,
134
- removed: removed.length,
135
- exitCode: 0
136
- };
137
- }
138
21
  var DiffError = class extends Error {
22
+ next;
139
23
  name = "DiffError";
24
+ constructor(message, next) {
25
+ super(message);
26
+ this.next = next;
27
+ }
140
28
  };
141
29
  /**
142
30
  * Only the fields a comparison reads. `completeness` is optional: a report
@@ -275,7 +163,10 @@ async function readReport(file, cwd = process.cwd()) {
275
163
  try {
276
164
  raw = await readFile(target, "utf8");
277
165
  } catch {
278
- throw new DiffError(`Report not found: ${file}`);
166
+ throw new DiffError(`Report not found: ${file}`, {
167
+ command: `eaa-kit audit --format json --output ${file}`,
168
+ why: "write it from the build as it is now"
169
+ });
279
170
  }
280
171
  let parsed;
281
172
  try {
@@ -288,11 +179,13 @@ async function readReport(file, cwd = process.cwd()) {
288
179
  const first = result.error.issues[0];
289
180
  throw new DiffError(`${file} is not an eaa-kit JSON report${first === void 0 || first.path.length === 0 ? "" : ` at ${first.path.join(".")}`}: ${first?.message ?? "unrecognised shape"}`);
290
181
  }
291
- if (result.data.schemaVersion !== 2) throw new DiffError(`${file} is schemaVersion ${result.data.schemaVersion}; this version of eaa-kit reads 2.\n Write both reports with the same version of eaa-kit before comparing them.`);
182
+ if (result.data.schemaVersion !== 2) throw new DiffError(`${file} is schemaVersion ${result.data.schemaVersion}; this version of eaa-kit reads 2.\n Write both reports with the same version of eaa-kit before comparing them.`, {
183
+ command: `eaa-kit audit --format json --output ${file}`,
184
+ why: "write it again with this version"
185
+ });
292
186
  return result.data;
293
187
  }
294
- //#endregion
295
- //#region src/cli/diff.ts
188
+ // src/cli/diff.ts
296
189
  /**
297
190
  * `eaa-kit diff <before.json> <after.json>`.
298
191
  *
@@ -317,7 +210,7 @@ async function runDiffCommand(base, head, options = {}) {
317
210
  diff = diffReports(await readReport(base, cwd), await readReport(head, cwd));
318
211
  } catch (cause) {
319
212
  if (cause instanceof DiffError) {
320
- fail(cause.message);
213
+ failWith(cause);
321
214
  return { exitCode: 2 };
322
215
  }
323
216
  throw cause;
@@ -399,8 +292,7 @@ function entryLine(entry, c) {
399
292
  const snippet = entry.html === "" ? "" : `\n ${c.dim(collapse(entry.html, MAX_SNIPPET))}`;
400
293
  return ` ${c.bold(entry.ruleId)} ${c.dim(`(${impact})`)} — ${entry.help}\n ${where}${snippet}`;
401
294
  }
402
- //#endregion
403
- //#region src/cli/statement.ts
295
+ // src/cli/statement.ts
404
296
  /** Markdown for a content directory, HTML for dropping straight onto a site. */
405
297
  const STATEMENT_FORMATS = ["markdown", "html"];
406
298
  /**
@@ -420,7 +312,7 @@ async function runStatementCommand(options = {}) {
420
312
  if (options.audit) audit = await readAuditReport(options.audit, options.cwd ?? process.cwd());
421
313
  let review;
422
314
  if (options.review) {
423
- const { readReview } = await import("../review-DIbOTmOM.js");
315
+ const { readReview } = await import("../review-iheEjp7_.js");
424
316
  review = await readReview(options.review, options.cwd ?? process.cwd());
425
317
  }
426
318
  const problems = checkStatementEvidence({
@@ -439,7 +331,8 @@ async function runStatementCommand(options = {}) {
439
331
  ...options.locale ? { locale: options.locale } : {},
440
332
  ...options.country ? { country: options.country } : {},
441
333
  ...audit ? { audit } : {},
442
- ...review ? { review } : {}
334
+ ...review ? { review } : {},
335
+ ...options.date ? { today: options.date } : {}
443
336
  });
444
337
  note(`Statement for ${config.site.url} from ${path.basename(configPath)} (${statement.template}, ${format})`);
445
338
  if (audit) {
@@ -457,10 +350,11 @@ async function runStatementCommand(options = {}) {
457
350
  exitCode: 0
458
351
  };
459
352
  } catch (cause) {
460
- const { ReviewError } = await import("../review-DIbOTmOM.js");
353
+ const { ReviewError } = await import("../review-iheEjp7_.js");
461
354
  if (cause instanceof ConfigError || cause instanceof StatementError || cause instanceof ReviewError) {
462
355
  fail(cause.message);
463
356
  if (cause instanceof ConfigError) for (const issue of cause.issues) note(` ${issue}`);
357
+ if (cause.next !== void 0) nextStep(cause.next);
464
358
  return {
465
359
  document: "",
466
360
  format,
@@ -478,8 +372,7 @@ async function runStatementCommand(options = {}) {
478
372
  function formatFor(output) {
479
373
  return output && /\.html?$/i.test(output) ? "html" : "markdown";
480
374
  }
481
- //#endregion
482
- //#region src/cli/index.ts
375
+ // src/cli/index.ts
483
376
  /**
484
377
  * Reuse the compiled form of this tool and its dependencies between runs.
485
378
  *
@@ -526,12 +419,13 @@ function wholeNumber(min) {
526
419
  };
527
420
  }
528
421
  function parseDate(value) {
529
- if (!/^\d{4}-\d{2}-\d{2}$/.test(value) || Number.isNaN(Date.parse(`${value}T00:00:00Z`))) throw new InvalidArgumentError("expected an ISO date, e.g. 2026-12-31");
422
+ if (!isCalendarDate(value)) throw new InvalidArgumentError("expected an ISO date, e.g. 2026-12-31");
530
423
  return value;
531
424
  }
532
425
  const parseLocale = oneOf(STATEMENT_LOCALES);
533
426
  const parseCountry = oneOf(COUNTRIES, (value) => value.toUpperCase());
534
427
  const parseStatementFormat = oneOf(STATEMENT_FORMATS);
428
+ const parseCiHost = oneOf(CI_HOSTS, (value) => value.toLowerCase());
535
429
  const parseImpact = oneOf(IMPACT_LEVELS);
536
430
  const parseFormat = oneOf(OUTPUT_FORMATS);
537
431
  const parsePositive = wholeNumber(1);
@@ -563,34 +457,79 @@ function parseBasicAuth(value) {
563
457
  }
564
458
  const program = new Command();
565
459
  program.exitOverride();
566
- program.name("eaa-kit").description("WCAG 2.2 AA auditor and EU accessibility statement generator for static sites.\nNot legal advice.").version(TOOL_VERSION, "-v, --version");
567
- program.command("audit").description("Audit built HTML against WCAG 2.2 AA").argument("[dir]", "directory holding the built site (default: found automatically)").option("--include <globs...>", "glob patterns to audit, relative to dir").option("--exclude <globs...>", "glob patterns to skip").option("--base-url <url>", "audit pages under their real site URL").option("--url <url>", "audit a running site instead of a build directory").option("--no-build", "never run the project build or start its server").option("--per-page", "also list every page and its result").option("--manual", "what to check by hand for the rules this engine cannot evaluate").option("--coverage", "list every WCAG 2.2 A/AA criterion and what this run reached on it").option("--allow-remote", "allow --url to crawl a host that is not localhost").option("--ignore-robots", "crawl paths robots.txt disallows").option("--sitemap <path>", "where the site lists its pages, if not /sitemap.xml").option("--max-pages <n>", "stop the crawl after this many pages", parsePositive).option("--max-depth <n>", "how far from the entry URL to follow links", parseDepth).option("--header <header>", "send this header with every request, e.g. \"Authorization: Bearer …\". Repeatable", collectHeader).option("--basic-auth <user:password>", "send an Authorization header for basic auth", parseBasicAuth).option("--fail-on <impact>", `exit 1 on violations at or above this impact (${IMPACT_LEVELS.join("|")}; default: ${DEFAULT_FAIL_ON})`, parseImpact).option("--format <format>", `output format (${OUTPUT_FORMATS.join("|")}; default: console)`, parseFormat).option("--output <path>", "write the report to a file instead of stdout").option("--browser", "audit in real Chromium, covering the rules jsdom cannot evaluate").option("--fast", "skip the rules the browserless engine cannot decide anyway, losing their element lists").option("--concurrency <n>", "pages to audit at once, or 1 for none (default: from the page and core count)", parseConcurrency).option("--baseline <path>", "accept the violations recorded in this file; fail only on new ones").option("--no-cache", "audit every page, reusing no result from an earlier run").option("--review <path>", "what a person checked, from eaa-kit checklist").option("--review-max-age <days>", "stop counting review entries older than this", parseDepth).option("--config <path>", "take defaults from this config file, otherwise it is searched for").action(async (dir, flags) => {
460
+ program.name("eaa-kit").description("WCAG 2.2 AA auditor and EU accessibility statement generator for static sites.\nRun it with no command to find your site, audit it and write a report.\nNot legal advice.").version(TOOL_VERSION, "-v, --version");
461
+ program.command("audit").description("Audit built HTML against WCAG 2.2 AA").argument("[dir]", "directory holding the built site (default: found automatically)").option("--include <globs...>", "glob patterns to audit, relative to dir").option("--exclude <globs...>", "glob patterns to skip").option("--base-url <url>", "audit pages under their real site URL").option("--url <url>", "audit a running site instead of a build directory").option("--no-build", "never run the project build or start its server").option("--per-page", "also list every page and its result").option("--manual", "what to check by hand for the rules this engine cannot evaluate").option("--coverage", "list every WCAG 2.2 A/AA criterion and what this run reached on it").option("--allow-remote", "allow --url to crawl a host that is not localhost").option("--ignore-robots", "crawl paths robots.txt disallows").option("--sitemap <path>", "where the site lists its pages, if not /sitemap.xml").option("--redirects <mode>", `when the URL redirects to another site: ${REDIRECT_MODES.join("|")} (default: ask)`, oneOf(REDIRECT_MODES)).option("--max-pages <n>", "stop the crawl after this many pages", parsePositive).option("--max-depth <n>", "how far from the entry URL to follow links", parseDepth).option("--header <header>", "send this header with every request, e.g. \"Authorization: Bearer …\". Repeatable", collectHeader).option("--basic-auth <user:password>", "send an Authorization header for basic auth", parseBasicAuth).option("--fail-on <impact>", `exit 1 on violations at or above this impact (${IMPACT_LEVELS.join("|")}; default: ${DEFAULT_FAIL_ON})`, parseImpact).option("--format <format>", `output format (${OUTPUT_FORMATS.join("|")}; default: console)`, parseFormat).option("--output <path>", "write the report to a file instead of stdout").option("--summary <path>", "also write a Markdown summary of what this run found, e.g. to $GITHUB_STEP_SUMMARY").option("--browser", "audit in real Chromium, covering the rules jsdom cannot evaluate").option("--fast", "skip the rules the browserless engine cannot decide anyway, losing their element lists").option("--concurrency <n>", "pages to audit at once, or 1 for none (default: from the page and core count)", parseConcurrency).option("--baseline <path>", "accept the violations recorded in this file; fail only on new ones").option("--no-cache", "audit every page, reusing no result from an earlier run").option("--review <path>", "what a person checked, from eaa-kit checklist").option("--review-max-age <days>", "stop counting review entries older than this", parseDepth).option("--config <path>", "take defaults from this config file, otherwise it is searched for").option("--watch", "audit again whenever the build directory changes, until Ctrl-C").action(async (dir, { watch, ...flags }) => {
568
462
  const defaults = await auditDefaults({ ...flags.config ? { config: flags.config } : {} });
569
463
  const invocation = auditInvocation(dir, defaults, flags);
570
- const { exitCode } = await runAuditCommand(invocation.dir, invocation.options);
571
- process.exitCode = exitCode;
464
+ if (!watch) {
465
+ const { exitCode } = await runAuditCommand(invocation.dir, invocation.options);
466
+ process.exitCode = exitCode;
467
+ return;
468
+ }
469
+ if (invocation.options.url !== void 0) {
470
+ fail("--watch watches a build directory, and --url audits a running site.", {
471
+ command: "eaa-kit audit ./dist --watch",
472
+ why: "watch the build instead, with your build directory in place of ./dist"
473
+ });
474
+ process.exitCode = 2;
475
+ return;
476
+ }
477
+ const { watchAudit } = await import("../watch-CefxwMsZ.js");
478
+ process.exitCode = await watchAudit({
479
+ run: (directory) => runAuditCommand(directory, invocation.options),
480
+ directory: invocation.dir,
481
+ cwd: process.cwd(),
482
+ ignore: [".eaa-kit", ...invocation.options.output ? [invocation.options.output] : []]
483
+ });
572
484
  });
573
- program.command("baseline").description("Record the violations a build already has, so later runs fail only on new ones").argument("[dir]", "directory holding the built site (default: ./dist)").option("--include <globs...>", "glob patterns to audit, relative to dir").option("--exclude <globs...>", "glob patterns to skip").option("--base-url <url>", "audit pages under their real site URL").option("--url <url>", "record a baseline from a running site instead of a directory").option("--allow-remote", "allow --url to crawl a host that is not localhost").option("--ignore-robots", "crawl paths robots.txt disallows").option("--sitemap <path>", "where the site lists its pages, if not /sitemap.xml").option("--max-pages <n>", "stop the crawl after this many pages", parsePositive).option("--max-depth <n>", "how far from the entry URL to follow links", parseDepth).option("--header <header>", "send this header with every request, e.g. \"Authorization: Bearer …\". Repeatable", collectHeader).option("--basic-auth <user:password>", "send an Authorization header for basic auth", parseBasicAuth).option("--output <path>", `where to write it (default: ${DEFAULT_BASELINE_FILE})`).option("--prune", "remove the entries this run shows are gone, instead of recording a new baseline").option("--note <text>", "recorded on every entry, for whoever reads the file").option("--expires-on <date>", "ISO date after which the entries stop suppressing", parseDate).option("--browser", "audit in real Chromium instead of jsdom").option("--concurrency <n>", "pages to audit at once, or 1 for none", parseConcurrency).option("--config <path>", "take defaults from this config file, otherwise it is searched for").action(async (dir, flags) => {
485
+ program.command("baseline").description("Record the violations a build already has, so later runs fail only on new ones").argument("[dir]", "directory holding the built site (default: ./dist)").option("--include <globs...>", "glob patterns to audit, relative to dir").option("--exclude <globs...>", "glob patterns to skip").option("--base-url <url>", "audit pages under their real site URL").option("--url <url>", "record a baseline from a running site instead of a directory").option("--allow-remote", "allow --url to crawl a host that is not localhost").option("--ignore-robots", "crawl paths robots.txt disallows").option("--sitemap <path>", "where the site lists its pages, if not /sitemap.xml").option("--redirects <mode>", `when the URL redirects to another site: ${REDIRECT_MODES.join("|")} (default: ask)`, oneOf(REDIRECT_MODES)).option("--max-pages <n>", "stop the crawl after this many pages", parsePositive).option("--max-depth <n>", "how far from the entry URL to follow links", parseDepth).option("--header <header>", "send this header with every request, e.g. \"Authorization: Bearer …\". Repeatable", collectHeader).option("--basic-auth <user:password>", "send an Authorization header for basic auth", parseBasicAuth).option("--output <path>", `where to write it (default: ${DEFAULT_BASELINE_FILE})`).option("--prune", "remove the entries this run shows are gone, instead of recording a new baseline").option("--note <text>", "recorded on every entry, for whoever reads the file").option("--expires-on <date>", "ISO date after which the entries stop suppressing", parseDate).option("--browser", "audit in real Chromium instead of jsdom").option("--concurrency <n>", "pages to audit at once, or 1 for none", parseConcurrency).option("--config <path>", "take defaults from this config file, otherwise it is searched for").action(async (dir, flags) => {
574
486
  const defaults = await auditDefaults({ ...flags.config ? { config: flags.config } : {} });
575
487
  const invocation = baselineInvocation(dir, defaults, flags);
576
488
  const { exitCode } = await runBaselineCommand(invocation.dir, invocation.options);
577
489
  process.exitCode = exitCode;
578
490
  });
579
491
  program.command("checklist").description("Write the manual review: the 34 WCAG criteria no automated rule can reach").option("--record <path>", `where the answers live (default: ${DEFAULT_REVIEW_FILE})`).option("--output <path>", "write the worksheet here instead of stdout").option("--reviewed-by <name>", "who is carrying out the review").action(async (flags) => {
580
- const { runChecklistCommand } = await import("../checklist-DDd9jewi.js");
492
+ const { runChecklistCommand } = await import("../checklist-CA0Ri71Z.js");
581
493
  const { exitCode } = await runChecklistCommand(flags);
582
494
  process.exitCode = exitCode;
583
495
  });
496
+ program.command("countries").description("List the countries a statement can be written for, and what each one names").option("--json", "print the list as JSON").option("--date <yyyy-mm-dd>", "list the authorities as of this day (default: today)", parseDate).action(async (flags) => {
497
+ const { formatCountries } = await import("../countries-CCqog6dy.js");
498
+ const { date, ...rest } = flags;
499
+ process.stdout.write(formatCountries({
500
+ ...rest,
501
+ ...date ? { today: date } : {}
502
+ }));
503
+ });
504
+ program.command("detect").description("Say what an audit here would do and why, without building or starting anything").argument("[dir]", "the project to look at (default: this directory)").option("--json", "print it as JSON, for tools and bug reports").action(async (dir, flags) => {
505
+ const { runDetectCommand } = await import("../detect-DnFHXpWh.js");
506
+ process.stdout.write(await runDetectCommand(dir, flags));
507
+ });
508
+ program.command("doctor").description("Check everything this needs to work here, and say how to fix what is missing").argument("[dir]", "the project to check (default: this directory)").action(async (dir) => {
509
+ const { formatDoctor, runDoctor } = await import("../doctor-q8IebwAb.js");
510
+ const { resolve } = await import("node:path");
511
+ const result = await runDoctor(resolve(dir ?? "."));
512
+ process.stdout.write(formatDoctor(result));
513
+ process.exitCode = result.exitCode;
514
+ });
584
515
  program.command("diff").description("Compare two JSON reports: what a change made worse, and what it fixed").argument("<before>", "JSON report from before the change").argument("<after>", "JSON report from after it").option("--format <format>", `output format (${DIFF_FORMATS.join("|")})`, oneOf(DIFF_FORMATS)).option("--output <path>", "write the diff here instead of stdout").option("--fail-on <impact>", `exit 1 on NEW violations at or above this impact (${IMPACT_LEVELS.join("|")})`, parseImpact, DEFAULT_FAIL_ON).action(async (before, after, flags) => {
585
516
  const { exitCode } = await runDiffCommand(before, after, flags);
586
517
  process.exitCode = exitCode;
587
518
  });
588
- program.command("init").description("Write an eaa.config.json to generate statements from").option("--output <path>", "write here instead of eaa.config.json").option("--force", "overwrite a config that is already there").option("-y, --yes", "take every default without asking").action(async (flags) => {
589
- const { runInitCommand } = await import("../init-DrFfzjvm.js");
590
- const { exitCode } = await runInitCommand(flags);
519
+ program.command("init").description("Write an eaa.config.json to generate statements from").option("--output <path>", "write here instead of eaa.config.json").option("--force", "overwrite a config that is already there").option("-y, --yes", "take every default without asking").option("--no-ci", "never offer a CI pipeline").option("--ci <host>", `CI to write a pipeline for (${CI_HOSTS.join("|")}; default: from the git remote)`, parseCiHost).option("--no-baseline", "never offer to record a baseline").action(async (flags) => {
520
+ const { ci: ciFlag, baseline, ...rest } = flags;
521
+ const ci = ciFlag !== false;
522
+ const ciHost = typeof ciFlag === "string" ? ciFlag : void 0;
523
+ const { runInitCommand } = await import("../init-3Ti3ao5Z.js");
524
+ const { exitCode } = await runInitCommand({
525
+ ...rest,
526
+ ...ci ? {} : { ci: false },
527
+ ...ciHost === void 0 ? {} : { ciHost },
528
+ ...baseline ? {} : { baseline: false }
529
+ });
591
530
  process.exitCode = exitCode;
592
531
  });
593
- program.command("statement").description("Generate an EU accessibility statement from eaa.config").option("--config <path>", "path to the config file, otherwise it is searched for").option("--lang <locale>", `statement language (${STATEMENT_LOCALES.join("|")})`, parseLocale).option("--country <code>", `override the country template (${COUNTRIES.join("|")})`, parseCountry).option("--audit <path>", "list the barriers from an eaa-kit audit --format json report").option("--review <path>", "say how many criteria a person checked, and check the conformance claim against them").option("--format <format>", `output format (${STATEMENT_FORMATS.join("|")}), otherwise from the --output extension`, parseStatementFormat).option("--output <path>", "write the statement to a file instead of stdout").action(async (flags) => {
532
+ program.command("statement").description("Generate an EU accessibility statement from eaa.config").option("--config <path>", "path to the config file, otherwise it is searched for").option("--lang <locale>", `statement language (${STATEMENT_LOCALES.join("|")})`, parseLocale).option("--country <code>", `override the country template (${COUNTRIES.join("|")})`, parseCountry).option("--audit <path>", "list the barriers from an eaa-kit audit --format json report").option("--review <path>", "say how many criteria a person checked, and check the conformance claim against them").option("--format <format>", `output format (${STATEMENT_FORMATS.join("|")}), otherwise from the --output extension`, parseStatementFormat).option("--output <path>", "write the statement to a file instead of stdout").option("--date <yyyy-mm-dd>", "generate as of this day, which decides a supervisor the law has scheduled to change (default: today)", parseDate).action(async (flags) => {
594
533
  const { lang, ...options } = flags;
595
534
  const { exitCode } = await runStatementCommand({
596
535
  ...options,
@@ -599,20 +538,38 @@ program.command("statement").description("Generate an EU accessibility statement
599
538
  process.exitCode = exitCode;
600
539
  });
601
540
  try {
602
- await program.parseAsync(process.argv);
541
+ if (process.argv.length <= 2) {
542
+ const { runFirstRun } = await import("../start-bdanSxZr.js");
543
+ process.exitCode = (await runFirstRun()).exitCode;
544
+ } else await program.parseAsync(process.argv);
603
545
  } catch (cause) {
604
546
  if (cause instanceof ConfigError) {
605
547
  fail(cause.message);
606
548
  for (const issue of cause.issues) note(` ${issue}`);
549
+ if (cause.next !== void 0) nextStep(cause.next);
607
550
  process.exitCode = 2;
608
551
  process.exit(2);
609
552
  }
610
553
  const error = cause;
611
- if (typeof error.exitCode === "number") process.exitCode = error.exitCode === 0 ? 0 : 2;
612
- else {
554
+ if (typeof error.exitCode === "number") {
555
+ process.exitCode = error.exitCode === 0 ? 0 : 2;
556
+ if (error.exitCode !== 0 && error.code !== "commander.unknownCommand") {
557
+ const typed = process.argv[2];
558
+ const known = program.commands.find((command) => command.name() === typed);
559
+ nextStep(error.message?.includes("'--country") === true ? {
560
+ command: "eaa-kit countries",
561
+ why: "the countries a statement can be written for"
562
+ } : known === void 0 ? {
563
+ command: "eaa-kit --help",
564
+ why: "the commands, and what each one does"
565
+ } : {
566
+ command: `eaa-kit ${known.name()} --help`,
567
+ why: "every flag it takes"
568
+ });
569
+ }
570
+ } else {
613
571
  process.stderr.write(`${cause instanceof Error ? cause.stack : String(cause)}\n`);
614
572
  process.exitCode = 2;
615
573
  }
616
574
  }
617
- //#endregion
618
575
  export {};
@@ -1,12 +1,21 @@
1
- import { i as toPosix, t as exists } from "./fs-BmPtmFke.js";
1
+ import { i as toPosix, t as exists } from "./fs-tPD5r0wY.js";
2
2
  import { readFile, stat } from "node:fs/promises";
3
3
  import path from "node:path";
4
4
  import { glob } from "tinyglobby";
5
- //#region src/audit/collect.ts
5
+ // src/audit/collect.ts
6
6
  /** Every HTML document a static build is expected to emit. */
7
7
  const DEFAULT_INCLUDE = ["**/*.html", "**/*.htm"];
8
8
  /** Vendored and tooling directories are never part of the shipped site. */
9
- const DEFAULT_EXCLUDE = ["**/node_modules/**", "**/.git/**"];
9
+ /**
10
+ * Never pages of the site. `storybook-static/` is Storybook's build: a
11
+ * catalogue of components out of context, whose findings would be reported
12
+ * against the site as though a visitor could reach them.
13
+ */
14
+ const DEFAULT_EXCLUDE = [
15
+ "**/node_modules/**",
16
+ "**/.git/**",
17
+ "**/storybook-static/**"
18
+ ];
10
19
  /** Number of files read in parallel; keeps large builds under the fd limit. */
11
20
  const READ_CONCURRENCY = 24;
12
21
  /** A UTF-8 byte-order mark is not markup, and jsdom treats it as text. */
@@ -113,8 +122,8 @@ async function readPage(root, relativePath, onUnreadable, maxBytes) {
113
122
  */
114
123
  async function emptyDirectoryHint(dir, cwd = process.cwd()) {
115
124
  const head = await exists(dir, cwd) ? `${dir} holds no HTML files.` : `${dir} does not exist.`;
116
- const { detectFramework } = await import("./frameworks-etFg_O8K.js");
117
- const { readPackageJson } = await import("./project-MFrXcw1M.js");
125
+ const { detectFramework } = await import("./frameworks-Y-n3NUuG.js");
126
+ const { readPackageJson } = await import("./project-Dht13sb1.js");
118
127
  const detected = await detectFramework(cwd, await readPackageJson(cwd));
119
128
  if (detected !== void 0) return frameworkAdvice(head, detected, cwd, dir);
120
129
  return await siblingAdvice(head, cwd, dir) ?? generic(head);
@@ -137,7 +146,7 @@ async function frameworkAdvice(head, detected, cwd, dir) {
137
146
  }
138
147
  /** Naming a build directory that is actually there beats listing the usual ones. */
139
148
  async function siblingAdvice(head, cwd, dir) {
140
- const { FALLBACK_OUTPUTS } = await import("./frameworks-etFg_O8K.js");
149
+ const { FALLBACK_OUTPUTS } = await import("./frameworks-Y-n3NUuG.js");
141
150
  const given = dir.replace(/^\.\//, "");
142
151
  const others = (await Promise.all(FALLBACK_OUTPUTS.map(async (name) => name !== given && await exists(name, cwd) ? name : void 0))).filter((name) => name !== void 0);
143
152
  if (others.length === 0) return void 0;
@@ -161,5 +170,4 @@ function article(name) {
161
170
  function megabytes(bytes) {
162
171
  return (bytes / 1048576).toFixed(1).replace(/\.0$/, "");
163
172
  }
164
- //#endregion
165
- export { stripBom as a, holdsHtml as i, collectPages as n, emptyDirectoryHint as r, BuildDirectoryError as t };
173
+ export { holdsHtml as a, emptyDirectoryHint as i, DEFAULT_EXCLUDE as n, stripBom as o, collectPages as r, BuildDirectoryError as t };