@expiren/opencode-antigravity-auth 1.6.51 → 1.6.52
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/dist/index.js +24 -5
- package/dist/index.js.map +2 -2
- package/dist/src/plugin/fingerprint.d.ts +0 -2
- package/dist/src/plugin/fingerprint.d.ts.map +1 -1
- package/dist/src/plugin/fingerprint.js.map +1 -1
- package/dist/src/plugin/model-registry.d.ts.map +1 -1
- package/dist/src/plugin/model-registry.js +15 -0
- package/dist/src/plugin/model-registry.js.map +1 -1
- package/dist/src/plugin.d.ts.map +1 -1
- package/dist/src/plugin.js +13 -5
- package/dist/src/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2167,6 +2167,21 @@ var PUBLIC_MODEL_DEFINITIONS = {
|
|
|
2167
2167
|
limit: { context: 1048576, output: 65535 },
|
|
2168
2168
|
modalities: DEFAULT_MODALITIES
|
|
2169
2169
|
}),
|
|
2170
|
+
"gemini-3.5-flash-preview": defineModel("gemini-3.5-flash-preview", {
|
|
2171
|
+
name: "Gemini 3.5 Flash Preview (Gemini CLI)",
|
|
2172
|
+
reasoning: true,
|
|
2173
|
+
limit: { context: 1048576, output: 65536 },
|
|
2174
|
+
modalities: DEFAULT_MODALITIES
|
|
2175
|
+
}),
|
|
2176
|
+
"gemini-3.1-flash-image": defineModel("gemini-3.1-flash-image", {
|
|
2177
|
+
name: "Gemini 3.1 Flash Image (Gemini CLI)",
|
|
2178
|
+
reasoning: false,
|
|
2179
|
+
limit: { context: 66e3, output: 33e3 },
|
|
2180
|
+
modalities: {
|
|
2181
|
+
input: ["text", "image"],
|
|
2182
|
+
output: ["text", "image"]
|
|
2183
|
+
}
|
|
2184
|
+
}),
|
|
2170
2185
|
"gemini-3.1-flash-image-preview": defineModel("gemini-3.1-flash-image-preview", {
|
|
2171
2186
|
name: "Gemini 3.1 Flash Image Preview (Gemini CLI)",
|
|
2172
2187
|
reasoning: false,
|
|
@@ -12767,7 +12782,7 @@ var createAntigravityPlugin = (providerId) => async ({ client, directory }) => {
|
|
|
12767
12782
|
let headerStyle = preferredHeaderStyle;
|
|
12768
12783
|
pushDebug(`headerStyle=${headerStyle} explicit=${explicitQuota}`);
|
|
12769
12784
|
if (account.fingerprint) {
|
|
12770
|
-
pushDebug(`fingerprint:
|
|
12785
|
+
pushDebug(`fingerprint: deviceId=${account.fingerprint.deviceId.slice(0, 8)}...`);
|
|
12771
12786
|
}
|
|
12772
12787
|
if (accountManager.isRateLimitedForHeaderStyle(account, family, headerStyle, model)) {
|
|
12773
12788
|
if (allowQuotaFallback && family === "gemini" && headerStyle === "antigravity") {
|
|
@@ -13367,6 +13382,10 @@ Alternatively, you can:
|
|
|
13367
13382
|
}
|
|
13368
13383
|
}
|
|
13369
13384
|
const cooldownMs = acc.coolingDownUntil && acc.coolingDownUntil > now ? acc.coolingDownUntil - now : void 0;
|
|
13385
|
+
const DISPLAY_QUOTA_MAX_AGE_MS = 60 * 60 * 1e3;
|
|
13386
|
+
const quotaIsStale = acc.cachedQuotaUpdatedAt == null || now - acc.cachedQuotaUpdatedAt > DISPLAY_QUOTA_MAX_AGE_MS;
|
|
13387
|
+
const displayQuota = quotaIsStale ? void 0 : acc.cachedQuota;
|
|
13388
|
+
const displayPerModelQuota = quotaIsStale ? void 0 : acc.cachedPerModelQuota;
|
|
13370
13389
|
return {
|
|
13371
13390
|
email: acc.email,
|
|
13372
13391
|
index: idx,
|
|
@@ -13375,11 +13394,11 @@ Alternatively, you can:
|
|
|
13375
13394
|
status,
|
|
13376
13395
|
isCurrentAccount: idx === (existingStorage2.activeIndex ?? 0),
|
|
13377
13396
|
enabled: acc.enabled !== false,
|
|
13378
|
-
quotaSummary: formatCachedQuotaSummary(acc),
|
|
13397
|
+
quotaSummary: quotaIsStale ? void 0 : formatCachedQuotaSummary(acc),
|
|
13379
13398
|
cooldownMs,
|
|
13380
13399
|
cooldownReason: cooldownMs ? acc.cooldownReason : void 0,
|
|
13381
|
-
cachedQuota:
|
|
13382
|
-
cachedPerModelQuota:
|
|
13400
|
+
cachedQuota: displayQuota,
|
|
13401
|
+
cachedPerModelQuota: displayPerModelQuota,
|
|
13383
13402
|
fingerprintHistory: acc.fingerprintHistory
|
|
13384
13403
|
};
|
|
13385
13404
|
});
|
|
@@ -13425,7 +13444,7 @@ Alternatively, you can:
|
|
|
13425
13444
|
if (!resetTime) return "";
|
|
13426
13445
|
const ms = Date.parse(resetTime) - Date.now();
|
|
13427
13446
|
if (ms <= 0) {
|
|
13428
|
-
return remainingFraction !== void 0 && remainingFraction <= 0 ? " (
|
|
13447
|
+
return remainingFraction !== void 0 && remainingFraction <= 0 ? " (paid only)" : " (resetting...)";
|
|
13429
13448
|
}
|
|
13430
13449
|
const hours = ms / (1e3 * 60 * 60);
|
|
13431
13450
|
if (hours >= 24) {
|