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

Method flush

packages/baseai/src/dev/utils/stream/stream.ts:467–476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465 }
466
467 flush(): string[] {
468 if (!this.buffer.length && !this.trailingCR) {
469 return [];
470 }
471
472 const lines = [this.buffer.join('')];
473 this.buffer = [];
474 this.trailingCR = false;
475 return lines;
476 }
477}
478
479/** This is an internal helper function that's just used for testing */

Callers 2

iterLinesMethod · 0.95
_iterSSEMessagesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected