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

Method #dataHandler

source code/utils/ShellCommand.ts:84–92  ·  view source on GitHub ↗
(data: Buffer | string)

Source from the content-addressed store, hash-verified

82 }
83
84 #dataHandler(data: Buffer | string): void {
85 const str = typeof data === 'string' ? data : data.toString()
86
87 if (this.#isStderr) {
88 this.#taskOutput!.writeStderr(str)
89 } else {
90 this.#taskOutput!.writeStdout(str)
91 }
92 }
93
94 cleanup(): void {
95 if (this.#isCleanedUp) {

Callers

nothing calls this directly

Calls 3

writeStderrMethod · 0.80
writeStdoutMethod · 0.80
toStringMethod · 0.65

Tested by

no test coverage detected