browser4-cli 4.14.0-rc.7 → 4.14.0-rc.9

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 CHANGED
@@ -118,6 +118,10 @@ Need to extract data from a page?
118
118
  ├─ Static page, multiple correlated fields (title+price+url per item)?
119
119
  │ → htmlsnapshot query --sql @query.sql
120
120
  ├─ Live JS / complex DOM logic? → eval --json
121
+ ├─ Several outputs from one page (text + links + images + a table)?
122
+ │ → scrape --formats "markdown,links,images" # one capture for all of them
123
+ ├─ A screenshot or a PDF as a *file* on this machine?
124
+ │ → scrape --formats "screenshot,pdf" --output ./out
121
125
  ├─ Natural language ("find the product price")? → extract (needs LLM key)
122
126
  └─ High volume, many pages? → crawl or swarm with --sql
123
127
  ```
@@ -288,14 +292,14 @@ export DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxx
288
292
  | Command | Description |
289
293
  |---|---|
290
294
  | `open [url]` | Open a browser session or reconnect to an existing one. **Headless by default.** Supports `--headed` (visible window), `--headless`, `--profile <path>`, `--profile-mode <DEFAULT\|SYSTEM_DEFAULT\|SEQUENTIAL\|TEMPORARY>`, `--interact-level <FASTEST\|FAST\|DEFAULT>`. **Note:** `SYSTEM_DEFAULT` is deprecated and unsupported on Chrome ≥ 143 — use `attach` + `state-save`/`state-load` to reuse system browser state (see [browser-state-import.md](skills/browser4-cli/references/browser-state-import.md)). |
291
- | `attach` | Attach to an existing browser via CDP or the Browser4 extension. Supports `--cdp <url\|port\|channel>` and remote endpoint options. After a successful attach the CLI prints the browser that actually connected (`Connected browser: …` / `Attached to … at …`) and shows a ⚠ warning when it conflicts with the requested channel (e.g. requested msedge but Chrome connected) — verify it before driving the session. |
295
+ | `attach` | Attach to an existing browser via CDP or the Browser4 extension. Supports `--cdp <url\|port\|channel>` and remote endpoint options. A channel name resolves candidates from the browser's `DevToolsActivePort`, `--remote-debugging-port` and listening ports, and binds the first endpoint that can host a page — over `/json`, or over the browser-level WebSocket that Chrome's built-in `chrome://inspect/#remote-debugging` toggle publishes (`attach --cdp ws://127.0.0.1:<port>/devtools/browser/<uuid>` also works). After a successful attach the CLI prints the browser that actually connected (`Connected browser: …` / `Attached to … at …`) and shows a ⚠ warning when it conflicts with the requested channel (e.g. requested msedge but Chrome connected) — verify it before driving the session. |
292
296
  | `close` | Close the active browser session. |
293
297
  | `list` | List browser sessions with their status and next-open behavior. The Connection column prefers the backend-reported actual browser and annotates channel conflicts (e.g. `requested msedge · actual Google Chrome`). Supports `--all`. |
294
298
  | `session-default <name>` | Make a named session become the default unnamed session. |
295
299
  | `close-all` | Close all sessions without stopping the backend. |
296
300
  | `kill-all` | Force-stop the backend and Browser4-managed browser processes. |
297
301
  | `stop` | Gracefully stop the Browser4 server. |
298
- | `status` | Show server version, port, health, and the web status panel URL (`http://<server>:18182/status`). When a session is active it also prints a current-session block: Name / Session ID / Status / Connection / Next open. |
302
+ | `status` | Show server version, port, health, and the web status panel URL (`http://<server>:18182/status`). When a session is active it also prints a current-session block: Name / Session ID / Status / Display / Connection / Next open. |
299
303
  | `doctor` | Run diagnostics: build info, LLM status (including the configuration file it reads, the winning provider key and the active model), stale daemon cleanup, optional repair. Supports `--verbose` and `--fix`; `--fix` also writes a commented LLM config template. |
300
304
  | `doctor log [name]` | List, view, tail, or grep backend log files. Supports `--tail`, grep-style flags, and `doctor log <name> grep <pattern>`. |
301
305
  | `doctor metrics [filter]` | List, filter, or grep backend metrics. Supports `doctor metrics grep <pattern>`. |
@@ -586,7 +590,7 @@ The `co` prefix is accepted as an alias for `swarm`.
586
590
  | `swarm result <id>` | Fetch a completed swarm result. |
587
591
  | `swarm list` | List tracked swarm tasks. |
588
592
  | `swarm close` | Close the swarm session and release browser resources. |
589
- | `crawl [url]` | Crawl from a URL or seed file. Supports `--seed-file`, `--sql`, `--sql-stdin`, `--sql-base64`, `--format`, `--output`, `-d/--depth`, `-ol/--out-link-selector`, `-olp/--out-link-pattern`, `-tl/--top-links`, `-a/--args`, `--refresh`, `--parse`, `--expires`, `-p/--priority`, `--page-load-timeout`, `--ignore-url-query`, `--no-norm`, `--readonly`, `-bg/--background`. |
593
+ | `crawl [url]` | Crawl from a URL or seed file (every seed must be an absolute http(s) URL — a malformed one is refused before the crawl is submitted). Supports `--seed-file`, `--sql`, `--sql-stdin`, `--sql-base64`, `--format`, `--output`, `-d/--depth`, `-ol/--out-link-selector`, `-olp/--out-link-pattern`, `-tl/--top-links`, `-a/--args`, `--refresh`, `--parse`, `--expires`, `-p/--priority`, `--page-load-timeout`, `--ignore-url-query`, `--no-norm`, `--readonly`, `-bg/--background`. |
590
594
  | `crawl status <id>` | Check crawl task status. |
591
595
  | `crawl result <id>` | Fetch crawl results. |
592
596
  | `crawl cancel <id>` | Cancel a running crawl (the checkpoint is kept, so it can be resumed). |
@@ -818,7 +822,16 @@ Join our community for support, feedback, and collaboration!
818
822
 
819
823
  We welcome contributions! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
820
824
 
821
- <img width="400" height="400" alt="群聊:dsh-Browser4社区交流3群" src="https://github.com/user-attachments/assets/c15fe635-0e9f-4ac2-b038-abec6bd6bbe4" />
825
+ ### Contact Us
826
+
827
+ - 💬 WeChat: galaxyeye
828
+ - 🌐 Weibo: [galaxyeye](https://weibo.com/galaxyeye)
829
+ - 📧 Email: galaxyeye@live.cn, ivincent.zhang@gmail.com
830
+ - 🐦 Twitter: galaxyeye8
831
+
832
+ <div style="display: flex;">
833
+ <img src="docs/images/wechat-author.png" width="300" height="365" alt="WeChat QR Code" />
834
+ </div>
822
835
 
823
836
  ---
824
837
 
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.7",
3
+ "version": "4.14.0-rc.9",
4
4
  "description": "Browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "files": [