a11y-devkit-deploy 0.8.4 → 0.8.7
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/config/a11y.json +22 -6
- package/package.json +1 -1
- package/src/cli.js +23 -0
- package/src/ui.js +2 -2
package/config/a11y.json
CHANGED
|
@@ -119,6 +119,12 @@
|
|
|
119
119
|
"description": "Pre-formatted a11y issue templates",
|
|
120
120
|
"command": "npx",
|
|
121
121
|
"args": ["-y", "arc-issues-mcp"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"name": "playwright",
|
|
125
|
+
"description": "Enables LLMs to interact with web pages through structured accessibility snapshots.",
|
|
126
|
+
"command": "npx",
|
|
127
|
+
"args": ["-y", "@playwright/mcp@latest"]
|
|
122
128
|
}
|
|
123
129
|
],
|
|
124
130
|
"profiles": [
|
|
@@ -140,7 +146,8 @@
|
|
|
140
146
|
"aria",
|
|
141
147
|
"magentaa11y",
|
|
142
148
|
"a11y-personas",
|
|
143
|
-
"arc-issues"
|
|
149
|
+
"arc-issues",
|
|
150
|
+
"playwright"
|
|
144
151
|
]
|
|
145
152
|
},
|
|
146
153
|
{
|
|
@@ -153,7 +160,8 @@
|
|
|
153
160
|
"a11y-remediator-skill",
|
|
154
161
|
"web-standards-skill",
|
|
155
162
|
"a11y-audit-fix-agent-orchestrator-skill",
|
|
156
|
-
"a11y-validator-skill"
|
|
163
|
+
"a11y-validator-skill",
|
|
164
|
+
"playwright"
|
|
157
165
|
],
|
|
158
166
|
"mcpServers": ["wcag", "aria", "magentaa11y", "a11y-personas"]
|
|
159
167
|
},
|
|
@@ -186,7 +194,8 @@
|
|
|
186
194
|
"aria",
|
|
187
195
|
"magentaa11y",
|
|
188
196
|
"a11y-personas",
|
|
189
|
-
"arc-issues"
|
|
197
|
+
"arc-issues",
|
|
198
|
+
"playwright"
|
|
190
199
|
]
|
|
191
200
|
},
|
|
192
201
|
{
|
|
@@ -212,14 +221,20 @@
|
|
|
212
221
|
"displayName": "Product",
|
|
213
222
|
"description": "For product managers and owners",
|
|
214
223
|
"skills": ["a11y-base-web-skill", "web-standards-skill"],
|
|
215
|
-
"mcpServers": ["wcag", "magentaa11y", "a11y-personas"]
|
|
224
|
+
"mcpServers": ["wcag", "magentaa11y", "a11y-personas", "playwright"]
|
|
216
225
|
},
|
|
217
226
|
{
|
|
218
227
|
"id": "design",
|
|
219
228
|
"displayName": "Design",
|
|
220
229
|
"description": "For designers creating accessible experiences",
|
|
221
230
|
"skills": ["a11y-base-web-skill", "web-standards-skill"],
|
|
222
|
-
"mcpServers": [
|
|
231
|
+
"mcpServers": [
|
|
232
|
+
"wcag",
|
|
233
|
+
"aria",
|
|
234
|
+
"magentaa11y",
|
|
235
|
+
"a11y-personas",
|
|
236
|
+
"playwright"
|
|
237
|
+
]
|
|
223
238
|
},
|
|
224
239
|
{
|
|
225
240
|
"id": "hybrid",
|
|
@@ -239,7 +254,8 @@
|
|
|
239
254
|
"aria",
|
|
240
255
|
"magentaa11y",
|
|
241
256
|
"a11y-personas",
|
|
242
|
-
"arc-issues"
|
|
257
|
+
"arc-issues",
|
|
258
|
+
"playwright"
|
|
243
259
|
]
|
|
244
260
|
}
|
|
245
261
|
]
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
import fs from "fs/promises";
|
|
2
2
|
import path from "path";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
|
+
|
|
5
|
+
// Override kleur's gray color to add italics for better readability
|
|
6
|
+
import kleur from "kleur";
|
|
7
|
+
|
|
8
|
+
// Use gray with italics (ANSI 90 for gray, 3 for italic, 23 to reset italic)
|
|
9
|
+
// This matches the subtitle color but with italic styling
|
|
10
|
+
const grayItalic = (text) => {
|
|
11
|
+
if (typeof text === 'string') {
|
|
12
|
+
return `\x1b[3m\x1b[90m${text}\x1b[39m\x1b[23m`;
|
|
13
|
+
}
|
|
14
|
+
// Return a function that applies both italic and gray
|
|
15
|
+
return (str) => `\x1b[3m\x1b[90m${str}\x1b[39m\x1b[23m`;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Replace gray with italic gray for helper text
|
|
19
|
+
Object.defineProperty(kleur, 'gray', {
|
|
20
|
+
get() { return grayItalic; },
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
|
|
4
24
|
import prompts from "prompts";
|
|
5
25
|
|
|
6
26
|
import { header, info, warn, success, startSpinner, formatPath } from "./ui.js";
|
|
@@ -46,6 +66,9 @@ function formatOs(platformInfo) {
|
|
|
46
66
|
}
|
|
47
67
|
|
|
48
68
|
async function run() {
|
|
69
|
+
// Clear console for a cleaner start
|
|
70
|
+
console.clear();
|
|
71
|
+
|
|
49
72
|
const projectRoot = process.cwd();
|
|
50
73
|
const platformInfo = getPlatform();
|
|
51
74
|
const config = await loadConfig();
|
package/src/ui.js
CHANGED
|
@@ -10,7 +10,7 @@ const bullets = {
|
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
function header(title, subtitle) {
|
|
13
|
-
const line = subtitle ? `${pc.
|
|
13
|
+
const line = subtitle ? `${pc.gray(subtitle)}` : "";
|
|
14
14
|
const content = [pc.bold(title), line].filter(Boolean).join("\n");
|
|
15
15
|
console.log(
|
|
16
16
|
boxen(content, {
|
|
@@ -43,7 +43,7 @@ function startSpinner(text) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function formatPath(value) {
|
|
46
|
-
return pc.
|
|
46
|
+
return pc.gray(value);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
export {
|