@kinti/a11y-toolkit 5.35.0 → 5.35.2
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/README.md +1 -1
- package/a11y_toolkit/a11yact.py +20 -9
- package/a11y_toolkit/a11yaudit.py +26 -12
- package/a11y_toolkit/a11ybudget.py +5 -2
- package/a11y_toolkit/a11ydiff.py +15 -2
- package/a11y_toolkit/a11ydisprove.py +40 -28
- package/a11y_toolkit/a11ydocx.py +153 -174
- package/a11y_toolkit/a11ydom.py +58 -21
- package/a11y_toolkit/a11yengines.py +8 -6
- package/a11y_toolkit/a11yevidence.py +35 -28
- package/a11y_toolkit/a11yledger.py +5 -3
- package/a11y_toolkit/a11ypatterns.py +3 -3
- package/a11y_toolkit/a11ypdf.py +19 -11
- package/a11y_toolkit/a11ysarif.py +19 -13
- package/a11y_toolkit/a11yscroll.py +3 -3
- package/a11y_toolkit/a11ytrace.py +29 -27
- package/a11y_toolkit/a11yvtt.py +42 -25
- package/a11y_toolkit/server.py +10 -6
- package/lib/_bootstrap.py +6 -4
- package/lib/runner.cjs +1 -1
- package/package.json +1 -1
package/a11y_toolkit/server.py
CHANGED
|
@@ -97,7 +97,7 @@ try:
|
|
|
97
97
|
except ImportError:
|
|
98
98
|
ARIALIVE_JS = None # repo checkout: read the file
|
|
99
99
|
|
|
100
|
-
VERSION = '5.35.
|
|
100
|
+
VERSION = '5.35.2'
|
|
101
101
|
|
|
102
102
|
# Params renombrados a inglés en 5.11.0; se aceptan los nombres previos.
|
|
103
103
|
PARAM_ALIASES = {
|
|
@@ -558,12 +558,13 @@ TOOLS = [
|
|
|
558
558
|
'name': 'a11y_disprove',
|
|
559
559
|
'description': ('Re-audits the original live page and returns its current findings, '
|
|
560
560
|
'score and coverage. Rendered reports are rechecked under their '
|
|
561
|
-
'recorded color scheme. Matching findings are confirmed, disappeared '
|
|
561
|
+
'recorded browser, color scheme and session type. Matching findings are confirmed, disappeared '
|
|
562
562
|
'findings are rejected, and ambiguous historical matches are kept '
|
|
563
563
|
'for review. — Use a11y_evidence to seal the fresh measurement.'),
|
|
564
564
|
'inputSchema': {'type': 'object', 'properties': {
|
|
565
565
|
'url': {'type': 'string', 'description': 'URL to re-verify against'},
|
|
566
566
|
'report': {'type': 'object', 'description': 'existing audit report (optional; if absent, audits first)'},
|
|
567
|
+
'auth_state': {'type': 'string', 'description': 'Local Playwright session for the original authenticated capture'},
|
|
567
568
|
'lang': {'type': 'string', 'enum': ['es', 'en'], 'description': 'Output language (en default)'},
|
|
568
569
|
'timeout': {'type': 'number', 'description': 'Timeout seconds (30 default)'},
|
|
569
570
|
}, 'required': ['url']},
|
|
@@ -713,7 +714,8 @@ TOOLS = [
|
|
|
713
714
|
'.vtt and judges what viewers get: malformed timing lines, empty cues, '
|
|
714
715
|
'overlaps, impossible reading speed (>21 chars/second, BBC/Netflix '
|
|
715
716
|
'standard) and coverage vs the media duration when given. Pass the .vtt '
|
|
716
|
-
'URL (same http/https guard as the audits).
|
|
717
|
+
'URL (same http/https guard as the audits). An invalid header or incomplete '
|
|
718
|
+
'download returns an error. Not a substitute for human '
|
|
717
719
|
'review of accuracy or speaker identification. '
|
|
718
720
|
'Returns JSON: {mode: "vtt", cues, characters, captioned_seconds, '
|
|
719
721
|
'findings [{criterion, severity, signal, issue, remediation}], summary, limits}.'),
|
|
@@ -733,7 +735,8 @@ TOOLS = [
|
|
|
733
735
|
'announces; 3.3.2 inputs, 4.1.2 buttons). '
|
|
734
736
|
'Full PDF/UA conformance needs a spec validator (veraPDF); this finds '
|
|
735
737
|
'the failures that make full validation pointless. Use for enterprise '
|
|
736
|
-
'document pipelines and PDFs linked from the audited site. '
|
|
738
|
+
'document pipelines and PDFs linked from the audited site. Inputs over '
|
|
739
|
+
'30 MB return an error before scoring. '
|
|
737
740
|
'Returns JSON: {mode: "pdf", pages, tagged, lang, title, images, '
|
|
738
741
|
'alt_entries, form_fields, form_labels, findings, summary, limits}.'),
|
|
739
742
|
'inputSchema': {'type': 'object', 'properties': {
|
|
@@ -744,7 +747,7 @@ TOOLS = [
|
|
|
744
747
|
{
|
|
745
748
|
'name': 'a11y_docx_screen',
|
|
746
749
|
'description': ('DOCX accessibility screening — the other half of enterprise paperwork. '
|
|
747
|
-
'Zero-dep structural pass on a LOCAL .docx: images with no alt text '
|
|
750
|
+
'Zero-dep structural pass on a LOCAL .docx with namespace-aware XML: images with no alt text '
|
|
748
751
|
'(docPr without descr), fake headings (bold+big paragraphs with no Heading '
|
|
749
752
|
'style — invisible to navigation pane and TOC), document language, tables '
|
|
750
753
|
'without marked header row. Full review needs a human; this finds what '
|
|
@@ -1016,6 +1019,7 @@ _PARAM_DOCS = {
|
|
|
1016
1019
|
('a11y_forced_colors', 'timeout'): 'Page load timeout seconds (45 default)',
|
|
1017
1020
|
('a11y_disprove', 'url'): 'URL to re-verify findings against',
|
|
1018
1021
|
('a11y_disprove', 'report'): 'Existing audit report to verify (optional; audits first if absent)',
|
|
1022
|
+
('a11y_disprove', 'auth_state'): 'Local Playwright session file for the original authenticated capture',
|
|
1019
1023
|
('a11y_disprove', 'timeout'): 'Fetch timeout seconds (default 30)',
|
|
1020
1024
|
('a11y_ledger', 'action'): 'record (add audit), gaps (what is missing), or summary (overview)',
|
|
1021
1025
|
('a11y_ledger', 'url'): 'URL being audited (for record/gaps)',
|
|
@@ -1501,7 +1505,7 @@ def invoke(name, args):
|
|
|
1501
1505
|
try:
|
|
1502
1506
|
return _content(disprove_fn(args['url'], report=args.get('report'),
|
|
1503
1507
|
timeout=args.get('timeout', 30),
|
|
1504
|
-
lang=args.get('lang', 'en')))
|
|
1508
|
+
lang=args.get('lang', 'en'), auth_state=args.get('auth_state')))
|
|
1505
1509
|
except Exception as e:
|
|
1506
1510
|
return {'content': [{'type': 'text', 'text': f'error: {e}'}], 'isError': True}
|
|
1507
1511
|
if name == 'a11y_ledger':
|
package/lib/_bootstrap.py
CHANGED
|
@@ -16,8 +16,8 @@ _ENGINE = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
16
16
|
sys.path.insert(0, _ENGINE)
|
|
17
17
|
|
|
18
18
|
_ENTRY = {
|
|
19
|
-
'a11y_toolkit.a11y'
|
|
20
|
-
'a11y_toolkit.server'
|
|
19
|
+
'a11y_toolkit.a11y',
|
|
20
|
+
'a11y_toolkit.server',
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
|
|
@@ -25,8 +25,10 @@ def _run(entry, args):
|
|
|
25
25
|
if entry not in _ENTRY:
|
|
26
26
|
print(f'unknown entry: {entry}', file=sys.stderr)
|
|
27
27
|
return 2
|
|
28
|
-
module = __import__(entry, fromlist=[
|
|
29
|
-
|
|
28
|
+
module = __import__(entry, fromlist=['main'])
|
|
29
|
+
if entry == 'a11y_toolkit.server':
|
|
30
|
+
return module.main()
|
|
31
|
+
return module.main(args)
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
if __name__ == '__main__':
|
package/lib/runner.cjs
CHANGED
|
@@ -35,7 +35,7 @@ function run(entry) {
|
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
37
|
const SCRIPTS = { 'a11y_toolkit.a11y': 'a11ytoolkit', 'a11y_toolkit.server': 'a11y-toolkit-mcp' };
|
|
38
|
-
const child = spawn(UVX, ['--from', `a11y-toolkit==${VERSION}`, SCRIPTS[entry] || entry], { stdio: 'inherit' });
|
|
38
|
+
const child = spawn(UVX, ['--from', `a11y-toolkit==${VERSION}`, SCRIPTS[entry] || entry, ...args], { stdio: 'inherit' });
|
|
39
39
|
child.on('error', (e) => {
|
|
40
40
|
if (e.code === 'ENOENT') {
|
|
41
41
|
console.error('a11y-toolkit: needs python3 (>=3.9) or uv.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kinti/a11y-toolkit",
|
|
3
|
-
"version": "5.35.
|
|
3
|
+
"version": "5.35.2",
|
|
4
4
|
"mcpName": "io.github.kinti/a11y-toolkit",
|
|
5
5
|
"description": "Zero-dependency WCAG 2.2 accessibility engine (37 MCP tools + CLI): audits, contrast fixing, SHA-256-sealed evidence packs, SARIF, EARL/ACT, CI ratchet. Self-contained: the pure-stdlib Python engine ships inside and runs via python3 \u2014 no downloads, no installs.",
|
|
6
6
|
"license": "MIT",
|