@vertaaux/cli 0.3.2 → 0.3.3

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/README.md CHANGED
@@ -147,7 +147,7 @@ The `--machine` global flag enables strict machine-readable mode:
147
147
  ```json
148
148
  {
149
149
  "meta": {
150
- "version": "0.1.0",
150
+ "version": "0.3.3",
151
151
  "timestamp": "2026-02-08T12:00:00.000Z",
152
152
  "command": "audit",
153
153
  "args": ["https://example.com", "--format", "json"]
@@ -210,6 +210,10 @@ These options work with any command:
210
210
  | `-q, --quiet` | Suppress banner and non-essential output |
211
211
  | `--no-banner` | Hide the V-mark banner |
212
212
  | `--machine` | Strict machine-readable output mode |
213
+ | `--color` | Force colored output |
214
+ | `--no-color` | Disable colored output |
215
+ | `--dashboard` | Force live dashboard during audit --wait |
216
+ | `--no-dashboard` | Disable live dashboard (use spinner instead) |
213
217
  | `--dry-run` | Show what would happen without executing |
214
218
  | `-y, --yes` | Auto-confirm all interactive prompts |
215
219
  | `--verbose` | Expand output with additional details |
@@ -338,6 +342,9 @@ JSON envelope output automatically filters CLI arguments containing API keys or
338
342
  | `VERTAAUX_API_KEY` | API authentication key |
339
343
  | `VERTAAUX_TOKEN` | Alternative auth token (checked first) |
340
344
  | `VERTAAUX_API_BASE` | API base URL override |
345
+ | `VERTAAUX_AUTH_BASE` | Auth endpoint override (default: `https://vertaaux.ai`) |
346
+ | `VERTAAUX_LOG_LEVEL` | Log verbosity: `debug\|info\|warn\|error` (default: `info`) |
347
+ | `VERTAAUX_LOG_JSON` | Structured JSON logs (default: `false`) |
341
348
  | `NO_COLOR` | Disable colored output |
342
349
  | `FORCE_COLOR` | Force colored output |
343
350
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * V-mark ASCII banner for VertaaUX CLI.
2
+ * Arrow-mark ASCII banner for VertaaUX CLI.
3
3
  *
4
- * Displays a subtle gradient from lime to teal/cyan.
4
+ * Displays a compact arrow wedge in teal/mint gradient.
5
5
  * Can be suppressed via --quiet, --no-banner, or non-TTY environments.
6
6
  */
7
7
  export interface BannerOptions {
@@ -13,7 +13,7 @@ export interface BannerOptions {
13
13
  noBanner?: boolean;
14
14
  }
15
15
  /**
16
- * Show the V-mark banner with version and working directory.
16
+ * Show the arrow-mark banner with version and working directory.
17
17
  *
18
18
  * Banner is suppressed if:
19
19
  * - --quiet or -q flag is set
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwCH,MAAM,WAAW,aAAa;IAC5B,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CA0BvD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAOnC"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/ui/banner.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqBH,MAAM,WAAW,aAAa;IAC5B,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI,CA+BvD;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAOnC"}
package/dist/ui/banner.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * V-mark ASCII banner for VertaaUX CLI.
2
+ * Arrow-mark ASCII banner for VertaaUX CLI.
3
3
  *
4
- * Displays a subtle gradient from lime to teal/cyan.
4
+ * Displays a compact arrow wedge in teal/mint gradient.
5
5
  * Can be suppressed via --quiet, --no-banner, or non-TTY environments.
6
6
  */
7
7
  import chalk from "chalk";
@@ -9,35 +9,18 @@ import { createRequire } from "module";
9
9
  import { isTTY, shouldUseColor } from "../utils/detect-env.js";
10
10
  // For JSON imports in ESM
11
11
  const require = createRequire(import.meta.url);
12
- // V-mark ASCII art (3 lines)
13
- const V_MARK = [" \u2588\u2588\u2557 \u2588\u2588\u2557", " \u255a\u2588\u2588\u2557 \u2588\u2588\u2554\u255d", " \u255a\u2588\u2588\u2588\u2588\u2554\u255d"];
14
- // Gradient colors: lime -> teal/cyan
15
- const GRADIENT_COLORS = [
16
- "#78FFB4", // Lime
17
- "#6BEEBD", // Light teal
18
- "#5EDDC6", // Teal
19
- "#51CCCE", // Cyan-ish teal
12
+ // Arrow-mark ASCII art (compact 5-line wedge matching brand)
13
+ const ARROW_MARK = [
14
+ " ██████████▀",
15
+ " ████████▀",
16
+ " ▀██████████▀",
17
+ " ▀██████▀",
18
+ " ▀██▀",
20
19
  ];
20
+ const TEAL = "#5EE4C4";
21
+ const MINT = "#90EECE";
21
22
  /**
22
- * Apply gradient to text by coloring each character.
23
- */
24
- function applyGradient(text, colors) {
25
- const colorCount = colors.length;
26
- let result = "";
27
- let colorIndex = 0;
28
- for (const char of text) {
29
- if (char !== " ") {
30
- result += chalk.hex(colors[colorIndex % colorCount])(char);
31
- colorIndex++;
32
- }
33
- else {
34
- result += char;
35
- }
36
- }
37
- return result;
38
- }
39
- /**
40
- * Show the V-mark banner with version and working directory.
23
+ * Show the arrow-mark banner with version and working directory.
41
24
  *
42
25
  * Banner is suppressed if:
43
26
  * - --quiet or -q flag is set
@@ -54,20 +37,27 @@ export function showBanner(options) {
54
37
  }
55
38
  const useColor = shouldUseColor();
56
39
  const cwd = process.cwd();
57
- // Build banner lines
58
- const lines = useColor
59
- ? [
60
- `${applyGradient(V_MARK[0], GRADIENT_COLORS)} ${chalk.bold("VertaaUX")} v${version}`,
61
- `${applyGradient(V_MARK[1], GRADIENT_COLORS)} ${chalk.dim(cwd)}`,
62
- `${applyGradient(V_MARK[2], GRADIENT_COLORS)}`,
63
- ]
64
- : [
65
- `${V_MARK[0]} VertaaUX v${version}`,
66
- `${V_MARK[1]} ${cwd}`,
67
- `${V_MARK[2]}`,
40
+ if (useColor) {
41
+ const logo = ARROW_MARK.map((line) => chalk.hex(TEAL)(line));
42
+ const lines = [
43
+ `${logo[0]} ${chalk.hex(MINT).bold("VertaaUX")} v${version}`,
44
+ `${logo[1]} ${chalk.dim(cwd)}`,
45
+ `${logo[2]}`,
46
+ `${logo[3]}`,
47
+ `${logo[4]}`,
68
48
  ];
69
- // Write to stderr to avoid mixing with command output
70
- process.stderr.write(lines.join("\n") + "\n\n");
49
+ process.stderr.write(lines.join("\n") + "\n\n");
50
+ }
51
+ else {
52
+ const lines = [
53
+ `${ARROW_MARK[0]} VertaaUX v${version}`,
54
+ `${ARROW_MARK[1]} ${cwd}`,
55
+ `${ARROW_MARK[2]}`,
56
+ `${ARROW_MARK[3]}`,
57
+ `${ARROW_MARK[4]}`,
58
+ ];
59
+ process.stderr.write(lines.join("\n") + "\n\n");
60
+ }
71
61
  }
72
62
  /**
73
63
  * Get version from package.json.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertaaux/cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Run automated UX audits, accessibility checks, and performance analysis from the terminal or CI pipelines. Supports policy gating, SARIF output, and multi-page crawling. See https://github.com/PetriLahdelma/vertaa/tree/main/cli#readme for full docs.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",