()
| 162 | * Automatically stops capturing when called. |
| 163 | */ |
| 164 | export function consumeEarlyInput(): string { |
| 165 | stopCapturingEarlyInput() |
| 166 | const input = earlyInputBuffer.trim() |
| 167 | earlyInputBuffer = '' |
| 168 | return input |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Check if there is any early input available without consuming it. |
no test coverage detected