( messages: AgentMessage[], pathEntries: SessionPathEntry[], startIndex: number, endIndex: number, )
| 92 | } |
| 93 | |
| 94 | function appendSourceMessagesFromEntryRange( |
| 95 | messages: AgentMessage[], |
| 96 | pathEntries: SessionPathEntry[], |
| 97 | startIndex: number, |
| 98 | endIndex: number, |
| 99 | ) { |
| 100 | for (let index = startIndex; index < endIndex; index += 1) { |
| 101 | const entry = pathEntries[index] |
| 102 | if (entry) { |
| 103 | appendEntryMessage(messages, entry) |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | function getSelectedCompactionIndex(pathEntries: SessionPathEntry[], revealedCompactions: number) { |
| 109 | if (revealedCompactions < 0) { |
no test coverage detected