@expiren/opencode-antigravity-auth 1.6.23 → 1.6.24
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 +7 -6
- package/dist/index.js.map +2 -2
- package/dist/src/plugin/ui/auth-menu.js +4 -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 +4 -5
- package/dist/src/plugin/ui/quota-status.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1710,7 +1710,7 @@ function formatCachedQuotaWithStatus(cachedQuota) {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
const overall = classifyOverallQuotaHealth(cachedQuota);
|
|
1712
1712
|
if (overall.health === "exhausted") {
|
|
1713
|
-
return
|
|
1713
|
+
return void 0;
|
|
1714
1714
|
}
|
|
1715
1715
|
const entries = [
|
|
1716
1716
|
{ key: "claude", label: "Claude" },
|
|
@@ -1730,9 +1730,9 @@ function formatCachedQuotaWithStatus(cachedQuota) {
|
|
|
1730
1730
|
return [`${label} ${pct}%`];
|
|
1731
1731
|
}
|
|
1732
1732
|
if (status.label === "EXHAUSTED") {
|
|
1733
|
-
return [`${label} ${formatQuotaStatusPlain(status)}`];
|
|
1733
|
+
return [`${label} ${formatQuotaStatusPlain(status).toLowerCase()}`];
|
|
1734
1734
|
}
|
|
1735
|
-
return [`${label} ${formatQuotaStatusPlain(status)} ${pct}%`];
|
|
1735
|
+
return [`${label} ${formatQuotaStatusPlain(status).toLowerCase()} ${pct}%`];
|
|
1736
1736
|
});
|
|
1737
1737
|
return entries.length > 0 ? entries.join(", ") : void 0;
|
|
1738
1738
|
}
|
|
@@ -1801,12 +1801,13 @@ async function showAuthMenu(accounts) {
|
|
|
1801
1801
|
return 4;
|
|
1802
1802
|
};
|
|
1803
1803
|
return statusOrder(a) - statusOrder(b);
|
|
1804
|
-
}).map((account) => {
|
|
1804
|
+
}).map((account, displayIndex) => {
|
|
1805
|
+
const displayNum = displayIndex + 1;
|
|
1805
1806
|
const statusBadge = getStatusBadge(account.status, account);
|
|
1806
1807
|
const currentBadge = account.isCurrentAccount ? ` ${ANSI.cyan}[current]${ANSI.reset}` : "";
|
|
1807
1808
|
const disabledBadge = account.enabled === false ? ` ${ANSI.red}[disabled]${ANSI.reset}` : "";
|
|
1808
|
-
const baseLabel = account.email || `Account ${
|
|
1809
|
-
const numbered = `${
|
|
1809
|
+
const baseLabel = account.email || `Account ${displayNum}`;
|
|
1810
|
+
const numbered = `${displayNum}. ${baseLabel}`;
|
|
1810
1811
|
const fullLabel = `${numbered}${currentBadge}${statusBadge}${disabledBadge}`;
|
|
1811
1812
|
return {
|
|
1812
1813
|
label: fullLabel,
|