maxpool 1.24.87 → 1.24.88

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maxpool",
3
- "version": "1.24.87",
3
+ "version": "1.24.88",
4
4
  "description": "Multi-account Claude Code proxy with adaptive, rate-aware load balancing across Claude accounts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -1915,7 +1915,9 @@ export class AccountManager {
1915
1915
  const st = account.capLift;
1916
1916
  if (!st) return null;
1917
1917
  if (st.mode !== 'giveback') return null; // full lift
1918
- const cap = Number(account.capUtilization) || 0;
1918
+ // Uncapped: the line it would otherwise stop at is the last-resort tier.
1919
+ const cap = account.capUtilization != null ? Number(account.capUtilization) || 0
1920
+ : this.scheduler.weeklyCriticalThreshold;
1919
1921
  if (account.remote) return Number.isFinite(st.ceiling) ? st.ceiling : cap;
1920
1922
  const drop = Number(account.giveBack?.drop);
1921
1923
  return Number.isFinite(drop) && drop > 0 ? Math.min(1, cap + drop) : cap;
@@ -1933,10 +1935,10 @@ export class AccountManager {
1933
1935
  let active = false;
1934
1936
  let mode = null;
1935
1937
  let sources = []; // the resets that carry the lift (their expiry decides the refill hold)
1936
- // No cap configured → nothing to lift (starting a lift on an uncapped account
1937
- // would remap its ordinary weekly tiers and log noise for no benefit).
1938
- const capFloor = account.capUtilization;
1939
- if (capFloor != null && account.enabled !== false && !account.poolBenchedBy && !account.refreshDead && !account.subscriptionGone) {
1938
+ // Capped OR uncapped (owner 2026-11-11): an uncapped account above 0.95 weekly
1939
+ // tiers last-resort and never reaches the 0.99 claim point, so its full reset
1940
+ // sat unspent while GLM took the load. The lift applies to every holder.
1941
+ if (account.enabled !== false && !account.poolBenchedBy && !account.refreshDead && !account.subscriptionGone) {
1940
1942
  const rg = account.resetGrants;
1941
1943
  const cards = account.resetCards;
1942
1944
  const listingOk = rg && rg.stale !== true && rg.eligible !== false
package/src/tui.js CHANGED
@@ -40,7 +40,7 @@ const NAME_W = 20; // a.name.slice(0, NAME_W).padEnd(NAME_W) — fits a
40
40
  const WHERE_W = 5; // 'Local' / 'Cloud' — where the account is provisioned
41
41
  const PROVIDER_W = 9; // providerLabel(a).padEnd(PROVIDER_W) — fits "Anthropic"
42
42
  const STATUS_W = 13; // rpad(status, STATUS_W) — fits "throttled 59s"
43
- const RESETS_W = 8; // 'Rst' column — FIXED width (fits '2Fable' / '1~119d'); a variable
43
+ const RESETS_W = 13; // 'Rst' column — FIXED width (fits '1+3Fable~118d': count AND expiry, owner 2026-11-11); a variable
44
44
  // width ('0' vs '1~21d') shifted every quota bar per row.
45
45
  const ROW_PREFIX = ' '; // ' ' + sel(1) + cur(1) + ' ' — 4 cols before the name
46
46