//! Integration tests for `opencode_rs`.
//!
//! These tests verify typed deserialization against a live opencode server.
//!
//! # Running the tests
//!
//! 1. Start the opencode server: `opencode serve --port 4096 --hostname 127.0.0.1`
//! 2. Set the environment variable: `OPENCODE_INTEGRATION=1`
//! 3. Optionally set `OPENCODE_BASE_URL` (defaults to `http://127.0.0.1:4096`)
//! 4. Run the tests: `cargo test --test integration -- --ignored`
// Integration tests are allowed to use unwrap/expect for test assertions
/// Check if integration tests should run.
/// Get the test server URL.
/// Create a test client.
pub async