triflux 4.0.5 → 4.0.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.
- package/bin/triflux.mjs +7 -5
- package/package.json +1 -1
package/bin/triflux.mjs
CHANGED
|
@@ -218,7 +218,7 @@ function handleFatalError(error, { json = false } = {}) {
|
|
|
218
218
|
function which(cmd) {
|
|
219
219
|
try {
|
|
220
220
|
const result = process.platform === "win32"
|
|
221
|
-
? execFileSync("where", [cmd], { encoding: "utf8", timeout: 5000, stdio: ["pipe", "pipe", "ignore"] })
|
|
221
|
+
? execFileSync("where", [cmd], { encoding: "utf8", timeout: 5000, stdio: ["pipe", "pipe", "ignore"], windowsHide: true })
|
|
222
222
|
: execFileSync("which", [cmd], { encoding: "utf8", timeout: 5000, stdio: ["pipe", "pipe", "ignore"] });
|
|
223
223
|
return result.trim().split(/\r?\n/)[0] || null;
|
|
224
224
|
} catch { return null; }
|
|
@@ -237,6 +237,7 @@ function whichInShell(cmd, shell) {
|
|
|
237
237
|
encoding: "utf8",
|
|
238
238
|
timeout: 8000,
|
|
239
239
|
stdio: ["pipe", "pipe", "ignore"],
|
|
240
|
+
windowsHide: true,
|
|
240
241
|
}).trim();
|
|
241
242
|
return result.split(/\r?\n/)[0] || null;
|
|
242
243
|
} catch { return null; }
|
|
@@ -865,7 +866,7 @@ async function cmdDoctor(options = {}) {
|
|
|
865
866
|
const mcpCheck = join(PKG_ROOT, "scripts", "mcp-check.mjs");
|
|
866
867
|
if (existsSync(mcpCheck)) {
|
|
867
868
|
try {
|
|
868
|
-
execFileSync(process.execPath, [mcpCheck], { timeout: 15000, stdio: "ignore" });
|
|
869
|
+
execFileSync(process.execPath, [mcpCheck], { timeout: 15000, stdio: "ignore", windowsHide: true });
|
|
869
870
|
report.actions.push({ type: "rebuild", name: "mcp-inventory", status: "ok" });
|
|
870
871
|
ok("MCP 인벤토리 재생성됨");
|
|
871
872
|
} catch {
|
|
@@ -876,7 +877,7 @@ async function cmdDoctor(options = {}) {
|
|
|
876
877
|
const hudScript = join(CLAUDE_DIR, "hud", "hud-qos-status.mjs");
|
|
877
878
|
if (existsSync(hudScript)) {
|
|
878
879
|
try {
|
|
879
|
-
execFileSync(process.execPath, [hudScript, "--refresh-claude-usage"], { timeout: 20000, stdio: "ignore" });
|
|
880
|
+
execFileSync(process.execPath, [hudScript, "--refresh-claude-usage"], { timeout: 20000, stdio: "ignore", windowsHide: true });
|
|
880
881
|
report.actions.push({ type: "rebuild", name: "claude-usage-cache", status: "ok" });
|
|
881
882
|
ok("Claude 사용량 캐시 재생성됨");
|
|
882
883
|
} catch {
|
|
@@ -884,7 +885,7 @@ async function cmdDoctor(options = {}) {
|
|
|
884
885
|
warn("Claude 사용량 캐시 재생성 실패 — 다음 API 호출 시 자동 생성");
|
|
885
886
|
}
|
|
886
887
|
try {
|
|
887
|
-
execFileSync(process.execPath, [hudScript, "--refresh-codex-rate-limits"], { timeout: 15000, stdio: "ignore" });
|
|
888
|
+
execFileSync(process.execPath, [hudScript, "--refresh-codex-rate-limits"], { timeout: 15000, stdio: "ignore", windowsHide: true });
|
|
888
889
|
report.actions.push({ type: "rebuild", name: "codex-rate-limits-cache", status: "ok" });
|
|
889
890
|
ok("Codex 레이트 리밋 캐시 재생성됨");
|
|
890
891
|
} catch {
|
|
@@ -892,7 +893,7 @@ async function cmdDoctor(options = {}) {
|
|
|
892
893
|
warn("Codex 레이트 리밋 캐시 재생성 실패");
|
|
893
894
|
}
|
|
894
895
|
try {
|
|
895
|
-
execFileSync(process.execPath, [hudScript, "--refresh-gemini-quota"], { timeout: 15000, stdio: "ignore" });
|
|
896
|
+
execFileSync(process.execPath, [hudScript, "--refresh-gemini-quota"], { timeout: 15000, stdio: "ignore", windowsHide: true });
|
|
896
897
|
report.actions.push({ type: "rebuild", name: "gemini-quota-cache", status: "ok" });
|
|
897
898
|
ok("Gemini 쿼터 캐시 재생성됨");
|
|
898
899
|
} catch {
|
|
@@ -1955,6 +1956,7 @@ function stopHubForUpdate() {
|
|
|
1955
1956
|
execFileSync("taskkill", ["/PID", String(info.pid), "/T", "/F"], {
|
|
1956
1957
|
stdio: ["pipe", "pipe", "ignore"],
|
|
1957
1958
|
timeout: 10000,
|
|
1959
|
+
windowsHide: true,
|
|
1958
1960
|
});
|
|
1959
1961
|
} else {
|
|
1960
1962
|
process.kill(info.pid, "SIGTERM");
|