ultra11y 4.0.1 → 4.2.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.
- 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/README.md +28 -0
- package/package.json +1 -1
- package/scripts/ultra11y.mjs +1685 -344
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +1685 -344
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/references/ci.md +109 -0
- package/skills/ultra11y/references/pages.md +76 -0
- package/skills/ultra11y/scripts/ultra11y.mjs +1685 -344
- package/src/annotate.ts +180 -15
- package/src/auditor.ts +115 -43
- package/src/cli.ts +187 -9
- package/src/dev.ts +23 -75
- package/src/evidence.ts +72 -37
- package/src/html-emit.ts +327 -0
- package/src/html-report.ts +482 -0
- package/src/html.ts +261 -0
- package/src/mcp/handlers.ts +11 -1
- package/src/mcp/tools.ts +10 -1
- package/src/pages-report.ts +40 -21
- package/src/pages.ts +28 -4
- package/src/report.ts +84 -31
- package/src/tickets/providers/github.ts +9 -4
- package/src/types.ts +1 -1
|
@@ -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": "4.0
|
|
13
|
+
"version": "4.2.0",
|
|
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": "4.0
|
|
4
|
+
"version": "4.2.0",
|
|
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": "4.0
|
|
4
|
+
"version": "4.2.0",
|
|
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 = "4.0
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "4.2.0";
|
|
31
31
|
|
|
32
32
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
33
33
|
|
package/README.md
CHANGED
|
@@ -409,6 +409,34 @@ node scripts/ultra11y.mjs report --in audit.json --out audits # audits/wcag
|
|
|
409
409
|
node scripts/ultra11y.mjs check --report audits/wcag-YYYY-MM-DD.md # integrity gate
|
|
410
410
|
```
|
|
411
411
|
|
|
412
|
+
### A report someone will actually open
|
|
413
|
+
|
|
414
|
+
`--html` turns the audit into a page: `audits/index.html` as the entry point, plus — from
|
|
415
|
+
`report` — a detachable single file that prints to PDF. Self-contained — no script, no
|
|
416
|
+
external asset, nothing pointing outside the directory — and it passes this engine's own
|
|
417
|
+
accessibility audit, which is the least a tool like this owes. `pages --html` writes the
|
|
418
|
+
navigable sheets only: **one composite per artifact**, or every inlined crop travels twice.
|
|
419
|
+
|
|
420
|
+
```sh
|
|
421
|
+
node scripts/ultra11y.mjs report --in audit.json --html --evidence --out audits
|
|
422
|
+
node scripts/ultra11y.mjs pages --in audit.json --format report --split page \
|
|
423
|
+
--evidence --html --out audits/pages
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
`--evidence` illustrates each non-conformity with an **annotated crop of the offending
|
|
427
|
+
element**, cut from the page snapshot: `selectorHint` is lossy, and a rendered-tier finding on
|
|
428
|
+
a client-rendered page is anchored at `dom.html:2` whatever it is really about. It illustrates
|
|
429
|
+
the Markdown conformance report as much as the HTML — one set of files in `assets/`, referenced
|
|
430
|
+
by every document that shows the defect — so `--html` is not required to get pictures.
|
|
431
|
+
|
|
432
|
+
It needs snapshots, and it says per page and per criterion what it could not draw and why — an
|
|
433
|
+
occurrence with no picture must never read as an occurrence with no defect. It distinguishes
|
|
434
|
+
an occurrence *folded* into another's picture from a distinct defect a limit *cut off*, because
|
|
435
|
+
only the second is a gap.
|
|
436
|
+
|
|
437
|
+
In the GitHub Action both are **on by default**, so the uploaded artifact has a front door
|
|
438
|
+
without changing a workflow. See `references/ci.md`.
|
|
439
|
+
|
|
412
440
|
The skill (`skills/ultra11y/SKILL.md` + `references/`) teaches the agent when and how to run these, how to complete the manual criteria, and the native-first authoring doctrine.
|
|
413
441
|
|
|
414
442
|
## Development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.2.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
|
"type": "module",
|
|
6
6
|
"packageManager": "pnpm@10.33.0",
|