Skip to main content

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 canary_matrix;
7mod client;
8mod limits;
9mod status;
10
11pub use client::{
12    map_http_status, validate_endpoint, HardenedHttpClient, RemoteEndpoint, RemotePolicy,
13    DEFAULT_OPENROUTER_ORIGIN,
14};
15pub use limits::{
16    read_body_limited, validate_segments, validate_text_bounds, RemoteBodyLimits, TranscriptLimits,
17    DEFAULT_CHAT_BODY_CAP, DEFAULT_CLEANUP_BODY_CAP, DEFAULT_STT_BODY_CAP,
18};
19pub use status::{redact_secret, redact_secret_with};