mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
Same pattern as the recent store.ts extraction: feedback-log writes and connection-event logging move from inline file/console I/O in index.ts into activity-log.ts, called via logFeedback()/logConnectionEvent(). The public default behavior is unchanged (JSON-lines file with rotation, console logging gated by LOG_CONNECTIONS). This is the piece of the private SQLite overlay's persistence swap that's a clean drop-in replacement - the private VPS gateway now imports the same two function names from its own activity-log.ts (SQLite-backed) instead of patching these call sites into a forked index.ts. Note: the private overlay's live host-ban enforcement (blocked_hosts table, heartbeat-driven disconnect) is NOT extracted here - it has no public equivalent and touches the WS connection/heartbeat control flow directly, not just a persistence call. Left as-is for now. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU