linesmith_core/runtime/mod.rs
1//! Runtime predicates that both the CLI driver and the doctor must
2//! agree on. Lifted out of `driver.rs` so doctor can call them
3//! directly instead of mirroring them; every mirror is a drift
4//! opportunity vs. what the runtime actually does (the parity rule).
5//!
6//! Each predicate takes whatever env-snapshot it needs — typically
7//! [`crate::data_context::xdg::XdgEnv`] — rather than `&CliEnv`, so
8//! doctor's `EnvVarState`-derived inputs can call them directly
9//! without constructing a synthetic CLI environment. The driver
10//! builds the snapshots at the call site.
11
12pub mod config;
13pub mod plugins;
14pub mod themes;