ultra11y 5.54.3 → 5.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.opencode/plugins/ultra11y.js +1 -1
- package/package.json +1 -1
- package/scripts/ultra11y.mjs +6 -3
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +6 -3
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/scripts/ultra11y.mjs +6 -3
- package/skills/ultra11y/templates/gitlab-ci.yml +1 -1
- package/src/adjudicate-subjects.ts +15 -2
- package/src/types.ts +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "ultra11y",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "RGAA 4.1.2 accessibility audits on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports in Claude Code.",
|
|
13
|
-
"version": "5.54.
|
|
13
|
+
"version": "5.54.4",
|
|
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": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.54.
|
|
4
|
+
"version": "5.54.4",
|
|
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": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.54.
|
|
4
|
+
"version": "5.54.4",
|
|
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.54.
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "5.54.4";
|
|
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.54.
|
|
3
|
+
"version": "5.54.4",
|
|
4
4
|
"description": "Audit d'accessibilité RGAA 4.1.2, le référentiel de l'État : rapport daté, grille des 106 critères, backlog et tickets. Moteur statique, navigateur et jugement IA contre-vérifié. Il ne déclare jamais conforme ce qu'il n'a pas vérifié. Socle WCAG 2.2 AA.",
|
|
5
5
|
"homepage": "https://socialgouv.github.io/ultra11y/",
|
|
6
6
|
"type": "module",
|
package/scripts/ultra11y.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { join as join53, relative as relative6, resolve as resolve18, 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.54.
|
|
9
|
+
var VERSION = "5.54.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -48507,11 +48507,12 @@ var PROBE_KEYS = {
|
|
|
48507
48507
|
"4.1.3": ["liveRegion"]
|
|
48508
48508
|
};
|
|
48509
48509
|
var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
|
|
48510
|
+
var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
|
|
48510
48511
|
var SUBJECTS = {
|
|
48511
48512
|
// Every image-like element and the alternative it carries. Class = (alt, src): the same
|
|
48512
48513
|
// logo on 38 pages is one decision, not 38.
|
|
48513
48514
|
images: (docs) => docs.flatMap(
|
|
48514
|
-
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2).map((e) => {
|
|
48515
|
+
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
|
|
48515
48516
|
const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
|
|
48516
48517
|
const figure = ancestors(e).some((a) => a.tag === "figure");
|
|
48517
48518
|
return h(
|
|
@@ -48783,7 +48784,9 @@ var SUBJECTS = {
|
|
|
48783
48784
|
)
|
|
48784
48785
|
),
|
|
48785
48786
|
...d.elements.filter((e) => e.tag !== "html" && attr(e, "lang") !== void 0).map((e) => h(d, e, `lang="${attr(e, "lang")}" text="${t(e, 40)}"`, `lang|${attr(e, "lang")}|${t(e, 40)}`)),
|
|
48786
|
-
...d.elements.filter(
|
|
48787
|
+
...d.elements.filter(
|
|
48788
|
+
(e) => e.children.some((c2) => c2.type === "text" && c2.data.trim() !== "") && FOREIGN_LEXICON.test(textContent(e)) && attr(e, "lang") === void 0 && roleOf(e) !== "img" && !insideRoleImg(e)
|
|
48789
|
+
).map(
|
|
48787
48790
|
(e) => h(
|
|
48788
48791
|
d,
|
|
48789
48792
|
e,
|
|
@@ -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.54.
|
|
6
|
+
version: 5.54.4
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# review-a11y — accessibility review of changed code
|
|
@@ -6,7 +6,7 @@ import { join as join53, relative as relative6, resolve as resolve18, 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.54.
|
|
9
|
+
var VERSION = "5.54.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -48507,11 +48507,12 @@ var PROBE_KEYS = {
|
|
|
48507
48507
|
"4.1.3": ["liveRegion"]
|
|
48508
48508
|
};
|
|
48509
48509
|
var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
|
|
48510
|
+
var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
|
|
48510
48511
|
var SUBJECTS = {
|
|
48511
48512
|
// Every image-like element and the alternative it carries. Class = (alt, src): the same
|
|
48512
48513
|
// logo on 38 pages is one decision, not 38.
|
|
48513
48514
|
images: (docs) => docs.flatMap(
|
|
48514
|
-
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2).map((e) => {
|
|
48515
|
+
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
|
|
48515
48516
|
const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
|
|
48516
48517
|
const figure = ancestors(e).some((a) => a.tag === "figure");
|
|
48517
48518
|
return h(
|
|
@@ -48783,7 +48784,9 @@ var SUBJECTS = {
|
|
|
48783
48784
|
)
|
|
48784
48785
|
),
|
|
48785
48786
|
...d.elements.filter((e) => e.tag !== "html" && attr(e, "lang") !== void 0).map((e) => h(d, e, `lang="${attr(e, "lang")}" text="${t(e, 40)}"`, `lang|${attr(e, "lang")}|${t(e, 40)}`)),
|
|
48786
|
-
...d.elements.filter(
|
|
48787
|
+
...d.elements.filter(
|
|
48788
|
+
(e) => e.children.some((c2) => c2.type === "text" && c2.data.trim() !== "") && FOREIGN_LEXICON.test(textContent(e)) && attr(e, "lang") === void 0 && roleOf(e) !== "img" && !insideRoleImg(e)
|
|
48789
|
+
).map(
|
|
48787
48790
|
(e) => h(
|
|
48788
48791
|
d,
|
|
48789
48792
|
e,
|
package/skills/ultra11y/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: ultra11y
|
|
|
3
3
|
description: "Use to AUDIT a site, repository, or page against RGAA 4.1.2, the French State's accessibility standard (référentiel de l'État), on a WCAG 2.2 AA core (other country standards as packs); 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 97 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 and never declare conforming what was not verified. 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.54.
|
|
6
|
+
version: 5.54.4
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -6,7 +6,7 @@ import { join as join53, relative as relative6, resolve as resolve18, 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.54.
|
|
9
|
+
var VERSION = "5.54.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -48507,11 +48507,12 @@ var PROBE_KEYS = {
|
|
|
48507
48507
|
"4.1.3": ["liveRegion"]
|
|
48508
48508
|
};
|
|
48509
48509
|
var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
|
|
48510
|
+
var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
|
|
48510
48511
|
var SUBJECTS = {
|
|
48511
48512
|
// Every image-like element and the alternative it carries. Class = (alt, src): the same
|
|
48512
48513
|
// logo on 38 pages is one decision, not 38.
|
|
48513
48514
|
images: (docs) => docs.flatMap(
|
|
48514
|
-
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2).map((e) => {
|
|
48515
|
+
(d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
|
|
48515
48516
|
const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
|
|
48516
48517
|
const figure = ancestors(e).some((a) => a.tag === "figure");
|
|
48517
48518
|
return h(
|
|
@@ -48783,7 +48784,9 @@ var SUBJECTS = {
|
|
|
48783
48784
|
)
|
|
48784
48785
|
),
|
|
48785
48786
|
...d.elements.filter((e) => e.tag !== "html" && attr(e, "lang") !== void 0).map((e) => h(d, e, `lang="${attr(e, "lang")}" text="${t(e, 40)}"`, `lang|${attr(e, "lang")}|${t(e, 40)}`)),
|
|
48786
|
-
...d.elements.filter(
|
|
48787
|
+
...d.elements.filter(
|
|
48788
|
+
(e) => e.children.some((c2) => c2.type === "text" && c2.data.trim() !== "") && FOREIGN_LEXICON.test(textContent(e)) && attr(e, "lang") === void 0 && roleOf(e) !== "img" && !insideRoleImg(e)
|
|
48789
|
+
).map(
|
|
48787
48790
|
(e) => h(
|
|
48788
48791
|
d,
|
|
48789
48792
|
e,
|
|
@@ -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.54.
|
|
30
|
+
ULTRA11Y_VERSION: '5.54.4'
|
|
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
|
|
@@ -476,6 +476,12 @@ const MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1
|
|
|
476
476
|
|
|
477
477
|
// ---- the subjects -------------------------------------------------------------------------
|
|
478
478
|
|
|
479
|
+
/** Inside a `role="img"` container: the children of `img` are presentational (WAI-ARIA), so
|
|
480
|
+
* nothing below it — no alt, no aria-label, no text — is in the accessibility tree. The
|
|
481
|
+
* container IS the image. Only `img`: the children of a `button` or a `tab` still give their
|
|
482
|
+
* text, and an image's alt, to the accessible name (#108). */
|
|
483
|
+
const insideRoleImg = (e: El): boolean => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
|
|
484
|
+
|
|
479
485
|
export const SUBJECTS: Record<string, Subject> = {
|
|
480
486
|
// Every image-like element and the alternative it carries. Class = (alt, src): the same
|
|
481
487
|
// logo on 38 pages is one decision, not 38.
|
|
@@ -485,7 +491,7 @@ export const SUBJECTS: Record<string, Subject> = {
|
|
|
485
491
|
// RGAA 1.1.3 is about nothing else: an image button is an image.
|
|
486
492
|
.concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image"))
|
|
487
493
|
.concat(d.elements.filter((e) => attr(e, "role") === "img"))
|
|
488
|
-
.filter((e, i, a) => a.indexOf(e) === i)
|
|
494
|
+
.filter((e, i, a) => a.indexOf(e) === i && !insideRoleImg(e))
|
|
489
495
|
.map((e) => {
|
|
490
496
|
// The other mechanisms the RGAA tests name, when present — an image's verdict turns
|
|
491
497
|
// on title, aria-labelledby, aria-hidden and its caption as much as on alt.
|
|
@@ -849,7 +855,14 @@ export const SUBJECTS: Record<string, Subject> = {
|
|
|
849
855
|
.filter((e) => e.tag !== "html" && attr(e, "lang") !== undefined)
|
|
850
856
|
.map((e) => h(d, e, `lang="${attr(e, "lang")}" text="${t(e, 40)}"`, `lang|${attr(e, "lang")}|${t(e, 40)}`)),
|
|
851
857
|
...d.elements
|
|
852
|
-
.filter(
|
|
858
|
+
.filter(
|
|
859
|
+
(e) =>
|
|
860
|
+
e.children.some((c) => c.type === "text" && c.data.trim() !== "") &&
|
|
861
|
+
FOREIGN_LEXICON.test(textContent(e)) &&
|
|
862
|
+
attr(e, "lang") === undefined &&
|
|
863
|
+
roleOf(e) !== "img" &&
|
|
864
|
+
!insideRoleImg(e),
|
|
865
|
+
)
|
|
853
866
|
.map((e) =>
|
|
854
867
|
h(
|
|
855
868
|
d,
|
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.54.
|
|
3
|
+
export const VERSION = "5.54.4";
|
|
4
4
|
export const SCHEMA_VERSION = 2;
|
|
5
5
|
|
|
6
6
|
// Lang = the UI FRAME's language — the `L` localization tables each module (report,
|