allyward 0.0.0 → 1.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/package.json CHANGED
@@ -1,8 +1,47 @@
1
1
  {
2
2
  "name": "allyward",
3
- "version": "0.0.0",
4
- "description": "Placeholder for Allyward, the WCAG 2.2 accessibility checker (formerly Allyproof). Version 1.0.0 is published on 2026-12-01.",
3
+ "version": "1.2.0",
4
+ "mcpName": "io.github.NotAisu/allyward",
5
+ "description": "Check HTML, React, Vue, Svelte, Angular and Astro code against WCAG 2.2 AA from the command line",
5
6
  "license": "MIT",
6
- "repository": { "type": "git", "url": "https://github.com/NotAisu/Accessibility_Extension.git" },
7
- "files": ["README.md"]
7
+ "homepage": "https://notaisu.github.io/allyward/",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/NotAisu/allyward.git"
11
+ },
12
+ "keywords": [
13
+ "accessibility",
14
+ "a11y",
15
+ "wcag",
16
+ "wcag-2-2",
17
+ "mcp",
18
+ "mcp-server",
19
+ "agent-skills",
20
+ "linter",
21
+ "html",
22
+ "react",
23
+ "vue",
24
+ "svelte",
25
+ "angular",
26
+ "astro"
27
+ ],
28
+ "type": "module",
29
+ "bin": {
30
+ "allyward": "cli.mjs"
31
+ },
32
+ "exports": {
33
+ "./schema/check-result.v1.json": "./schema/check-result.v1.json"
34
+ },
35
+ "engines": {
36
+ "node": ">=24.15.0"
37
+ },
38
+ "files": [
39
+ "cli.mjs",
40
+ "worker.mjs",
41
+ "chunks",
42
+ "schema",
43
+ "LICENSE",
44
+ "THIRD-PARTY-NOTICES.txt",
45
+ "README.md"
46
+ ]
8
47
  }
@@ -0,0 +1,96 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://github.com/NotAisu/allyward/schema/check-result.v1.json",
4
+ "title": "Allyward check result, schema version 1",
5
+ "description": "The output of `allyward check --format json`. Additions keep the version; a breaking change raises it.",
6
+ "type": "object",
7
+ "required": ["schemaVersion", "files", "summary"],
8
+ "properties": {
9
+ "schemaVersion": { "const": 1 },
10
+ "files": { "type": "array", "items": { "$ref": "#/definitions/file" } },
11
+ "summary": {
12
+ "type": "object",
13
+ "required": ["files", "failedFiles", "findings", "blocking", "baselined", "fixedSinceBaseline", "needsReview"],
14
+ "properties": {
15
+ "files": { "type": "integer", "minimum": 0 },
16
+ "failedFiles": { "type": "integer", "minimum": 0 },
17
+ "findings": { "type": "integer", "minimum": 0 },
18
+ "blocking": { "type": "integer", "minimum": 0 },
19
+ "baselined": { "type": "integer", "minimum": 0 },
20
+ "ignored": { "type": "integer", "minimum": 0, "description": "Findings an ignore comment drops; since 1.0.0" },
21
+ "fixedSinceBaseline": { "type": "integer", "minimum": 0 },
22
+ "needsReview": { "type": "integer", "minimum": 0 },
23
+ "byFile": { "$ref": "#/definitions/counts", "description": "Findings per file; set when a folder is checked through the MCP server" },
24
+ "byRule": { "$ref": "#/definitions/counts", "description": "Findings per rule; set when a folder is checked through the MCP server" },
25
+ "byCriterion": { "$ref": "#/definitions/counts", "description": "Findings per WCAG criterion; set when a folder is checked through the MCP server" }
26
+ }
27
+ },
28
+ "truncated": { "type": "boolean", "description": "Set when a folder is checked through the MCP server: files holds only the first files, summary covers all" },
29
+ "hint": { "type": "string", "description": "How to narrow a truncated result down" }
30
+ },
31
+ "definitions": {
32
+ "counts": { "type": "object", "additionalProperties": { "type": "integer", "minimum": 0 } },
33
+ "position": {
34
+ "type": "object",
35
+ "required": ["line", "column", "offset"],
36
+ "properties": {
37
+ "line": { "type": "integer", "minimum": 1, "description": "1-based, counting the line breaks the editor counts" },
38
+ "column": { "type": "integer", "minimum": 1, "description": "1-based, in UTF-16 code units" },
39
+ "offset": { "type": "integer", "minimum": 0 }
40
+ }
41
+ },
42
+ "location": {
43
+ "type": "object",
44
+ "required": ["start", "end"],
45
+ "properties": { "start": { "$ref": "#/definitions/position" }, "end": { "$ref": "#/definitions/position" } }
46
+ },
47
+ "finding": {
48
+ "type": "object",
49
+ "required": ["ruleId", "criteria", "severity", "layer", "message", "helpUrl", "proof", "range", "baselined"],
50
+ "properties": {
51
+ "ruleId": { "type": "string" },
52
+ "criteria": { "type": "array", "items": { "type": "string", "pattern": "^\\d\\.\\d+\\.\\d+$" }, "minItems": 1 },
53
+ "severity": { "enum": ["error", "warning", "information"] },
54
+ "layer": { "const": "check" },
55
+ "message": { "type": "string" },
56
+ "helpUrl": { "type": "string" },
57
+ "proof": { "const": "proven", "description": "Only Proven rules report Findings" },
58
+ "range": { "$ref": "#/definitions/location" },
59
+ "fix": {
60
+ "type": "array",
61
+ "description": "The deterministic fix: apply every edit, then check again",
62
+ "items": {
63
+ "type": "object",
64
+ "required": ["range", "newText"],
65
+ "properties": { "range": { "$ref": "#/definitions/location" }, "newText": { "type": "string" } }
66
+ }
67
+ },
68
+ "baselined": { "type": "boolean", "description": "In the baseline, so it does not block" }
69
+ }
70
+ },
71
+ "needsReview": {
72
+ "type": "object",
73
+ "required": ["criterion", "reason"],
74
+ "properties": {
75
+ "criterion": { "type": "string" },
76
+ "reason": { "type": "string" },
77
+ "ruleId": { "type": "string", "description": "The Unproven rule that matched: a likely failure at range, to verify" },
78
+ "proof": { "const": "unproven" },
79
+ "range": { "$ref": "#/definitions/location" }
80
+ }
81
+ },
82
+ "file": {
83
+ "type": "object",
84
+ "required": ["file", "languageId", "status", "findings", "needsReview"],
85
+ "properties": {
86
+ "file": { "type": "string", "description": "Repository-relative, with forward slashes" },
87
+ "languageId": { "type": "string" },
88
+ "status": { "enum": ["checked", "failed"] },
89
+ "error": { "type": "string" },
90
+ "findings": { "type": "array", "items": { "$ref": "#/definitions/finding" } },
91
+ "needsReview": { "type": "array", "items": { "$ref": "#/definitions/needsReview" } },
92
+ "ignored": { "type": "integer", "minimum": 0, "description": "Findings an ignore comment drops; since 1.0.0" }
93
+ }
94
+ }
95
+ }
96
+ }
package/worker.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{h as t,j as o}from"./chunks/chunk-SNU37HWC.mjs";import"./chunks/chunk-7UDH5BXX.mjs";import{parentPort as i}from"worker_threads";var e=i;e.on("message",({document:n,options:r})=>{o(n,r).then(s=>e.postMessage({result:s}),s=>e.postMessage(s instanceof t?{parseError:s.message,position:s.position}:{error:s instanceof Error?s.message:String(s)}))});