ultra11y 5.46.0 → 5.47.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.
@@ -10,7 +10,7 @@
10
10
  "name": "ultra11y",
11
11
  "source": "./",
12
12
  "description": "Automatic accessibility review before commit, push and pull request, plus detailed evidenced Markdown, HTML and per-page WCAG 2.2 AA / RGAA reports in Claude Code.",
13
- "version": "5.46.0",
13
+ "version": "5.47.0",
14
14
  "author": { "name": "maxgfr" },
15
15
  "homepage": "https://github.com/SocialGouv/ultra11y",
16
16
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): automatic review before commit, push and pull request, plus detailed evidenced Markdown, HTML and per-page conformance reports in interactive agent sessions.",
4
- "version": "5.46.0",
4
+ "version": "5.47.0",
5
5
  "author": { "name": "maxgfr" },
6
6
  "homepage": "https://github.com/SocialGouv/ultra11y",
7
7
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): automatic review before commit, push and pull request, plus detailed evidenced Markdown, HTML and per-page conformance reports in interactive agent sessions.",
4
- "version": "5.46.0",
4
+ "version": "5.47.0",
5
5
  "author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
6
6
  "homepage": "https://github.com/SocialGouv/ultra11y",
7
7
  "repository": "https://github.com/SocialGouv/ultra11y",
@@ -27,7 +27,7 @@ import { fileURLToPath } from "node:url";
27
27
  // Ownership marker: `ultra11y install --opencode` refuses to overwrite a plugin file that
28
28
  // does not carry it, so a user's own ultra11y.js is never clobbered.
29
29
  const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
30
- const ULTRA11Y_PLUGIN_VERSION = "5.46.0";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.47.0";
31
31
 
32
32
  const here = dirname(fileURLToPath(import.meta.url));
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.46.0",
3
+ "version": "5.47.0",
4
4
  "description": "Audit HTML/CSS/JSX against WCAG 2.2 AA and produce a dated compliance report, or author/review accessible markup (native-HTML-first). A skills.sh agent skill: an install-free static engine (bundled, no npm install) plus the agent's judgment, with check/verify gates against hallucinated non-conformities, and pluggable in-repo standards packs (RGAA France first; Section 508 & EN 301 549 next).",
5
5
  "homepage": "https://socialgouv.github.io/ultra11y/",
6
6
  "type": "module",
@@ -6,7 +6,7 @@ import { join as join52, relative as relative6, resolve as resolve17, sep as sep
6
6
  import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.46.0";
9
+ var VERSION = "5.47.0";
10
10
  var SCHEMA_VERSION = 2;
11
11
  var INAPPLICABLE_STATUS = "C";
12
12
 
@@ -60430,6 +60430,7 @@ var L5 = {
60430
60430
  autoRateNote: (c2, d) => `crit\xE8res valid\xE9s par le moteur seul \xF7 crit\xE8res d\xE9cid\xE9s sans l'agent (${c2} \xF7 ${d})`,
60431
60431
  warn: "Ce rapport couvre le sous-ensemble de crit\xE8res v\xE9rifiables automatiquement. Les crit\xE8res \xAB \xE0 \xE9valuer \xBB (rendu / jugement) sont adjug\xE9s par l'agent IA (`verify --manual`, de fa\xE7on gat\xE9e) ; le rendu passe par `scan` (voir la section 5).",
60432
60432
  derived: (std) => `Rapport ${std}. Chaque crit\xE8re est jug\xE9 sur ses propres tests ; la v\xE9rification d'int\xE9grit\xE9 (\`check\`/\`verify\`) op\xE8re sur le m\xEAme p\xE9rim\xE8tre.`,
60433
+ contents: "Sommaire",
60433
60434
  synthTitle: (by) => `1. Synth\xE8se par ${by}`,
60434
60435
  byGuideline: "r\xE8gle WCAG",
60435
60436
  byTheme: "th\xE9matique",
@@ -60626,6 +60627,7 @@ var L5 = {
60626
60627
  autoRateNote: (c2, d) => `criteria validated by the engine alone \xF7 criteria decided without the agent (${c2} \xF7 ${d})`,
60627
60628
  warn: "This report covers the subset of criteria checkable automatically. The \u201Cto assess\u201D criteria (rendering / judgment) are adjudicated by the AI agent (`verify --manual`, gated); rendering goes through `scan` (see section 5).",
60628
60629
  derived: (std) => `${std} report. Every criterion is judged on its own tests; the integrity gates (\`check\`/\`verify\`) operate on the same scope.`,
60630
+ contents: "Contents",
60629
60631
  synthTitle: (by) => `1. Synthesis by ${by}`,
60630
60632
  byGuideline: "WCAG guideline",
60631
60633
  byTheme: "theme",
@@ -61230,8 +61232,20 @@ function render(r, lang, opts) {
61230
61232
  if (r.scope.truncated || r.scope.captureCoverage?.blindSpots.length) out2.push(`> \u26A0\uFE0F ${s.scopeCaveat}`, "");
61231
61233
  out2.push(`> ${s.annexPointer(annexFile)}`, "");
61232
61234
  out2.push(...renderSummary(summaryModel(lang, opts.std, opts.standard, tot, ncUnits, advisoryUnits.length, resolver), lang));
61235
+ const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61236
+ const contents = [
61237
+ ["synthesis", s.synthTitle(opts.groupHead)],
61238
+ ["non-conformities", s.ncTitle],
61239
+ ...advisoryUnits.length ? [["recommendations", `\u{1F4A1} ${s.recTitle}`]] : [],
61240
+ ...derivedPages.length ? [["page-rates", `\u{1F4CB} ${s.pageRatesTitle}`]] : [],
61241
+ ...derivedPages.length ? [["page-findings", `\u{1F4C4} ${s.perPageTitle}`]] : [],
61242
+ ["conforming", s.cTitle],
61243
+ ["not-applicable", s.naTitle],
61244
+ ["to-assess", s.manualTitle]
61245
+ ];
61246
+ out2.push(`## ${s.contents}`, "", ...contents.map(([id, title]) => `- [${title}](#${id})`), "");
61233
61247
  const th = s.th(opts.groupHead);
61234
- out2.push(`## ${s.synthTitle(opts.groupHead)}`, "");
61248
+ out2.push('<a id="synthesis"></a>', `## ${s.synthTitle(opts.groupHead)}`, "");
61235
61249
  out2.push(`| ${th.join(" | ")} |`);
61236
61250
  out2.push(`|${"---|".repeat(th.length)}`);
61237
61251
  for (const g of opts.groups) {
@@ -61240,7 +61254,7 @@ function render(r, lang, opts) {
61240
61254
  }
61241
61255
  out2.push(`| **${s.total}** | **${tot.c}** | **${tot.nc}** | **${tot.na}** | **${tot.manual}** |`, "");
61242
61256
  out2.push(`> ${s.naSubset(tot.c + tot.nc + tot.manual)}`, "");
61243
- out2.push(`## ${s.ncTitle}`, "");
61257
+ out2.push('<a id="non-conformities"></a>', `## ${s.ncTitle}`, "");
61244
61258
  if (ncUnits.length === 0) {
61245
61259
  out2.push(s.none, "");
61246
61260
  } else {
@@ -61253,13 +61267,12 @@ function render(r, lang, opts) {
61253
61267
  }
61254
61268
  }
61255
61269
  if (advisoryUnits.length) {
61256
- out2.push(`## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61270
+ out2.push('<a id="recommendations"></a>', `## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61257
61271
  for (const u of advisoryUnits) out2.push(renderReaderAdvisory(u, lang, resolver));
61258
61272
  out2.push("");
61259
61273
  }
61260
- const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61261
61274
  if (derivedPages.length) {
61262
- out2.push(`## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61275
+ out2.push('<a id="page-rates"></a>', `## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61263
61276
  out2.push(`| ${s.pageCol} | ${s.urlCol} | ${s.rateCol} |`, "| --- | --- | --- |");
61264
61277
  for (const p of derivedPages) {
61265
61278
  const criteria = pageCriterionRows(r, p, opts.standard, lang);
@@ -61276,7 +61289,7 @@ function render(r, lang, opts) {
61276
61289
  else out2.push(grid);
61277
61290
  }
61278
61291
  if (derivedPages.length) {
61279
- out2.push(`## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61292
+ out2.push('<a id="page-findings"></a>', `## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61280
61293
  if (r.scope.sample?.transverse?.length) out2.push(`> ${s.transverseNote(r.scope.sample.transverse.join(", "))}`, "");
61281
61294
  if (r.scope.redirected?.length) out2.push(...renderRedirected(r.scope.redirected, lang), "");
61282
61295
  for (const pg of derivedPages) {
@@ -61304,7 +61317,7 @@ function render(r, lang, opts) {
61304
61317
  out2.push("", "</details>", "");
61305
61318
  }
61306
61319
  }
61307
- out2.push(`## ${s.cTitle}`, "");
61320
+ out2.push('<a id="conforming"></a>', `## ${s.cTitle}`, "");
61308
61321
  const conform = rows.filter((x) => x.status === "C" && !x.inapplicable);
61309
61322
  const byEngine = conform.filter((x) => x.decidedBy !== "agent");
61310
61323
  const byAgent = conform.filter((x) => x.decidedBy === "agent");
@@ -61327,7 +61340,7 @@ function render(r, lang, opts) {
61327
61340
  );
61328
61341
  }
61329
61342
  }
61330
- out2.push(`## ${s.naTitle}`, "");
61343
+ out2.push('<a id="not-applicable"></a>', `## ${s.naTitle}`, "");
61331
61344
  const na = rows.filter((x) => x.status === "C" && x.inapplicable);
61332
61345
  if (!na.length) out2.push(s.nothing, "");
61333
61346
  else {
@@ -61339,7 +61352,7 @@ function render(r, lang, opts) {
61339
61352
  )
61340
61353
  );
61341
61354
  }
61342
- out2.push(`## ${s.manualTitle}`, "");
61355
+ out2.push('<a id="to-assess"></a>', `## ${s.manualTitle}`, "");
61343
61356
  const manual = rows.filter((x) => x.status === "manual");
61344
61357
  const pack5 = isCore(opts.standard) ? void 0 : loadPack(opts.standard);
61345
61358
  const exhaustiveContract = pack5?.criteria.every((criterion) => criterion.automation !== void 0) === true;
@@ -70616,6 +70629,7 @@ function refusalBlocks(r) {
70616
70629
  }
70617
70630
  var T4 = {
70618
70631
  fr: {
70632
+ contents: "Sommaire",
70619
70633
  reportTitle: "Rapport de conformit\xE9",
70620
70634
  indexTitle: "Rapport d'accessibilit\xE9",
70621
70635
  pagesTitle: "Rapport page par page",
@@ -70679,6 +70693,7 @@ var T4 = {
70679
70693
  owner: { engine: "moteur", scan: "scan", agent: "IA", pending: "\xE0 adjuger" }
70680
70694
  },
70681
70695
  en: {
70696
+ contents: "Contents",
70682
70697
  reportTitle: "Conformance report",
70683
70698
  indexTitle: "Accessibility report",
70684
70699
  pagesTitle: "Page-by-page report",
@@ -71078,8 +71093,9 @@ function compositeDoc(result, opts = {}) {
71078
71093
  const lang = opts.lang ?? "en";
71079
71094
  const t3 = T4[lang];
71080
71095
  const h2 = headline(result, standard, lang);
71096
+ const summary = summaryBlocks(result, standard, lang);
71081
71097
  const blocks = [
71082
- ...summaryBlocks(result, standard, lang),
71098
+ ...summary,
71083
71099
  ...scopeBlocks(result, standard, lang),
71084
71100
  ...synthesisBlocks(result, standard, lang),
71085
71101
  ...criteriaGridBlocks(result, standard, lang)
@@ -71089,6 +71105,8 @@ function compositeDoc(result, opts = {}) {
71089
71105
  blocks.push(...scoreboardBlocks(result, standard, lang));
71090
71106
  const scope = pagesOf(result);
71091
71107
  if (scope.length) blocks.push(...crossGridBlocks(result, derivePages(result, scope), standard, lang));
71108
+ const contents = blocks.slice(summary.length).filter((block) => block.kind === "heading" && block.level === 2 && Boolean(block.id)).map((block) => [{ text: block.text, href: `#${block.id}` }]);
71109
+ if (contents.length) blocks.splice(summary.length, 0, { kind: "heading", level: 2, text: t3.contents, id: "contents" }, { kind: "list", items: contents });
71092
71110
  return { lang, title: `${t3.reportTitle} ${standardLabel(standard)} \u2014 ${result.date}`, subtitle: h2.runs, ...opts.nav ? { nav: opts.nav } : {}, blocks };
71093
71111
  }
71094
71112
  function pagesIndexDoc(result, opts = { sheetHref: (id) => `./page-${id}.html` }) {
@@ -3,7 +3,7 @@ name: review-a11y
3
3
  description: "Use to REVIEW changed frontend code for accessibility: staged files, a working diff, branch, or PR; prompts such as 'review a11y', 'is this accessible?', or 'anything to fix before merge?'; and hook or CI findings on a change. Run the bundled install-free engine with cross-file JSX/TSX analysis, then adjudicate candidates and return a severity-ranked WCAG 2.2 AA review with file:line fixes, residual rendering risks, and a verdict. Use `ultra11y` instead for whole-repo audits, dated conformance reports, country standards, PRD backlogs, or authoring accessible markup."
4
4
  license: MIT
5
5
  metadata:
6
- version: 5.46.0
6
+ version: 5.47.0
7
7
  ---
8
8
 
9
9
  # review-a11y — accessibility review of changed code
@@ -6,7 +6,7 @@ import { join as join52, relative as relative6, resolve as resolve17, sep as sep
6
6
  import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.46.0";
9
+ var VERSION = "5.47.0";
10
10
  var SCHEMA_VERSION = 2;
11
11
  var INAPPLICABLE_STATUS = "C";
12
12
 
@@ -60430,6 +60430,7 @@ var L5 = {
60430
60430
  autoRateNote: (c2, d) => `crit\xE8res valid\xE9s par le moteur seul \xF7 crit\xE8res d\xE9cid\xE9s sans l'agent (${c2} \xF7 ${d})`,
60431
60431
  warn: "Ce rapport couvre le sous-ensemble de crit\xE8res v\xE9rifiables automatiquement. Les crit\xE8res \xAB \xE0 \xE9valuer \xBB (rendu / jugement) sont adjug\xE9s par l'agent IA (`verify --manual`, de fa\xE7on gat\xE9e) ; le rendu passe par `scan` (voir la section 5).",
60432
60432
  derived: (std) => `Rapport ${std}. Chaque crit\xE8re est jug\xE9 sur ses propres tests ; la v\xE9rification d'int\xE9grit\xE9 (\`check\`/\`verify\`) op\xE8re sur le m\xEAme p\xE9rim\xE8tre.`,
60433
+ contents: "Sommaire",
60433
60434
  synthTitle: (by) => `1. Synth\xE8se par ${by}`,
60434
60435
  byGuideline: "r\xE8gle WCAG",
60435
60436
  byTheme: "th\xE9matique",
@@ -60626,6 +60627,7 @@ var L5 = {
60626
60627
  autoRateNote: (c2, d) => `criteria validated by the engine alone \xF7 criteria decided without the agent (${c2} \xF7 ${d})`,
60627
60628
  warn: "This report covers the subset of criteria checkable automatically. The \u201Cto assess\u201D criteria (rendering / judgment) are adjudicated by the AI agent (`verify --manual`, gated); rendering goes through `scan` (see section 5).",
60628
60629
  derived: (std) => `${std} report. Every criterion is judged on its own tests; the integrity gates (\`check\`/\`verify\`) operate on the same scope.`,
60630
+ contents: "Contents",
60629
60631
  synthTitle: (by) => `1. Synthesis by ${by}`,
60630
60632
  byGuideline: "WCAG guideline",
60631
60633
  byTheme: "theme",
@@ -61230,8 +61232,20 @@ function render(r, lang, opts) {
61230
61232
  if (r.scope.truncated || r.scope.captureCoverage?.blindSpots.length) out2.push(`> \u26A0\uFE0F ${s.scopeCaveat}`, "");
61231
61233
  out2.push(`> ${s.annexPointer(annexFile)}`, "");
61232
61234
  out2.push(...renderSummary(summaryModel(lang, opts.std, opts.standard, tot, ncUnits, advisoryUnits.length, resolver), lang));
61235
+ const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61236
+ const contents = [
61237
+ ["synthesis", s.synthTitle(opts.groupHead)],
61238
+ ["non-conformities", s.ncTitle],
61239
+ ...advisoryUnits.length ? [["recommendations", `\u{1F4A1} ${s.recTitle}`]] : [],
61240
+ ...derivedPages.length ? [["page-rates", `\u{1F4CB} ${s.pageRatesTitle}`]] : [],
61241
+ ...derivedPages.length ? [["page-findings", `\u{1F4C4} ${s.perPageTitle}`]] : [],
61242
+ ["conforming", s.cTitle],
61243
+ ["not-applicable", s.naTitle],
61244
+ ["to-assess", s.manualTitle]
61245
+ ];
61246
+ out2.push(`## ${s.contents}`, "", ...contents.map(([id, title]) => `- [${title}](#${id})`), "");
61233
61247
  const th = s.th(opts.groupHead);
61234
- out2.push(`## ${s.synthTitle(opts.groupHead)}`, "");
61248
+ out2.push('<a id="synthesis"></a>', `## ${s.synthTitle(opts.groupHead)}`, "");
61235
61249
  out2.push(`| ${th.join(" | ")} |`);
61236
61250
  out2.push(`|${"---|".repeat(th.length)}`);
61237
61251
  for (const g of opts.groups) {
@@ -61240,7 +61254,7 @@ function render(r, lang, opts) {
61240
61254
  }
61241
61255
  out2.push(`| **${s.total}** | **${tot.c}** | **${tot.nc}** | **${tot.na}** | **${tot.manual}** |`, "");
61242
61256
  out2.push(`> ${s.naSubset(tot.c + tot.nc + tot.manual)}`, "");
61243
- out2.push(`## ${s.ncTitle}`, "");
61257
+ out2.push('<a id="non-conformities"></a>', `## ${s.ncTitle}`, "");
61244
61258
  if (ncUnits.length === 0) {
61245
61259
  out2.push(s.none, "");
61246
61260
  } else {
@@ -61253,13 +61267,12 @@ function render(r, lang, opts) {
61253
61267
  }
61254
61268
  }
61255
61269
  if (advisoryUnits.length) {
61256
- out2.push(`## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61270
+ out2.push('<a id="recommendations"></a>', `## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61257
61271
  for (const u of advisoryUnits) out2.push(renderReaderAdvisory(u, lang, resolver));
61258
61272
  out2.push("");
61259
61273
  }
61260
- const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61261
61274
  if (derivedPages.length) {
61262
- out2.push(`## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61275
+ out2.push('<a id="page-rates"></a>', `## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61263
61276
  out2.push(`| ${s.pageCol} | ${s.urlCol} | ${s.rateCol} |`, "| --- | --- | --- |");
61264
61277
  for (const p of derivedPages) {
61265
61278
  const criteria = pageCriterionRows(r, p, opts.standard, lang);
@@ -61276,7 +61289,7 @@ function render(r, lang, opts) {
61276
61289
  else out2.push(grid);
61277
61290
  }
61278
61291
  if (derivedPages.length) {
61279
- out2.push(`## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61292
+ out2.push('<a id="page-findings"></a>', `## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61280
61293
  if (r.scope.sample?.transverse?.length) out2.push(`> ${s.transverseNote(r.scope.sample.transverse.join(", "))}`, "");
61281
61294
  if (r.scope.redirected?.length) out2.push(...renderRedirected(r.scope.redirected, lang), "");
61282
61295
  for (const pg of derivedPages) {
@@ -61304,7 +61317,7 @@ function render(r, lang, opts) {
61304
61317
  out2.push("", "</details>", "");
61305
61318
  }
61306
61319
  }
61307
- out2.push(`## ${s.cTitle}`, "");
61320
+ out2.push('<a id="conforming"></a>', `## ${s.cTitle}`, "");
61308
61321
  const conform = rows.filter((x) => x.status === "C" && !x.inapplicable);
61309
61322
  const byEngine = conform.filter((x) => x.decidedBy !== "agent");
61310
61323
  const byAgent = conform.filter((x) => x.decidedBy === "agent");
@@ -61327,7 +61340,7 @@ function render(r, lang, opts) {
61327
61340
  );
61328
61341
  }
61329
61342
  }
61330
- out2.push(`## ${s.naTitle}`, "");
61343
+ out2.push('<a id="not-applicable"></a>', `## ${s.naTitle}`, "");
61331
61344
  const na = rows.filter((x) => x.status === "C" && x.inapplicable);
61332
61345
  if (!na.length) out2.push(s.nothing, "");
61333
61346
  else {
@@ -61339,7 +61352,7 @@ function render(r, lang, opts) {
61339
61352
  )
61340
61353
  );
61341
61354
  }
61342
- out2.push(`## ${s.manualTitle}`, "");
61355
+ out2.push('<a id="to-assess"></a>', `## ${s.manualTitle}`, "");
61343
61356
  const manual = rows.filter((x) => x.status === "manual");
61344
61357
  const pack5 = isCore(opts.standard) ? void 0 : loadPack(opts.standard);
61345
61358
  const exhaustiveContract = pack5?.criteria.every((criterion) => criterion.automation !== void 0) === true;
@@ -70616,6 +70629,7 @@ function refusalBlocks(r) {
70616
70629
  }
70617
70630
  var T4 = {
70618
70631
  fr: {
70632
+ contents: "Sommaire",
70619
70633
  reportTitle: "Rapport de conformit\xE9",
70620
70634
  indexTitle: "Rapport d'accessibilit\xE9",
70621
70635
  pagesTitle: "Rapport page par page",
@@ -70679,6 +70693,7 @@ var T4 = {
70679
70693
  owner: { engine: "moteur", scan: "scan", agent: "IA", pending: "\xE0 adjuger" }
70680
70694
  },
70681
70695
  en: {
70696
+ contents: "Contents",
70682
70697
  reportTitle: "Conformance report",
70683
70698
  indexTitle: "Accessibility report",
70684
70699
  pagesTitle: "Page-by-page report",
@@ -71078,8 +71093,9 @@ function compositeDoc(result, opts = {}) {
71078
71093
  const lang = opts.lang ?? "en";
71079
71094
  const t3 = T4[lang];
71080
71095
  const h2 = headline(result, standard, lang);
71096
+ const summary = summaryBlocks(result, standard, lang);
71081
71097
  const blocks = [
71082
- ...summaryBlocks(result, standard, lang),
71098
+ ...summary,
71083
71099
  ...scopeBlocks(result, standard, lang),
71084
71100
  ...synthesisBlocks(result, standard, lang),
71085
71101
  ...criteriaGridBlocks(result, standard, lang)
@@ -71089,6 +71105,8 @@ function compositeDoc(result, opts = {}) {
71089
71105
  blocks.push(...scoreboardBlocks(result, standard, lang));
71090
71106
  const scope = pagesOf(result);
71091
71107
  if (scope.length) blocks.push(...crossGridBlocks(result, derivePages(result, scope), standard, lang));
71108
+ const contents = blocks.slice(summary.length).filter((block) => block.kind === "heading" && block.level === 2 && Boolean(block.id)).map((block) => [{ text: block.text, href: `#${block.id}` }]);
71109
+ if (contents.length) blocks.splice(summary.length, 0, { kind: "heading", level: 2, text: t3.contents, id: "contents" }, { kind: "list", items: contents });
71092
71110
  return { lang, title: `${t3.reportTitle} ${standardLabel(standard)} \u2014 ${result.date}`, subtitle: h2.runs, ...opts.nav ? { nav: opts.nav } : {}, blocks };
71093
71111
  }
71094
71112
  function pagesIndexDoc(result, opts = { sheetHref: (id) => `./page-${id}.html` }) {
@@ -3,7 +3,7 @@ name: ultra11y
3
3
  description: "Use to AUDIT a repository, site, or page against WCAG 2.2 AA or a country standard such as RGAA; produce a dated conformance report, criterion grid, PRD backlog, or tickets; AUTHOR accessible markup; fix accessibility; or wire a repo gate and rendered-DOM capture pipeline. The bundled install-free engine runs 94 static checks tied to success criteria, while the agent adjudicates judgment criteria and routes rendering criteria to browser scans; check/verify reject invented non-conformities. Use `review-a11y` instead for a review scoped only to a diff, branch, or PR."
4
4
  license: MIT
5
5
  metadata:
6
- version: 5.46.0
6
+ version: 5.47.0
7
7
  ---
8
8
 
9
9
  # ultra11y — audit WCAG 2.2 AA and write accessible markup
@@ -6,7 +6,7 @@ import { join as join52, relative as relative6, resolve as resolve17, sep as sep
6
6
  import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL3 } from "url";
7
7
 
8
8
  // src/types.ts
9
- var VERSION = "5.46.0";
9
+ var VERSION = "5.47.0";
10
10
  var SCHEMA_VERSION = 2;
11
11
  var INAPPLICABLE_STATUS = "C";
12
12
 
@@ -60430,6 +60430,7 @@ var L5 = {
60430
60430
  autoRateNote: (c2, d) => `crit\xE8res valid\xE9s par le moteur seul \xF7 crit\xE8res d\xE9cid\xE9s sans l'agent (${c2} \xF7 ${d})`,
60431
60431
  warn: "Ce rapport couvre le sous-ensemble de crit\xE8res v\xE9rifiables automatiquement. Les crit\xE8res \xAB \xE0 \xE9valuer \xBB (rendu / jugement) sont adjug\xE9s par l'agent IA (`verify --manual`, de fa\xE7on gat\xE9e) ; le rendu passe par `scan` (voir la section 5).",
60432
60432
  derived: (std) => `Rapport ${std}. Chaque crit\xE8re est jug\xE9 sur ses propres tests ; la v\xE9rification d'int\xE9grit\xE9 (\`check\`/\`verify\`) op\xE8re sur le m\xEAme p\xE9rim\xE8tre.`,
60433
+ contents: "Sommaire",
60433
60434
  synthTitle: (by) => `1. Synth\xE8se par ${by}`,
60434
60435
  byGuideline: "r\xE8gle WCAG",
60435
60436
  byTheme: "th\xE9matique",
@@ -60626,6 +60627,7 @@ var L5 = {
60626
60627
  autoRateNote: (c2, d) => `criteria validated by the engine alone \xF7 criteria decided without the agent (${c2} \xF7 ${d})`,
60627
60628
  warn: "This report covers the subset of criteria checkable automatically. The \u201Cto assess\u201D criteria (rendering / judgment) are adjudicated by the AI agent (`verify --manual`, gated); rendering goes through `scan` (see section 5).",
60628
60629
  derived: (std) => `${std} report. Every criterion is judged on its own tests; the integrity gates (\`check\`/\`verify\`) operate on the same scope.`,
60630
+ contents: "Contents",
60629
60631
  synthTitle: (by) => `1. Synthesis by ${by}`,
60630
60632
  byGuideline: "WCAG guideline",
60631
60633
  byTheme: "theme",
@@ -61230,8 +61232,20 @@ function render(r, lang, opts) {
61230
61232
  if (r.scope.truncated || r.scope.captureCoverage?.blindSpots.length) out2.push(`> \u26A0\uFE0F ${s.scopeCaveat}`, "");
61231
61233
  out2.push(`> ${s.annexPointer(annexFile)}`, "");
61232
61234
  out2.push(...renderSummary(summaryModel(lang, opts.std, opts.standard, tot, ncUnits, advisoryUnits.length, resolver), lang));
61235
+ const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61236
+ const contents = [
61237
+ ["synthesis", s.synthTitle(opts.groupHead)],
61238
+ ["non-conformities", s.ncTitle],
61239
+ ...advisoryUnits.length ? [["recommendations", `\u{1F4A1} ${s.recTitle}`]] : [],
61240
+ ...derivedPages.length ? [["page-rates", `\u{1F4CB} ${s.pageRatesTitle}`]] : [],
61241
+ ...derivedPages.length ? [["page-findings", `\u{1F4C4} ${s.perPageTitle}`]] : [],
61242
+ ["conforming", s.cTitle],
61243
+ ["not-applicable", s.naTitle],
61244
+ ["to-assess", s.manualTitle]
61245
+ ];
61246
+ out2.push(`## ${s.contents}`, "", ...contents.map(([id, title]) => `- [${title}](#${id})`), "");
61233
61247
  const th = s.th(opts.groupHead);
61234
- out2.push(`## ${s.synthTitle(opts.groupHead)}`, "");
61248
+ out2.push('<a id="synthesis"></a>', `## ${s.synthTitle(opts.groupHead)}`, "");
61235
61249
  out2.push(`| ${th.join(" | ")} |`);
61236
61250
  out2.push(`|${"---|".repeat(th.length)}`);
61237
61251
  for (const g of opts.groups) {
@@ -61240,7 +61254,7 @@ function render(r, lang, opts) {
61240
61254
  }
61241
61255
  out2.push(`| **${s.total}** | **${tot.c}** | **${tot.nc}** | **${tot.na}** | **${tot.manual}** |`, "");
61242
61256
  out2.push(`> ${s.naSubset(tot.c + tot.nc + tot.manual)}`, "");
61243
- out2.push(`## ${s.ncTitle}`, "");
61257
+ out2.push('<a id="non-conformities"></a>', `## ${s.ncTitle}`, "");
61244
61258
  if (ncUnits.length === 0) {
61245
61259
  out2.push(s.none, "");
61246
61260
  } else {
@@ -61253,13 +61267,12 @@ function render(r, lang, opts) {
61253
61267
  }
61254
61268
  }
61255
61269
  if (advisoryUnits.length) {
61256
- out2.push(`## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61270
+ out2.push('<a id="recommendations"></a>', `## \u{1F4A1} ${s.recTitle}`, "", `> ${s.recNote}`, "");
61257
61271
  for (const u of advisoryUnits) out2.push(renderReaderAdvisory(u, lang, resolver));
61258
61272
  out2.push("");
61259
61273
  }
61260
- const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
61261
61274
  if (derivedPages.length) {
61262
- out2.push(`## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61275
+ out2.push('<a id="page-rates"></a>', `## \u{1F4CB} ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
61263
61276
  out2.push(`| ${s.pageCol} | ${s.urlCol} | ${s.rateCol} |`, "| --- | --- | --- |");
61264
61277
  for (const p of derivedPages) {
61265
61278
  const criteria = pageCriterionRows(r, p, opts.standard, lang);
@@ -61276,7 +61289,7 @@ function render(r, lang, opts) {
61276
61289
  else out2.push(grid);
61277
61290
  }
61278
61291
  if (derivedPages.length) {
61279
- out2.push(`## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61292
+ out2.push('<a id="page-findings"></a>', `## \u{1F4C4} ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
61280
61293
  if (r.scope.sample?.transverse?.length) out2.push(`> ${s.transverseNote(r.scope.sample.transverse.join(", "))}`, "");
61281
61294
  if (r.scope.redirected?.length) out2.push(...renderRedirected(r.scope.redirected, lang), "");
61282
61295
  for (const pg of derivedPages) {
@@ -61304,7 +61317,7 @@ function render(r, lang, opts) {
61304
61317
  out2.push("", "</details>", "");
61305
61318
  }
61306
61319
  }
61307
- out2.push(`## ${s.cTitle}`, "");
61320
+ out2.push('<a id="conforming"></a>', `## ${s.cTitle}`, "");
61308
61321
  const conform = rows.filter((x) => x.status === "C" && !x.inapplicable);
61309
61322
  const byEngine = conform.filter((x) => x.decidedBy !== "agent");
61310
61323
  const byAgent = conform.filter((x) => x.decidedBy === "agent");
@@ -61327,7 +61340,7 @@ function render(r, lang, opts) {
61327
61340
  );
61328
61341
  }
61329
61342
  }
61330
- out2.push(`## ${s.naTitle}`, "");
61343
+ out2.push('<a id="not-applicable"></a>', `## ${s.naTitle}`, "");
61331
61344
  const na = rows.filter((x) => x.status === "C" && x.inapplicable);
61332
61345
  if (!na.length) out2.push(s.nothing, "");
61333
61346
  else {
@@ -61339,7 +61352,7 @@ function render(r, lang, opts) {
61339
61352
  )
61340
61353
  );
61341
61354
  }
61342
- out2.push(`## ${s.manualTitle}`, "");
61355
+ out2.push('<a id="to-assess"></a>', `## ${s.manualTitle}`, "");
61343
61356
  const manual = rows.filter((x) => x.status === "manual");
61344
61357
  const pack5 = isCore(opts.standard) ? void 0 : loadPack(opts.standard);
61345
61358
  const exhaustiveContract = pack5?.criteria.every((criterion) => criterion.automation !== void 0) === true;
@@ -70616,6 +70629,7 @@ function refusalBlocks(r) {
70616
70629
  }
70617
70630
  var T4 = {
70618
70631
  fr: {
70632
+ contents: "Sommaire",
70619
70633
  reportTitle: "Rapport de conformit\xE9",
70620
70634
  indexTitle: "Rapport d'accessibilit\xE9",
70621
70635
  pagesTitle: "Rapport page par page",
@@ -70679,6 +70693,7 @@ var T4 = {
70679
70693
  owner: { engine: "moteur", scan: "scan", agent: "IA", pending: "\xE0 adjuger" }
70680
70694
  },
70681
70695
  en: {
70696
+ contents: "Contents",
70682
70697
  reportTitle: "Conformance report",
70683
70698
  indexTitle: "Accessibility report",
70684
70699
  pagesTitle: "Page-by-page report",
@@ -71078,8 +71093,9 @@ function compositeDoc(result, opts = {}) {
71078
71093
  const lang = opts.lang ?? "en";
71079
71094
  const t3 = T4[lang];
71080
71095
  const h2 = headline(result, standard, lang);
71096
+ const summary = summaryBlocks(result, standard, lang);
71081
71097
  const blocks = [
71082
- ...summaryBlocks(result, standard, lang),
71098
+ ...summary,
71083
71099
  ...scopeBlocks(result, standard, lang),
71084
71100
  ...synthesisBlocks(result, standard, lang),
71085
71101
  ...criteriaGridBlocks(result, standard, lang)
@@ -71089,6 +71105,8 @@ function compositeDoc(result, opts = {}) {
71089
71105
  blocks.push(...scoreboardBlocks(result, standard, lang));
71090
71106
  const scope = pagesOf(result);
71091
71107
  if (scope.length) blocks.push(...crossGridBlocks(result, derivePages(result, scope), standard, lang));
71108
+ const contents = blocks.slice(summary.length).filter((block) => block.kind === "heading" && block.level === 2 && Boolean(block.id)).map((block) => [{ text: block.text, href: `#${block.id}` }]);
71109
+ if (contents.length) blocks.splice(summary.length, 0, { kind: "heading", level: 2, text: t3.contents, id: "contents" }, { kind: "list", items: contents });
71092
71110
  return { lang, title: `${t3.reportTitle} ${standardLabel(standard)} \u2014 ${result.date}`, subtitle: h2.runs, ...opts.nav ? { nav: opts.nav } : {}, blocks };
71093
71111
  }
71094
71112
  function pagesIndexDoc(result, opts = { sheetHref: (id) => `./page-${id}.html` }) {
@@ -27,7 +27,7 @@ variables:
27
27
  ULTRA11Y_LANG: en
28
28
  # Exact by default: a CI report must say which engine produced it. The release script keeps
29
29
  # this pin aligned with the package version; override only for a deliberate upgrade test.
30
- ULTRA11Y_VERSION: '5.46.0'
30
+ ULTRA11Y_VERSION: '5.47.0'
31
31
  # Batches of 8 amortise the prompt; each accepted verdict is checkpointed before the next
32
32
  # batch, and later passes receive only the residue.
33
33
  ULTRA11Y_GRAIN: batch
@@ -76,6 +76,7 @@ function refusalBlocks(r: { headline: string; reasons: string[] } | undefined):
76
76
 
77
77
  const T = {
78
78
  fr: {
79
+ contents: "Sommaire",
79
80
  reportTitle: "Rapport de conformité",
80
81
  indexTitle: "Rapport d'accessibilité",
81
82
  pagesTitle: "Rapport page par page",
@@ -141,6 +142,7 @@ const T = {
141
142
  owner: { engine: "moteur", scan: "scan", agent: "IA", pending: "à adjuger" },
142
143
  },
143
144
  en: {
145
+ contents: "Contents",
144
146
  reportTitle: "Conformance report",
145
147
  indexTitle: "Accessibility report",
146
148
  pagesTitle: "Page-by-page report",
@@ -608,8 +610,9 @@ export function compositeDoc(result: AuditResult, opts: HtmlReportOpts = {}): Do
608
610
  const lang = opts.lang ?? "en";
609
611
  const t = T[lang];
610
612
  const h = headline(result, standard, lang);
613
+ const summary = summaryBlocks(result, standard, lang);
611
614
  const blocks: Block[] = [
612
- ...summaryBlocks(result, standard, lang),
615
+ ...summary,
613
616
  ...scopeBlocks(result, standard, lang),
614
617
  ...synthesisBlocks(result, standard, lang),
615
618
  ...criteriaGridBlocks(result, standard, lang),
@@ -619,6 +622,13 @@ export function compositeDoc(result: AuditResult, opts: HtmlReportOpts = {}): Do
619
622
  blocks.push(...scoreboardBlocks(result, standard, lang));
620
623
  const scope = pagesOf(result);
621
624
  if (scope.length) blocks.push(...crossGridBlocks(result, derivePages(result, scope), standard, lang));
625
+ // The file opens on the summary (the level, what to fix); the index of the sections that
626
+ // follow sits right after it, and lists only headings that carry an anchor to land on.
627
+ const contents: Run[][] = blocks
628
+ .slice(summary.length)
629
+ .filter((block): block is Extract<Block, { kind: "heading" }> => block.kind === "heading" && block.level === 2 && Boolean(block.id))
630
+ .map((block) => [{ text: block.text, href: `#${block.id}` }]);
631
+ if (contents.length) blocks.splice(summary.length, 0, { kind: "heading", level: 2, text: t.contents, id: "contents" }, { kind: "list", items: contents });
622
632
  return { lang, title: `${t.reportTitle} ${standardLabel(standard)} — ${result.date}`, subtitle: h.runs, ...(opts.nav ? { nav: opts.nav } : {}), blocks };
623
633
  }
624
634
 
package/src/report.ts CHANGED
@@ -91,6 +91,7 @@ const L = {
91
91
  warn: "Ce rapport couvre le sous-ensemble de critères vérifiables automatiquement. Les critères « à évaluer » (rendu / jugement) sont adjugés par l'agent IA (`verify --manual`, de façon gatée) ; le rendu passe par `scan` (voir la section 5).",
92
92
  derived: (std: string) =>
93
93
  `Rapport ${std}. Chaque critère est jugé sur ses propres tests ; la vérification d'intégrité (\`check\`/\`verify\`) opère sur le même périmètre.`,
94
+ contents: "Sommaire",
94
95
  synthTitle: (by: string) => `1. Synthèse par ${by}`,
95
96
  byGuideline: "règle WCAG",
96
97
  byTheme: "thématique",
@@ -317,6 +318,7 @@ const L = {
317
318
  warn: "This report covers the subset of criteria checkable automatically. The “to assess” criteria (rendering / judgment) are adjudicated by the AI agent (`verify --manual`, gated); rendering goes through `scan` (see section 5).",
318
319
  derived: (std: string) =>
319
320
  `${std} report. Every criterion is judged on its own tests; the integrity gates (\`check\`/\`verify\`) operate on the same scope.`,
321
+ contents: "Contents",
320
322
  synthTitle: (by: string) => `1. Synthesis by ${by}`,
321
323
  byGuideline: "WCAG guideline",
322
324
  byTheme: "theme",
@@ -1394,11 +1396,27 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1394
1396
  if (r.scope.truncated || r.scope.captureCoverage?.blindSpots.length) out.push(`> ⚠️ ${s.scopeCaveat}`, "");
1395
1397
  out.push(`> ${s.annexPointer(annexFile)}`, "");
1396
1398
 
1399
+ // The report opens on the summary — the level and what to fix — so the index comes right
1400
+ // after it, never before. Optional sections are left out when this run has none, so every
1401
+ // entry is a link that resolves.
1397
1402
  out.push(...renderSummary(summaryModel(lang, opts.std, opts.standard, tot, ncUnits, advisoryUnits.length, resolver), lang));
1398
1403
 
1404
+ const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
1405
+ const contents: [string, string][] = [
1406
+ ["synthesis", s.synthTitle(opts.groupHead)],
1407
+ ["non-conformities", s.ncTitle],
1408
+ ...(advisoryUnits.length ? [["recommendations", `💡 ${s.recTitle}`] as [string, string]] : []),
1409
+ ...(derivedPages.length ? [["page-rates", `📋 ${s.pageRatesTitle}`] as [string, string]] : []),
1410
+ ...(derivedPages.length ? [["page-findings", `📄 ${s.perPageTitle}`] as [string, string]] : []),
1411
+ ["conforming", s.cTitle],
1412
+ ["not-applicable", s.naTitle],
1413
+ ["to-assess", s.manualTitle],
1414
+ ];
1415
+ out.push(`## ${s.contents}`, "", ...contents.map(([id, title]) => `- [${title}](#${id})`), "");
1416
+
1399
1417
  // 1. synthesis
1400
1418
  const th = s.th(opts.groupHead);
1401
- out.push(`## ${s.synthTitle(opts.groupHead)}`, "");
1419
+ out.push('<a id="synthesis"></a>', `## ${s.synthTitle(opts.groupHead)}`, "");
1402
1420
  out.push(`| ${th.join(" | ")} |`);
1403
1421
  out.push(`|${"---|".repeat(th.length)}`);
1404
1422
  for (const g of opts.groups) {
@@ -1412,7 +1430,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1412
1430
 
1413
1431
  // 2. non-conformities by priority — the reader's block: problem, pages, fix. Built from the
1414
1432
  // SAME units `prd`/GitHub issues use, so a criterion here is exactly a backlog item.
1415
- out.push(`## ${s.ncTitle}`, "");
1433
+ out.push('<a id="non-conformities"></a>', `## ${s.ncTitle}`, "");
1416
1434
  if (ncUnits.length === 0) {
1417
1435
  out.push(s.none, "");
1418
1436
  } else {
@@ -1427,16 +1445,15 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1427
1445
 
1428
1446
  // Recommendations (non-normative) — UNNUMBERED, outside §2, one line each: they change no level.
1429
1447
  if (advisoryUnits.length) {
1430
- out.push(`## 💡 ${s.recTitle}`, "", `> ${s.recNote}`, "");
1448
+ out.push('<a id="recommendations"></a>', `## 💡 ${s.recTitle}`, "", `> ${s.recNote}`, "");
1431
1449
  for (const u of advisoryUnits) out.push(renderReaderAdvisory(u, lang, resolver));
1432
1450
  out.push("");
1433
1451
  }
1434
1452
 
1435
1453
  // « Taux par page » — each audited page, its URL and its rate with the denominator. Drawn from
1436
1454
  // `pageCriterionRows`/`pageRatePct`, the per-page dossier's own helpers.
1437
- const derivedPages = pageScope.length ? derivePages(r, pageScope) : [];
1438
1455
  if (derivedPages.length) {
1439
- out.push(`## 📋 ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
1456
+ out.push('<a id="page-rates"></a>', `## 📋 ${s.pageRatesTitle}`, "", `> ${s.pageRatesNoteBusiness}`, "");
1440
1457
  out.push(`| ${s.pageCol} | ${s.urlCol} | ${s.rateCol} |`, "| --- | --- | --- |");
1441
1458
  for (const p of derivedPages) {
1442
1459
  const criteria = pageCriterionRows(r, p, opts.standard, lang);
@@ -1457,7 +1474,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1457
1474
  // « Constats par page » — each page folds: its screenshot and what fails on it, by criterion.
1458
1475
  // The selectors that used to sit on these lines are in the annex.
1459
1476
  if (derivedPages.length) {
1460
- out.push(`## 📄 ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
1477
+ out.push('<a id="page-findings"></a>', `## 📄 ${s.perPageTitle}`, "", `> ${s.perPageNote}`, "");
1461
1478
  if (r.scope.sample?.transverse?.length) out.push(`> ${s.transverseNote(r.scope.sample.transverse.join(", "))}`, "");
1462
1479
  // Pages the scan refused to record: a silently shorter deliverable reads as a complete one.
1463
1480
  if (r.scope.redirected?.length) out.push(...renderRedirected(r.scope.redirected, lang), "");
@@ -1499,7 +1516,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1499
1516
 
1500
1517
  // 3. conforming — split by PROVENANCE. A criterion the deterministic engine decided and one an
1501
1518
  // agent ruled on are both "C", but they are not the same claim. Both lists fold.
1502
- out.push(`## ${s.cTitle}`, "");
1519
+ out.push('<a id="conforming"></a>', `## ${s.cTitle}`, "");
1503
1520
  const conform = rows.filter((x) => x.status === "C" && !x.inapplicable);
1504
1521
  const byEngine = conform.filter((x) => x.decidedBy !== "agent");
1505
1522
  const byAgent = conform.filter((x) => x.decidedBy === "agent");
@@ -1526,7 +1543,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1526
1543
  // 4. conforming for want of a subject — each with what was looked for, so the claim stays
1527
1544
  // falsifiable rather than merely asserted. Same predicate as tallyRows: the section lists
1528
1545
  // exactly the criteria the synthesis counts as NA.
1529
- out.push(`## ${s.naTitle}`, "");
1546
+ out.push('<a id="not-applicable"></a>', `## ${s.naTitle}`, "");
1530
1547
  const na = rows.filter((x) => x.status === "C" && x.inapplicable);
1531
1548
  if (!na.length) out.push(s.nothing, "");
1532
1549
  else {
@@ -1540,7 +1557,7 @@ function render(r: AuditResult, lang: Lang, opts: RenderOpts): ReportDocuments {
1540
1557
  }
1541
1558
 
1542
1559
  // 5. what is still open — what it means for the reader; the procedure is in the annex.
1543
- out.push(`## ${s.manualTitle}`, "");
1560
+ out.push('<a id="to-assess"></a>', `## ${s.manualTitle}`, "");
1544
1561
  const manual = rows.filter((x) => x.status === "manual");
1545
1562
  const pack5 = isCore(opts.standard) ? undefined : loadPack(opts.standard);
1546
1563
  const exhaustiveContract = pack5?.criteria.every((criterion) => criterion.automation !== undefined) === true;
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Single source of truth for shared types + the embedded version. sync-version.mjs
2
2
  // rewrites VERSION at release time (kept in lockstep with package.json + SKILL.md).
3
- export const VERSION = "5.46.0";
3
+ export const VERSION = "5.47.0";
4
4
  export const SCHEMA_VERSION = 2;
5
5
 
6
6
  // Lang = the UI FRAME's language — the `L` localization tables each module (report,