provider: WorkBuddy's mover min is 0.2.20, whose China accounts tell routing when their extra credits lapse (Kayphoon)

Kayphoon on Discord asked that routing spend first the WorkBuddy CN
account whose extra-credit packs expire soonest. Smart already orders
accounts by the soonest lapse a window it reads says (Allowance.Renewal,
Lapse, Pace), but extra credits only WorkBuddy's detail lists have
(plugin 0.2.17's "Extra credits" window) said their lapse only on that
window, which is set aside, and routing reads none set aside. Plugin
0.2.20 (magpie-community/plugins 311d628) puts it on the Credits window
too; keepMovedCurrent now brings every moved user to it.

Run at this head (mote): gofmt -l internal/provider empty; go test
-timeout 45m ./internal/provider ok. npm view --prefer-online shows
@magpie-community/opencode-workbuddy-auth 0.2.20.
Not tried: a real WorkBuddy CN account with expiring packs, routed
through the gateway.
This commit is contained in:
yetone
2026-11-03 17:04:25 +08:00
parent 69167bc299
commit 2e4735f8f8
File diff suppressed because one or more lines are too long