| 7 | const CURRENT_FILE = path.join(SESSION_DIR, "current.json"); |
| 8 | |
| 9 | interface SessionFile { |
| 10 | id?: string; |
| 11 | createdAt?: string; |
| 12 | updatedAt?: string; |
| 13 | messages?: { role: string; content?: string }[]; |
| 14 | } |
| 15 | |
| 16 | function readBody(req: IncomingMessage): Promise<string> { |
| 17 | return new Promise((resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected