dsh-plugin-subscription-oauth 0.8.2 → 0.8.3
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/lib/providers/antigravity.js +15 -1
- package/package.json +1 -1
|
@@ -439,7 +439,21 @@ export class AntigravityAdapter extends LlmAdapter {
|
|
|
439
439
|
continue;
|
|
440
440
|
tried.add(accountKey);
|
|
441
441
|
token = await this.options.tokens.resolve(accountKey);
|
|
442
|
-
|
|
442
|
+
// A transport failure (DNS, connect timeout) on one account may be that account's
|
|
443
|
+
// path, not the provider's; try the next account before giving up, the same way a
|
|
444
|
+
// spent allowance does. A lone account still surfaces the real error.
|
|
445
|
+
let response;
|
|
446
|
+
try {
|
|
447
|
+
response = await this.request(options, model, token.account, token.accessToken, watchdog.signal);
|
|
448
|
+
}
|
|
449
|
+
catch (error) {
|
|
450
|
+
const transport = error instanceof TypeError || error.name === 'AbortError';
|
|
451
|
+
if (transport && order.length > 1 && !watchdog.timedOut) {
|
|
452
|
+
diag.push(`transport on ${token.account}, moving to next`);
|
|
453
|
+
continue;
|
|
454
|
+
}
|
|
455
|
+
throw error;
|
|
456
|
+
}
|
|
443
457
|
if (response.status === 401 || response.status === 403) {
|
|
444
458
|
// The stored token was accepted locally but refused on the wire; force one
|
|
445
459
|
// refresh. A 403 that survives the refresh is Google's "verify your account"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-plugin-subscription-oauth",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Use subscription accounts as DeepSeek Harness LLM providers — Kimi Code (OAuth device flow), Grok / X Premium (OIDC + PKCE), Google Antigravity (Google OAuth + Cloud Code Assist) and GLM / BigModel (ZCode's browser sign-in) — with per-model visibility, drag-to-reorder Auto fallback and plan quotas from the web Settings page",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "EricFL1998",
|