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

Method push

src/bot/stream-pump.ts:38–42  ·  view source on GitHub ↗

Append streamed text; flush now if the throttle window elapsed, else mark dirty.

(delta: string)

Source from the content-addressed store, hash-verified

36
37 /** Append streamed text; flush now if the throttle window elapsed, else mark dirty. */
38 async push(delta: string): Promise<void> {
39 if (delta) this.buf += delta;
40 if (this.io.now() - this.lastFlushAt >= this.io.minIntervalMs) await this.flush(false);
41 else this.dirty = true;
42 }
43
44 /** Drain any throttle-deferred text — call this on a timer between pushes. */
45 async drain(): Promise<void> {

Callers 15

runOneMethod · 0.95
loadTasksFunction · 0.45
runAgentFunction · 0.45
observeOutcomeFunction · 0.45
mainFunction · 0.45
read-cache.test.tsFile · 0.45
recordingHooksFunction · 0.45
tmpDirFunction · 0.45
matchModelCandidatesFunction · 0.45
codegraph.test.tsFile · 0.45

Calls 1

flushMethod · 0.95

Tested by 11

recordingHooksFunction · 0.36
tmpDirFunction · 0.36
matchModelCandidatesFunction · 0.36
fakeTransportFunction · 0.36
tmpDirFunction · 0.36
fakeTransportFunction · 0.36
fakeIOFunction · 0.36
makeRepoFunction · 0.36
singleTurnHistoryFunction · 0.36
fakeTransportFunction · 0.36
projectWithFunction · 0.36