(path: string)
| 572 | } |
| 573 | |
| 574 | async function dirExists(path: string): Promise<boolean> { |
| 575 | try { |
| 576 | const s = await stat(path); |
| 577 | return s.isDirectory(); |
| 578 | } catch { |
| 579 | return false; |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | /** |
| 584 | * Write per-step artifacts under `<tmp>/steps/`. Each step gets up to |