( blocks: ContentBlock[], startIndex: number, )
| 141 | * Returns the group of implementors and the next index to process. |
| 142 | */ |
| 143 | export function groupConsecutiveImplementors( |
| 144 | blocks: ContentBlock[], |
| 145 | startIndex: number, |
| 146 | ): { group: AgentContentBlock[]; nextIndex: number } { |
| 147 | return groupConsecutiveBlocks( |
| 148 | blocks, |
| 149 | startIndex, |
| 150 | (block): block is AgentContentBlock => |
| 151 | block.type === 'agent' && isImplementorAgent(block), |
| 152 | ) |
| 153 | } |
| 154 | |
| 155 | export function groupConsecutiveNonImplementorAgents( |
| 156 | blocks: ContentBlock[], |
no test coverage detected