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

Function run

test/thinking-stream.test.ts:5–11  ·  view source on GitHub ↗

Feed `chunks` through the filter one at a time and return the concatenated visible output.

(chunks: string[])

Source from the content-addressed store, hash-verified

3
4/** Feed `chunks` through the filter one at a time and return the concatenated visible output. */
5function run(chunks: string[]): string {
6 const f = new StreamDisplayFilter();
7 let out = '';
8 for (const c of chunks) out += f.push(c);
9 out += f.flush();
10 return out;
11}
12
13describe('StreamDisplayFilter (append-only streaming)', () => {
14 it('passes plain text through unchanged', () => {

Callers 1

Calls 2

pushMethod · 0.95
flushMethod · 0.95

Tested by

no test coverage detected