browser4-cli 4.12.1 → 4.12.2

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.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser4-cli",
3
- "version": "4.12.1",
3
+ "version": "4.12.2",
4
4
  "description": "Browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "files": [
package/scripts/README.md CHANGED
@@ -36,7 +36,7 @@ Both scripts auto-detect OS, CPU architecture, and libc variant (glibc vs musl o
36
36
 
37
37
  | Option | Description |
38
38
  |--------|-------------|
39
- | `--version, -v TAG` | Release tag (e.g. `v4.11.0`). Default: latest. |
39
+ | `--version, -v TAG` | Release tag (e.g. `v4.12.0`). Default: latest. |
40
40
  | `--install-dir, -d DIR` | Install directory (default: `~/.local/bin` on Unix, `%LOCALAPPDATA%\Programs\browser4-cli` on Windows). |
41
41
  | `--source SRC` | Force download source: `github` or `oss`. Default: auto (locale-aware). |
42
42
  | `--no-path` / `-AddToPath:$false` | Skip adding the install directory to PATH. |
@@ -44,7 +44,8 @@ Both scripts auto-detect OS, CPU architecture, and libc variant (glibc vs musl o
44
44
  | `--dry-run` / `-DryRun` | Print what would be done without doing it. |
45
45
  | `--skip-if-installed` / `-SkipIfInstalled` | Skip download if binary already exists. |
46
46
  | `--skip-local` / `-SkipLocal` | Skip local bundled binary check; always download. |
47
- | `--locate` (sh only) | Print detection results and exit (no install). |
47
+ | `--force` / `-Force` (pwsh) | Force reinstallation even if the binary already exists at the target path. |
48
+ | `--locate` / `-Locate` | Print detection results (OS, arch, locale) and exit (no install). |
48
49
 
49
50
  ### One-liner install
50
51
 
@@ -87,7 +88,7 @@ Runs a full CLI smoke test suitable for CI and local development:
87
88
  |--------|---------|
88
89
  | `npm-publish-check.js` | Shared library: reads package metadata and compares local vs npm registry version |
89
90
  | `check-npm-publish-needed.js` | CLI wrapper: checks whether a publish is needed and prints the decision |
90
- | `publish-if-needed.js` | Publishes to npm only when the local version differs from the registry |
91
+ | `publish-if-needed.js` | Publishes to npm only when the local version differs from the registry. Uses `--tag next` for prerelease versions (containing `-`). |
91
92
  | `postinstall.js` | npm `postinstall` hook: downloads the platform native binary after `npm install` |
92
93
 
93
94
  ### Version check