MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / write

Function write

source code/utils/bufferedWriter.ts:85–96  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

83
84 return {
85 write(content: string): void {
86 if (immediateMode) {
87 writeFn(content)
88 return
89 }
90 buffer.push(content)
91 bufferBytes += content.length
92 scheduleFlush()
93 if (buffer.length >= maxBufferSize || bufferBytes >= maxBufferBytes) {
94 flushDeferred()
95 }
96 },
97 flush,
98 dispose(): void {
99 flush()

Callers

nothing calls this directly

Calls 3

writeFnFunction · 0.85
flushDeferredFunction · 0.85
scheduleFlushFunction · 0.70

Tested by

no test coverage detected