Files
plugins/packages/workbuddy/package.json
T
yetone 9da5cd3426 workbuddy 0.1.35: used credits say when the plan's cycle starts again (windy on Discord)
windy's WorkBuddy card in magpie showed 46% of the credits used and,
beside it, "Not used yet". The Credits window had no resetsAt, and
magpie's card says "Not used yet" when no used window has a reset.
WorkBuddy's own client (5.5.6, getCurrentPlan) says the plan refreshes at
the cycle end of the package the summary names as the subscription
(SubscriptionPackageCode). cycleOf now gives the Credits window that
reset (CycleEndTime, UTC+8) and the cycle's span, from the paid and free
lists usage already reads for runsOutOf; none named, not listed or a
cycle already over leaves it unknown, as before.

Run: bun test in packages/workbuddy, sandbox HOME, fetch stubbed: 154
pass 0 fail. On the old index.mjs the two new tests fail (resetsAt
undefined; cycleOf's cases). bun scripts/check.mjs: workbuddy ok.
Real: the summary and paid list of a real WorkBuddy AI Pro account
(2026-10-26, read-only, no renewal) through the new code give Credits
89.2 / 2000, resetsAt 2026-10-28T16:40:52Z, span 30d-1s.
Not tried: a China-site (copilot.tencent.com) account: the desktop
sign-in on this machine is refused (401), so a CN free plan's
SubscriptionPackageCode wasn't seen; without one the card stays as it
was. magpie's card saying "Not used yet" beside a used window without a
reset is fixed in magpie itself.
2026-10-26 15:00:30 +08:00

13 lines
566 B
JSON

{
"name": "@magpie-community/opencode-workbuddy-auth",
"version": "0.1.35",
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "workbuddy", "codebuddy"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/workbuddy" }
}