pub async fn ensure_ready(force: bool) -> Result<StartupStatus, CoreError>Expand description
Gate every CLI command goes through on entry. When the cache is
fresh and force is false, returns the cached status without
touching the filesystem beyond the single read. When any probe is
stale, runs the full check battery and updates the cache.
force=true always re-runs every probe. Use it from explicit
“reset”-style subcommands (difflore init, difflore cloud login,
etc.) where we want the next command to see the post-change state
immediately, not up to 5 minutes later.