Expose HAR recording as a CLI subcommand under the existing `network` command so users can capture and export network traffic without a separate tool or opening the browser twice. - Parse `network har start` and `network har stop [path]` in commands.rs - Enrich HarEntry with request/response headers, timestamps, status text, resource type, HTTP version, and body sizes from CDP events - Produce HAR 1.2 output with creator/browser metadata, query strings, and proper header arrays compatible with Chrome DevTools HAR viewer - Auto-generate output path under ~/.agent-browser/tmp/har/ when omitted - Add har_stop to skip_launch list so export works without a live browser - Update help text, README, docs site, SKILL.md, and security policy docs - Add unit tests for parsing, HAR entry serialization, and stop behavior
53 lines
1.5 KiB
TOML
53 lines
1.5 KiB
TOML
[package]
|
|
name = "agent-browser"
|
|
version = "0.20.14"
|
|
edition = "2021"
|
|
description = "Fast browser automation CLI for AI agents"
|
|
license = "Apache-2.0"
|
|
repository = "https://github.com/vercel-labs/agent-browser"
|
|
homepage = "https://agent-browser.dev"
|
|
readme = "../README.md"
|
|
keywords = ["browser", "automation", "ai", "cdp", "chrome"]
|
|
categories = ["command-line-utilities", "web-programming"]
|
|
|
|
[dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
dirs = "5.0"
|
|
base64 = "0.22"
|
|
getrandom = "0.2"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "io-util", "time", "sync", "signal", "process"] }
|
|
tokio-tungstenite = { version = "0.24", features = ["rustls-tls-webpki-roots"] }
|
|
futures-util = "0.3"
|
|
url = "2"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
image = "0.25"
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-webpki-roots"] }
|
|
sha2 = "0.10"
|
|
aes-gcm = "0.10"
|
|
async-trait = "0.1"
|
|
similar = "2"
|
|
zip = { version = "8.2.0", default-features = false, features = ["deflate"] }
|
|
time = { version = "0.3", features = ["formatting"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.52", features = ["Win32_System_Threading", "Win32_Foundation"] }
|
|
|
|
[build-dependencies]
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
|
|
[profile.ci]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 16
|