Repository navigation
zcode: count five-hour resets expiring soon - #368
Draft
cat-xierluo wants to merge 1 commit into
Draft
cat-xierluo wants to merge 1 commit into
cat-xierluo wants to merge 1 commit into
Conversation
Expose fiveHourExpiringSoon from the available reset cards so callers can spend a five-hour reset before it lapses.
Contributor
|
Thanks for this, @cat-xierluo. I read it at cec7291 and ran
I'm leaving this open in case you want to rework it, but point 1 means the plugin-side field won't be shown anywhere. |
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.
Why
The ZCode usage card already reports each available reset's
untilinresets.each. A caller still has to scan that list and compare timestamps to discover that a five-hour reset is about to lapse.Change
Add
resets.fiveHourExpiringSoonwhen one or more available five-hour resets expire within two hours. The count covers personal and team resets and does not alter weekly reset data or perform any reset action.Tests
HOME=$(mktemp -d) bun test packages/zcode/usage.test.mjs— 17 passedbun scripts/check.mjs zcode— passedgit diff --check— passed