a11y-devkit-deploy 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a11y-devkit-deploy",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "CLI to deploy a11y skills and MCP servers across IDEs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,4 +46,4 @@
46
46
  "picocolors": "^1.1.0",
47
47
  "prompts": "^2.4.2"
48
48
  }
49
- }
49
+ }
package/src/cli.js CHANGED
@@ -17,6 +17,30 @@ async function loadConfig() {
17
17
  return JSON.parse(raw);
18
18
  }
19
19
 
20
+ async function loadPackageJson() {
21
+ const pkgPath = path.join(__dirname, "..", "package.json");
22
+ const raw = await fs.readFile(pkgPath, "utf8");
23
+ return JSON.parse(raw);
24
+ }
25
+
26
+ const skillDescriptions = {
27
+ "a11y-base-web-skill": "Core accessibility testing utilities",
28
+ "a11y-issue-writer-skill": "Document accessibility issues",
29
+ "a11y-tester-skill": "Run accessibility tests",
30
+ "a11y-remediator-skill": "Fix accessibility issues",
31
+ "a11y-validator-skill": "Validate accessibility compliance",
32
+ "web-standards-skill": "Web standards reference",
33
+ "a11y-audit-fix-agent-orchestrator-skill": "Orchestrate accessibility audits"
34
+ };
35
+
36
+ const mcpDescriptions = {
37
+ "wcag": "WCAG guidelines reference",
38
+ "aria": "ARIA specification reference",
39
+ "magentaa11y": "MagentaA11y accessibility acceptance criteria tool",
40
+ "a11y-personas": "Accessibility personas and user scenarios",
41
+ "arc-issues": "Pre-formatted a11y issue templates"
42
+ };
43
+
20
44
  function parseArgs(argv) {
21
45
  const args = new Set(argv.slice(2));
22
46
  return {
@@ -36,12 +60,26 @@ async function run() {
36
60
  const projectRoot = process.cwd();
37
61
  const platformInfo = getPlatform();
38
62
  const config = await loadConfig();
63
+ const pkg = await loadPackageJson();
39
64
  const idePaths = getIdePaths(projectRoot, platformInfo, config.ideSkillsPaths);
40
65
  const args = parseArgs(process.argv);
41
66
 
42
- header("A11y Devkit Deploy", "Install skills + MCP servers across IDEs");
67
+ header(`A11y Devkit Deploy v${pkg.version}`, "Install skills + MCP servers across IDEs");
43
68
  info(`Detected OS: ${formatOs(platformInfo)}`);
44
69
 
70
+ console.log("\nSkills to install:");
71
+ config.skills.forEach((skill) => {
72
+ const description = skillDescriptions[skill] || "No description";
73
+ info(` ${skill} - ${description}`);
74
+ });
75
+
76
+ console.log("\nMCP Servers to install:");
77
+ config.mcpServers.forEach((server) => {
78
+ const description = mcpDescriptions[server.name] || "No description";
79
+ info(` ${server.name} - ${description}`);
80
+ });
81
+ console.log("");
82
+
45
83
  const ideChoices = [
46
84
  { title: "Claude Code", value: "claude" },
47
85
  { title: "Cursor", value: "cursor" },
@@ -13,7 +13,7 @@ async function pathExists(target) {
13
13
 
14
14
  function run(command, args, options = {}) {
15
15
  return new Promise((resolve, reject) => {
16
- const child = spawn(command, args, { stdio: "pipe", ...options });
16
+ const child = spawn(command, args, { stdio: "pipe", shell: true, ...options });
17
17
  let stdout = "";
18
18
  let stderr = "";
19
19