ally-a11y 1.0.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.
Files changed (84) hide show
  1. package/ACCESSIBILITY.md +205 -0
  2. package/LICENSE +21 -0
  3. package/README.md +940 -0
  4. package/dist/cli.d.ts +7 -0
  5. package/dist/cli.js +528 -0
  6. package/dist/commands/audit-palette.d.ts +18 -0
  7. package/dist/commands/audit-palette.js +613 -0
  8. package/dist/commands/auto-pr.d.ts +19 -0
  9. package/dist/commands/auto-pr.js +434 -0
  10. package/dist/commands/badge.d.ts +11 -0
  11. package/dist/commands/badge.js +143 -0
  12. package/dist/commands/completion.d.ts +4 -0
  13. package/dist/commands/completion.js +185 -0
  14. package/dist/commands/crawl.d.ts +12 -0
  15. package/dist/commands/crawl.js +249 -0
  16. package/dist/commands/doctor.d.ts +5 -0
  17. package/dist/commands/doctor.js +233 -0
  18. package/dist/commands/explain.d.ts +12 -0
  19. package/dist/commands/explain.js +233 -0
  20. package/dist/commands/fix.d.ts +13 -0
  21. package/dist/commands/fix.js +668 -0
  22. package/dist/commands/health.d.ts +11 -0
  23. package/dist/commands/health.js +367 -0
  24. package/dist/commands/history.d.ts +10 -0
  25. package/dist/commands/history.js +191 -0
  26. package/dist/commands/init.d.ts +9 -0
  27. package/dist/commands/init.js +164 -0
  28. package/dist/commands/learn.d.ts +8 -0
  29. package/dist/commands/learn.js +592 -0
  30. package/dist/commands/pr-check.d.ts +12 -0
  31. package/dist/commands/pr-check.js +270 -0
  32. package/dist/commands/report.d.ts +11 -0
  33. package/dist/commands/report.js +375 -0
  34. package/dist/commands/scan-storybook.d.ts +18 -0
  35. package/dist/commands/scan-storybook.js +402 -0
  36. package/dist/commands/scan.d.ts +25 -0
  37. package/dist/commands/scan.js +673 -0
  38. package/dist/commands/stats.d.ts +5 -0
  39. package/dist/commands/stats.js +137 -0
  40. package/dist/commands/tree.d.ts +12 -0
  41. package/dist/commands/tree.js +635 -0
  42. package/dist/commands/triage.d.ts +13 -0
  43. package/dist/commands/triage.js +327 -0
  44. package/dist/commands/watch.d.ts +17 -0
  45. package/dist/commands/watch.js +302 -0
  46. package/dist/types/index.d.ts +60 -0
  47. package/dist/types/index.js +4 -0
  48. package/dist/utils/baseline.d.ts +62 -0
  49. package/dist/utils/baseline.js +169 -0
  50. package/dist/utils/browser.d.ts +78 -0
  51. package/dist/utils/browser.js +239 -0
  52. package/dist/utils/cache.d.ts +76 -0
  53. package/dist/utils/cache.js +178 -0
  54. package/dist/utils/config.d.ts +102 -0
  55. package/dist/utils/config.js +237 -0
  56. package/dist/utils/converters.d.ts +77 -0
  57. package/dist/utils/converters.js +200 -0
  58. package/dist/utils/copilot.d.ts +36 -0
  59. package/dist/utils/copilot.js +139 -0
  60. package/dist/utils/detect.d.ts +22 -0
  61. package/dist/utils/detect.js +197 -0
  62. package/dist/utils/enhanced-errors.d.ts +46 -0
  63. package/dist/utils/enhanced-errors.js +295 -0
  64. package/dist/utils/errors.d.ts +31 -0
  65. package/dist/utils/errors.js +149 -0
  66. package/dist/utils/fix-patterns.d.ts +56 -0
  67. package/dist/utils/fix-patterns.js +529 -0
  68. package/dist/utils/history-tracking.d.ts +94 -0
  69. package/dist/utils/history-tracking.js +230 -0
  70. package/dist/utils/history.d.ts +42 -0
  71. package/dist/utils/history.js +255 -0
  72. package/dist/utils/impact-scores.d.ts +44 -0
  73. package/dist/utils/impact-scores.js +257 -0
  74. package/dist/utils/retry.d.ts +24 -0
  75. package/dist/utils/retry.js +76 -0
  76. package/dist/utils/scanner.d.ts +74 -0
  77. package/dist/utils/scanner.js +606 -0
  78. package/dist/utils/scanner.test.d.ts +4 -0
  79. package/dist/utils/scanner.test.js +162 -0
  80. package/dist/utils/ui.d.ts +44 -0
  81. package/dist/utils/ui.js +276 -0
  82. package/mcp-server/dist/index.d.ts +8 -0
  83. package/mcp-server/dist/index.js +1923 -0
  84. package/package.json +88 -0
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "ally-a11y",
3
+ "version": "1.0.0",
4
+ "description": "Your codebase's accessibility ally. Scans, explains, and fixes a11y issues using GitHub Copilot CLI.",
5
+ "type": "module",
6
+ "bin": {
7
+ "ally": "./dist/cli.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "mcp-server/dist",
12
+ "README.md",
13
+ "LICENSE",
14
+ "ACCESSIBILITY.md"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "build:all": "npm run build && cd mcp-server && npm run build",
19
+ "dev": "tsc -w",
20
+ "start": "node dist/cli.js",
21
+ "test": "node --test --import tsx test/*.test.ts",
22
+ "test:coverage": "c8 --reporter=text --reporter=lcov node --test --import tsx test/*.test.ts",
23
+ "test:coverage:check": "c8 check-coverage --lines 70 --functions 70 --branches 60",
24
+ "test:e2e": "node --test --import tsx test/e2e/*.test.ts",
25
+ "lint": "tsc --noEmit",
26
+ "benchmark": "tsx benchmark/scan-speed.ts",
27
+ "benchmark:ci": "tsx benchmark/scan-speed.ts --json --threshold 20",
28
+ "prepublishOnly": "npm run build:all",
29
+ "postinstall": "node -e \"console.log('\\n✅ ally-a11y installed! Run \\x1b[36mally init\\x1b[0m to get started.\\n')\""
30
+ },
31
+ "c8": {
32
+ "include": ["src/**/*.ts"],
33
+ "exclude": ["test/**", "dist/**", "mcp-server/**"],
34
+ "all": true,
35
+ "instrument": true,
36
+ "sourceMap": true,
37
+ "produce-source-map": true,
38
+ "per-file": false,
39
+ "skip-full": false,
40
+ "report-dir": "./coverage",
41
+ "temp-dir": "./coverage/tmp"
42
+ },
43
+ "keywords": [
44
+ "accessibility",
45
+ "a11y",
46
+ "wcag",
47
+ "axe-core",
48
+ "cli",
49
+ "github-copilot",
50
+ "mcp",
51
+ "copilot-cli"
52
+ ],
53
+ "author": "Liz Fong-Jones",
54
+ "license": "MIT",
55
+ "repository": {
56
+ "type": "git",
57
+ "url": "https://github.com/forbiddenlink/ally.git"
58
+ },
59
+ "homepage": "https://github.com/forbiddenlink/ally#readme",
60
+ "bugs": {
61
+ "url": "https://github.com/forbiddenlink/ally/issues"
62
+ },
63
+ "dependencies": {
64
+ "@axe-core/puppeteer": "^4.10.0",
65
+ "@octokit/rest": "^22.0.1",
66
+ "axe-core": "^4.10.0",
67
+ "boxen": "^8.0.1",
68
+ "chalk": "^5.4.1",
69
+ "cli-progress": "^3.12.0",
70
+ "commander": "^13.1.0",
71
+ "glob": "^11.0.1",
72
+ "inquirer": "^9.2.23",
73
+ "ora": "^8.1.1",
74
+ "puppeteer": "^24.2.0",
75
+ "simple-git": "^3.30.0"
76
+ },
77
+ "devDependencies": {
78
+ "@types/cli-progress": "^3.11.6",
79
+ "@types/inquirer": "^9.0.9",
80
+ "@types/node": "^22.13.4",
81
+ "c8": "^10.1.3",
82
+ "tsx": "^4.21.0",
83
+ "typescript": "^5.7.3"
84
+ },
85
+ "engines": {
86
+ "node": ">=18.0.0"
87
+ }
88
+ }