ultra11y 5.33.1 → 5.34.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 +19 -3
- package/scripts/vendor/wcag-2.2-fr.json +1 -1
- package/scripts/vendor/wcag-2.2-sc-universe.json +1 -1
- package/scripts/vendor/wcag-2.2-techniques.json +1 -1
- package/scripts/vendor/wcag-2.2-text.json +1 -1
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +19 -3
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/scripts/ultra11y.mjs +19 -3
- package/src/agent-cli.ts +12 -0
- package/src/cli.ts +21 -2
- package/src/data/wcag-universe.json +1 -1
- package/src/llm.ts +9 -0
- 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.34.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.34.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.34.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.34.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.34.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 join52, 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.34.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
var INAPPLICABLE_STATUS = "C";
|
|
12
12
|
|
|
@@ -2293,7 +2293,7 @@ var wcag_universe_default = {
|
|
|
2293
2293
|
wcagVersion: "2.2",
|
|
2294
2294
|
source: "https://www.w3.org/TR/WCAG22/",
|
|
2295
2295
|
criteriaSource: "https://github.com/w3c/wcag",
|
|
2296
|
-
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-
|
|
2296
|
+
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-25 via `node scripts/build-standards.mjs --refresh-universe`. Classification: core-AA = ships in src/data/wcag.json (the shipped WCAG 2.2 AA core); out-of-core = WCAG AAA; removed = obsolete (4.1.1).",
|
|
2297
2297
|
criteria: [
|
|
2298
2298
|
{
|
|
2299
2299
|
id: "1.1.1",
|
|
@@ -60588,6 +60588,7 @@ function applyRawVerdicts(items, verdicts) {
|
|
|
60588
60588
|
var ALLOWED_TOOLS = "Read,Grep,Glob";
|
|
60589
60589
|
var MAX_ATTEMPTS2 = 4;
|
|
60590
60590
|
var DEFAULT_CLI_MODEL = "claude-haiku-4-5-20251001";
|
|
60591
|
+
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
60591
60592
|
var DEFAULT_TIMEOUT_MS2 = 10 * 6e4;
|
|
60592
60593
|
function realSpawn(argv, input, timeoutMs) {
|
|
60593
60594
|
return new Promise((resolve17, reject) => {
|
|
@@ -60664,6 +60665,7 @@ function cliArgv(opts, items) {
|
|
|
60664
60665
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60665
60666
|
];
|
|
60666
60667
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60668
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60667
60669
|
return argv;
|
|
60668
60670
|
}
|
|
60669
60671
|
function verdictsFromText(text) {
|
|
@@ -60726,6 +60728,7 @@ async function refuteBatchCli(items, prompt, opts, lang = "en") {
|
|
|
60726
60728
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60727
60729
|
];
|
|
60728
60730
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60731
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60729
60732
|
return runCli2(argv, prompt, opts, (env) => {
|
|
60730
60733
|
const structured = env.structured_output?.verdicts;
|
|
60731
60734
|
const raw = Array.isArray(structured) ? structured : verdictsArrayFromText(env.result ?? "");
|
|
@@ -68889,7 +68892,7 @@ Usage:
|
|
|
68889
68892
|
ultra11y orchestrate --run <dir> [--phase adjudicate|verify-report] [--eco] [--list] [--lang auto|en|fr]
|
|
68890
68893
|
ultra11y fix <globs\u2026 | -> [--write] [--iterate] [--changed | --since <ref> | --staged] [--safe] [--include <glob>] [--exclude <glob>] [--ext <list>] [--only <ids>] [--jsx] [--json] [--lang auto|en|fr]
|
|
68891
68894
|
ultra11y init [--hook] [--ci] [--baseline] [--fail-on blocking|major|minor]
|
|
68892
|
-
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68895
|
+
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--effort <level>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68893
68896
|
ultra11y pack check <pack.json> [--guidance <g.json>] [--json] | pack scaffold
|
|
68894
68897
|
ultra11y scan <url|file\u2026> [--runtime auto|local|docker] [--cwd <dir>] [--storage-state <file>] [--no-interact] [--interact-clicks] [--no-snapshot] [--merge <audit.json>] [--out <dir>] [--json]
|
|
68895
68898
|
ultra11y scan --sample [--runtime \u2026] [--cwd <dir>] [--storage-state <file>] [--merge <audit.json>] [--json] (scan the .ultra11yrc.json page sample)
|
|
@@ -69122,6 +69125,8 @@ Options:
|
|
|
69122
69125
|
--provider <id> tickets: auto|github|gitlab|jira. 'auto' reads ULTRA11Y_TICKET_PROVIDER,
|
|
69123
69126
|
then .ultra11yrc.json, then the git remote (Jira is never auto-detected)
|
|
69124
69127
|
--grain <mode> tickets: what one ticket is \u2014 criterion (default) | page | page-criterion | single | file
|
|
69128
|
+
--effort <level> judge (--runner cli): reasoning effort per invocation \u2014 low | medium |
|
|
69129
|
+
high | xhigh | max. Unset leaves the CLI's own default
|
|
69125
69130
|
--transport <t> tickets: auto|cli|rest (mcp: stdio|http). 'auto' prefers the CLI (gh/glab),
|
|
69126
69131
|
falling back to REST when only a token is available. Jira is REST-only
|
|
69127
69132
|
--max-tickets <n> tickets: refuse to file more than n tickets in one run (default 200)
|
|
@@ -69325,6 +69330,7 @@ var VALUE_FLAGS2 = /* @__PURE__ */ new Set([
|
|
|
69325
69330
|
"runner",
|
|
69326
69331
|
"grain",
|
|
69327
69332
|
"max-budget-usd",
|
|
69333
|
+
"effort",
|
|
69328
69334
|
"timeout",
|
|
69329
69335
|
"concurrency",
|
|
69330
69336
|
"out",
|
|
@@ -71460,6 +71466,15 @@ async function cmdJudge(p) {
|
|
|
71460
71466
|
console.error(`ultra11y judge: --grain '${grain}' is not a grain \u2014 expected 'batch' or 'criterion'.`);
|
|
71461
71467
|
return 2;
|
|
71462
71468
|
}
|
|
71469
|
+
const effort = typeof p.flags.effort === "string" ? p.flags.effort : void 0;
|
|
71470
|
+
if (effort !== void 0 && !EFFORT_LEVELS.includes(effort)) {
|
|
71471
|
+
console.error(`ultra11y judge: --effort '${effort}' is not a level \u2014 expected ${EFFORT_LEVELS.map((l) => `'${l}'`).join(", ")}.`);
|
|
71472
|
+
return 2;
|
|
71473
|
+
}
|
|
71474
|
+
if (effort !== void 0 && runner !== "cli") {
|
|
71475
|
+
console.error("ultra11y judge: --effort applies to `--runner cli` only \u2014 the Messages API has no session to set an effort on.");
|
|
71476
|
+
return 2;
|
|
71477
|
+
}
|
|
71463
71478
|
const key2 = typeof p.flags["api-key"] === "string" && p.flags["api-key"] ? p.flags["api-key"] : apiKeyFromEnv();
|
|
71464
71479
|
if (!key2 && runner === "api") {
|
|
71465
71480
|
console.error(
|
|
@@ -71533,6 +71548,7 @@ async function cmdJudge(p) {
|
|
|
71533
71548
|
// requests do. `--concurrency` overrides it for a runner with room.
|
|
71534
71549
|
concurrency: runner === "cli" ? cliConcurrency : void 0,
|
|
71535
71550
|
maxBudgetUsd: Number.isFinite(maxBudgetUsd) ? maxBudgetUsd : void 0,
|
|
71551
|
+
effort,
|
|
71536
71552
|
timeoutMs: Number.isFinite(timeoutMs) ? timeoutMs : void 0,
|
|
71537
71553
|
onCost: (usd) => {
|
|
71538
71554
|
spent += usd;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"wcagVersion": "2.2",
|
|
3
3
|
"source": "https://www.w3.org/TR/WCAG22/",
|
|
4
4
|
"criteriaSource": "https://github.com/w3c/wcag",
|
|
5
|
-
"provenance": "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-
|
|
5
|
+
"provenance": "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-25 via `node scripts/build-standards.mjs --refresh-universe`. Classification: core-AA = ships in src/data/wcag.json (the shipped WCAG 2.2 AA core); out-of-core = WCAG AAA; removed = obsolete (4.1.1).",
|
|
6
6
|
"principles": [
|
|
7
7
|
{
|
|
8
8
|
"number": 1,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"source": "https://github.com/w3c/wcag",
|
|
3
3
|
"understanding": "https://www.w3.org/WAI/WCAG22/Understanding/",
|
|
4
4
|
"license": "W3C Document License (code samples: W3C Software License)",
|
|
5
|
-
"fetchedAt": "2026-08-
|
|
5
|
+
"fetchedAt": "2026-08-25",
|
|
6
6
|
"criteria": {
|
|
7
7
|
"1.1.1": {
|
|
8
8
|
"slug": "non-text-content",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"source": "https://github.com/w3c/wcag",
|
|
3
3
|
"license": "W3C Document License",
|
|
4
|
-
"fetchedAt": "2026-08-
|
|
4
|
+
"fetchedAt": "2026-08-25",
|
|
5
5
|
"criteria": {
|
|
6
6
|
"1.1.1": "All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for the situations listed below.\nControls, Input:\nIf non-text content is a control or accepts user input, then it has a name that describes its purpose. (Refer to Success Criterion 4.1.2 Name, Role, Value for additional requirements for controls and content that accepts user input.)\nTime-Based Media:\nIf non-text content is time-based media, then text alternatives at least provide descriptive identification of the non-text content. (Refer to Guideline 1.2 for additional requirements for media.)\nTest:\nIf non-text content is a test or exercise that would be invalid if presented in text, then text alternatives at least provide descriptive identification of the non-text content.\nSensory:\nIf non-text content is primarily intended to create a specific sensory experience, then text alternatives at least provide descriptive identification of the non-text content.\nCAPTCHA:\nIf the purpose of non-text content is to confirm that content is being accessed by a person rather than a computer, then text alternatives that identify and describe the purpose of the non-text content are provided, and alternative forms of CAPTCHA using output modes for different types of sensory perception are provided to accommodate different disabilities.\nDecoration, Formatting, Invisible:\nIf non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it is implemented in a way that it can be ignored by assistive technology.",
|
|
7
7
|
"1.2.1": "For prerecorded audio-only and prerecorded video-only media, the following are true, except when the audio or video is a media alternative for text and is clearly labeled as such:\nPrerecorded Audio-only:\nAn alternative for time-based media is provided that presents equivalent information for prerecorded audio-only content.\nPrerecorded Video-only:\nEither an alternative for time-based media or an audio track is provided that presents equivalent information for prerecorded video-only content.",
|
|
@@ -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.34.0
|
|
9
9
|
---
|
|
10
10
|
|
|
11
11
|
# review-a11y — accessibility review of changed code
|
|
@@ -6,7 +6,7 @@ import { join as join52, 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.34.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
var INAPPLICABLE_STATUS = "C";
|
|
12
12
|
|
|
@@ -2293,7 +2293,7 @@ var wcag_universe_default = {
|
|
|
2293
2293
|
wcagVersion: "2.2",
|
|
2294
2294
|
source: "https://www.w3.org/TR/WCAG22/",
|
|
2295
2295
|
criteriaSource: "https://github.com/w3c/wcag",
|
|
2296
|
-
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-
|
|
2296
|
+
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-25 via `node scripts/build-standards.mjs --refresh-universe`. Classification: core-AA = ships in src/data/wcag.json (the shipped WCAG 2.2 AA core); out-of-core = WCAG AAA; removed = obsolete (4.1.1).",
|
|
2297
2297
|
criteria: [
|
|
2298
2298
|
{
|
|
2299
2299
|
id: "1.1.1",
|
|
@@ -60588,6 +60588,7 @@ function applyRawVerdicts(items, verdicts) {
|
|
|
60588
60588
|
var ALLOWED_TOOLS = "Read,Grep,Glob";
|
|
60589
60589
|
var MAX_ATTEMPTS2 = 4;
|
|
60590
60590
|
var DEFAULT_CLI_MODEL = "claude-haiku-4-5-20251001";
|
|
60591
|
+
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
60591
60592
|
var DEFAULT_TIMEOUT_MS2 = 10 * 6e4;
|
|
60592
60593
|
function realSpawn(argv, input, timeoutMs) {
|
|
60593
60594
|
return new Promise((resolve17, reject) => {
|
|
@@ -60664,6 +60665,7 @@ function cliArgv(opts, items) {
|
|
|
60664
60665
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60665
60666
|
];
|
|
60666
60667
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60668
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60667
60669
|
return argv;
|
|
60668
60670
|
}
|
|
60669
60671
|
function verdictsFromText(text) {
|
|
@@ -60726,6 +60728,7 @@ async function refuteBatchCli(items, prompt, opts, lang = "en") {
|
|
|
60726
60728
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60727
60729
|
];
|
|
60728
60730
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60731
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60729
60732
|
return runCli2(argv, prompt, opts, (env) => {
|
|
60730
60733
|
const structured = env.structured_output?.verdicts;
|
|
60731
60734
|
const raw = Array.isArray(structured) ? structured : verdictsArrayFromText(env.result ?? "");
|
|
@@ -68889,7 +68892,7 @@ Usage:
|
|
|
68889
68892
|
ultra11y orchestrate --run <dir> [--phase adjudicate|verify-report] [--eco] [--list] [--lang auto|en|fr]
|
|
68890
68893
|
ultra11y fix <globs\u2026 | -> [--write] [--iterate] [--changed | --since <ref> | --staged] [--safe] [--include <glob>] [--exclude <glob>] [--ext <list>] [--only <ids>] [--jsx] [--json] [--lang auto|en|fr]
|
|
68891
68894
|
ultra11y init [--hook] [--ci] [--baseline] [--fail-on blocking|major|minor]
|
|
68892
|
-
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68895
|
+
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--effort <level>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68893
68896
|
ultra11y pack check <pack.json> [--guidance <g.json>] [--json] | pack scaffold
|
|
68894
68897
|
ultra11y scan <url|file\u2026> [--runtime auto|local|docker] [--cwd <dir>] [--storage-state <file>] [--no-interact] [--interact-clicks] [--no-snapshot] [--merge <audit.json>] [--out <dir>] [--json]
|
|
68895
68898
|
ultra11y scan --sample [--runtime \u2026] [--cwd <dir>] [--storage-state <file>] [--merge <audit.json>] [--json] (scan the .ultra11yrc.json page sample)
|
|
@@ -69122,6 +69125,8 @@ Options:
|
|
|
69122
69125
|
--provider <id> tickets: auto|github|gitlab|jira. 'auto' reads ULTRA11Y_TICKET_PROVIDER,
|
|
69123
69126
|
then .ultra11yrc.json, then the git remote (Jira is never auto-detected)
|
|
69124
69127
|
--grain <mode> tickets: what one ticket is \u2014 criterion (default) | page | page-criterion | single | file
|
|
69128
|
+
--effort <level> judge (--runner cli): reasoning effort per invocation \u2014 low | medium |
|
|
69129
|
+
high | xhigh | max. Unset leaves the CLI's own default
|
|
69125
69130
|
--transport <t> tickets: auto|cli|rest (mcp: stdio|http). 'auto' prefers the CLI (gh/glab),
|
|
69126
69131
|
falling back to REST when only a token is available. Jira is REST-only
|
|
69127
69132
|
--max-tickets <n> tickets: refuse to file more than n tickets in one run (default 200)
|
|
@@ -69325,6 +69330,7 @@ var VALUE_FLAGS2 = /* @__PURE__ */ new Set([
|
|
|
69325
69330
|
"runner",
|
|
69326
69331
|
"grain",
|
|
69327
69332
|
"max-budget-usd",
|
|
69333
|
+
"effort",
|
|
69328
69334
|
"timeout",
|
|
69329
69335
|
"concurrency",
|
|
69330
69336
|
"out",
|
|
@@ -71460,6 +71466,15 @@ async function cmdJudge(p) {
|
|
|
71460
71466
|
console.error(`ultra11y judge: --grain '${grain}' is not a grain \u2014 expected 'batch' or 'criterion'.`);
|
|
71461
71467
|
return 2;
|
|
71462
71468
|
}
|
|
71469
|
+
const effort = typeof p.flags.effort === "string" ? p.flags.effort : void 0;
|
|
71470
|
+
if (effort !== void 0 && !EFFORT_LEVELS.includes(effort)) {
|
|
71471
|
+
console.error(`ultra11y judge: --effort '${effort}' is not a level \u2014 expected ${EFFORT_LEVELS.map((l) => `'${l}'`).join(", ")}.`);
|
|
71472
|
+
return 2;
|
|
71473
|
+
}
|
|
71474
|
+
if (effort !== void 0 && runner !== "cli") {
|
|
71475
|
+
console.error("ultra11y judge: --effort applies to `--runner cli` only \u2014 the Messages API has no session to set an effort on.");
|
|
71476
|
+
return 2;
|
|
71477
|
+
}
|
|
71463
71478
|
const key2 = typeof p.flags["api-key"] === "string" && p.flags["api-key"] ? p.flags["api-key"] : apiKeyFromEnv();
|
|
71464
71479
|
if (!key2 && runner === "api") {
|
|
71465
71480
|
console.error(
|
|
@@ -71533,6 +71548,7 @@ async function cmdJudge(p) {
|
|
|
71533
71548
|
// requests do. `--concurrency` overrides it for a runner with room.
|
|
71534
71549
|
concurrency: runner === "cli" ? cliConcurrency : void 0,
|
|
71535
71550
|
maxBudgetUsd: Number.isFinite(maxBudgetUsd) ? maxBudgetUsd : void 0,
|
|
71551
|
+
effort,
|
|
71536
71552
|
timeoutMs: Number.isFinite(timeoutMs) ? timeoutMs : void 0,
|
|
71537
71553
|
onCost: (usd) => {
|
|
71538
71554
|
spent += usd;
|
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.34.0
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -6,7 +6,7 @@ import { join as join52, 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.34.0";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
var INAPPLICABLE_STATUS = "C";
|
|
12
12
|
|
|
@@ -2293,7 +2293,7 @@ var wcag_universe_default = {
|
|
|
2293
2293
|
wcagVersion: "2.2",
|
|
2294
2294
|
source: "https://www.w3.org/TR/WCAG22/",
|
|
2295
2295
|
criteriaSource: "https://github.com/w3c/wcag",
|
|
2296
|
-
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-
|
|
2296
|
+
provenance: "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-25 via `node scripts/build-standards.mjs --refresh-universe`. Classification: core-AA = ships in src/data/wcag.json (the shipped WCAG 2.2 AA core); out-of-core = WCAG AAA; removed = obsolete (4.1.1).",
|
|
2297
2297
|
criteria: [
|
|
2298
2298
|
{
|
|
2299
2299
|
id: "1.1.1",
|
|
@@ -60588,6 +60588,7 @@ function applyRawVerdicts(items, verdicts) {
|
|
|
60588
60588
|
var ALLOWED_TOOLS = "Read,Grep,Glob";
|
|
60589
60589
|
var MAX_ATTEMPTS2 = 4;
|
|
60590
60590
|
var DEFAULT_CLI_MODEL = "claude-haiku-4-5-20251001";
|
|
60591
|
+
var EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
60591
60592
|
var DEFAULT_TIMEOUT_MS2 = 10 * 6e4;
|
|
60592
60593
|
function realSpawn(argv, input, timeoutMs) {
|
|
60593
60594
|
return new Promise((resolve17, reject) => {
|
|
@@ -60664,6 +60665,7 @@ function cliArgv(opts, items) {
|
|
|
60664
60665
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60665
60666
|
];
|
|
60666
60667
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60668
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60667
60669
|
return argv;
|
|
60668
60670
|
}
|
|
60669
60671
|
function verdictsFromText(text) {
|
|
@@ -60726,6 +60728,7 @@ async function refuteBatchCli(items, prompt, opts, lang = "en") {
|
|
|
60726
60728
|
opts.model ?? DEFAULT_CLI_MODEL
|
|
60727
60729
|
];
|
|
60728
60730
|
if (opts.maxBudgetUsd !== void 0) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
60731
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
60729
60732
|
return runCli2(argv, prompt, opts, (env) => {
|
|
60730
60733
|
const structured = env.structured_output?.verdicts;
|
|
60731
60734
|
const raw = Array.isArray(structured) ? structured : verdictsArrayFromText(env.result ?? "");
|
|
@@ -68889,7 +68892,7 @@ Usage:
|
|
|
68889
68892
|
ultra11y orchestrate --run <dir> [--phase adjudicate|verify-report] [--eco] [--list] [--lang auto|en|fr]
|
|
68890
68893
|
ultra11y fix <globs\u2026 | -> [--write] [--iterate] [--changed | --since <ref> | --staged] [--safe] [--include <glob>] [--exclude <glob>] [--ext <list>] [--only <ids>] [--jsx] [--json] [--lang auto|en|fr]
|
|
68891
68894
|
ultra11y init [--hook] [--ci] [--baseline] [--fail-on blocking|major|minor]
|
|
68892
|
-
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68895
|
+
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--effort <level>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model \u2014 api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
68893
68896
|
ultra11y pack check <pack.json> [--guidance <g.json>] [--json] | pack scaffold
|
|
68894
68897
|
ultra11y scan <url|file\u2026> [--runtime auto|local|docker] [--cwd <dir>] [--storage-state <file>] [--no-interact] [--interact-clicks] [--no-snapshot] [--merge <audit.json>] [--out <dir>] [--json]
|
|
68895
68898
|
ultra11y scan --sample [--runtime \u2026] [--cwd <dir>] [--storage-state <file>] [--merge <audit.json>] [--json] (scan the .ultra11yrc.json page sample)
|
|
@@ -69122,6 +69125,8 @@ Options:
|
|
|
69122
69125
|
--provider <id> tickets: auto|github|gitlab|jira. 'auto' reads ULTRA11Y_TICKET_PROVIDER,
|
|
69123
69126
|
then .ultra11yrc.json, then the git remote (Jira is never auto-detected)
|
|
69124
69127
|
--grain <mode> tickets: what one ticket is \u2014 criterion (default) | page | page-criterion | single | file
|
|
69128
|
+
--effort <level> judge (--runner cli): reasoning effort per invocation \u2014 low | medium |
|
|
69129
|
+
high | xhigh | max. Unset leaves the CLI's own default
|
|
69125
69130
|
--transport <t> tickets: auto|cli|rest (mcp: stdio|http). 'auto' prefers the CLI (gh/glab),
|
|
69126
69131
|
falling back to REST when only a token is available. Jira is REST-only
|
|
69127
69132
|
--max-tickets <n> tickets: refuse to file more than n tickets in one run (default 200)
|
|
@@ -69325,6 +69330,7 @@ var VALUE_FLAGS2 = /* @__PURE__ */ new Set([
|
|
|
69325
69330
|
"runner",
|
|
69326
69331
|
"grain",
|
|
69327
69332
|
"max-budget-usd",
|
|
69333
|
+
"effort",
|
|
69328
69334
|
"timeout",
|
|
69329
69335
|
"concurrency",
|
|
69330
69336
|
"out",
|
|
@@ -71460,6 +71466,15 @@ async function cmdJudge(p) {
|
|
|
71460
71466
|
console.error(`ultra11y judge: --grain '${grain}' is not a grain \u2014 expected 'batch' or 'criterion'.`);
|
|
71461
71467
|
return 2;
|
|
71462
71468
|
}
|
|
71469
|
+
const effort = typeof p.flags.effort === "string" ? p.flags.effort : void 0;
|
|
71470
|
+
if (effort !== void 0 && !EFFORT_LEVELS.includes(effort)) {
|
|
71471
|
+
console.error(`ultra11y judge: --effort '${effort}' is not a level \u2014 expected ${EFFORT_LEVELS.map((l) => `'${l}'`).join(", ")}.`);
|
|
71472
|
+
return 2;
|
|
71473
|
+
}
|
|
71474
|
+
if (effort !== void 0 && runner !== "cli") {
|
|
71475
|
+
console.error("ultra11y judge: --effort applies to `--runner cli` only \u2014 the Messages API has no session to set an effort on.");
|
|
71476
|
+
return 2;
|
|
71477
|
+
}
|
|
71463
71478
|
const key2 = typeof p.flags["api-key"] === "string" && p.flags["api-key"] ? p.flags["api-key"] : apiKeyFromEnv();
|
|
71464
71479
|
if (!key2 && runner === "api") {
|
|
71465
71480
|
console.error(
|
|
@@ -71533,6 +71548,7 @@ async function cmdJudge(p) {
|
|
|
71533
71548
|
// requests do. `--concurrency` overrides it for a runner with room.
|
|
71534
71549
|
concurrency: runner === "cli" ? cliConcurrency : void 0,
|
|
71535
71550
|
maxBudgetUsd: Number.isFinite(maxBudgetUsd) ? maxBudgetUsd : void 0,
|
|
71551
|
+
effort,
|
|
71536
71552
|
timeoutMs: Number.isFinite(timeoutMs) ? timeoutMs : void 0,
|
|
71537
71553
|
onCost: (usd) => {
|
|
71538
71554
|
spent += usd;
|
package/src/agent-cli.ts
CHANGED
|
@@ -39,6 +39,12 @@ const MAX_ATTEMPTS = 4;
|
|
|
39
39
|
* states a model rather than inheriting one. */
|
|
40
40
|
export const DEFAULT_CLI_MODEL = "claude-haiku-4-5-20251001";
|
|
41
41
|
|
|
42
|
+
/** The levels `claude --effort` accepts. Enumerated here so a caller's typo is refused with a
|
|
43
|
+
* message instead of forwarded: this CLI treats an unrecognised value the way it treats an
|
|
44
|
+
* unrecognised flag — silently — and a ceiling that is silently nothing is the exact failure
|
|
45
|
+
* `--max-turns` already cost this repo once. */
|
|
46
|
+
export const EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
47
|
+
|
|
42
48
|
/** What `claude -p --output-format json` puts on stdout. Only the fields this reads. */
|
|
43
49
|
interface CliEnvelope {
|
|
44
50
|
/** Where `--json-schema` puts the validated object. Present since 2.1.x; `result` carries
|
|
@@ -168,6 +174,9 @@ export function cliArgv(opts: LlmOptions, items: AdjudicationItem[]): string[] {
|
|
|
168
174
|
// a turn budget and be an unbounded run. The bounds that are real: `--max-budget-usd`, which
|
|
169
175
|
// the CLI documents, and the wall-clock kill in `judgeBatchCli`, which is ours.
|
|
170
176
|
if (opts.maxBudgetUsd !== undefined) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
177
|
+
// `--effort` IS documented by this CLI, unlike `--max-turns` above — so it is passed, and a
|
|
178
|
+
// caller can raise how hard the model thinks without also having to change the model.
|
|
179
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
171
180
|
return argv;
|
|
172
181
|
}
|
|
173
182
|
|
|
@@ -274,6 +283,9 @@ export async function refuteBatchCli(items: VerifyItem[], prompt: string, opts:
|
|
|
274
283
|
opts.model ?? DEFAULT_CLI_MODEL,
|
|
275
284
|
];
|
|
276
285
|
if (opts.maxBudgetUsd !== undefined) argv.push("--max-budget-usd", String(opts.maxBudgetUsd));
|
|
286
|
+
// `--effort` IS documented by this CLI, unlike `--max-turns` above — so it is passed, and a
|
|
287
|
+
// caller can raise how hard the model thinks without also having to change the model.
|
|
288
|
+
if (opts.effort) argv.push("--effort", opts.effort);
|
|
277
289
|
return runCli(argv, prompt, opts, (env) => {
|
|
278
290
|
const structured = (env.structured_output as { verdicts?: unknown } | undefined)?.verdicts;
|
|
279
291
|
const raw = Array.isArray(structured) ? structured : verdictsArrayFromText(env.result ?? "");
|
package/src/cli.ts
CHANGED
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
type AdjudicationFile,
|
|
65
65
|
} from "./adjudicate.js";
|
|
66
66
|
import { entriesFrom, isLedger, ledgerPath, mergeLedger, readLedger, replayLedger, unreadableCaptures, type VerdictLedger, writeLedger } from "./ledger.js";
|
|
67
|
-
import { DEFAULT_CLI_MODEL, judgeBatchCli, refuteBatchCli } from "./agent-cli.js";
|
|
67
|
+
import { DEFAULT_CLI_MODEL, EFFORT_LEVELS, judgeBatchCli, refuteBatchCli } from "./agent-cli.js";
|
|
68
68
|
import { BATCH_SIZE, apiKeyFromEnv, applyRawVerdicts, judgeAll, modelFromEnv, type LlmOptions } from "./llm.js";
|
|
69
69
|
import { runScan, runScanMany, runCrawlScan, runSampleScan, mergeDynamic, mergeSnapshotAudit, cleanDynamic, dockerAvailable } from "./scan.js";
|
|
70
70
|
import { runScanLocal, runScanManyLocal, runCrawlScanLocal, runSampleScanLocal, localAvailable, localTierStatus } from "./scan-local.js";
|
|
@@ -142,7 +142,7 @@ Usage:
|
|
|
142
142
|
ultra11y orchestrate --run <dir> [--phase adjudicate|verify-report] [--eco] [--list] [--lang auto|en|fr]
|
|
143
143
|
ultra11y fix <globs… | -> [--write] [--iterate] [--changed | --since <ref> | --staged] [--safe] [--include <glob>] [--exclude <glob>] [--ext <list>] [--only <ids>] [--jsx] [--json] [--lang auto|en|fr]
|
|
144
144
|
ultra11y init [--hook] [--ci] [--baseline] [--fail-on blocking|major|minor]
|
|
145
|
-
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model — api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
145
|
+
ultra11y judge --in <audit.json> [--standard <pack>] [--runner api|cli] [--grain batch|criterion] [--max <n>] [--model <id>] [--effort <level>] [--max-budget-usd <n>] [--timeout <s>] [--out <dir>] [--apply] (adjudicate the manual criteria with a model — api needs ANTHROPIC_API_KEY; cli runs the Claude Code CLI and takes CLAUDE_CODE_OAUTH_TOKEN too)
|
|
146
146
|
ultra11y pack check <pack.json> [--guidance <g.json>] [--json] | pack scaffold
|
|
147
147
|
ultra11y scan <url|file…> [--runtime auto|local|docker] [--cwd <dir>] [--storage-state <file>] [--no-interact] [--interact-clicks] [--no-snapshot] [--merge <audit.json>] [--out <dir>] [--json]
|
|
148
148
|
ultra11y scan --sample [--runtime …] [--cwd <dir>] [--storage-state <file>] [--merge <audit.json>] [--json] (scan the .ultra11yrc.json page sample)
|
|
@@ -375,6 +375,8 @@ Options:
|
|
|
375
375
|
--provider <id> tickets: auto|github|gitlab|jira. 'auto' reads ULTRA11Y_TICKET_PROVIDER,
|
|
376
376
|
then .ultra11yrc.json, then the git remote (Jira is never auto-detected)
|
|
377
377
|
--grain <mode> tickets: what one ticket is — criterion (default) | page | page-criterion | single | file
|
|
378
|
+
--effort <level> judge (--runner cli): reasoning effort per invocation — low | medium |
|
|
379
|
+
high | xhigh | max. Unset leaves the CLI's own default
|
|
378
380
|
--transport <t> tickets: auto|cli|rest (mcp: stdio|http). 'auto' prefers the CLI (gh/glab),
|
|
379
381
|
falling back to REST when only a token is available. Jira is REST-only
|
|
380
382
|
--max-tickets <n> tickets: refuse to file more than n tickets in one run (default 200)
|
|
@@ -582,6 +584,7 @@ const VALUE_FLAGS = new Set([
|
|
|
582
584
|
"runner",
|
|
583
585
|
"grain",
|
|
584
586
|
"max-budget-usd",
|
|
587
|
+
"effort",
|
|
585
588
|
"timeout",
|
|
586
589
|
"concurrency",
|
|
587
590
|
"out",
|
|
@@ -3561,6 +3564,21 @@ async function cmdJudge(p: ParsedArgs): Promise<number> {
|
|
|
3561
3564
|
return 2;
|
|
3562
3565
|
}
|
|
3563
3566
|
|
|
3567
|
+
// HOW HARD THE MODEL IS ASKED TO THINK, which on this worklist is not a detail: what reaches
|
|
3568
|
+
// this tier is what no engine could decide. Validated rather than forwarded, because the CLI
|
|
3569
|
+
// SWALLOWS AN UNKNOWN VALUE the same way it swallows an unknown flag — `--effort hgih` would
|
|
3570
|
+
// read as a setting and be nothing at all, which is the failure mode this repo already ate
|
|
3571
|
+
// once with `--max-turns`. Refused here, loudly, while the message can still reach a human.
|
|
3572
|
+
const effort = typeof p.flags.effort === "string" ? (p.flags.effort as string) : undefined;
|
|
3573
|
+
if (effort !== undefined && !EFFORT_LEVELS.includes(effort)) {
|
|
3574
|
+
console.error(`ultra11y judge: --effort '${effort}' is not a level — expected ${EFFORT_LEVELS.map((l) => `'${l}'`).join(", ")}.`);
|
|
3575
|
+
return 2;
|
|
3576
|
+
}
|
|
3577
|
+
if (effort !== undefined && runner !== "cli") {
|
|
3578
|
+
console.error("ultra11y judge: --effort applies to `--runner cli` only — the Messages API has no session to set an effort on.");
|
|
3579
|
+
return 2;
|
|
3580
|
+
}
|
|
3581
|
+
|
|
3564
3582
|
const key = typeof p.flags["api-key"] === "string" && p.flags["api-key"] ? (p.flags["api-key"] as string) : apiKeyFromEnv();
|
|
3565
3583
|
if (!key && runner === "api") {
|
|
3566
3584
|
console.error(
|
|
@@ -3684,6 +3702,7 @@ async function cmdJudge(p: ParsedArgs): Promise<number> {
|
|
|
3684
3702
|
// requests do. `--concurrency` overrides it for a runner with room.
|
|
3685
3703
|
concurrency: runner === "cli" ? cliConcurrency : undefined,
|
|
3686
3704
|
maxBudgetUsd: Number.isFinite(maxBudgetUsd) ? maxBudgetUsd : undefined,
|
|
3705
|
+
effort,
|
|
3687
3706
|
timeoutMs: Number.isFinite(timeoutMs) ? timeoutMs : undefined,
|
|
3688
3707
|
onCost: (usd) => {
|
|
3689
3708
|
spent += usd;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"wcagVersion": "2.2",
|
|
3
3
|
"source": "https://www.w3.org/TR/WCAG22/",
|
|
4
4
|
"criteriaSource": "https://github.com/w3c/wcag",
|
|
5
|
-
"provenance": "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-
|
|
5
|
+
"provenance": "Full WCAG 2.x SC universe (all levels incl. AAA, and the removed 4.1.1 Parsing) fetched from raw.githubusercontent.com/w3c/wcag@main on 2026-08-25 via `node scripts/build-standards.mjs --refresh-universe`. Classification: core-AA = ships in src/data/wcag.json (the shipped WCAG 2.2 AA core); out-of-core = WCAG AAA; removed = obsolete (4.1.1).",
|
|
6
6
|
"criteria": [
|
|
7
7
|
{
|
|
8
8
|
"id": "1.1.1",
|
package/src/llm.ts
CHANGED
|
@@ -71,6 +71,15 @@ export interface LlmOptions {
|
|
|
71
71
|
/** Dollar ceiling handed to the CLI backend — the bound that survives whatever a turn
|
|
72
72
|
* happens to cost, which is what a CI job actually wants to cap. */
|
|
73
73
|
maxBudgetUsd?: number;
|
|
74
|
+
/** Reasoning effort handed to the CLI backend (`--effort`: low, medium, high, xhigh, max).
|
|
75
|
+
*
|
|
76
|
+
* The criteria this tier rules on are the ones no engine can decide — alt relevance, link
|
|
77
|
+
* purpose in context, reading order — so how hard the model is asked to think is a real
|
|
78
|
+
* lever on the verdict, and one a caller should be able to move without also changing the
|
|
79
|
+
* model. Unlike `--max-turns`, `--effort` IS a flag of this CLI, so it is passed rather
|
|
80
|
+
* than refused. The Messages backend ignores it: effort is a session notion there, not a
|
|
81
|
+
* request parameter. */
|
|
82
|
+
effort?: string;
|
|
74
83
|
/** Called with each invocation's real cost, so a run can report what it spent instead of
|
|
75
84
|
* leaving the reader to find it in a provider dashboard. */
|
|
76
85
|
onCost?: (usd: number) => void;
|
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.34.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,
|