| 16 | import * as fs from 'fs'; |
| 17 | |
| 18 | export interface AuditEntry { |
| 19 | ts: string; |
| 20 | cmd: string; |
| 21 | /** If the agent typed an alias (e.g. 'setcontent'), the raw input is preserved here |
| 22 | * while `cmd` holds the canonical name ('load-html'). Omitted when cmd === rawCmd. */ |
| 23 | aliasOf?: string; |
| 24 | args: string; |
| 25 | origin: string; |
| 26 | durationMs: number; |
| 27 | status: 'ok' | 'error'; |
| 28 | error?: string; |
| 29 | hasCookies: boolean; |
| 30 | mode: 'launched' | 'headed'; |
| 31 | } |
| 32 | |
| 33 | const MAX_ARGS_LENGTH = 200; |
| 34 | const MAX_ERROR_LENGTH = 300; |
nothing calls this directly
no outgoing calls
no test coverage detected