nsyan's Qoder CN account answered 10605 in ~190ms with
{queueCount: 1, queueType: p4, subCode: RESOURCE_LIMIT,
retryAfterSeconds: 60}, and queue/status gave the same bytes back at every
ask. The 120s silent watchdog (#1204) doesn't cover a call that answered,
so a streamed request was held for QUEUE.held (an hour) and the agent
heard keepalives only until it cancelled.
- queueWait ends the wait when nothing is ahead of the request
(queueCount 1 or none) and the state (isQueued, serviceAvailable,
queueCount, queueType, subCode, retryAfterSeconds) has been the same at
every ask for QUEUE.stuck (5 minutes). The stream's error is the
queue's 503 with Retry-After, plus "the queue hasn't moved in 5 minutes
with nothing ahead".
- A queue with others ahead is still waited out as Qoder's client waits
it (#807), changed or not; a state that changes resets the clock.
- queueState also reads queueCount and subCode.
Run (mica, HOME=$(mktemp -d); mote was at load 36):
- bun test packages/qoder: 450 pass, 0 fail.
- bun scripts/check.mjs qoder: ok.
Broken by hand: origin/main's index.mjs with the new tests: the 5-minute
cutoff test fails (19 pass, 1 fail); the two no-regression tests pass on
both.
Not tried: a real Qoder CN account in a frozen queue (none here); the
fixture is the reporter's literal state.
31 lines
773 B
JSON
31 lines
773 B
JSON
{
|
|
"name": "@magpie-community/opencode-qoder-auth",
|
|
"version": "0.2.71",
|
|
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship, VPC and dedicated domains",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": [
|
|
"index.mjs",
|
|
"opencode.mjs",
|
|
"opencode2.mjs",
|
|
"README.md",
|
|
"LICENSE-CLIProxyAPI"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"qoder",
|
|
"qoder-cn",
|
|
"qwenwork",
|
|
"千问办公"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/qoder"
|
|
}
|
|
}
|