commandcode 0.1.4: a Go account's failure reads as the built-in's cmdFailure says it — an empty reply is its status's name as Go's http.StatusText gives it (an empty 429 "Too Many Requests", which magpie's quotaWords know), where it was "HTTP 429"; credits run out are said as "out of credits: …" unless the message is already in quotaWords' words ("Monthly limit hit" is not, "余额不足" is), where a looser test of its own kept "limit" and prefixed Chinese; an error object without a message is its JSON. errors.test.mjs fails without the change.

This commit is contained in:
yetone
2026-10-01 03:44:06 +08:00
parent e39f4f4dc0
commit f62d7d1057
3 changed files with 59 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@magpie-community/opencode-commandcode-auth",
"version": "0.1.3",
"version": "0.1.4",
"description": "Command Code plans (Pro, GOAT, Max, Ultra, Go, Teams) in OpenCode and magpie",
"type": "module",
"main": "./index.mjs",