(res: ServerResponse, event: string, data: unknown)
| 53 | } |
| 54 | |
| 55 | function sseWrite(res: ServerResponse, event: string, data: unknown) { |
| 56 | res.write(`event: ${event}\n`) |
| 57 | res.write(`data: ${JSON.stringify(data)}\n\n`) |
| 58 | } |
| 59 | |
| 60 | function runAgentApiPlugin(): Plugin { |
| 61 | const runs = new Map<string, RunInfo>() |
no test coverage detected