style: apply formatter to runtime files

This commit is contained in:
Eyejoker
2026-03-20 03:42:22 +09:00
parent a293a701f4
commit f281a2ee52
4 changed files with 72 additions and 22 deletions

View File

@@ -49,7 +49,11 @@ export function readStatusSnapshots(maxAgeMs: number): StatusSnapshot[] {
try {
const raw = fs.readFileSync(snapshotPath, 'utf-8');
const parsed = JSON.parse(raw) as StatusSnapshot;
if (!parsed.updatedAt || !parsed.agentType || !Array.isArray(parsed.entries))
if (
!parsed.updatedAt ||
!parsed.agentType ||
!Array.isArray(parsed.entries)
)
continue;
const ageMs = now - new Date(parsed.updatedAt).getTime();