MCPcopy Index your code
hub / github.com/kodu-ai/claude-coder / processStreamChunk

Method processStreamChunk

extension/src/api/api-handler.ts:348–358  ·  view source on GitHub ↗

* Processes stream chunks from the API response * @param chunk - SSE response chunk

(chunk: koduSSEResponse)

Source from the content-addressed store, hash-verified

346 * @param chunk - SSE response chunk
347 */
348 private async *processStreamChunk(chunk: koduSSEResponse): AsyncGenerator<koduSSEResponse> {
349 switch (chunk.code) {
350 case 0:
351 break
352 case 1:
353 await this.handleFinalResponse(chunk)
354 break
355 }
356
357 yield chunk
358 }
359
360 /**
361 * Handles the final response from the API

Callers 1

Calls 1

handleFinalResponseMethod · 0.95

Tested by

no test coverage detected