@magpie-community/opencode-zcode-auth 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +1 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1574,6 +1574,7 @@ async function authorize(site, log, onTeam = false) {
|
|
|
1574
1574
|
continue // a hiccup: ask again
|
|
1575
1575
|
}
|
|
1576
1576
|
const token = site === "bigmodel" ? first(got.bigmodel?.access_token, got.bigmodel?.accessToken) : first(got.zai?.access_token)
|
|
1577
|
+
if (got.status === "ready" && !token) return fail(`${SITES[site].name} sign-in: the poll answered ready without an OAuth access token; sign in again`)
|
|
1577
1578
|
if (got.status === "pending" || !got.status) continue
|
|
1578
1579
|
if (got.status === "failed") return fail(`the sign-in was declined on ${SITES[site].name}`)
|
|
1579
1580
|
if (got.status !== "ready" || !token) return fail("ZCode sign-in: unexpected answer " + got.status)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-zcode-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.70",
|
|
4
4
|
"description": "OpenCode provider plugin: signs in to Z.ai's or BigModel's (智谱) GLM Coding Plan as ZCode does, including team seats and ZCode's Start Plan, and claims its gift plans daily",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./opencode.mjs",
|