cbrowser 18.24.0 → 18.25.1

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/dist/cli.js CHANGED
@@ -318,6 +318,36 @@ AI VISUAL REGRESSION (v7.0.0)
318
318
  ai-visual show <name> Show baseline details
319
319
  ai-visual delete <name> Delete a baseline
320
320
 
321
+ SMART BASELINES & TRANSPORT MAP (v18.0.0)
322
+ smart-baseline capture <url> Capture consensus baseline from multiple screenshots
323
+ --name <name> Baseline name (required)
324
+ --captures <n> Number of screenshots to take (default: 5)
325
+ --delay <ms> Delay between captures (default: 1500)
326
+ --selector <sel> Capture specific element
327
+ --device <device> Device emulation
328
+ --outlier-threshold <n> Outlier rejection threshold in stddev (default: 2.0)
329
+ Examples:
330
+ cbrowser smart-baseline capture "https://example.com" --name homepage
331
+ cbrowser smart-baseline capture "https://example.com" --name hero --captures 10
332
+
333
+ smart-baseline test <url> <name> Test against smart baseline
334
+ --threshold <n> Override adaptive threshold (0-1)
335
+ --transport-map Also generate visual transport map
336
+ Examples:
337
+ cbrowser smart-baseline test "https://staging.example.com" homepage
338
+ cbrowser smart-baseline test "https://staging.example.com" homepage --transport-map
339
+
340
+ smart-baseline list List all smart baselines
341
+ smart-baseline delete <name> Delete a smart baseline
342
+
343
+ transport-map <baseline> <current> Generate visual transport map between two screenshots
344
+ --cell-size <n> Grid cell size in pixels (default: 32)
345
+ --output <file.svg> Save SVG to file
346
+ --hotspots <n> Number of hotspots to identify (default: 5)
347
+ Examples:
348
+ cbrowser transport-map baseline.png current.png
349
+ cbrowser transport-map baseline.png current.png --cell-size 16 --output changes.svg
350
+
321
351
  CROSS-BROWSER VISUAL TESTING (v7.3.0)
322
352
  cross-browser <url> Compare visual rendering across browsers
323
353
  --browsers <list> Browsers to test: chromium,firefox,webkit (default: all)