//! On-disk cache for the latest Codex quota snapshot
//! (`~/.vibe_coding_tracker/codex_usage.json`).
//!
//! A single last-known-good file (not dated like the pricing cache, since we
//! always want the latest value). A fresh `vct usage` launch seeds the panel
//! from here instantly while the background worker refreshes it.
use crateCodexQuotaSnapshot;
use crate;
use Result;
/// Loads the last-known Codex quota snapshot, or `None` if absent/corrupt.
///
/// A parse failure returns `None` (the caller recomputes) rather than erroring.
/// Persists the Codex quota snapshot atomically.
///
/// # Errors
///
/// Returns an error if the cache path cannot be resolved or the write fails.