tokmon 0.22.5 → 0.22.6
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.
|
@@ -2900,7 +2900,7 @@ function useDegradedPolling({ degraded, configReady, showPicker, accountsKey, ac
|
|
|
2900
2900
|
let timer;
|
|
2901
2901
|
const load = async () => {
|
|
2902
2902
|
try {
|
|
2903
|
-
const peakP = accountsRef.current.some((a) => a.providerId === "claude") ? fetchPeak() : Promise.resolve(null);
|
|
2903
|
+
const peakP = accountsRef.current.some((a) => a.providerId === "claude") ? withTimeout(fetchPeak()).catch(() => null) : Promise.resolve(null);
|
|
2904
2904
|
await Promise.all(accountsRef.current.map(async (acc) => {
|
|
2905
2905
|
const provider = PROVIDERS[acc.providerId];
|
|
2906
2906
|
if (!provider.hasBilling || !provider.fetchBilling) return;
|
|
@@ -2910,7 +2910,7 @@ function useDegradedPolling({ degraded, configReady, showPicker, accountsKey, ac
|
|
|
2910
2910
|
} catch {
|
|
2911
2911
|
}
|
|
2912
2912
|
}));
|
|
2913
|
-
const p = await
|
|
2913
|
+
const p = await peakP;
|
|
2914
2914
|
if (active && p) setPeak(p);
|
|
2915
2915
|
} finally {
|
|
2916
2916
|
if (active) timer = setTimeout(load, billingMs);
|
package/dist/cli.js
CHANGED
|
@@ -68,5 +68,5 @@ setGlyphs(resolveGlyphs({
|
|
|
68
68
|
}));
|
|
69
69
|
var daemon = await attachOrSpawn();
|
|
70
70
|
var mode = daemon.kind === "spawned" ? "connected" : "degraded";
|
|
71
|
-
var { bootstrapInk } = await import("./bootstrap-ink-
|
|
71
|
+
var { bootstrapInk } = await import("./bootstrap-ink-CHJWH5XC.js");
|
|
72
72
|
await bootstrapInk({ interval, config, daemon, mode });
|
package/package.json
CHANGED