provider: WorkBuddy's mover min is 0.2.0, the China build's daily check-in (plugins #177, #299)

workbuddy 0.2.0 claims a WorkBuddy (China) account's daily check-in
through the billing meter; an API-key account reports itself ineligible
instead of failing and being tried again every 30 minutes (magpie's
CheckinIneligible). 0.1.48 shows WorkBuddy AI's free model daily token
window on its card, read from magpie's usage ledger. keepMovedCurrent
updates every moved user's plugin from 0.1.47 to 0.2.0.

Saved accounts: read packages/workbuddy from 0.1.27 to 0.2.0 in a fresh
clone of magpie-community/plugins. The provider ids stay workbuddy and
workbuddy-ai, and an oauth account is still read from access, refresh,
expires, uid, domain and enterpriseId. API-key accounts ({type: "api"},
0.1.37) are an addition. Nothing a moved user saved is renamed.

npm view @magpie-community/opencode-workbuddy-auth version --prefer-online
says 0.2.0 at landing (the publish run is red only for think-tags,
plugins#180; the registry has 0.2.0 as latest).

Run (mote-run, at this tree): gofmt -l internal/provider (clean);
go vet ./... on darwin, GOOS=linux -tags nogui, GOOS=windows (ok);
go test -tags nogui ./internal/provider -timeout 45m (ok, 87.8s).
Not tried: a real WorkBuddy account's check-in through magpie.
This commit is contained in:
yetone
2026-10-29 21:57:21 +08:00
parent cda5d07dce
commit 17114b505d
File diff suppressed because one or more lines are too long