cortexkit-provider-usage 0.3.0: add optional usedCount + totalCount to RateWindow#7
Merged
Merged
Conversation
…o RateWindow Additive absolute-count fields for windows where the provider knows (or can derive) the consumed and total values. Enables human-facing UIs to show '10,336 / 40,000' alongside the percentage for richer context (e.g. qwen-cloud token-plan where the percentage is entitled but the absolute pair makes the enforcement gap legible). Both fields are skip-if-none + camelCase, so unpopulated windows serialize byte-identically to 0.2.0.
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
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.
Additive absolute-count fields for windows where the provider knows (or can derive) the consumed and total values. Enables human-facing UIs to show '10,336 / 40,000' alongside the percentage for richer context (e.g. qwen-cloud token-plan where the percentage is entitled but the absolute pair makes the enforcement gap legible). Both fields are skip-if-none + camelCase, so unpopulated windows serialize byte-identically to 0.2.0. Version bumped 0.2.0→0.3.0 (struct gains fields). Publish is tag-driven per release.yml (cortexkit-provider-usage-v0.3.0) once merged.
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Adds optional
usedCountandtotalCounttoRateWindowincortexkit-provider-usageto show absolute usage next to percentages. Backward compatible; old payloads are unchanged.New Features
usedCountandtotalCounttoRateWindow(camelCase, optional, omitted when null).cortexkit-provider-usageto0.3.0.Bug Fixes
Written for commit 99ca881. Summary will update on new commits.