aurum_core/remote/mod.rs
1//! Shared remote HTTP client and response validation (JOE-1587, JOE-1588).
2//!
3//! All OpenRouter STT/cleanup traffic should go through this module so
4//! endpoint policy, redirects, credentials, and body caps stay consistent.
5
6mod client;
7mod limits;
8mod status;
9
10pub use client::{
11 map_http_status, validate_endpoint, HardenedHttpClient, RemoteEndpoint, RemotePolicy,
12 DEFAULT_OPENROUTER_ORIGIN,
13};
14pub use limits::{
15 read_body_limited, validate_segments, validate_text_bounds, RemoteBodyLimits, TranscriptLimits,
16 DEFAULT_CHAT_BODY_CAP, DEFAULT_CLEANUP_BODY_CAP, DEFAULT_STT_BODY_CAP,
17};
18pub use status::redact_secret;