browser4-cli 4.13.19 → 4.13.21
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 +11 -4
- 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 +1 -1
package/README.md
CHANGED
|
@@ -249,7 +249,7 @@ These flags can appear before any command.
|
|
|
249
249
|
| Tool | Best for | Input model | Output model |
|
|
250
250
|
|---|---|---|---|
|
|
251
251
|
| `snapshot` | clicking, typing, finding interactive elements | live accessibility tree | refs like `e15` |
|
|
252
|
-
| `htmlsnapshot` | DOM inspection, CSS extraction, X-SQL |
|
|
252
|
+
| `htmlsnapshot` | DOM inspection, CSS extraction, X-SQL | live page DOM (capture is optional) | CSS selectors and query results |
|
|
253
253
|
|
|
254
254
|
#### LLM configuration
|
|
255
255
|
|
|
@@ -326,7 +326,7 @@ All interaction commands accept a snapshot ref such as `e15` or a CSS selector u
|
|
|
326
326
|
| `wait [target]` | Wait for a selector/ref, duration, text, URL pattern, page-load state, or JavaScript expression. Supports `--timeout`, `--text`, `--url`, `--load`, `--fn`. |
|
|
327
327
|
| `upload <ref> <file> [file...]` | Upload one or more local files to a page file input. The target must be an `<input type="file">` (anything else errors); the paths must be readable by the browser process — local mode: the same machine, and empty/missing files are rejected with a hint; remote backend: paths resolve on the backend host. Supports `--no-snapshot`. |
|
|
328
328
|
|
|
329
|
-
`wait --load` accepts `domcontentloaded`, `load`, and `networkidle`.
|
|
329
|
+
`wait --load` accepts `domcontentloaded`, `load`, and `networkidle`. `networkidle` only proves the network went quiet — it does **not** mean late-rendered results exist; for result pages poll the element instead: `wait "<result-selector>"`.
|
|
330
330
|
|
|
331
331
|
```bash
|
|
332
332
|
browser4-cli click e8 --follow
|
|
@@ -393,8 +393,8 @@ browser4-cli cdp Runtime.evaluate --json '{"expression":"document.title"}'
|
|
|
393
393
|
|---|---|
|
|
394
394
|
| `htmlsnapshot` | Short form of `htmlsnapshot capture`. |
|
|
395
395
|
| `htmlsnapshot capture` | Capture and store a static HTML snapshot with metadata about the page and interactive elements. |
|
|
396
|
-
| `htmlsnapshot get <field> [selector] [name]` | Extract the first matching `text`, `html`, or `attr` from the
|
|
397
|
-
| `htmlsnapshot get all <field> [selector] [name]` | Extract all matching values from the
|
|
396
|
+
| `htmlsnapshot get <field> [selector] [name]` | Extract the first matching `text`, `textcontent`, `html`, or `attr` from the live page DOM. |
|
|
397
|
+
| `htmlsnapshot get all <field> [selector] [name]` | Extract all matching values from the live page DOM. Supports `--offset` and `--limit`. |
|
|
398
398
|
| `htmlsnapshot query [url]` | Run X-SQL. Supports `--sql <query\|@file>`, `--sql-stdin`, `--sql-base64`, result pagination, and extraction-focused output flags. |
|
|
399
399
|
| `htmlsnapshot export` | Export stored HTML to a file. Supports positional file path or `--file <path>` plus `--clean`. |
|
|
400
400
|
| `htmlsnapshot summary` | Generate a compressed Web Page Summary Index (WPSI). |
|
|
@@ -655,6 +655,13 @@ The runtime bundle is stored separately in a platform-conventional application-d
|
|
|
655
655
|
that auto-build from source. Use `./b4w.ps1 <command>` (PowerShell),
|
|
656
656
|
`./b4w.sh <command>` (Git Bash / Linux / macOS), or `./b4w.bat <command>`
|
|
657
657
|
(CMD) — all accept the same arguments as the installed `browser4-cli` binary.
|
|
658
|
+
Dev mode only ever serves the checked-out code: a local runtime bundle built
|
|
659
|
+
from a **different project version** makes the command refuse to start (naming
|
|
660
|
+
the reason, the bundle's versions and build time, and the rebuild command)
|
|
661
|
+
rather than silently testing an outdated backend; a checkout whose sources
|
|
662
|
+
merely look newer than the bundle jars is rebuilt before the server starts —
|
|
663
|
+
see
|
|
664
|
+
[CLI install & upgrade](docs/cli-install-upgrade.md#dev-mode-the-backend-must-match-the-checkout).
|
|
658
665
|
|
|
659
666
|
---
|
|
660
667
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|