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

Method flush

packages/core/src/common/stream.ts:480–489  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

478 }
479
480 flush(): string[] {
481 if (!this.buffer.length && !this.trailingCR) {
482 return [];
483 }
484
485 const lines = [this.buffer.join('')];
486 this.buffer = [];
487 this.trailingCR = false;
488 return lines;
489 }
490}
491
492/**

Callers 2

iterLinesMethod · 0.95
_iterSSEMessagesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected