MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / flush

Method flush

src/llm/thinking.ts:197–204  ·  view source on GitHub ↗

End of stream: a block that never closed is dropped; any other tail is emitted.

()

Source from the content-addressed store, hash-verified

195
196 /** End of stream: a block that never closed is dropped; any other tail is emitted. */
197 flush(): string {
198 const tail = this.buf;
199 this.buf = '';
200 if (this.closeTarget) return '';
201 let out = '';
202 for (const c of tail) out += this.emit(c);
203 return out;
204 }
205
206 private matchOpen(rest: string, lower: string): { close: string; len: number } | 'partial' | null {
207 const fn = rest.match(FUNCTION_OPEN_RE);

Callers 3

runFunction · 0.95
runHeadlessFunction · 0.95
runTurnMethod · 0.95

Calls 1

emitMethod · 0.95

Tested by 1

runFunction · 0.76