minimax 0.1.2 adds an `auth.checkin` hook for MiniMax Code's daily check-in (每日签到).
- It reads the panel at `/minimax-cloud/api/v1/signin/status` and claims the day at `/signin/claim`.
- Both requests are signed by the package's own `accountCall()`: the same headers, query and x-signature as the rest of the account API, and a `{}` body on the claim.
- On the China site they go to `agent.minimax.cn` (`site.llm`), the host magpie's built-in check-in uses.
- Failed reads come back as `failed`: a non-2xx reply, no panel, or a malformed panel (not 7 days numbered 1-7, or more than one today or claimable day).
- With no day marked today it returns `inactive`, and nothing is claimed.
- The streak counts back from today's index. 401 and 403 are `failed` with the HTTP status.
- The README says the check-in is opt-in. OpenCode ignores the hook.
Run at d21543b76cf0fa19b6e345e6b2d2f0d29976ee93, merged locally onto origin/main 6467760:
- packages/minimax `bun test` (isolated HOME): 50 pass, 0 fail.
- `bun scripts/check.mjs` (all packages): exit 0.
- The new host test, run against 5fb2143's index.mjs: 17 pass, 1 fail (the host test). So it guards the fix.
- A scratch probe at 5fb2143 with separate llm/agent fakes reproduced the wrong host; d21543b's test covers that case.
Not run: a real MiniMax account. No test reaches the network.
13 lines
623 B
JSON
13 lines
623 B
JSON
{
|
|
"name": "@magpie-community/opencode-minimax-auth",
|
|
"version": "0.1.2",
|
|
"description": "OpenCode provider plugins for MiniMax Code accounts: their credits and M Plan, China (minimax-code) and international (minimax-code-global), with MiniMax Code's own device sign-in",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "minimax", "mcode", "minimax-code"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/minimax" }
|
|
}
|