agent_first_http/lib.rs
1#![cfg_attr(
2 test,
3 allow(
4 clippy::unwrap_used,
5 clippy::expect_used,
6 clippy::panic,
7 clippy::disallowed_methods,
8 clippy::disallowed_macros,
9 )
10)]
11
12//! `afhttp` — URL acquisition for AI agents.
13//!
14//! The library exposes the same surface as the CLI, in-process. It speaks
15//! CDP/HTTP to an `afhttp host`; it does **not** embed a browser engine.
16//! Everything that physically requires Chromium (launch, profile locking,
17//! takeover panel) lives behind the `host` feature.
18//!
19//! Pure SDK consumers depend with `default-features = false, features =
20//! ["sdk"]` and connect to an externally started `afhttp host`. The
21//! [`Client::inline_ephemeral`] convenience that spawns a private host
22//! in-process is only available with the `host` feature.
23
24pub mod sdk;
25pub mod shared;
26
27#[cfg(feature = "host")]
28pub mod host;
29
30#[cfg(feature = "cli")]
31pub mod cli;
32
33pub use sdk::client::Client;
34pub use shared::error::{Error, ErrorCode};