forge_test_harness/lib.rs
1//! Wire-conformance harness for forge.
2//!
3//! [`sdk_wire`] - forge-sdk ↔ `claude` CLI stream-json. Replay on
4//! every `cargo check` / `just check`; live capture (opt-in via
5//! `FORGE_WIRE_CAPTURE=1`) updates baselines under `baselines/sdk/`.
6
7// This crate IS test infrastructure. `panic` / `expect` / `unwrap`
8// are the right error-reporting paths for harness setup failures
9// (missing baselines, regex compile, tempdir creation) - there's no
10// recovery path beyond aborting the test run.
11#![allow(clippy::panic, clippy::expect_used, clippy::unwrap_used)]
12
13pub mod sdk_wire;
14
15pub use sdk_wire::PINNED_CLI_VERSION;