Expand description
Feature-agnostic types: error enum, ids, artifact tokens, the protocol AFDATA adapter, redaction list, and duration parsing. Compiles in both sdk-only and host builds; never touches chromiumoxide or axum.
Modules§
- afdata
- AFDATA protocol adapter.
- artifacts
- Artifact tokens (
architecture.md §8) + on-disk path resolution. - error
- Structured error contract for
afhttp. - ids
- Newtype wrappers for identifiers used across the protocol — request IDs returned to the agent, tab IDs scoped to a host’s browser, and profile names. Each type owns its own validation/generation so we can’t accidentally pass a profile name where a tab ID is expected.
- path
- Lexical path helpers shared by artifact and cookie-jar resolution.
- profile_
snapshot - Canonical profile-state snapshot shared by the SDK and the wire layer.
- redact
- Header-name redaction list applied to
network.jsonby default (and to any tool-originated log line). Perdesign.md §"Secrets are redacted", credential-bearing headers are replaced with"[redacted]"unless the caller passes--no-network-redact. - time
- Duration parsing for
--timeout 30s,--older-than 30d, etc.