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.
- package/README.md +55 -0
- package/dist/analysis/bug-hunter.d.ts +0 -0
- package/dist/analysis/bug-hunter.d.ts.map +0 -0
- package/dist/analysis/bug-hunter.js +0 -0
- package/dist/analysis/bug-hunter.js.map +0 -0
- package/dist/analysis/chaos-testing.d.ts +0 -0
- package/dist/analysis/chaos-testing.d.ts.map +0 -0
- package/dist/analysis/chaos-testing.js +0 -0
- package/dist/analysis/chaos-testing.js.map +0 -0
- package/dist/analysis/index.d.ts +0 -0
- package/dist/analysis/index.d.ts.map +0 -0
- package/dist/analysis/index.js +0 -0
- package/dist/analysis/index.js.map +0 -0
- package/dist/analysis/natural-language.d.ts +0 -0
- package/dist/analysis/natural-language.d.ts.map +0 -0
- package/dist/analysis/natural-language.js +0 -0
- package/dist/analysis/natural-language.js.map +0 -0
- package/dist/analysis/persona-comparison.d.ts +0 -0
- package/dist/analysis/persona-comparison.d.ts.map +0 -0
- package/dist/analysis/persona-comparison.js +0 -0
- package/dist/analysis/persona-comparison.js.map +0 -0
- package/dist/browser.d.ts +0 -0
- package/dist/browser.d.ts.map +0 -0
- package/dist/browser.js +0 -0
- package/dist/browser.js.map +0 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.d.ts.map +0 -0
- package/dist/cli.js +10 -7
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +0 -0
- package/dist/config.d.ts.map +0 -0
- package/dist/config.js +0 -0
- package/dist/config.js.map +0 -0
- package/dist/daemon.d.ts +0 -0
- package/dist/daemon.d.ts.map +0 -0
- package/dist/daemon.js +0 -0
- package/dist/daemon.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/mcp-server-remote.d.ts +0 -0
- package/dist/mcp-server-remote.d.ts.map +0 -0
- package/dist/mcp-server-remote.js +1 -1
- package/dist/mcp-server-remote.js.map +0 -0
- package/dist/mcp-server.d.ts +0 -0
- package/dist/mcp-server.d.ts.map +0 -0
- package/dist/mcp-server.js +0 -0
- package/dist/mcp-server.js.map +0 -0
- package/dist/performance/index.d.ts +0 -0
- package/dist/performance/index.d.ts.map +0 -0
- package/dist/performance/index.js +0 -0
- package/dist/performance/index.js.map +0 -0
- package/dist/performance/metrics.d.ts +0 -0
- package/dist/performance/metrics.d.ts.map +0 -0
- package/dist/performance/metrics.js +0 -0
- package/dist/performance/metrics.js.map +0 -0
- package/dist/personas.d.ts +0 -0
- package/dist/personas.d.ts.map +0 -0
- package/dist/personas.js +0 -0
- package/dist/personas.js.map +0 -0
- package/dist/testing/coverage.d.ts +0 -0
- package/dist/testing/coverage.d.ts.map +0 -0
- package/dist/testing/coverage.js +0 -0
- package/dist/testing/coverage.js.map +0 -0
- package/dist/testing/flaky-detection.d.ts +0 -0
- package/dist/testing/flaky-detection.d.ts.map +0 -0
- package/dist/testing/flaky-detection.js +0 -0
- package/dist/testing/flaky-detection.js.map +0 -0
- package/dist/testing/index.d.ts +0 -0
- package/dist/testing/index.d.ts.map +0 -0
- package/dist/testing/index.js +0 -0
- package/dist/testing/index.js.map +0 -0
- package/dist/testing/nl-test-suite.d.ts +0 -0
- package/dist/testing/nl-test-suite.d.ts.map +0 -0
- package/dist/testing/nl-test-suite.js +0 -0
- package/dist/testing/nl-test-suite.js.map +0 -0
- package/dist/testing/test-repair.d.ts +0 -0
- package/dist/testing/test-repair.d.ts.map +0 -0
- package/dist/testing/test-repair.js +0 -0
- package/dist/testing/test-repair.js.map +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +0 -0
- package/dist/types.js +0 -0
- package/dist/types.js.map +0 -0
- package/dist/visual/ab-comparison.d.ts +0 -0
- package/dist/visual/ab-comparison.d.ts.map +0 -0
- package/dist/visual/ab-comparison.js +0 -0
- package/dist/visual/ab-comparison.js.map +0 -0
- package/dist/visual/cross-browser.d.ts +0 -0
- package/dist/visual/cross-browser.d.ts.map +0 -0
- package/dist/visual/cross-browser.js +0 -0
- package/dist/visual/cross-browser.js.map +0 -0
- package/dist/visual/index.d.ts +0 -0
- package/dist/visual/index.d.ts.map +0 -0
- package/dist/visual/index.js +0 -0
- package/dist/visual/index.js.map +0 -0
- package/dist/visual/regression.d.ts +0 -0
- package/dist/visual/regression.d.ts.map +0 -0
- package/dist/visual/regression.js +0 -0
- package/dist/visual/regression.js.map +0 -0
- package/dist/visual/responsive.d.ts +0 -0
- package/dist/visual/responsive.d.ts.map +0 -0
- package/dist/visual/responsive.js +0 -0
- package/dist/visual/responsive.js.map +0 -0
- package/examples/ci-cd/README.md +47 -0
- 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
|
package/dist/analysis/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/analysis/index.js
CHANGED
|
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
|
package/dist/browser.d.ts.map
CHANGED
|
File without changes
|
package/dist/browser.js
CHANGED
|
File without changes
|
package/dist/browser.js.map
CHANGED
|
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
|
|
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
|
|
452
|
+
PAI SKILL INSTALLATION & SYNC
|
|
452
453
|
install-skill Install CBrowser as a PAI skill to ~/.claude/skills/
|
|
453
|
-
|
|
454
|
-
|
|
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
|
|
914
|
+
║ CBrowser PAI Skill Sync (auto-versioned) ║
|
|
912
915
|
╚═══════════════════════════════════════════════════════════════╝
|
|
913
916
|
`);
|
|
914
917
|
// Check if ~/.claude/skills exists
|