chrome-agent 0.5.1 → 0.7.0

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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -73,7 +73,7 @@ chrome-agent screenshot
73
73
  ## How It Works
74
74
 
75
75
  ```
76
- chrome-agent v0.2.0 (Rust, ~5.3K lines, 2.9 MB binary)
76
+ chrome-agent v0.7.0 (Rust, ~8.8K lines, 3 MB binary)
77
77
 
78
78
  │ WebSocket (Chrome DevTools Protocol)
79
79
 
@@ -110,7 +110,7 @@ UIDs are stable across inspects (based on Chrome's `backendNodeId`). The agent i
110
110
  | `hover <uid>` | Hover over element |
111
111
  | `back` | Navigate back in history |
112
112
  | `screenshot [--filename name] [--format jpeg\|png] [--quality N] [--max-width N] [--uid nN\|--selector "css"]` | Screenshot → file path. JPEG/max-width shrink it; `--uid`/`--selector` clip to one element |
113
- | `pdf [--out name] [--landscape] [--background]` | Print the current page to a PDF file |
113
+ | `pdf [--filename name] [--landscape] [--background]` | Print the current page to a PDF file |
114
114
  | `download <url> [--out path] [--timeout N]` | Download a URL fetched in-page (cookies/auth preserved) → `{path,bytes,mime}` |
115
115
  | `tabs` | List open browser tabs |
116
116
  | `close [--purge]` | Close browser (--purge deletes profile/cookies) |
@@ -265,7 +265,7 @@ chrome-agent --json eval "1+1"
265
265
  chrome-agent --json read
266
266
  # → {"ok":true,"title":"...","text":"...","excerpt":"...","byline":"..."}
267
267
 
268
- # Errors also structured (exit 0 for agent parsing):
268
+ # Errors also structured (exit 1, JSON still on stdout for agent parsing):
269
269
  chrome-agent --json click n99
270
270
  # → {"ok":false,"error":"Element uid=n99 not found.","hint":"Run 'chrome-agent inspect'"}
271
271
  ```
@@ -340,7 +340,7 @@ google-chrome --remote-debugging-port=9222 # or launch manually
340
340
  | Network capture | Retroactive + live | No | No | Metadata only (no bodies) |
341
341
  | Console capture | Stealth-safe interceptor | No | Console messages | No |
342
342
  | Pipe mode | JSON stdin/stdout | No | No | No |
343
- | Code | ~5.3K lines | ~76K lines (69K Playwright fork) | ~12K lines | Playwright |
343
+ | Code | ~8.8K lines | ~76K lines (69K Playwright fork) | ~12K lines | Playwright |
344
344
 
345
345
  ## License
346
346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-agent",
3
- "version": "0.5.1",
3
+ "version": "0.7.0",
4
4
  "description": "Browser automation for AI agents. Single binary, zero dependencies, CDP direct.",
5
5
  "type": "module",
6
6
  "bin": {