ultra11y 5.58.3 → 5.58.5

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 (50) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.codex-plugin/plugin.json +1 -1
  4. package/.opencode/plugins/ultra11y.js +1 -1
  5. package/README.md +5 -10
  6. package/package.json +9 -5
  7. package/scripts/ultra11y.mjs +30448 -43556
  8. package/scripts/vendor/wcag-2.2-techniques.json +4 -4
  9. package/skills/review-a11y/SKILL.md +1 -1
  10. package/skills/review-a11y/scripts/ultra11y.mjs +30448 -43556
  11. package/skills/ultra11y/SKILL.md +2 -3
  12. package/skills/ultra11y/references/cross-file.md +10 -3
  13. package/skills/ultra11y/references/devtools.md +0 -7
  14. package/skills/ultra11y/references/judgment.md +2 -2
  15. package/skills/ultra11y/references/mcp.md +4 -1
  16. package/skills/ultra11y/references/methodology.md +4 -2
  17. package/skills/ultra11y/references/orchestrators.md +9 -2
  18. package/skills/ultra11y/references/pages.md +21 -11
  19. package/skills/ultra11y/scripts/ultra11y.mjs +30448 -43556
  20. package/skills/ultra11y/templates/gitlab-ci.yml +1 -1
  21. package/src/affected.ts +6 -6
  22. package/src/audit.ts +55 -0
  23. package/src/cli.ts +8 -5
  24. package/src/data/guidance/wcag.json +2 -2
  25. package/src/dev.ts +4 -126
  26. package/src/glob.ts +43 -24
  27. package/src/graph/graph.ts +77 -1
  28. package/src/graph/imports.ts +9 -3
  29. package/src/graph/resolve.ts +4 -5
  30. package/src/graph/spec-resolve.ts +181 -0
  31. package/src/graph/tsconfig.ts +7 -7
  32. package/src/html-report.ts +2 -2
  33. package/src/llm.ts +2 -2
  34. package/src/mcp/handlers.ts +2 -1
  35. package/src/mcp/protocol.ts +1 -2
  36. package/src/mcp/resources.ts +2 -3
  37. package/src/pages-report.ts +32 -24
  38. package/src/pages.ts +84 -23
  39. package/src/pixel.ts +2 -9
  40. package/src/report.ts +78 -37
  41. package/src/rules/cross-registry.ts +30 -3
  42. package/src/rules/mandatory.ts +17 -3
  43. package/src/rules/next-metadata.ts +39 -0
  44. package/src/types.ts +1 -1
  45. package/src/walk.ts +272 -0
  46. package/scripts/build-extension-icons.mjs +0 -105
  47. package/skills/ultra11y/references/extension.md +0 -52
  48. package/src/graph/engine-resolve.ts +0 -0
  49. package/src/vendor/codeindex-engine.d.mts +0 -1572
  50. package/src/vendor/codeindex-engine.mjs +0 -17693
@@ -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.58.3",
13
+ "version": "5.58.5",
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.58.3",
4
+ "version": "5.58.5",
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.58.3",
4
+ "version": "5.58.5",
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",
@@ -44,7 +44,7 @@ import { fileURLToPath } from "node:url";
44
44
  // does not carry it, so a user's own ultra11y.js is never clobbered. Kept as text, not as
45
45
  // an export (see above).
46
46
  const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
47
- const ULTRA11Y_PLUGIN_VERSION = "5.58.3";
47
+ const ULTRA11Y_PLUGIN_VERSION = "5.58.5";
48
48
  const PLUGIN_ID = "ultra11y";
49
49
  const SKILL_NAMES = ["ultra11y", "review-a11y"];
50
50
 
package/README.md CHANGED
@@ -397,11 +397,6 @@ or malformed file is reported unreadable. See `skills/ultra11y/references/audit.
397
397
  a snapshot is a full document, the page-scoped rules finally run — RGAA **8.3** (`lang`),
398
398
  **8.5/8.6** (`title`) — and every finding carries both its page and the source file that
399
399
  rendered it. See `references/e2e.md` and `references/pages.md`.
400
- - **In your browser** — a Chrome extension (`extension/`) audits the page you are *looking at*:
401
- a staging build, a page behind a login you walked through by hand. It is a client of the
402
- side-car, not a second engine — it fetches the engine's own collector rather than copying it,
403
- its manifest can reach **loopback and nothing else**, and the popup decides nothing the engine
404
- did not. See `references/extension.md`.
405
400
  - **While you build** — `dev --next` writes a one-line Next overlay component and `dev` starts
406
401
  a loopback side-car: a floating panel lists the current page's non-conformities as you
407
402
  browse, each linking to its `file:line` in your editor, and `http://127.0.0.1:4111` shows
@@ -451,8 +446,9 @@ or malformed file is reported unreadable. See `skills/ultra11y/references/audit.
451
446
  pages), and a criterion is conforming *by silence* only on a page whose real rendered DOM
452
447
  was audited. An adjudicated non-conformity counts only on the pages its findings are on; an adjudicated
453
448
  conformity stays a claim about the whole run, except on a page with none of the criterion's
454
- subject. Under a country standard, a page's rate uses the overall rate's formula: validated ÷
455
- applicable, so a criterion still to assess keeps it a floor. And `pages --format report [--split page]` turns that into the **deliverable an
449
+ subject. Under a country standard, a page's rate is the RGAA page formula: conforming ÷
450
+ (conforming + non-conforming), the criteria still to assess counted beside it and marking it
451
+ provisional. And `pages --format report [--split page]` turns that into the **deliverable an
456
452
  auditor hands over**: one dossier per page — identity, **screenshot**, rate, *every* criterion
457
453
  of the standard with its status on that page, then each non-conformity as the ordinary auditor
458
454
  block. It re-decides nothing and invents no format, so a page sheet and the compliance report
@@ -599,8 +595,8 @@ outside GitHub: `ultra11y affected --since origin/main --json`, your capture, th
599
595
 
600
596
  ### Optional model tier (`judge`) — for the runs with no agent in the loop
601
597
 
602
- Inside a coding agent the judgment criteria are the agent's to rule on. Outside one — CI, a
603
- browser extension, an E2E run — nobody does, so they stay « à évaluer ». `judge` adjudicates
598
+ Inside a coding agent the judgment criteria are the agent's to rule on. Outside one — CI or an
599
+ E2E run — nobody does, so they stay « à évaluer ». `judge` adjudicates
604
600
  them with a model, and is a **caller, not a second judge**: the worklist, the evidence and the
605
601
  prompt are `verify --manual`'s own, and the verdicts pass through the **same fail-closed gate**
606
602
  an agent's do. An unjustified `C`, an `NC` citing a line that does not resolve, a verdict for a
@@ -721,7 +717,6 @@ pnpm run check:build # asserts every committed artefact is reproducible from
721
717
  pnpm run build:wcag # re-derive src/data/wcag.json from the vendored W3C source
722
718
  pnpm run build:pack:rgaa # re-build the RGAA pack from the vendored DINUM source
723
719
  pnpm run build:criteria # regenerate skills/ultra11y/references/criteria.md
724
- pnpm run build:icons # re-generate the browser extension's icons from their source
725
720
  ```
726
721
 
727
722
  Releases are cut automatically by **semantic-release** on push to `main` (GitHub release +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.58.3",
3
+ "version": "5.58.5",
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",
@@ -58,7 +58,7 @@
58
58
  "lint:fix": "biome check --write .",
59
59
  "format": "biome format --write .",
60
60
  "verify:bundle": "node scripts/verify-skill-bundle.mjs",
61
- "check:build": "tsup && node scripts/copy-bundle.mjs && git diff --exit-code -- scripts/ultra11y.mjs skills/ultra11y/scripts/ultra11y.mjs skills/review-a11y/scripts/ultra11y.mjs dist && node scripts/build-extension-icons.mjs --check && node scripts/verify-skill-bundle.mjs",
61
+ "check:build": "tsup && node scripts/copy-bundle.mjs && git diff --exit-code -- scripts/ultra11y.mjs skills/ultra11y/scripts/ultra11y.mjs skills/review-a11y/scripts/ultra11y.mjs dist && node scripts/verify-skill-bundle.mjs",
62
62
  "build:wcag": "node scripts/build-standards.mjs",
63
63
  "check:standards": "node scripts/build-standards.mjs --check",
64
64
  "build:pack:rgaa": "node scripts/build-pack-rgaa.mjs",
@@ -77,8 +77,7 @@
77
77
  "demo:refuge:build": "python3 demos/refuge-rgaa/build.py",
78
78
  "demo:refuge:check": "python3 demos/refuge-rgaa/verify-files.py",
79
79
  "demo:refuge:test": "node demos/refuge-rgaa/verify-browser.mjs",
80
- "release": "semantic-release",
81
- "build:icons": "node scripts/build-extension-icons.mjs"
80
+ "release": "semantic-release"
82
81
  },
83
82
  "license": "MIT",
84
83
  "author": "maxgfr",
@@ -91,7 +90,11 @@
91
90
  "@babel/parser": "^8.0.0",
92
91
  "@playwright/test": "^1.62.1",
93
92
  "domhandler": "^6.0.1",
94
- "htmlparser2": "^12.0.0"
93
+ "fdir": "^6.5.0",
94
+ "get-tsconfig": "^4.14.3",
95
+ "htmlparser2": "^12.0.0",
96
+ "ignore": "^7.0.16",
97
+ "picomatch": "^4.0.4"
95
98
  },
96
99
  "devDependencies": {
97
100
  "@biomejs/biome": "^2.5.1",
@@ -100,6 +103,7 @@
100
103
  "@semantic-release/git": "^10.0.1",
101
104
  "@semantic-release/npm": "^13.1.5",
102
105
  "@types/node": "^26.0.1",
106
+ "@types/picomatch": "^4.0.3",
103
107
  "@vitest/coverage-v8": "^4.1.9",
104
108
  "jsdom": "^29.1.1",
105
109
  "semantic-release": "^25.0.8",