agent-first-http 0.13.0

Give your AI agent its own private browser — so it reads the real page, past logins and bot walls, without ever touching yours.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "agent-first-http"
version = "0.13.0"
build = "build.rs"
exclude = [
    ".github/",
    "container/docker/compose.yaml",
    "container/docker/Dockerfile.dockerignore",
    "tests/Dockerfile.test",
    "tests/Dockerfile.test.dockerignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Give your AI agent its own private browser — so it reads the real page, past logins and bot walls, without ever touching yours."
readme = "README.md"
license = "MIT"
repository = "https://github.com/agentfirstkit/agent-first-http"

[features]
cli = [
    "sdk",
    "host",
    "dep:psl",
    "agent-first-data/skill-admin",
    "agent-first-data/stream-redirect",
    "agent-first-data/yaml",
    "agent-first-data/toml",
    "agent-first-data/dotenv",
    "agent-first-data/ini",
]
default = [
    "sdk",
    "cli",
]
host = [
    "dep:chromiumoxide",
    "dep:axum",
    "dep:tower",
    "dep:tower-http",
    "dep:hyper",
    "dep:hyper-util",
    "agent-first-ui/session",
]
sdk = []

[lib]
name = "agent_first_http"
path = "src/lib.rs"

[[bin]]
name = "afhttp"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "manual_display_takeover"
path = "examples/manual_display_takeover.rs"
required-features = ["host"]

[[test]]
name = "browser_fetch"
path = "tests/browser_fetch.rs"

[[test]]
name = "camoufox_foxbridge"
path = "tests/camoufox_foxbridge.rs"

[[test]]
name = "cdp_proxy"
path = "tests/cdp_proxy.rs"

[[test]]
name = "cookie_jar"
path = "tests/cookie_jar.rs"

[[test]]
name = "cookie_jar_isolation"
path = "tests/cookie_jar_isolation.rs"

[[test]]
name = "display_takeover"
path = "tests/display_takeover.rs"

[[test]]
name = "env_isolation"
path = "tests/env_isolation.rs"

[[test]]
name = "fetch_http_only"
path = "tests/fetch_http_only.rs"

[[test]]
name = "fingerprint_chromium"
path = "tests/fingerprint_chromium.rs"

[[test]]
name = "health_capabilities"
path = "tests/health_capabilities.rs"

[[test]]
name = "host_extras"
path = "tests/host_extras.rs"

[[test]]
name = "lightpanda_backend"
path = "tests/lightpanda_backend.rs"

[[test]]
name = "network_artifact"
path = "tests/network_artifact.rs"

[[test]]
name = "proxy_tls"
path = "tests/proxy_tls.rs"

[[test]]
name = "retry_backoff"
path = "tests/retry_backoff.rs"

[[test]]
name = "storage_artifact"
path = "tests/storage_artifact.rs"

[[test]]
name = "stream_redirect"
path = "tests/stream_redirect.rs"

[[test]]
name = "tabs_management"
path = "tests/tabs_management.rs"

[[test]]
name = "takeover_backends"
path = "tests/takeover_backends.rs"

[[test]]
name = "ui_takeover"
path = "tests/ui_takeover.rs"

[[test]]
name = "unix_listener"
path = "tests/unix_listener.rs"

[dependencies.agent-first-data]
version = "0.34.0"
features = ["cli"]
default-features = false

[dependencies.agent-first-ui]
version = "0.5.0"
optional = true
default-features = false

[dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]
optional = true

[dependencies.base64]
version = "0.23"

[dependencies.chromiumoxide]
version = "0.9"
optional = true
default-features = false

[dependencies.cookie]
version = "0.18"

[dependencies.dirs]
version = "6"

[dependencies.fs2]
version = "0.4"

[dependencies.futures]
version = "0.3"

[dependencies.humantime]
version = "2"

[dependencies.hyper]
version = "1"
features = ["full"]
optional = true

[dependencies.hyper-util]
version = "0.1"
features = [
    "server-auto",
    "tokio",
]
optional = true

[dependencies.mime_guess]
version = "2"

[dependencies.psl]
version = "2"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls-no-provider",
    "gzip",
    "brotli",
    "deflate",
    "stream",
    "http2",
    "multipart",
    "form",
]
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "aws-lc-rs",
    "std",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tempfile]
version = "3"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-tungstenite]
version = "0.30"
features = ["rustls-tls-native-roots"]

[dependencies.tower]
version = "0.5"
optional = true

[dependencies.tower-http]
version = "0.7"
features = [
    "fs",
    "trace",
]
optional = true

[dependencies.url]
version = "2"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.axum]
version = "0.8"
features = [
    "ws",
    "macros",
]

[dev-dependencies.filetime]
version = "0.2"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
]

[lints.clippy]
expect_used = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
unwrap_used = "deny"