a11y-devkit-deploy 0.8.5 → 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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +23 -0
  3. package/src/ui.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a11y-devkit-deploy",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "CLI to deploy a11y skills and MCP servers across IDEs",
5
5
  "license": "MIT",
6
6
  "type": "module",
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.dim(subtitle)}` : "";
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.dim(value);
46
+ return pc.gray(value);
47
47
  }
48
48
 
49
49
  export {