MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / _decodeChunks

Function _decodeChunks

packages/core/src/common/stream.ts:500–508  ·  view source on GitHub ↗
(chunks: string[])

Source from the content-addressed store, hash-verified

498 * @returns An array of decoded lines.
499 */
500export function _decodeChunks(chunks: string[]): string[] {
501 const decoder = new LineDecoder();
502 const lines: string[] = [];
503 for (const chunk of chunks) {
504 lines.push(...decoder.decode(chunk));
505 }
506
507 return lines;
508}
509
510function partition(str: string, delimiter: string): [string, string, string] {
511 const index = str.indexOf(delimiter);

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.95

Tested by

no test coverage detected