面条 on magpie's Discord: Devin has a daily and a weekly quota; with the
week used up the card showed only "1 day 0%", which misleads, and routing
kept sending to the account. GetUserStatus answers in proto JSON, which
leaves a 0 out, so a week with nothing left came as no
weeklyQuotaRemainingPercent at all beside the day's 100, and devinQuota
skipped a window whose share was left out.
devinQuota now reads planInfo.billingStrategy: on a BILLING_STRATEGY_QUOTA
plan a quota with a reset time and no share is used up (100%, its reset
kept), so allowanceOf's Full holds the account until the week resets. A
hidden quota and one with no reset are still not shown; a plan billed
otherwise still gets no window from a share left out. The Devin plugin
(0.1.14, the path moved users run) has the same fix.
TestDevinWeekUsedUpHolds builds the status from the owner's real Teams
account's GetUserStatus reply with the week's share taken out: it fails
on the old code (one window) and passes now, including that routing is
held till the week's reset. go test -tags nogui ./internal/provider ok;
gofmt -l clean; GOOS=linux and GOOS=windows go vet -tags nogui
./internal/provider ok.