Skip to content

Commit 2e96ee9

Browse files
author
Terraphim CI
committed
feat(usage): implement CLI commands for token tracking
- Fix opendal version mismatch (0.50 -> 0.54) to match terraphim_persistence - Implement History, Export, Alert, Budgets CLI commands with feature gating - Fix budget percentage float division, alert highest-threshold match - Corrected test data unit system consistency (1M sub-cents = $1) - 19/19 tests passing, Right-side-of-V verification: GO Refs: #187
1 parent 9c8dd28 commit 2e96ee9

4 files changed

Lines changed: 1099 additions & 277 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/terraphim_usage/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ which = "6.0"
2020
terraphim_persistence = { path = "../terraphim_persistence", optional = true }
2121
terraphim_types = { path = "../terraphim_types" }
2222
terraphim_settings = { path = "../terraphim_settings" }
23+
opendal = { version = "0.54", optional = true }
2324

2425
[features]
2526
default = ["persistence", "providers"]
26-
persistence = ["dep:terraphim_persistence"] # Enable storage via terraphim_persistence
27+
persistence = ["dep:terraphim_persistence", "dep:opendal"] # Enable storage via terraphim_persistence
2728
cli = ["dep:clap", "dep:colored", "dep:indicatif"] # Enable CLI commands
2829
providers = ["dep:reqwest"] # Enable external provider API fetchers

0 commit comments

Comments
 (0)