maxpool 1.24.86 → 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 +1 -1
- package/src/account-manager.js +7 -5
- package/src/tui.js +6 -2
package/package.json
CHANGED
package/src/account-manager.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
//
|
|
1937
|
-
//
|
|
1938
|
-
|
|
1939
|
-
if (
|
|
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 =
|
|
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
|
|
|
@@ -2560,7 +2560,11 @@ export class TUI {
|
|
|
2560
2560
|
let text = coreFable + suffix;
|
|
2561
2561
|
if (text.length > RESETS_W) text = coreFable;
|
|
2562
2562
|
if (text.length > RESETS_W) text = `${total}*`.slice(0, RESETS_W);
|
|
2563
|
-
|
|
2563
|
+
// Not-fresh: append '?' only when it fits. When it does not ('1+2Fable' is
|
|
2564
|
+
// already 8), keep the breakdown and let the gray colour carry staleness —
|
|
2565
|
+
// collapsing to '3?' made the cell flip 1+2Fable → 3? → 1+2Fable across every
|
|
2566
|
+
// self-update (owner 2026-11-10: "the number of resets keeps changing").
|
|
2567
|
+
if (notFresh && (text + '?').length <= RESETS_W) text += '?';
|
|
2564
2568
|
resetsCell = rpad(total > 0 && !notFresh ? green(text) : gray(text), RESETS_W);
|
|
2565
2569
|
}
|
|
2566
2570
|
|