@expiren/opencode-antigravity-auth 1.6.23 → 1.6.25

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 CHANGED
@@ -1710,7 +1710,7 @@ function formatCachedQuotaWithStatus(cachedQuota) {
1710
1710
  }
1711
1711
  const overall = classifyOverallQuotaHealth(cachedQuota);
1712
1712
  if (overall.health === "exhausted") {
1713
- return overall.maxResetMs ? `resets in ${formatWaitDuration(overall.maxResetMs)}` : void 0;
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
  }
@@ -1762,6 +1762,9 @@ function getStatusBadge(status, account) {
1762
1762
  const suffix = overall.maxResetMs ? ` resets in ${formatWaitDuration(overall.maxResetMs)}` : "";
1763
1763
  return ` ${ANSI.red}[exhausted${suffix}]${ANSI.reset}`;
1764
1764
  }
1765
+ if (overall.health === "partial") {
1766
+ return ` ${ANSI.yellow}[limited]${ANSI.reset}`;
1767
+ }
1765
1768
  }
1766
1769
  switch (status) {
1767
1770
  case "active":
@@ -1794,19 +1797,21 @@ async function showAuthMenu(accounts) {
1794
1797
  if (acc.isCurrentAccount) return 0;
1795
1798
  if (acc.status === "active") {
1796
1799
  const overall = classifyOverallQuotaHealth(acc.cachedQuota);
1797
- if (overall.health === "exhausted") return 2;
1800
+ if (overall.health === "exhausted") return 3;
1801
+ if (overall.health === "partial") return 2;
1798
1802
  return 1;
1799
1803
  }
1800
- if (acc.status === "rate-limited") return 3;
1801
- return 4;
1804
+ if (acc.status === "rate-limited") return 4;
1805
+ return 5;
1802
1806
  };
1803
1807
  return statusOrder(a) - statusOrder(b);
1804
- }).map((account) => {
1808
+ }).map((account, displayIndex) => {
1809
+ const displayNum = displayIndex + 1;
1805
1810
  const statusBadge = getStatusBadge(account.status, account);
1806
1811
  const currentBadge = account.isCurrentAccount ? ` ${ANSI.cyan}[current]${ANSI.reset}` : "";
1807
1812
  const disabledBadge = account.enabled === false ? ` ${ANSI.red}[disabled]${ANSI.reset}` : "";
1808
- const baseLabel = account.email || `Account ${account.index + 1}`;
1809
- const numbered = `${account.index + 1}. ${baseLabel}`;
1813
+ const baseLabel = account.email || `Account ${displayNum}`;
1814
+ const numbered = `${displayNum}. ${baseLabel}`;
1810
1815
  const fullLabel = `${numbered}${currentBadge}${statusBadge}${disabledBadge}`;
1811
1816
  return {
1812
1817
  label: fullLabel,