A new method, Sign in with Qoder CN Enterprise (VPC), asks for the instance (its name or <instance>.vpc.qoder.com.cn) and serves the account from the instance's own hosts: <i>.vpc.qoder.com.cn for the sign-in page, <i>-openapi.vpc.qoder.com.cn for poll, tokens, user info and usage, and <i>-gateway.vpc.qoder.com.cn for models and chat, the paths unchanged, as @qodercn-ai/qoderclicn 1.1.64 rewrites the public origins once a VPC instance is set. The instance is kept on the account; an account with none is served as before, and one with an instance that names none is asked to sign in again rather than sent to the public hosts. Not tried with a real VPC account. vpc.test.mjs builds its fixtures from AwadYoo's redacted shapes on #312; 12 of its 13 tests fail on 0.2.7 (the one that passes is the public sign-in staying as it was). bun test packages/qoder: 67 pass; HOME=$(mktemp -d) bun test: 864 pass; bun scripts/check.mjs: all pass.
13 lines
543 B
JSON
13 lines
543 B
JSON
{
|
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
"version": "0.2.8",
|
|
"description": "Qoder subscriptions in OpenCode and magpie: Qoder (qoder.com) and Qoder CN (qoder.cn)",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md", "LICENSE-CLIProxyAPI"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "qoder", "qoder-cn"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/qoder" }
|
|
}
|