ultra11y 5.10.0 → 5.11.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/package.json +1 -1
- package/scripts/ultra11y.mjs +8 -2
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +8 -2
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/references/ci.md +9 -0
- package/skills/ultra11y/scripts/ultra11y.mjs +8 -2
- package/src/adjudicate.ts +16 -1
- 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": "5.
|
|
13
|
+
"version": "5.11.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": "5.
|
|
4
|
+
"version": "5.11.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": "5.
|
|
4
|
+
"version": "5.11.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 = "5.
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "5.11.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.
|
|
3
|
+
"version": "5.11.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",
|
package/scripts/ultra11y.mjs
CHANGED
|
@@ -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.
|
|
9
|
+
var VERSION = "5.11.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -58208,10 +58208,16 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58208
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58209
58209
|
}
|
|
58210
58210
|
var PREFILLED_CITATIONS = 3;
|
|
58211
|
+
var CITATION_SNIPPET_MAX = 120;
|
|
58211
58212
|
function slimAdjudicationItems(items) {
|
|
58212
58213
|
return items.map((it) => {
|
|
58213
58214
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58214
|
-
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58215
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58216
|
+
file: e.file,
|
|
58217
|
+
line: e.line,
|
|
58218
|
+
...e.selector ? { selector: e.selector } : {},
|
|
58219
|
+
...e.snippet ? { snippet: e.snippet.slice(0, CITATION_SNIPPET_MAX) } : {}
|
|
58220
|
+
}));
|
|
58215
58221
|
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58216
58222
|
});
|
|
58217
58223
|
}
|
|
@@ -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.
|
|
8
|
+
version: 5.11.0
|
|
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.
|
|
9
|
+
var VERSION = "5.11.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -58208,10 +58208,16 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58208
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58209
58209
|
}
|
|
58210
58210
|
var PREFILLED_CITATIONS = 3;
|
|
58211
|
+
var CITATION_SNIPPET_MAX = 120;
|
|
58211
58212
|
function slimAdjudicationItems(items) {
|
|
58212
58213
|
return items.map((it) => {
|
|
58213
58214
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58214
|
-
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58215
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58216
|
+
file: e.file,
|
|
58217
|
+
line: e.line,
|
|
58218
|
+
...e.selector ? { selector: e.selector } : {},
|
|
58219
|
+
...e.snippet ? { snippet: e.snippet.slice(0, CITATION_SNIPPET_MAX) } : {}
|
|
58220
|
+
}));
|
|
58215
58221
|
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58216
58222
|
});
|
|
58217
58223
|
}
|
package/skills/ultra11y/SKILL.md
CHANGED
|
@@ -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.
|
|
7
|
+
version: 5.11.0
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -107,6 +107,14 @@ the refreshed ledger, and a pull-request job that only replays it.
|
|
|
107
107
|
|
|
108
108
|
## Adjudicating the judgment criteria in CI (`adjudicate`)
|
|
109
109
|
|
|
110
|
+
> **One pass is not always enough, and not because of the criteria.** The adjudicator can stop
|
|
111
|
+
> early: measured on a real run, `num_turns: 22` against a budget of 228, `is_error: false`, and
|
|
112
|
+
> 42 criteria still `verdict: null` — a whole worklist abandoned with no error to show for it.
|
|
113
|
+
> `adjudicate-passes: "3"` sends it round again on the residue. Each pass re-derives the worklist
|
|
114
|
+
> with `verify --manual`, which by construction holds only what is still `manual` (never reached,
|
|
115
|
+
> or ruled and refused by the gate, carrying its refusal), so a pass costs the remainder and
|
|
116
|
+
> nothing more — and a run that decided everything skips the rest before any model is invoked.
|
|
117
|
+
|
|
110
118
|
`adjudicate` is what FILLS the ledger — opt-in, in two modes. It runs **after** the replay, so a
|
|
111
119
|
paid pass only ever covers what the ledger did not: on a repository whose ledger is current, it
|
|
112
120
|
has nothing left to rule on and costs nothing.
|
|
@@ -126,6 +134,7 @@ steps:
|
|
|
126
134
|
| `adjudicate` | `none` | `api` · `agent` · `none` |
|
|
127
135
|
| `adjudicate-model` | *(empty)* | model id for `api`; else `$ULTRA11Y_LLM_MODEL`, else the engine default |
|
|
128
136
|
| `adjudicate-max-turns` | *(empty)* | turn budget for `agent`; empty derives it from the worklist |
|
|
137
|
+
| `adjudicate-passes` | `1` | how many times `agent` may go round; each pass re-derives the worklist from what is STILL undecided. Capped at 3 |
|
|
129
138
|
| `gate-adjudicated` | `false` | let a model-ruled NC fail the job |
|
|
130
139
|
|
|
131
140
|
**The turn budget is derived, and that matters more than it sounds.** The runbook is sequential
|
|
@@ -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.
|
|
9
|
+
var VERSION = "5.11.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
|
|
12
12
|
// src/audit.ts
|
|
@@ -58208,10 +58208,16 @@ function writeAdjudication(items, outDir, opts) {
|
|
|
58208
58208
|
return { todoPath, mdPath, verdictsPath, itemsDir, count: items.length };
|
|
58209
58209
|
}
|
|
58210
58210
|
var PREFILLED_CITATIONS = 3;
|
|
58211
|
+
var CITATION_SNIPPET_MAX = 120;
|
|
58211
58212
|
function slimAdjudicationItems(items) {
|
|
58212
58213
|
return items.map((it) => {
|
|
58213
58214
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
58214
|
-
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58215
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
58216
|
+
file: e.file,
|
|
58217
|
+
line: e.line,
|
|
58218
|
+
...e.selector ? { selector: e.selector } : {},
|
|
58219
|
+
...e.snippet ? { snippet: e.snippet.slice(0, CITATION_SNIPPET_MAX) } : {}
|
|
58220
|
+
}));
|
|
58215
58221
|
return { ...rest, evidence: [], ...citations.length ? { citations } : {} };
|
|
58216
58222
|
});
|
|
58217
58223
|
}
|
package/src/adjudicate.ts
CHANGED
|
@@ -1450,6 +1450,10 @@ export function writeAdjudication(
|
|
|
1450
1450
|
* for the population; the whole set is in the brief, and `occurrences` travels with each. */
|
|
1451
1451
|
const PREFILLED_CITATIONS = 3;
|
|
1452
1452
|
|
|
1453
|
+
/** Characters of the snippet a pre-filled citation carries. Enough to identify the element to
|
|
1454
|
+
* a reader of the diff; the grounding matches on the anchor, not on the length. */
|
|
1455
|
+
const CITATION_SNIPPET_MAX = 120;
|
|
1456
|
+
|
|
1453
1457
|
export function slimAdjudicationItems(items: AdjudicationItem[]): AdjudicationItem[] {
|
|
1454
1458
|
return items.map((it) => {
|
|
1455
1459
|
const { evidence: _evidence, evidenceTruncated: _truncated, ...rest } = it;
|
|
@@ -1471,7 +1475,18 @@ export function slimAdjudicationItems(items: AdjudicationItem[]): AdjudicationIt
|
|
|
1471
1475
|
// `population` and `evidenceComplete` are kept for the same reason they always were: they
|
|
1472
1476
|
// are two numbers, not bulk, and they tell the adjudicator how much of the subject it is
|
|
1473
1477
|
// actually looking at.
|
|
1474
|
-
|
|
1478
|
+
// MINIMAL, and that is not a detail: the first cut of this pre-filled the whole Evidence
|
|
1479
|
+
// object, `alsoAt` included — 167 sibling anchors on one criterion — and turned the file
|
|
1480
|
+
// the prompt calls "the small one to write" into 367 KB. Measured: the adjudicator stopped
|
|
1481
|
+
// after 22 turns of a 228 budget, filled nothing, and every criterion came back
|
|
1482
|
+
// `unadjudicated`. A citation only ever needs to say WHICH element; the population, the
|
|
1483
|
+
// siblings and the note belong to the brief, which is the file to READ.
|
|
1484
|
+
const citations = it.evidence.slice(0, PREFILLED_CITATIONS).map((e) => ({
|
|
1485
|
+
file: e.file,
|
|
1486
|
+
line: e.line,
|
|
1487
|
+
...(e.selector ? { selector: e.selector } : {}),
|
|
1488
|
+
...(e.snippet ? { snippet: e.snippet.slice(0, CITATION_SNIPPET_MAX) } : {}),
|
|
1489
|
+
}));
|
|
1475
1490
|
return { ...rest, evidence: [], ...(citations.length ? { citations } : {}) } as AdjudicationItem;
|
|
1476
1491
|
});
|
|
1477
1492
|
}
|
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.
|
|
3
|
+
export const VERSION = "5.11.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,
|