Skip to main content

wm_dispatch/
lib.rs

1//! WhiteMagic v5 Dispatch — Tool routing pipeline
2//!
3//! Replaces the v2 Python 22-stage middleware chain (~200µs/call)
4//! with a Rust trait-based pipeline (~2µs/call).
5
6#![forbid(unsafe_code)]
7
8pub mod circuit_breaker;
9pub mod composition;
10pub mod flight;
11pub mod pipeline;
12pub mod rate_limiter;
13pub mod registry;
14pub mod sandbox_exec;
15pub mod secret_scan;
16pub mod speculative;
17pub mod write_gate;
18
19pub use circuit_breaker::{BreakerConfig, BreakerState, CircuitBreaker, CircuitBreakerRegistry};
20pub use composition::{CompositionConfig, CompositionPattern, CompositionTracker};
21pub use flight::{FlightEntry, FlightRecorder};
22pub use pipeline::DispatchPipeline;
23pub use rate_limiter::{RateLimiter, RateLimiterConfig, SlidingWindow};
24pub use registry::{ToolRegistry, ToolRegistryBuilder};
25pub use speculative::{CheckResult, SpeculativeExecutor, ValidationResult};