Expand description
Runtime predicates that both the CLI driver and the doctor must
agree on. Lifted out of driver.rs so doctor can call them
directly instead of mirroring them; every mirror is a drift
opportunity vs. what the runtime actually does (the parity rule).
Each predicate takes whatever env-snapshot it needs — typically
crate::data_context::xdg::XdgEnv — rather than &CliEnv, so
doctor’s EnvVarState-derived inputs can call them directly
without constructing a synthetic CLI environment. The driver
builds the snapshots at the call site.
Modules§
- config
- Runtime config-load wrapper. Both driver and doctor parse user
config through
Config::load_validatedso unknown-key warnings ride alongside the parsed config (or the parse error). Doctor’s read is documented indocs/specs/doctor.md§Config. - plugins
- Runtime plugin discovery + load. Wraps
PluginRegistry::load_with_xdgplus the cold-start fast path. - themes
- Runtime theme registry construction. Built-ins are always loaded;
user themes under
$XDG_CONFIG_HOME/linesmith/themes/are best-effort.