(dir: string)
| 525 | } |
| 526 | |
| 527 | function cleanupDir(dir: string): void { |
| 528 | try { |
| 529 | // Lambda warm starts can reuse `/tmp` across invocations; clean up |
| 530 | // aggressively so we don't leak a chunk-sized footprint between renders. |
| 531 | rmSync(dir, { recursive: true, force: true }); |
| 532 | } catch { |
| 533 | // Best-effort — leak is preferable to crashing on success path. |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | /** |
| 538 | * Read the untarred planDir's `plan.json` and assert its `planHash` |
no outgoing calls
no test coverage detected