ultra11y 5.11.0 → 5.11.1

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 of the code under change before every commit, push and pull request, plus full WCAG 2.2 AA / RGAA audits and conformance deliverables on demand.",
13
- "version": "5.11.0",
13
+ "version": "5.11.1",
14
14
  "author": { "name": "maxgfr" },
15
15
  "homepage": "https://github.com/maxgfr/ultra11y",
16
16
  "repository": "https://github.com/maxgfr/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): an automatic review of the code under change before every commit, push and pull request, plus full audits and conformance deliverables on demand.",
4
- "version": "5.11.0",
4
+ "version": "5.11.1",
5
5
  "author": { "name": "maxgfr" },
6
6
  "homepage": "https://github.com/maxgfr/ultra11y",
7
7
  "repository": "https://github.com/maxgfr/ultra11y",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ultra11y",
3
3
  "description": "Accessibility for WCAG 2.2 AA and country standards (RGAA…): an automatic review of the code under change before every commit, push and pull request, plus full audits and conformance deliverables on demand.",
4
- "version": "5.11.0",
4
+ "version": "5.11.1",
5
5
  "author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
6
6
  "homepage": "https://github.com/maxgfr/ultra11y",
7
7
  "repository": "https://github.com/maxgfr/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.11.0";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.11.1";
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.11.0",
3
+ "version": "5.11.1",
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
  "type": "module",
6
6
  "packageManager": "pnpm@10.33.0",
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, 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.11.0";
9
+ var VERSION = "5.11.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
 
12
12
  // src/audit.ts
@@ -58049,6 +58049,7 @@ var T2 = {
58049
58049
  on: "sur",
58050
58050
  alsoAt: "aussi en",
58051
58051
  snippetLabel: "`snippet` \xE0 copier dans la citation",
58052
+ renderedAvailable: "**RENDU DISPONIBLE.** Cet audit a ing\xE9r\xE9 des captures de page : le rendu de la page est sur le disque, sous `.ultra11y/pages/<id>/` \u2014 `dom.html` (le DOM s\xE9rialis\xE9 par le navigateur), `styles.json` (les styles calcul\xE9s), `boxes.json` (les bo\xEEtes et positions), `axtree.json` (l'arbre d'accessibilit\xE9) et `screen.png`. Un crit\xE8re \xAB \xE0 restituer \xBB \u2014 information par la couleur, op\xE9rabilit\xE9 clavier d'un script, geste au pointeur \u2014 se tranche DEPUIS CES FICHIERS : lisez-les comme vous liriez la source. `needs-rendered-dom` reste la bonne r\xE9ponse pour un crit\xE8re dont aucune capture ne porte le sujet, et pour lui seul.",
58052
58053
  incomplete: "LECTURE INCOMPL\xC8TE \u2014 un \xAB C \xBB sera refus\xE9 sur ce crit\xE8re",
58053
58054
  none: "(aucune \xE9vidence automatique \u2014 d\xE9cidez depuis la source, ou laissez `manual` avec une raison)",
58054
58055
  questions: "\xC0 v\xE9rifier manuellement",
@@ -58079,6 +58080,7 @@ var T2 = {
58079
58080
  on: "on",
58080
58081
  alsoAt: "also at",
58081
58082
  snippetLabel: "`snippet` to copy into the citation",
58083
+ renderedAvailable: "**THE RENDERED PAGE IS AVAILABLE.** This audit ingested page captures: the rendered page is on disk under `.ultra11y/pages/<id>/` \u2014 `dom.html` (the DOM the browser serialized), `styles.json` (computed styles), `boxes.json` (boxes and positions), `axtree.json` (the accessibility tree) and `screen.png`. A needs-rendering criterion \u2014 information by colour, keyboard operability of a script, a pointer gesture \u2014 is decided FROM THOSE FILES: read them as you would read the source. `needs-rendered-dom` stays the right answer for a criterion no capture carries the subject of, and for that alone.",
58082
58084
  incomplete: "INCOMPLETE READING \u2014 a C will be refused on this criterion",
58083
58085
  none: "(no automatic evidence \u2014 decide from source, or leave `manual` with a reason)",
58084
58086
  questions: "To verify manually",
@@ -58124,6 +58126,9 @@ function formatAdjudication(items, lang = "en", standard = CORE2, opts = {}) {
58124
58126
  const { showAlsoAt: shown } = adjudicationLimits(opts.cwd);
58125
58127
  const pack = isCore(standard) ? void 0 : loadPack(standard);
58126
58128
  const out2 = opts.preamble === false ? [] : [s.title, "", s.intro, "", ...s.verdicts, "", s.rule, "", s.then, ""];
58129
+ if (opts.preamble !== false && items.some((it) => it.evidence.some((e) => isSnapshotFile(e.file)))) {
58130
+ out2.push(`> ${s.renderedAvailable}`, "");
58131
+ }
58127
58132
  if (pack && opts.preamble !== false) out2.push(`> ${s.packIntro(pack.name)}`, "");
58128
58133
  for (const it of items) {
58129
58134
  out2.push(`## ${pack ? `${pack.name} ` : ""}${it.criteriaId}${it.title ? ` \u2014 ${it.title}` : ""} _(${it.automatability})_`);
@@ -5,7 +5,7 @@ when_to_use: "Invoke WITHOUT being asked whenever changed front-end code should
5
5
  allowed-tools: Bash(node ${CLAUDE_SKILL_DIR}/scripts/ultra11y.mjs *), Read, Grep, Glob
6
6
  license: MIT
7
7
  metadata:
8
- version: 5.11.0
8
+ version: 5.11.1
9
9
  ---
10
10
 
11
11
  # review-a11y — accessibility review of changed code
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, 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.11.0";
9
+ var VERSION = "5.11.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
 
12
12
  // src/audit.ts
@@ -58049,6 +58049,7 @@ var T2 = {
58049
58049
  on: "sur",
58050
58050
  alsoAt: "aussi en",
58051
58051
  snippetLabel: "`snippet` \xE0 copier dans la citation",
58052
+ renderedAvailable: "**RENDU DISPONIBLE.** Cet audit a ing\xE9r\xE9 des captures de page : le rendu de la page est sur le disque, sous `.ultra11y/pages/<id>/` \u2014 `dom.html` (le DOM s\xE9rialis\xE9 par le navigateur), `styles.json` (les styles calcul\xE9s), `boxes.json` (les bo\xEEtes et positions), `axtree.json` (l'arbre d'accessibilit\xE9) et `screen.png`. Un crit\xE8re \xAB \xE0 restituer \xBB \u2014 information par la couleur, op\xE9rabilit\xE9 clavier d'un script, geste au pointeur \u2014 se tranche DEPUIS CES FICHIERS : lisez-les comme vous liriez la source. `needs-rendered-dom` reste la bonne r\xE9ponse pour un crit\xE8re dont aucune capture ne porte le sujet, et pour lui seul.",
58052
58053
  incomplete: "LECTURE INCOMPL\xC8TE \u2014 un \xAB C \xBB sera refus\xE9 sur ce crit\xE8re",
58053
58054
  none: "(aucune \xE9vidence automatique \u2014 d\xE9cidez depuis la source, ou laissez `manual` avec une raison)",
58054
58055
  questions: "\xC0 v\xE9rifier manuellement",
@@ -58079,6 +58080,7 @@ var T2 = {
58079
58080
  on: "on",
58080
58081
  alsoAt: "also at",
58081
58082
  snippetLabel: "`snippet` to copy into the citation",
58083
+ renderedAvailable: "**THE RENDERED PAGE IS AVAILABLE.** This audit ingested page captures: the rendered page is on disk under `.ultra11y/pages/<id>/` \u2014 `dom.html` (the DOM the browser serialized), `styles.json` (computed styles), `boxes.json` (boxes and positions), `axtree.json` (the accessibility tree) and `screen.png`. A needs-rendering criterion \u2014 information by colour, keyboard operability of a script, a pointer gesture \u2014 is decided FROM THOSE FILES: read them as you would read the source. `needs-rendered-dom` stays the right answer for a criterion no capture carries the subject of, and for that alone.",
58082
58084
  incomplete: "INCOMPLETE READING \u2014 a C will be refused on this criterion",
58083
58085
  none: "(no automatic evidence \u2014 decide from source, or leave `manual` with a reason)",
58084
58086
  questions: "To verify manually",
@@ -58124,6 +58126,9 @@ function formatAdjudication(items, lang = "en", standard = CORE2, opts = {}) {
58124
58126
  const { showAlsoAt: shown } = adjudicationLimits(opts.cwd);
58125
58127
  const pack = isCore(standard) ? void 0 : loadPack(standard);
58126
58128
  const out2 = opts.preamble === false ? [] : [s.title, "", s.intro, "", ...s.verdicts, "", s.rule, "", s.then, ""];
58129
+ if (opts.preamble !== false && items.some((it) => it.evidence.some((e) => isSnapshotFile(e.file)))) {
58130
+ out2.push(`> ${s.renderedAvailable}`, "");
58131
+ }
58127
58132
  if (pack && opts.preamble !== false) out2.push(`> ${s.packIntro(pack.name)}`, "");
58128
58133
  for (const it of items) {
58129
58134
  out2.push(`## ${pack ? `${pack.name} ` : ""}${it.criteriaId}${it.title ? ` \u2014 ${it.title}` : ""} _(${it.automatability})_`);
@@ -4,7 +4,7 @@ description: "Use to AUDIT existing HTML/CSS/JSX against WCAG 2.2 AA accessibili
4
4
  when_to_use: "Invoke when the user asks for an accessibility AUDIT or a formal deliverable: audit a repo, site or page against WCAG 2.2 AA or a country standard (RGAA, Section 508, EN 301 549); produce a dated conformance report, a criterion grid, a PRD backlog, or tickets (GitHub/GitLab/Jira); author accessible markup from scratch; wire the repo gate (init --hook/--ci) or a rendered-DOM capture pipeline. For a review of the code UNDER CHANGE (diff, branch, PR), use the `review-a11y` skill instead."
5
5
  license: MIT
6
6
  metadata:
7
- version: 5.11.0
7
+ version: 5.11.1
8
8
  ---
9
9
 
10
10
  # ultra11y — audit WCAG 2.2 AA and write accessible markup
@@ -6,7 +6,7 @@ import { join as join51, relative as relative5, resolve as resolve16, 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.11.0";
9
+ var VERSION = "5.11.1";
10
10
  var SCHEMA_VERSION = 2;
11
11
 
12
12
  // src/audit.ts
@@ -58049,6 +58049,7 @@ var T2 = {
58049
58049
  on: "sur",
58050
58050
  alsoAt: "aussi en",
58051
58051
  snippetLabel: "`snippet` \xE0 copier dans la citation",
58052
+ renderedAvailable: "**RENDU DISPONIBLE.** Cet audit a ing\xE9r\xE9 des captures de page : le rendu de la page est sur le disque, sous `.ultra11y/pages/<id>/` \u2014 `dom.html` (le DOM s\xE9rialis\xE9 par le navigateur), `styles.json` (les styles calcul\xE9s), `boxes.json` (les bo\xEEtes et positions), `axtree.json` (l'arbre d'accessibilit\xE9) et `screen.png`. Un crit\xE8re \xAB \xE0 restituer \xBB \u2014 information par la couleur, op\xE9rabilit\xE9 clavier d'un script, geste au pointeur \u2014 se tranche DEPUIS CES FICHIERS : lisez-les comme vous liriez la source. `needs-rendered-dom` reste la bonne r\xE9ponse pour un crit\xE8re dont aucune capture ne porte le sujet, et pour lui seul.",
58052
58053
  incomplete: "LECTURE INCOMPL\xC8TE \u2014 un \xAB C \xBB sera refus\xE9 sur ce crit\xE8re",
58053
58054
  none: "(aucune \xE9vidence automatique \u2014 d\xE9cidez depuis la source, ou laissez `manual` avec une raison)",
58054
58055
  questions: "\xC0 v\xE9rifier manuellement",
@@ -58079,6 +58080,7 @@ var T2 = {
58079
58080
  on: "on",
58080
58081
  alsoAt: "also at",
58081
58082
  snippetLabel: "`snippet` to copy into the citation",
58083
+ renderedAvailable: "**THE RENDERED PAGE IS AVAILABLE.** This audit ingested page captures: the rendered page is on disk under `.ultra11y/pages/<id>/` \u2014 `dom.html` (the DOM the browser serialized), `styles.json` (computed styles), `boxes.json` (boxes and positions), `axtree.json` (the accessibility tree) and `screen.png`. A needs-rendering criterion \u2014 information by colour, keyboard operability of a script, a pointer gesture \u2014 is decided FROM THOSE FILES: read them as you would read the source. `needs-rendered-dom` stays the right answer for a criterion no capture carries the subject of, and for that alone.",
58082
58084
  incomplete: "INCOMPLETE READING \u2014 a C will be refused on this criterion",
58083
58085
  none: "(no automatic evidence \u2014 decide from source, or leave `manual` with a reason)",
58084
58086
  questions: "To verify manually",
@@ -58124,6 +58126,9 @@ function formatAdjudication(items, lang = "en", standard = CORE2, opts = {}) {
58124
58126
  const { showAlsoAt: shown } = adjudicationLimits(opts.cwd);
58125
58127
  const pack = isCore(standard) ? void 0 : loadPack(standard);
58126
58128
  const out2 = opts.preamble === false ? [] : [s.title, "", s.intro, "", ...s.verdicts, "", s.rule, "", s.then, ""];
58129
+ if (opts.preamble !== false && items.some((it) => it.evidence.some((e) => isSnapshotFile(e.file)))) {
58130
+ out2.push(`> ${s.renderedAvailable}`, "");
58131
+ }
58127
58132
  if (pack && opts.preamble !== false) out2.push(`> ${s.packIntro(pack.name)}`, "");
58128
58133
  for (const it of items) {
58129
58134
  out2.push(`## ${pack ? `${pack.name} ` : ""}${it.criteriaId}${it.title ? ` \u2014 ${it.title}` : ""} _(${it.automatability})_`);
package/src/adjudicate.ts CHANGED
@@ -1134,6 +1134,8 @@ const T = {
1134
1134
  on: "sur",
1135
1135
  alsoAt: "aussi en",
1136
1136
  snippetLabel: "`snippet` à copier dans la citation",
1137
+ renderedAvailable:
1138
+ "**RENDU DISPONIBLE.** Cet audit a ingéré des captures de page : le rendu de la page est sur le disque, sous `.ultra11y/pages/<id>/` — `dom.html` (le DOM sérialisé par le navigateur), `styles.json` (les styles calculés), `boxes.json` (les boîtes et positions), `axtree.json` (l'arbre d'accessibilité) et `screen.png`. Un critère « à restituer » — information par la couleur, opérabilité clavier d'un script, geste au pointeur — se tranche DEPUIS CES FICHIERS : lisez-les comme vous liriez la source. `needs-rendered-dom` reste la bonne réponse pour un critère dont aucune capture ne porte le sujet, et pour lui seul.",
1137
1139
  incomplete: "LECTURE INCOMPLÈTE — un « C » sera refusé sur ce critère",
1138
1140
  none: "(aucune évidence automatique — décidez depuis la source, ou laissez `manual` avec une raison)",
1139
1141
  questions: "À vérifier manuellement",
@@ -1165,6 +1167,8 @@ const T = {
1165
1167
  on: "on",
1166
1168
  alsoAt: "also at",
1167
1169
  snippetLabel: "`snippet` to copy into the citation",
1170
+ renderedAvailable:
1171
+ "**THE RENDERED PAGE IS AVAILABLE.** This audit ingested page captures: the rendered page is on disk under `.ultra11y/pages/<id>/` — `dom.html` (the DOM the browser serialized), `styles.json` (computed styles), `boxes.json` (boxes and positions), `axtree.json` (the accessibility tree) and `screen.png`. A needs-rendering criterion — information by colour, keyboard operability of a script, a pointer gesture — is decided FROM THOSE FILES: read them as you would read the source. `needs-rendered-dom` stays the right answer for a criterion no capture carries the subject of, and for that alone.",
1168
1172
  incomplete: "INCOMPLETE READING — a C will be refused on this criterion",
1169
1173
  none: "(no automatic evidence — decide from source, or leave `manual` with a reason)",
1170
1174
  questions: "To verify manually",
@@ -1303,6 +1307,21 @@ export function formatAdjudication(
1303
1307
  const { showAlsoAt: shown } = adjudicationLimits(opts.cwd);
1304
1308
  const pack = isCore(standard) ? undefined : loadPack(standard);
1305
1309
  const out: string[] = opts.preamble === false ? [] : [s.title, "", s.intro, "", ...s.verdicts, "", s.rule, "", s.then, ""];
1310
+ // THE RENDERED PAGE, WHEN THERE IS ONE.
1311
+ //
1312
+ // A `needs-rendering` criterion used to arrive with one instruction — answer
1313
+ // `needs-rendered-dom`, let `scan` deal with it — and on an audit that has just ingested
1314
+ // thirty-five snapshots that is simply untrue: the rendered DOM is on disk, with its computed
1315
+ // styles, its boxes and its accessibility tree. Measured on a real run, 3.1, 7.3 and 12.9 came
1316
+ // back « needs a rendered DOM » while `.ultra11y/pages/` held the very captures that settle
1317
+ // them. No budget fixes that; the tool was telling the adjudicator to give up.
1318
+ //
1319
+ // Keyed on the harvest itself rather than on a flag: if an anchor points into a capture, the
1320
+ // capture is there. On a source-only audit the note stays silent, because there
1321
+ // `needs-rendered-dom` IS the correct answer and saying otherwise would invite a guess.
1322
+ if (opts.preamble !== false && items.some((it) => it.evidence.some((e) => isSnapshotFile(e.file)))) {
1323
+ out.push(`> ${s.renderedAvailable}`, "");
1324
+ }
1306
1325
  if (pack && opts.preamble !== false) out.push(`> ${s.packIntro(pack.name)}`, "");
1307
1326
  for (const it of items) {
1308
1327
  out.push(`## ${pack ? `${pack.name} ` : ""}${it.criteriaId}${it.title ? ` — ${it.title}` : ""} _(${it.automatability})_`);
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.11.0";
3
+ export const VERSION = "5.11.1";
4
4
  export const SCHEMA_VERSION = 2;
5
5
 
6
6
  // Lang = the UI FRAME's language — the `L` localization tables each module (report,