( entries: SessionPathEntry[], startIndex: number, endIndex: number, )
| 20 | } |
| 21 | |
| 22 | function countDisplayableEntriesInRange( |
| 23 | entries: SessionPathEntry[], |
| 24 | startIndex: number, |
| 25 | endIndex: number, |
| 26 | ) { |
| 27 | let count = 0 |
| 28 | |
| 29 | for (let index = startIndex; index < endIndex; index += 1) { |
| 30 | const entry = entries[index] |
| 31 | if (entry && isDisplayableEntry(entry)) { |
| 32 | count += 1 |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | return count |
| 37 | } |
| 38 | |
| 39 | function appendEntryMessage(messages: AgentMessage[], entry: SessionPathEntry) { |
| 40 | switch (entry.type) { |
no test coverage detected