0.2.0's tools took the first site key in plugin-auth.json's file order. magpie's host (accountsOf) takes the bare site id first, else the first site#... key by name. Once a removed sign-in is made again, the bare key sits last in the file, so a tool spent a different account from the one magpie uses by default. The tools now pick the same way the host does. Run on mote (sandbox HOME) at this tree: bun test in packages/minimax, 123 pass, 0 fail; bun scripts/check.mjs, minimax ok. Broken by hand: with file order back, the default-selection test goes red (1 fail). Not tried: a real MiniMax account.
13 lines
775 B
JSON
13 lines
775 B
JSON
{
|
|
"name": "@magpie-community/opencode-minimax-auth",
|
|
"version": "0.2.1",
|
|
"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": "./opencode.mjs",
|
|
"exports": { "./server": "./magpie.mjs", ".": "./opencode2.mjs" },
|
|
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "magpie.mjs", "connector-tools.mjs", "matrix-tools.json", "web-tools.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" }
|
|
}
|