feat: add foreground monitor command with live status + recent logs
- serve now periodically writes account-pool state (active/cooldown/ disabled, cooldown until, token expiry) to workbuddy-status.json, refreshed every 3s and immediately on cooldown/disable/refresh events - new 'monitor' command runs in foreground: refreshes a live panel of all accounts (usable/cooldown/expired + reasons) every N seconds, optionally showing recent logs via journalctl (-journal) or a log file (-logfile) - statusSnapshotFile excluded from git via .gitignore - unit tests for tailLines and status snapshot states
This commit is contained in:
@@ -7,6 +7,7 @@ last-*.json
|
||||
*.json.bak
|
||||
*.json.disabled
|
||||
.workbuddy-*.json
|
||||
workbuddy-status.json
|
||||
|
||||
# 本地编译产物
|
||||
workbuddy-gateway.exe
|
||||
|
||||
Reference in New Issue
Block a user