triflux 10.55.1 → 10.56.0
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/hud/hud-qos-status.mjs +5 -3
- package/package.json +1 -1
package/hud/hud-qos-status.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { existsSync, statSync } from "node:fs";
|
|
3
|
+
import { existsSync, readFileSync, statSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
import { resolveHudCliVisibility } from "./cli-policy.mjs";
|
|
@@ -157,8 +157,10 @@ main().catch(() => {
|
|
|
157
157
|
function isClaudeBandActive(sessionId) {
|
|
158
158
|
if (!sessionId) return false;
|
|
159
159
|
try {
|
|
160
|
-
const
|
|
161
|
-
|
|
160
|
+
const marker = join(CLAUDE_BAND_MARKER_DIR, sessionId);
|
|
161
|
+
// band 위치를 statusline 으로 고른 세션은 표식에 "off" 를 쓴다.
|
|
162
|
+
if (readFileSync(marker, "utf8").trim() === "off") return false;
|
|
163
|
+
return Date.now() - statSync(marker).mtimeMs < CLAUDE_BAND_MARKER_TTL_MS;
|
|
162
164
|
} catch {
|
|
163
165
|
return false;
|
|
164
166
|
}
|