build(repo): make source comments and build tools self-contained

This commit is contained in:
N0VAN0M4LY committed 2026-11-29 08:46:08 +08:00
1 parent 5b5c59ab08
commit 44190e4544
106 files changed
+152 -183

No files matched your search

+3 -8
View File
@@ -1,12 +1,7 @@
/**
* Record of everything the game sent to the local server, so that what the client actually
* asks for can be read off instead of guessed (implementation notes, milestone 1 steps 3 and 4).
*
* <data>/logs/<start time>/requests.jsonl one JSON line per HTTP exchange or raw connection
* <data>/logs/<start time>/bodies/ request and response bodies, plus readable text
* (decoded BLK) next to them
*
* Each exchange also prints one line to the console.
* Records local server traffic under `<data>/logs/<start time>/`.
* `requests.jsonl` stores one record per HTTP exchange or raw connection. `bodies/` holds the
* payloads and readable versions of decoded BLK bodies. Each exchange also produces a console line.
*/
import { appendFileSync, mkdirSync, writeFileSync } from 'node:fs';
import type { IncomingHttpHeaders } from 'node:http';