(screenText: string)
| 31 | } |
| 32 | |
| 33 | export function findPromptRow(screenText: string): number { |
| 34 | const rows = screenText.split('\n') |
| 35 | for (let rowIndex = rows.length - 1; rowIndex >= 0; rowIndex -= 1) { |
| 36 | if (rows[rowIndex]?.includes('❯')) { |
| 37 | return rowIndex |
| 38 | } |
| 39 | } |
| 40 | return -1 |
| 41 | } |
| 42 | |
| 43 | export function readPromptBand( |
| 44 | screenText: string, |
no outgoing calls
no test coverage detected