triflux 2.4.2 → 2.4.4
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/bin/triflux.mjs +9 -2
- package/hud/hud-qos-status.mjs +3 -3
- package/package.json +1 -1
package/bin/triflux.mjs
CHANGED
|
@@ -296,11 +296,18 @@ function cmdDoctor(options = {}) {
|
|
|
296
296
|
const hudScript = join(CLAUDE_DIR, "hud", "hud-qos-status.mjs");
|
|
297
297
|
if (existsSync(hudScript)) {
|
|
298
298
|
try {
|
|
299
|
-
execSync(`"${process.execPath}" "${hudScript}" --refresh-
|
|
299
|
+
execSync(`"${process.execPath}" "${hudScript}" --refresh-claude-usage`, { timeout: 20000, stdio: "ignore" });
|
|
300
|
+
ok("Claude 사용량 캐시 재생성됨");
|
|
301
|
+
} catch { warn("Claude 사용량 캐시 재생성 실패 — 다음 API 호출 시 자동 생성"); }
|
|
302
|
+
try {
|
|
303
|
+
execSync(`"${process.execPath}" "${hudScript}" --refresh-codex-rate-limits`, { timeout: 15000, stdio: "ignore" });
|
|
304
|
+
ok("Codex 레이트 리밋 캐시 재생성됨");
|
|
305
|
+
} catch { warn("Codex 레이트 리밋 캐시 재생성 실패"); }
|
|
306
|
+
try {
|
|
307
|
+
execSync(`"${process.execPath}" "${hudScript}" --refresh-gemini-quota`, { timeout: 15000, stdio: "ignore" });
|
|
300
308
|
ok("Gemini 쿼터 캐시 재생성됨");
|
|
301
309
|
} catch { warn("Gemini 쿼터 캐시 재생성 실패"); }
|
|
302
310
|
}
|
|
303
|
-
info("Claude/Codex 캐시는 다음 사용 시 자동 생성됩니다");
|
|
304
311
|
console.log(`\n ${LINE}`);
|
|
305
312
|
console.log(` ${GREEN_BRIGHT}${BOLD}✓ 캐시 초기화 + 재생성 완료${RESET}\n`);
|
|
306
313
|
return;
|
package/hud/hud-qos-status.mjs
CHANGED
|
@@ -1429,16 +1429,16 @@ function getProviderRow(provider, marker, markerColor, qosProfile, accountsConfi
|
|
|
1429
1429
|
const usedP = clampPercent((1 - (bucket.remainingFraction ?? 1)) * 100);
|
|
1430
1430
|
const rstRemaining = formatResetRemaining(bucket.resetTime) || "n/a";
|
|
1431
1431
|
quotaSection = `${dim("1d:")}${tierBar(usedP, provAnsi)}${colorByProvider(usedP, formatPercentCell(usedP), provFn)} ${dim(formatTimeCell(rstRemaining))} ` +
|
|
1432
|
-
`${dim("1w:")}${tierInfBar()}${dim("\u221E%".padStart(PERCENT_CELL_WIDTH))} ${dim(formatTimeCellDH("
|
|
1432
|
+
`${dim("1w:")}${tierInfBar()}${dim("\u221E%".padStart(PERCENT_CELL_WIDTH))} ${dim(formatTimeCellDH("-d--h"))}`;
|
|
1433
1433
|
} else {
|
|
1434
1434
|
quotaSection = `${dim("1d:")}${tierDimBar()}${dim(formatPlaceholderPercentCell())} ` +
|
|
1435
|
-
`${dim(formatTimeCell("n/a"))} ${dim("1w:")}${tierInfBar()}${dim("\u221E%".padStart(PERCENT_CELL_WIDTH))} ${dim(formatTimeCellDH("
|
|
1435
|
+
`${dim(formatTimeCell("n/a"))} ${dim("1w:")}${tierInfBar()}${dim("\u221E%".padStart(PERCENT_CELL_WIDTH))} ${dim(formatTimeCellDH("-d--h"))}`;
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
|
|
1439
1439
|
// 폴백: 쿼터 데이터 없을 때
|
|
1440
1440
|
if (!quotaSection) {
|
|
1441
|
-
quotaSection = `${dim("5h:")}${tierDimBar()}${dim(formatPlaceholderPercentCell())} ${dim(formatTimeCell("n/a"))} ${dim("1w:")}${tierDimBar()}${dim(formatPlaceholderPercentCell())} ${dim(formatTimeCellDH("
|
|
1441
|
+
quotaSection = `${dim("5h:")}${tierDimBar()}${dim(formatPlaceholderPercentCell())} ${dim(formatTimeCell("n/a"))} ${dim("1w:")}${tierDimBar()}${dim(formatPlaceholderPercentCell())} ${dim(formatTimeCellDH("-d--h"))}`;
|
|
1442
1442
|
}
|
|
1443
1443
|
|
|
1444
1444
|
const prefix = `${bold(markerColor(`${marker}`))}:`;
|