browser4-cli 4.14.0-rc.1 → 4.14.0-rc.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.
- package/README.md +3 -0
- package/bin/browser4-cli-darwin-arm64 +0 -0
- package/bin/browser4-cli-darwin-x64 +0 -0
- package/bin/browser4-cli-linux-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-x64 +0 -0
- package/bin/browser4-cli-linux-x64 +0 -0
- package/bin/browser4-cli-win32-x64.exe +0 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -425,6 +425,7 @@ browser4-cli cdp Runtime.evaluate --json '{"expression":"document.title"}'
|
|
|
425
425
|
| `htmlsnapshot summary` | Generate a compressed Web Page Summary Index (WPSI). |
|
|
426
426
|
| `htmlsnapshot grep <pattern>` | Search stored HTML with grep-style flags. |
|
|
427
427
|
| `htmlsnapshot inspect [selector]` | Discover recurring DOM patterns and selector candidates. Supports `--max`, `--depth`, `--stdin`, `--selector-base64`. |
|
|
428
|
+
| `htmlsnapshot readability [url]` | Extract the main article content with a Readability-style heuristic — no LLM, no tokens. Supports `--text-only` and pagination. |
|
|
428
429
|
|
|
429
430
|
Important rules:
|
|
430
431
|
|
|
@@ -432,6 +433,7 @@ Important rules:
|
|
|
432
433
|
- use `htmlsnapshot` when you need repeated DOM extraction
|
|
433
434
|
- `htmlsnapshot query --sql @query.sql` is the recommended way to avoid shell quoting issues
|
|
434
435
|
- for correlated list extraction, prefer `htmlsnapshot query` over repeated `get all`
|
|
436
|
+
- for one-step article extraction (no selectors needed), use `htmlsnapshot readability`
|
|
435
437
|
|
|
436
438
|
```bash
|
|
437
439
|
browser4-cli htmlsnapshot
|
|
@@ -440,6 +442,7 @@ browser4-cli htmlsnapshot get all text ".result-title" --offset 10 --limit 5
|
|
|
440
442
|
browser4-cli htmlsnapshot inspect ".s-result-item" --depth 6 --max 20
|
|
441
443
|
browser4-cli htmlsnapshot export --file page.html --clean
|
|
442
444
|
browser4-cli htmlsnapshot query --sql @query.sql
|
|
445
|
+
browser4-cli htmlsnapshot readability --text-only --all
|
|
443
446
|
```
|
|
444
447
|
|
|
445
448
|
For deep X-SQL usage, see [skills/browser4-cli/references/htmlsnapshot.md](skills/browser4-cli/references/htmlsnapshot.md) and [skills/browser4-cli/references/x-sql-dom-load-select.md](skills/browser4-cli/references/x-sql-dom-load-select.md).
|
|
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.14.0-rc.
|
|
3
|
+
"version": "4.14.0-rc.2",
|
|
4
4
|
"description": "Browser automation CLI for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
"skills"
|
|
10
10
|
],
|
|
11
11
|
"bin": {
|
|
12
|
-
"
|
|
13
|
-
"browser4": "bin/browser4-cli.js"
|
|
12
|
+
"b4": "bin/browser4-cli.js",
|
|
13
|
+
"browser4": "bin/browser4-cli.js",
|
|
14
|
+
"browser4-cli": "bin/browser4-cli.js"
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
17
|
"sync:readme": "node scripts/sync-readme.mjs sync",
|