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

Method getSubagentChunks

sdk/e2e/utils/event-collector.ts:86–93  ·  view source on GitHub ↗

Get subagent chunks for a specific agent

(agentId: string)

Source from the content-addressed store, hash-verified

84
85 /** Get subagent chunks for a specific agent */
86 getSubagentChunks(agentId: string): string[] {
87 return this.streamChunks
88 .filter(
89 (c): c is Extract<StreamChunk, { type: 'subagent_chunk' }> =>
90 typeof c !== 'string' && c.type === 'subagent_chunk' && c.agentId === agentId,
91 )
92 .map((c) => c.chunk)
93 }
94
95 /** Check event ordering - returns true if events appear in the expected order */
96 verifyEventOrder(expectedOrder: PrintModeEvent['type'][]): boolean {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected