@vizzly-testing/cli 0.32.0 → 0.33.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.
@@ -4,56 +4,47 @@
4
4
  import { Ansis } from 'ansis';
5
5
 
6
6
  // =============================================================================
7
- // Vizzly Observatory Design System Colors
8
- // Aligned with @vizzly-testing/observatory color tokens
7
+ // Vizzly BearDen Design System Colors
8
+ // Aligned with the reporter design system color tokens.
9
9
  // =============================================================================
10
10
 
11
11
  export let brand = {
12
- // Primary brand color - Amber is Observatory's signature
13
- amber: '#F59E0B',
12
+ // Primary brand color - restrained brass on graphite
13
+ amber: '#D69A35',
14
14
  // Primary brand, actions, highlights
15
- amberLight: '#FBBF24',
15
+ amberLight: '#E0AD55',
16
16
  // Hover states, emphasis
17
17
 
18
18
  // Accent colors (semantic)
19
- success: '#10B981',
19
+ success: '#7FD990',
20
20
  // Approved, passed, active (--accent-success)
21
- warning: '#F59E0B',
21
+ warning: '#DCAD5F',
22
22
  // Pending, attention (--accent-warning)
23
- danger: '#EF4444',
23
+ danger: '#D77782',
24
24
  // Rejected, failed, errors (--accent-danger)
25
- info: '#3B82F6',
25
+ info: '#B7BDC6',
26
26
  // Processing, informational (--accent-info)
27
27
 
28
28
  // Surface colors (dark theme)
29
- bg: '#0F172A',
29
+ bg: '#07080A',
30
30
  // Page background (--vz-bg)
31
- surface: '#1A2332',
31
+ surface: '#101216',
32
32
  // Cards, panels (--vz-surface)
33
- elevated: '#1E293B',
33
+ elevated: '#111318',
34
34
  // Dropdowns, modals (--vz-elevated)
35
- border: '#374151',
35
+ border: '#30343B',
36
36
  // Primary borders (--vz-border)
37
- borderSubtle: '#2D3748',
37
+ borderSubtle: '#252930',
38
38
  // Subtle dividers (--vz-border-subtle)
39
39
 
40
40
  // Text hierarchy
41
- textPrimary: '#FFFFFF',
41
+ textPrimary: '#F4F6F8',
42
42
  // Headings, important (--text-primary)
43
- textSecondary: '#9CA3AF',
43
+ textSecondary: '#C8CDD3',
44
44
  // Body text (--text-secondary)
45
- textTertiary: '#6B7280',
45
+ textTertiary: '#A0A6AF',
46
46
  // Captions, metadata (--text-tertiary)
47
- textMuted: '#4B5563',
48
- // Disabled, placeholders (--text-muted)
49
-
50
- // Legacy aliases (for backward compatibility)
51
- green: '#10B981',
52
- red: '#EF4444',
53
- cyan: '#06B6D4',
54
- // Still useful for links in terminals
55
- slate: '#64748B',
56
- dark: '#1E293B'
47
+ textMuted: '#7A828D' // Disabled, placeholders (--text-muted)
57
48
  };
58
49
  function supportsColorDefault() {
59
50
  // Respect NO_COLOR: https://no-color.org/
@@ -124,7 +115,7 @@ export function createColors(options = {}) {
124
115
  hex: () => noop,
125
116
  bgRgb: () => noop,
126
117
  bgHex: () => noop,
127
- // Observatory brand colors (noop versions)
118
+ // BearDen brand colors (noop versions)
128
119
  brand: {
129
120
  // Primary
130
121
  amber: noop,
@@ -133,6 +124,7 @@ export function createColors(options = {}) {
133
124
  success: noop,
134
125
  warning: noop,
135
126
  danger: noop,
127
+ error: noop,
136
128
  info: noop,
137
129
  // Text hierarchy
138
130
  textPrimary: noop,
@@ -144,12 +136,7 @@ export function createColors(options = {}) {
144
136
  bgSuccess: noop,
145
137
  bgWarning: noop,
146
138
  bgDanger: noop,
147
- bgInfo: noop,
148
- // Legacy aliases
149
- green: noop,
150
- red: noop,
151
- cyan: noop,
152
- slate: noop
139
+ bgInfo: noop
153
140
  }
154
141
  };
155
142
  }
@@ -173,16 +160,16 @@ export function createColors(options = {}) {
173
160
  gray: colors.gray,
174
161
  black: colors.black,
175
162
  // Semantic aliases (basic)
176
- success: colors.green,
177
- error: colors.red,
178
- warning: colors.yellow,
179
- info: colors.blue,
163
+ success: colors.hex(brand.success),
164
+ error: colors.hex(brand.danger),
165
+ warning: colors.hex(brand.warning),
166
+ info: colors.hex(brand.info),
180
167
  // Extended colors for rich styling
181
168
  rgb: colors.rgb.bind(colors),
182
169
  hex: colors.hex.bind(colors),
183
170
  bgRgb: colors.bgRgb.bind(colors),
184
171
  bgHex: colors.bgHex.bind(colors),
185
- // Observatory brand colors (Truecolor) - aligned with design system
172
+ // BearDen brand colors (Truecolor) - aligned with design system
186
173
  brand: {
187
174
  // Primary brand color
188
175
  amber: colors.hex(brand.amber),
@@ -191,6 +178,7 @@ export function createColors(options = {}) {
191
178
  success: colors.hex(brand.success),
192
179
  warning: colors.hex(brand.warning),
193
180
  danger: colors.hex(brand.danger),
181
+ error: colors.hex(brand.danger),
194
182
  info: colors.hex(brand.info),
195
183
  // Text hierarchy
196
184
  textPrimary: colors.hex(brand.textPrimary),
@@ -202,12 +190,7 @@ export function createColors(options = {}) {
202
190
  bgSuccess: colors.bgHex(brand.success),
203
191
  bgWarning: colors.bgHex(brand.warning),
204
192
  bgDanger: colors.bgHex(brand.danger),
205
- bgInfo: colors.bgHex(brand.info),
206
- // Legacy aliases (backward compatibility)
207
- green: colors.hex(brand.green),
208
- red: colors.hex(brand.red),
209
- cyan: colors.hex(brand.cyan),
210
- slate: colors.hex(brand.slate)
193
+ bgInfo: colors.bgHex(brand.info)
211
194
  }
212
195
  };
213
196
  }
@@ -121,7 +121,7 @@ export async function clearGlobalConfig() {
121
121
 
122
122
  /**
123
123
  * Save user's PATH for menubar app to use
124
- * This auto-configures the menubar app so it can find npx/node
124
+ * This auto-configures the menubar app so it can find package runners/node
125
125
  * @returns {Promise<void>}
126
126
  */
127
127
  export async function saveUserPath() {
@@ -235,7 +235,7 @@ export function isVerbose() {
235
235
 
236
236
  /**
237
237
  * Show command header with distinctive branding
238
- * Uses Observatory's signature amber color for "vizzly"
238
+ * Uses BearDen's signature amber color for "vizzly"
239
239
  * Only shows once per command execution
240
240
  * @param {string} command - Command name (e.g., 'tdd', 'run')
241
241
  * @param {string} [mode] - Optional mode (e.g., 'local', 'cloud')
@@ -245,7 +245,7 @@ export function header(command, mode = null) {
245
245
  headerShown = true;
246
246
  let parts = [];
247
247
 
248
- // Brand "vizzly" with Observatory's signature amber
248
+ // Brand "vizzly" with BearDen's signature amber
249
249
  parts.push(colors.brand.amber(colors.bold('vizzly')));
250
250
 
251
251
  // Command in info blue (processing, active)
@@ -289,7 +289,7 @@ export function success(message, data = {}) {
289
289
  }));
290
290
  } else {
291
291
  console.error('');
292
- console.error(colors.green('✓'), message);
292
+ console.error(colors.success('✓'), message);
293
293
  }
294
294
  }
295
295
 
@@ -308,7 +308,7 @@ export function result(message) {
308
308
  }));
309
309
  } else {
310
310
  console.error('');
311
- console.error(colors.green('✓'), `${message} ${colors.dim(`· ${elapsed}`)}`);
311
+ console.error(colors.success('✓'), `${message} ${colors.dim(`· ${elapsed}`)}`);
312
312
  }
313
313
  }
314
314
 
@@ -325,7 +325,7 @@ export function info(message, data = {}) {
325
325
  ...data
326
326
  }));
327
327
  } else {
328
- console.log(colors.cyan('ℹ'), message);
328
+ console.log(colors.info('ℹ'), message);
329
329
  }
330
330
  }
331
331
 
@@ -375,7 +375,7 @@ export function error(message, err = null, data = {}) {
375
375
  }
376
376
  console.error(JSON.stringify(errorData));
377
377
  } else {
378
- console.error(colors.red('✖'), message);
378
+ console.error(colors.error('✖'), message);
379
379
 
380
380
  // Show error details
381
381
  if (err instanceof Error) {
@@ -456,7 +456,7 @@ export function getJsonFields() {
456
456
 
457
457
  /**
458
458
  * Start a spinner with message
459
- * Uses Observatory amber for the spinner animation
459
+ * Uses BearDen amber for the spinner animation
460
460
  */
461
461
  export function startSpinner(message) {
462
462
  if (config.json || config.silent || !process.stderr.isTTY) return;
@@ -578,12 +578,12 @@ function formatData(data) {
578
578
  */
579
579
  /**
580
580
  * Get a distinctive color for a component name
581
- * Uses Observatory design system colors for consistent styling
581
+ * Uses BearDen design system colors for consistent styling
582
582
  * @param {string} component - Component name
583
583
  * @returns {Function} Color function
584
584
  */
585
585
  function getComponentColor(component) {
586
- // Map components to Observatory semantic colors
586
+ // Map components to BearDen semantic colors
587
587
  let componentColors = {
588
588
  // Server/infrastructure - success green (active, running)
589
589
  server: colors.brand.success,
@@ -698,7 +698,7 @@ function writeLog(level, message, data = {}) {
698
698
  /**
699
699
  * Generate a visual diff bar with color coding
700
700
  * Shows percentage as a filled/empty bar with color based on severity
701
- * Uses Observatory semantic colors (success → warning → danger)
701
+ * Uses BearDen semantic colors (success → warning → danger)
702
702
  * @param {number} percentage - Diff percentage (0-100)
703
703
  * @param {number} [width=10] - Bar width in characters
704
704
  * @returns {string} Colored diff bar string
@@ -716,7 +716,7 @@ export function diffBar(percentage, width = 10) {
716
716
  if (percentage > 0 && filled === 0) filled = 1;
717
717
  let empty = width - filled;
718
718
 
719
- // Color based on severity using Observatory semantic colors
719
+ // Color based on severity using BearDen semantic colors
720
720
  let barColor;
721
721
  if (percentage < 1) {
722
722
  barColor = colors.brand.success; // Green - minimal change
@@ -733,7 +733,7 @@ export function diffBar(percentage, width = 10) {
733
733
  /**
734
734
  * Generate a gradient progress bar
735
735
  * Creates a visually appealing progress indicator with color gradient
736
- * Default gradient uses Observatory amber → amber-light (signature brand gradient)
736
+ * Default gradient uses BearDen amber → amber-light (signature brand gradient)
737
737
  * @param {number} current - Current progress value
738
738
  * @param {number} total - Total value
739
739
  * @param {number} [width=20] - Bar width in characters
@@ -745,7 +745,7 @@ export function diffBar(percentage, width = 10) {
745
745
  export function progressBar(current, total, width = 20, options = {}) {
746
746
  if (config.json || config.silent) return '';
747
747
 
748
- // Default to Observatory's signature amber gradient
748
+ // Default to BearDen's signature amber gradient
749
749
  let {
750
750
  from = '#F59E0B',
751
751
  to = '#FBBF24'
@@ -791,7 +791,7 @@ function hexToRgb(hex) {
791
791
 
792
792
  /**
793
793
  * Create a colored badge/pill for status indicators
794
- * Uses Observatory semantic colors for consistent meaning
794
+ * Uses BearDen semantic colors for consistent meaning
795
795
  * @param {string} text - Badge text
796
796
  * @param {string} [type='info'] - Badge type: 'success', 'warning', 'error', 'info'
797
797
  * @returns {string} Formatted badge string
@@ -826,7 +826,7 @@ export function badge(text, type = 'info') {
826
826
 
827
827
  /**
828
828
  * Create a colored status dot
829
- * Uses Observatory semantic colors for consistent meaning
829
+ * Uses BearDen semantic colors for consistent meaning
830
830
  * @param {string} [status='info'] - Status type: 'success', 'warning', 'error', 'info'
831
831
  * @returns {string} Colored dot character
832
832
  */
@@ -1033,7 +1033,7 @@ export function box(content, options = {}) {
1033
1033
  innerWidth = Math.max(innerWidth, titleWidth);
1034
1034
  }
1035
1035
 
1036
- // Border styling - use Observatory amber for 'branded' style
1036
+ // Border styling - use BearDen amber for 'branded' style
1037
1037
  let border = borderColor || (style === 'branded' ? colors.brand.amber : colors.dim);
1038
1038
  let titleColor = style === 'branded' ? colors.bold : s => s;
1039
1039
 
@@ -6,6 +6,7 @@ export function createScreenshotProperties(options = {}) {
6
6
  let {
7
7
  buildId: _buildId,
8
8
  properties = {},
9
+ requestTimeout: _requestTimeout,
9
10
  threshold,
10
11
  minClusterSize,
11
12
  fullPage,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly-testing/cli",
3
- "version": "0.32.0",
4
- "description": "Visual review for agents and teams",
3
+ "version": "0.33.0",
4
+ "description": "Visual regression testing from your terminal",
5
5
  "keywords": [
6
6
  "llm-context",
7
7
  "visual-context",
@@ -23,6 +23,7 @@
23
23
  "license": "MIT",
24
24
  "author": "Stubborn Mule Software <support@vizzly.dev>",
25
25
  "type": "module",
26
+ "packageManager": "pnpm@11.3.0",
26
27
  "exports": {
27
28
  ".": {
28
29
  "types": "./dist/types/index.d.ts",
@@ -53,13 +54,14 @@
53
54
  "files": [
54
55
  "bin",
55
56
  "dist",
57
+ "docs/assets",
56
58
  "README.md",
57
59
  "LICENSE"
58
60
  ],
59
61
  "scripts": {
60
62
  "cli": "source .envrc && node bin/vizzly.js",
61
63
  "start": "node src/index.js",
62
- "build": "npm run clean && npm run compile && npm run build:reporter && npm run build:reporter-ssr && npm run copy-types",
64
+ "build": "pnpm run clean && pnpm run compile && pnpm run build:reporter && pnpm run build:reporter-ssr && pnpm run copy-types",
63
65
  "clean": "rimraf dist",
64
66
  "compile": "babel src --out-dir dist --ignore '**/*.test.js'",
65
67
  "copy-types": "mkdir -p dist/types && cp src/types/*.d.ts dist/types/",
@@ -67,12 +69,12 @@
67
69
  "build:reporter-ssr": "cd src/reporter && vite build --config vite.ssr.config.js",
68
70
  "dev:reporter": "cd src/reporter && vite --config vite.dev.config.js",
69
71
  "test:types": "tsd",
70
- "prepublishOnly": "npm run build",
72
+ "prepublishOnly": "pnpm run build",
71
73
  "test": "node --experimental-test-coverage --test --test-concurrency=1 --test-reporter=spec $(find tests -name '*.test.js')",
72
74
  "test:watch": "node --test --test-reporter=spec --watch $(find tests -name '*.test.js')",
73
75
  "test:reporter": "playwright test --config=tests/reporter/playwright.config.js",
74
- "test:reporter:visual": "node bin/vizzly.js run \"npm run test:reporter\"",
75
- "test:swift:e2e": "npm run build && node clients/swift/scripts/run-e2e.js",
76
+ "test:reporter:visual": "node bin/vizzly.js tdd run \"pnpm run test:reporter\" --no-open",
77
+ "test:swift:e2e": "pnpm run build && node clients/swift/scripts/run-e2e.js",
76
78
  "test:tui": "node --test --test-reporter=spec tests/tui/*.test.js",
77
79
  "test:tui:docker": "./tests/tui/run-tui-tests.sh",
78
80
  "smoke:prod:pack": "node scripts/smoke-prod-pack.js",
@@ -80,7 +82,7 @@
80
82
  "lint:fix": "biome check --write --unsafe src tests clients/storybook/src clients/storybook/tests clients/static-site/src clients/static-site/tests clients/vitest/src clients/vitest/tests clients/ember/src clients/ember/tests clients/ember/bin",
81
83
  "format": "biome format --write src tests clients/storybook/src clients/storybook/tests clients/static-site/src clients/static-site/tests clients/vitest/src clients/vitest/tests clients/ember/src clients/ember/tests clients/ember/bin",
82
84
  "format:check": "biome format src tests clients/storybook/src clients/storybook/tests clients/static-site/src clients/static-site/tests clients/vitest/src clients/vitest/tests clients/ember/src clients/ember/tests clients/ember/bin",
83
- "fix": "npm run format && npm run lint:fix"
85
+ "fix": "pnpm run format && pnpm run lint:fix"
84
86
  },
85
87
  "engines": {
86
88
  "node": ">=22.0.0"
@@ -90,6 +92,7 @@
90
92
  "registry": "https://registry.npmjs.org/"
91
93
  },
92
94
  "dependencies": {
95
+ "@vizzly-testing/bear-den": "0.1.2",
93
96
  "@vizzly-testing/honeydiff": "^0.10.3",
94
97
  "ansis": "^4.2.0",
95
98
  "commander": "^14.0.0",
@@ -125,7 +128,6 @@
125
128
  "@tanstack/react-query": "^5.90.11",
126
129
  "@types/node": "^25.0.2",
127
130
  "@vitejs/plugin-react": "^6.0.1",
128
- "@vizzly-testing/observatory": "^0.3.3",
129
131
  "autoprefixer": "^10.4.21",
130
132
  "babel-plugin-react-compiler": "^1.0.0",
131
133
  "babel-plugin-transform-remove-console": "^6.9.4",