From c5c9d33e48532242ec494e80f8441744408e22c4 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 6 Oct 2026 18:45:32 +0800 Subject: [PATCH] =?UTF-8?q?README:=20the=20auth=20hook's=20checkin(getAuth?= =?UTF-8?q?,=20provider)=20=E2=80=94=20a=20plugin=20can=20press=20its=20ve?= =?UTF-8?q?ndor's=20daily=20check-in=20itself,=20which=20magpie=20runs=20o?= =?UTF-8?q?nce=20a=20day=20per=20account=20and=20shows=20on=20the=20Usage?= =?UTF-8?q?=20card=20(Lemon=20on=20Discord);=20outcomes,=20captcha=20never?= =?UTF-8?q?=20solved,=20failed=20alone=20retried;=20links=20magpie's=20con?= =?UTF-8?q?tract=20(yetone/magpie=2087487c5e)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 21d16f2..ba76b61 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,17 @@ Each package is a folder under `packages//`: (Responses) or `@ai-sdk/anthropic` (Messages). - A list the account decides goes in the `provider: { id, models(provider, { auth }) }` hook. + - A daily check-in (签到) the vendor rewards goes in the `auth` hook as + `checkin(getAuth, provider)`. magpie calls it once a day for each + signed-in account while the user has it on (Settings → Usage → + Plugins), and shows what came of it on the account's Usage card. It + returns `{ outcome, credit?, streak?, message? }`, `outcome` being + `claimed` (checked in now), `done` (already today), `ineligible`, + `inactive` (no check-in event now), `captcha` or `failed`; a throw is + `failed` with its message, and only `failed` is tried again that day. + Never solve a captcha: return `captcha` and the user checks in in the + vendor's app. Needs magpie with the hook (after v0.1.1083); + [the contract](https://github.com/yetone/magpie/blob/main/docs/subsystems/provider-plugins.md#a-plugins-daily-check-in). - **`README.md`**: what the package signs in to, how, where the sign-in is kept, and the models.