Expand description
Unified HTTP + WebSocket + MCP client to the ZERO engine.
The CLI never reads bus files. All engine state flows through this
crate. Every value carries freshness metadata (Stat<T>) and the
TUI refuses to render without it.
Re-exports§
pub use http::HttpClient;pub use http::HttpError;pub use http::Mode;pub use http::OperatorRequestContext;pub use http::RateLimitSource;pub use models::Approaching;pub use models::ApproachingFeed;pub use models::AutoState;pub use models::AutoToggleRequest;pub use models::AutoToggleResponse;pub use models::Brief;pub use models::ComponentCounts;pub use models::ComponentHealth;pub use models::Evaluation;pub use models::EvaluationLayer;pub use models::ExecuteRequest;pub use models::ExecuteResponse;pub use models::ExecuteSide;pub use models::Health;pub use models::HlRate;pub use models::LiveCanaryPolicy;pub use models::LiveCanaryPolicyPhase;pub use models::LiveCanaryPolicySummary;pub use models::LiveCanaryRecommendation;pub use models::LiveCockpit;pub use models::LiveCockpitCertification;pub use models::LiveCockpitHeartbeat;pub use models::LiveCockpitImmune;pub use models::LiveCockpitPreflight;pub use models::LiveCockpitReconciliation;pub use models::LiveCockpitRecords;pub use models::LiveControlResponse;pub use models::LiveEvidence;pub use models::LiveEvidenceArtifact;pub use models::LiveExecutionReceipt;pub use models::LiveExecutionReceipts;pub use models::LivePreflight;pub use models::LivePreflightCheck;pub use models::OperatorContext;pub use models::Position;pub use models::Positions;pub use models::Pulse;pub use models::PulseEvent;pub use models::Regime;pub use models::Rejection;pub use models::RejectionsFeed;pub use models::Risk;pub use models::RiskSummary;pub use models::Root;pub use models::RuntimeParity;pub use models::RuntimeParityFeedback;pub use models::RuntimeParityLiveShadow;pub use models::RuntimeParityPaper;pub use models::V2Confidence;pub use models::V2Market;pub use models::V2Positions;pub use models::V2Status;pub use models::V2Today;pub use poll::BACKFILL_INTERVAL;pub use poll::EngineStatePoller;pub use poll::OperatorStatePoller;pub use poll::POLL_INTERVAL;pub use rate_budget::BudgetSnapshot;pub use rate_budget::Clock;pub use rate_budget::DEFAULT_CAPACITY;pub use rate_budget::DEFAULT_REFILL_PER_SECOND;pub use rate_budget::Exhausted;pub use rate_budget::ManualClock;pub use rate_budget::RateBudget;pub use rate_budget::SystemClock;pub use rate_budget::cost_of;pub use stat::Source;pub use stat::Stat;pub use state::ConnectionHealth;pub use state::EngineState;pub use ws::EngineEvent;pub use ws::JitterMode;pub use ws::ReconnectConfig;pub use ws::WsError;pub use ws::WsSubscriber;pub use ws::apply_jitter;pub use ws::exp_backoff_cap;
Modules§
- http
- HTTP client for the engine REST surface.
- models
- Typed response shapes mirrored from the engine’s FastAPI surface.
- poll
- Background pollers for engine endpoints that do not have a dedicated push channel.
- rate_
budget - Token-bucket rate budget sitting between
crate::HttpClientand the network. - stat
Stat<T>— the honesty primitive.- state
EngineState— a CLI-side mirror of live engine state.- ws
- WebSocket subscriber for the engine’s
/wspush surface.