workshop/packages
Corey Johnson 04aa7c1c91 Add typed event logging system and restructure server
Implement a centralized logging system with typed events (webhook, PR, comment, review, Discord relay, errors, etc.) that feeds a pub/sub pattern. Events are logged to console (with ANSI colors: green=normal, yellow=skipped, red=errors, cyan=PR#) and persisted to JSONL files organized by git commit SHA.

Restructure server code into src/server/ directory with separate route handlers. Add a new /logs endpoint with an HTML viewer that displays events in a searchable table with type/repo filtering and browser timezone conversion. Remove the old /errors endpoint.

Improvements:
- All webhook handlers, Discord events, and errors now use log() instead of console.* calls
- Error objects are properly serialized to JSONL (message + stack extracted)
- Path traversal vulnerability fixed in readLogFile()
- Failed API calls and caught errors are now always logged
- Graceful error handling with fallbacks where appropriate (e.g., missing Discord users)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-10 08:58:47 -07:00
..
arg-completer fixed runner 2025-09-19 17:35:22 -07:00
cubby don't break on lowercase readmes 2025-09-25 21:15:53 -07:00
glyph Introducing... 2025-07-16 22:58:08 -07:00
http REMEMBER US FOR A YEAR! 2025-08-13 09:39:31 -07:00
iago wip 2025-07-14 14:47:30 -07:00
nano-remix it is working 2025-07-19 11:50:06 -07:00
nose-bbs ignore local sqlite file 2025-09-08 14:05:12 -07:00
query wip 2025-07-14 14:47:30 -07:00
shared cool dude 2025-11-07 14:40:11 -08:00
spike Add typed event logging system and restructure server 2026-03-10 08:58:47 -07:00
todo Added cron 2025-07-25 14:15:23 -07:00
truism truisms 2025-07-28 18:00:39 -07:00
werewolf-ui don't run whiteboard on 3000! 2025-07-22 09:33:51 -07:00
whiteboard Added cron 2025-07-25 14:15:23 -07:00