Authenticated web snapshot adapter for the source:v1 librarian boundary.
source-web does not add a new source contract. It materializes authenticated
web capture evidence as a stable local snapshot and therefore reports
location.kind = "local" to source:v1. The web-specific details live in this
package's provenance:
- session/auth lifecycle evidence;
- pacing policy;
- cache identity and content hash;
- offline replay flag;
- redaction report.
- egress allowlist evidence for
http(s)fixture refs.
The package intentionally does not own target discovery, selectors, aliases, or real login flows. Consumers inject those concerns downstream and hand the adapter sanitized snapshots or capture fixtures.
http(s) refs are denied unless their host is explicitly allowlisted through
createWebSourceProvider({ egress: { allowedHosts: [...] } }). Private hosts
remain blocked by default even when named. This keeps policy ahead of execution
so a future real capture backend cannot silently become an SSRF surface.
pnpm -C packages/source-web run testThe reference fixture proves that a requirements-like authenticated web source
can be replayed without network access while still passing the source:v1
conformance suite.