browser4-cli 4.14.0-rc.2 → 4.14.0-rc.3

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
@@ -534,6 +534,30 @@ browser4-cli loop --shell "curl -s https://api.example.com/health" -i 60
534
534
  browser4-cli loop --list
535
535
  ```
536
536
 
537
+ #### Network inspection, HAR recording & request routing
538
+
539
+ Inspect what the page actually loaded (XHR/fetch calls, status codes, headers,
540
+ response bodies), record a HAR 1.2 archive importable by Chrome DevTools, and
541
+ route (mock/abort) matching requests. See
542
+ [`skills/browser4-cli/references/network.md`](skills/browser4-cli/references/network.md)
543
+ for the full guide.
544
+
545
+ | Command | Description |
546
+ |---|---|
547
+ | `network requests` | List tracked requests. Supports `--filter`, `--type`, `--method`, `--status` (`200`, `2xx`, `400-499`), `--clear`. |
548
+ | `network request <id>` | Full detail of one request: headers, timing, and the response body (fetched on demand). |
549
+ | `network har start [--content <mode>]` | Start a HAR recording. Content mode: `none`, `text`, or `all` (binary base64). |
550
+ | `network har stop [path]` | Stop recording and print the HAR JSON, or write it to a `.har` file when a path is given. |
551
+ | `network route <pattern> --body <text>\|--abort` | Intercept matching requests (mock response or fail them) via CDP Fetch. Supports `--content-type`, `--resource-type`. |
552
+ | `network unroute [pattern]` | Remove routes; without a pattern, disable interception entirely. |
553
+
554
+ ```bash
555
+ browser4-cli network requests --filter api --status 2xx
556
+ browser4-cli network har start --content text
557
+ browser4-cli network har stop ./capture.har
558
+ browser4-cli network route "**/api/users" --body '{"users":[]}' --content-type application/json
559
+ ```
560
+
537
561
  #### Swarm and crawl for scale
538
562
 
539
563
  The `co` prefix is accepted as an alias for `swarm`.
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.2",
3
+ "version": "4.14.0-rc.3",
4
4
  "description": "Browser automation CLI for AI agents",
5
5
  "type": "module",
6
6
  "files": [