Skip to content

cortexkit-provider-usage 0.3.0: add optional usedCount + totalCount to RateWindow#7

Merged
ualtinok merged 2 commits into
masterfrom
qta/used-count-total-count
Jul 21, 2026
Merged

cortexkit-provider-usage 0.3.0: add optional usedCount + totalCount to RateWindow#7
ualtinok merged 2 commits into
masterfrom
qta/used-count-total-count

Conversation

@ualtinok

@ualtinok ualtinok commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

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.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.


Summary by cubic

Adds optional usedCount and totalCount to RateWindow in cortexkit-provider-usage to show absolute usage next to percentages. Backward compatible; old payloads are unchanged.

  • New Features

    • Add usedCount and totalCount to RateWindow (camelCase, optional, omitted when null).
    • Bump cortexkit-provider-usage to 0.3.0.
  • Bug Fixes

    • Remove an accidental self-referencing symlink from the crate.

Written for commit 99ca881. Summary will update on new commits.

Review in cubic

…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.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread commons Outdated
@ualtinok
ualtinok merged commit f725fdc into master Jul 21, 2026
@ualtinok
ualtinok deleted the qta/used-count-total-count branch July 21, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant