feat: sync ecc2 cost tracker metrics

This commit is contained in:
Affaan Mustafa
2026-04-09 06:22:20 -07:00
parent cf9c68846c
commit 08f61f667d
8 changed files with 352 additions and 13 deletions

View File

@@ -113,6 +113,14 @@ impl Config {
.join("ecc2.toml")
}
pub fn cost_metrics_path(&self) -> PathBuf {
self.db_path
.parent()
.unwrap_or_else(|| std::path::Path::new("."))
.join("metrics")
.join("costs.jsonl")
}
pub fn load() -> Result<Self> {
let config_path = Self::config_path();