feat(usage): implement CLI commands for token tracking#753
Merged
AlexMikhalev merged 1 commit intomainfrom Apr 3, 2026
Merged
Conversation
2e96ee9 to
1fa1453
Compare
Contributor
Documentation PreviewYour documentation changes have been deployed to: This preview will be available until the PR is closed. |
- Fix LegacyTerm missing #[derive(Deserialize)] in terraphim_automata - Remove clone_on_copy for u64 IDs in builder.rs, rolegraph, cli, mcp_server - Replace map_or with is_some_and in rolegraph/medical.rs - Suppress dead_code warnings on deserialization-only structs in terraphim_usage - Remove unused imports from terraphim_usage providers - Replace redundant closures with variant constructors in store.rs - Remove unnecessary i64-to-i64 cast in ExecutionRecord::duration_ms Refs #229
1fa1453 to
5a9218d
Compare
Contributor
Documentation PreviewYour documentation changes have been deployed to: This preview will be available until the PR is closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#[cfg(feature = "persistence")]and graceful fallbacksChanges
terraphim_usage/Cargo.tomlterraphim_usage/src/store.rsterraphim_usage/src/cli.rs#[cfg(feature)]gatingCargo.lockVerification
cargo test --package terraphim_usage --all-features)cargo build --package terraphim-cli --features "usage"Refs: #187