MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / groupConsecutiveImplementors

Function groupConsecutiveImplementors

cli/src/utils/implementor-helpers.ts:143–153  ·  view source on GitHub ↗
(
  blocks: ContentBlock[],
  startIndex: number,
)

Source from the content-addressed store, hash-verified

141 * Returns the group of implementors and the next index to process.
142 */
143export 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
155export function groupConsecutiveNonImplementorAgents(
156 blocks: ContentBlock[],

Callers 2

processBlocksFunction · 0.90

Calls 2

groupConsecutiveBlocksFunction · 0.85
isImplementorAgentFunction · 0.85

Tested by

no test coverage detected