(kind: 'log' | 'network' | 'console' | 'screenshot' | 'snapshot')
| 676 | } |
| 677 | |
| 678 | function sidecarExtension(kind: 'log' | 'network' | 'console' | 'screenshot' | 'snapshot'): string { |
| 679 | if (kind === 'network' || kind === 'console') return 'json'; |
| 680 | if (kind === 'screenshot') return 'png'; |
| 681 | if (kind === 'snapshot') return 'html'; |
| 682 | // log evidence is text-shaped — `.txt` is the safest default. The |
| 683 | // actual content-type the URL serves may be log-specific (e.g. |
| 684 | // .ndjson for stream-of-events logs); we don't try to guess. |
| 685 | return 'txt'; |
| 686 | } |
| 687 | |
| 688 | /** |
| 689 | * Stream a presigned URL into a file with bounded retry on transport |
no outgoing calls
no test coverage detected