Commit Graph

4 Commits

Author SHA1 Message Date
stswangzhiping
b3770d21d4 feat: add structured logging, process watchdog, and systemd hardening
- Add lib/logger.js: timestamped structured logging with 5MB x 5 file rotation
- Add lib/watchdog.js: generic child process supervisor with rate-limited restarts
- Enhance client.js: WS ping/pong liveness detection, uncaughtException/unhandledRejection handlers, systemd sd-notify integration
- Refactor frpc.js: FrpcManager now delegates to Watchdog instead of manual spawn/exit
- Enhance install.sh: environment file, log directory, systemd resource limits, security hardening, WatchdogSec=60
- Replace all console.log/warn/error with structured logger across modules

Made-with: Cursor
2026-03-16 07:31:19 +08:00
stswangzhiping
3b7fc0c0d4 fix: combine machine-id+cpu+disk serial for box_id to prevent ghost clone collision
Made-with: Cursor
2026-03-14 22:21:13 +08:00
stswangzhiping
aba21bf8b7 fix: replace MAC address with CPU serial / disk serial / DMI UUID for box_id
Made-with: Cursor
2026-03-14 21:18:57 +08:00
stswangzhiping
222c38a707 feat: initial clawd implementation - WebSocket daemon for claw box
Made-with: Cursor
2026-03-14 20:41:26 +08:00