cbrowser 8.0.0 → 8.2.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.
Files changed (107) hide show
  1. package/README.md +55 -0
  2. package/dist/analysis/bug-hunter.d.ts +0 -0
  3. package/dist/analysis/bug-hunter.d.ts.map +0 -0
  4. package/dist/analysis/bug-hunter.js +0 -0
  5. package/dist/analysis/bug-hunter.js.map +0 -0
  6. package/dist/analysis/chaos-testing.d.ts +0 -0
  7. package/dist/analysis/chaos-testing.d.ts.map +0 -0
  8. package/dist/analysis/chaos-testing.js +0 -0
  9. package/dist/analysis/chaos-testing.js.map +0 -0
  10. package/dist/analysis/index.d.ts +0 -0
  11. package/dist/analysis/index.d.ts.map +0 -0
  12. package/dist/analysis/index.js +0 -0
  13. package/dist/analysis/index.js.map +0 -0
  14. package/dist/analysis/natural-language.d.ts +0 -0
  15. package/dist/analysis/natural-language.d.ts.map +0 -0
  16. package/dist/analysis/natural-language.js +0 -0
  17. package/dist/analysis/natural-language.js.map +0 -0
  18. package/dist/analysis/persona-comparison.d.ts +0 -0
  19. package/dist/analysis/persona-comparison.d.ts.map +0 -0
  20. package/dist/analysis/persona-comparison.js +0 -0
  21. package/dist/analysis/persona-comparison.js.map +0 -0
  22. package/dist/browser.d.ts +0 -0
  23. package/dist/browser.d.ts.map +0 -0
  24. package/dist/browser.js +0 -0
  25. package/dist/browser.js.map +0 -0
  26. package/dist/cli.d.ts +0 -0
  27. package/dist/cli.d.ts.map +0 -0
  28. package/dist/cli.js +10 -7
  29. package/dist/cli.js.map +1 -1
  30. package/dist/config.d.ts +0 -0
  31. package/dist/config.d.ts.map +0 -0
  32. package/dist/config.js +0 -0
  33. package/dist/config.js.map +0 -0
  34. package/dist/daemon.d.ts +0 -0
  35. package/dist/daemon.d.ts.map +0 -0
  36. package/dist/daemon.js +0 -0
  37. package/dist/daemon.js.map +0 -0
  38. package/dist/index.d.ts +0 -0
  39. package/dist/index.d.ts.map +0 -0
  40. package/dist/index.js +0 -0
  41. package/dist/index.js.map +0 -0
  42. package/dist/mcp-server-remote.d.ts +0 -0
  43. package/dist/mcp-server-remote.d.ts.map +0 -0
  44. package/dist/mcp-server-remote.js +1 -1
  45. package/dist/mcp-server-remote.js.map +0 -0
  46. package/dist/mcp-server.d.ts +0 -0
  47. package/dist/mcp-server.d.ts.map +0 -0
  48. package/dist/mcp-server.js +0 -0
  49. package/dist/mcp-server.js.map +0 -0
  50. package/dist/performance/index.d.ts +0 -0
  51. package/dist/performance/index.d.ts.map +0 -0
  52. package/dist/performance/index.js +0 -0
  53. package/dist/performance/index.js.map +0 -0
  54. package/dist/performance/metrics.d.ts +0 -0
  55. package/dist/performance/metrics.d.ts.map +0 -0
  56. package/dist/performance/metrics.js +0 -0
  57. package/dist/performance/metrics.js.map +0 -0
  58. package/dist/personas.d.ts +0 -0
  59. package/dist/personas.d.ts.map +0 -0
  60. package/dist/personas.js +0 -0
  61. package/dist/personas.js.map +0 -0
  62. package/dist/testing/coverage.d.ts +0 -0
  63. package/dist/testing/coverage.d.ts.map +0 -0
  64. package/dist/testing/coverage.js +0 -0
  65. package/dist/testing/coverage.js.map +0 -0
  66. package/dist/testing/flaky-detection.d.ts +0 -0
  67. package/dist/testing/flaky-detection.d.ts.map +0 -0
  68. package/dist/testing/flaky-detection.js +0 -0
  69. package/dist/testing/flaky-detection.js.map +0 -0
  70. package/dist/testing/index.d.ts +0 -0
  71. package/dist/testing/index.d.ts.map +0 -0
  72. package/dist/testing/index.js +0 -0
  73. package/dist/testing/index.js.map +0 -0
  74. package/dist/testing/nl-test-suite.d.ts +0 -0
  75. package/dist/testing/nl-test-suite.d.ts.map +0 -0
  76. package/dist/testing/nl-test-suite.js +0 -0
  77. package/dist/testing/nl-test-suite.js.map +0 -0
  78. package/dist/testing/test-repair.d.ts +0 -0
  79. package/dist/testing/test-repair.d.ts.map +0 -0
  80. package/dist/testing/test-repair.js +0 -0
  81. package/dist/testing/test-repair.js.map +0 -0
  82. package/dist/types.d.ts +0 -0
  83. package/dist/types.d.ts.map +0 -0
  84. package/dist/types.js +0 -0
  85. package/dist/types.js.map +0 -0
  86. package/dist/visual/ab-comparison.d.ts +0 -0
  87. package/dist/visual/ab-comparison.d.ts.map +0 -0
  88. package/dist/visual/ab-comparison.js +0 -0
  89. package/dist/visual/ab-comparison.js.map +0 -0
  90. package/dist/visual/cross-browser.d.ts +0 -0
  91. package/dist/visual/cross-browser.d.ts.map +0 -0
  92. package/dist/visual/cross-browser.js +0 -0
  93. package/dist/visual/cross-browser.js.map +0 -0
  94. package/dist/visual/index.d.ts +0 -0
  95. package/dist/visual/index.d.ts.map +0 -0
  96. package/dist/visual/index.js +0 -0
  97. package/dist/visual/index.js.map +0 -0
  98. package/dist/visual/regression.d.ts +0 -0
  99. package/dist/visual/regression.d.ts.map +0 -0
  100. package/dist/visual/regression.js +0 -0
  101. package/dist/visual/regression.js.map +0 -0
  102. package/dist/visual/responsive.d.ts +0 -0
  103. package/dist/visual/responsive.d.ts.map +0 -0
  104. package/dist/visual/responsive.js +0 -0
  105. package/dist/visual/responsive.js.map +0 -0
  106. package/examples/ci-cd/README.md +47 -0
  107. package/package.json +21 -2
package/README.md CHANGED
@@ -829,6 +829,61 @@ CBrowser uses optimized Chromium launch flags for fast startup:
829
829
 
830
830
  ---
831
831
 
832
+ ## CI/CD Integration
833
+
834
+ CBrowser provides native integrations for CI/CD pipelines. Add browser automation, visual regression, and NL test validation to every pull request.
835
+
836
+ ### GitHub Actions
837
+
838
+ Use the official GitHub Action for zero-config setup:
839
+
840
+ ```yaml
841
+ # .github/workflows/cbrowser.yml
842
+ name: CBrowser Tests
843
+ on: [pull_request]
844
+
845
+ jobs:
846
+ test:
847
+ runs-on: ubuntu-latest
848
+ steps:
849
+ - uses: actions/checkout@v4
850
+ - uses: alexandriashai/cbrowser@v8
851
+ with:
852
+ test-file: tests/e2e/checkout.txt
853
+ sensitivity: strict
854
+ ```
855
+
856
+ Available inputs: `test-file`, `url`, `command`, `browsers`, `sensitivity`.
857
+
858
+ ### GitLab CI
859
+
860
+ Include the reusable component:
861
+
862
+ ```yaml
863
+ include:
864
+ - component: gitlab.com/alexandriashai/cbrowser/.gitlab-ci-component.yml
865
+ inputs:
866
+ test-file: tests/e2e/checkout.txt
867
+ sensitivity: strict
868
+ ```
869
+
870
+ ### Docker
871
+
872
+ Run CBrowser in any CI system using the Docker image:
873
+
874
+ ```bash
875
+ docker run --rm -v $(pwd)/tests:/work/tests ghcr.io/alexandriashai/cbrowser:latest \
876
+ test-suite tests/checkout.txt --output results.json --html
877
+ ```
878
+
879
+ ### Exit Codes
880
+
881
+ CBrowser exits with code 1 on test failure, making it compatible with any CI system that uses exit codes to determine pass/fail status.
882
+
883
+ For detailed setup guides and examples, see [`examples/ci-cd/`](examples/ci-cd/).
884
+
885
+ ---
886
+
832
887
  ## Examples
833
888
 
834
889
  See the [`examples/`](examples/) directory:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/dist/browser.d.ts CHANGED
File without changes
File without changes
package/dist/browser.js CHANGED
File without changes
File without changes
package/dist/cli.d.ts CHANGED
File without changes
package/dist/cli.d.ts.map CHANGED
File without changes
package/dist/cli.js CHANGED
@@ -24,8 +24,9 @@ const config_js_1 = require("./config.js");
24
24
  function showHelp() {
25
25
  console.log(`
26
26
  ╔══════════════════════════════════════════════════════════════════════════════╗
27
- ║ CBrowser CLI v7.4.6
27
+ ║ CBrowser CLI
28
28
  ║ AI-powered browser automation with cross-browser visual testing ║
29
+ ║ Semantic Versioning: https://semver.org/ ║
29
30
  ╚══════════════════════════════════════════════════════════════════════════════╝
30
31
 
31
32
  NAVIGATION
@@ -448,10 +449,12 @@ MCP SERVER (v5.0.0)
448
449
  --port <port> Port to listen on (default: 3000)
449
450
  --host <host> Host to bind to (default: 0.0.0.0)
450
451
 
451
- PAI SKILL INSTALLATION (v7.4.6)
452
+ PAI SKILL INSTALLATION & SYNC
452
453
  install-skill Install CBrowser as a PAI skill to ~/.claude/skills/
453
- Downloads skill files from GitHub and creates directory structure
454
- Add to skill-index.json after installation
454
+ sync-skill Sync local skill to match npm version (same as install-skill)
455
+ Downloads latest skill files from GitHub
456
+ Run after 'npm update -g cbrowser' to stay in sync
457
+ Add to skill-index.json after first installation
455
458
  --stateful Use stateful session mode
456
459
 
457
460
  DAEMON MODE (v6.4.0)
@@ -898,8 +901,8 @@ async function main() {
898
901
  console.log((0, config_js_1.formatStatus)(info));
899
902
  process.exit(0);
900
903
  }
901
- // Install PAI skill
902
- if (command === "install-skill") {
904
+ // Install/Sync PAI skill (both commands do the same thing)
905
+ if (command === "install-skill" || command === "sync-skill") {
903
906
  const { execSync } = await import("child_process");
904
907
  const path = await import("path");
905
908
  const fs = await import("fs");
@@ -908,7 +911,7 @@ async function main() {
908
911
  const repoUrl = "https://raw.githubusercontent.com/alexandriashai/cbrowser/main";
909
912
  console.log(`
910
913
  ╔═══════════════════════════════════════════════════════════════╗
911
- ║ CBrowser PAI Skill Installer v7.4.6
914
+ ║ CBrowser PAI Skill Sync (auto-versioned)
912
915
  ╚═══════════════════════════════════════════════════════════════╝
913
916
  `);
914
917
  // Check if ~/.claude/skills exists