@expiren/opencode-antigravity-auth 1.6.30 → 1.6.31
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 +13 -7
- package/dist/index.js.map +2 -2
- package/dist/src/plugin/ui/auth-menu.d.ts.map +1 -1
- package/dist/src/plugin/ui/auth-menu.js +10 -3
- package/dist/src/plugin/ui/auth-menu.js.map +1 -1
- package/dist/src/plugin/ui/quota-status.d.ts.map +1 -1
- package/dist/src/plugin/ui/quota-status.js +10 -4
- package/dist/src/plugin/ui/quota-status.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1606,7 +1606,7 @@ function classifyGroupStatus(group) {
|
|
|
1606
1606
|
if (waitMs !== null && waitMs > 0) {
|
|
1607
1607
|
return { label: "EXHAUSTED", waitMs };
|
|
1608
1608
|
}
|
|
1609
|
-
return { label: "
|
|
1609
|
+
return { label: "READY" };
|
|
1610
1610
|
}
|
|
1611
1611
|
if (remaining < 0.2) {
|
|
1612
1612
|
return { label: "LOW" };
|
|
@@ -1692,10 +1692,12 @@ function classifyOverallQuotaHealth(cachedQuota) {
|
|
|
1692
1692
|
if (typeof value !== "number" || !Number.isFinite(value)) continue;
|
|
1693
1693
|
groupsWithData++;
|
|
1694
1694
|
if (value <= 0) {
|
|
1695
|
-
exhaustedCount++;
|
|
1696
1695
|
const resetMs = parseResetTimeToMs(cachedQuota[key]?.resetTime);
|
|
1697
|
-
if (resetMs !== null &&
|
|
1698
|
-
|
|
1696
|
+
if (resetMs !== null && resetMs > 0) {
|
|
1697
|
+
exhaustedCount++;
|
|
1698
|
+
if (maxResetMs === void 0 || resetMs > maxResetMs) {
|
|
1699
|
+
maxResetMs = resetMs;
|
|
1700
|
+
}
|
|
1699
1701
|
}
|
|
1700
1702
|
}
|
|
1701
1703
|
}
|
|
@@ -1826,10 +1828,14 @@ function buildModelBreakdown(accounts) {
|
|
|
1826
1828
|
const group = acc.cachedQuota?.[key];
|
|
1827
1829
|
if (!group || typeof group.remainingFraction !== "number") continue;
|
|
1828
1830
|
if (group.remainingFraction <= 0) {
|
|
1829
|
-
exhaustedCount++;
|
|
1830
1831
|
const resetMs = parseResetTimeToMs2(group.resetTime);
|
|
1831
|
-
if (resetMs !== null &&
|
|
1832
|
-
|
|
1832
|
+
if (resetMs !== null && resetMs > 0) {
|
|
1833
|
+
exhaustedCount++;
|
|
1834
|
+
if (maxResetMs === void 0 || resetMs > maxResetMs) {
|
|
1835
|
+
maxResetMs = resetMs;
|
|
1836
|
+
}
|
|
1837
|
+
} else {
|
|
1838
|
+
availableCount++;
|
|
1833
1839
|
}
|
|
1834
1840
|
} else {
|
|
1835
1841
|
availableCount++;
|