auth.refresh with refreshLead 10 minutes before the day's session ends: the account signs on again, once per account (the request path joins it), and the new session (access, expires) is given. A passToken Xiaomi no longer takes is signIn "expired"; any other failure throws and is retried. The check before each request stays for OpenCode, which doesn't call the hook (magpie 0.1.684+ does). refresh.test.mjs fails without the change; HOME=$(mktemp -d) bun test passes (396 across the repo).
13 lines
524 B
JSON
13 lines
524 B
JSON
{
|
|
"name": "@magpie-community/opencode-mimo-auth",
|
|
"version": "0.1.6",
|
|
"description": "OpenCode provider plugin for Xiaomi MiMo: the MiMo app's Xiaomi-account sign-in, MiMo Pro and MiMo Flash",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "xiaomi", "mimo"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/mimo" }
|
|
}
|