(commit: StreamCommit, raw: string)
| 1393 | } |
| 1394 | |
| 1395 | function structuredBody(commit: StreamCommit, raw: string): RunEntryBody | undefined { |
| 1396 | const snap = toolSnapshot(commit, raw) |
| 1397 | if (!snap) { |
| 1398 | return undefined |
| 1399 | } |
| 1400 | |
| 1401 | return { |
| 1402 | type: "structured", |
| 1403 | snapshot: snap, |
| 1404 | } |
| 1405 | } |
| 1406 | |
| 1407 | function shellOutput(command: string, raw: string): string | undefined { |
| 1408 | const body = stripAnsi(raw).replace(/^\n+/, "").replace(/\n+$/, "") |
no test coverage detected