astudio: claim the daily reward without the desktop app (0.2.1) (#883)
AStudio's daily reward is claimed without the desktop app: check-in completes the pending DAILY_REWARD_DIALOG popup (popupId + instanceKey only, once) and reports claimed/done only from today's GRANT ledger row. init-app and auth/bearer-token are no longer called from check-in. Version 0.2.1. Reviewed at 199d128f3 line by line (guards broken by hand, each turned a test red); e744ee9 is that code rebased onto main plus the version bump. index.mjs, index.test.mjs and README.md are byte-identical to 199d128f. Run at e744ee9 on mote: node --test 78/78; bun test 78/78 under TZ=UTC, America/Los_Angeles and Asia/Shanghai; bun scripts/check.mjs astudio ok. The author reports a real claim (+100) on two accounts at 2026-11-09 00:00:17 +08:00 with no desktop process; not repeated here (no AStudio account). Co-authored-by: jinyue806 <jinyue806@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@magpie-community/opencode-astudio-auth",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "AStudio (iFLYTEK Astron Studio) sign-in as an OpenCode/magpie provider: browser sign-in with one account-pool slot per account, or the desktop sign-in, over the Responses model gateway with live model catalog",
|
||||
"type": "module",
|
||||
"main": "./opencode.mjs",
|
||||
|
||||
Reference in New Issue
Block a user