MCPcopy
hub / github.com/callstack/agent-device / writeLine

Function writeLine

src/daemon/app-log-stream.ts:33–39  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

31 let pending = '';
32
33 const writeLine = (line: string): void => {
34 if (includeTokens.length > 0) {
35 const shouldInclude = includeTokens.some((token) => line.includes(token));
36 if (!shouldInclude) return;
37 }
38 stream.write(redactChunk(line, options.redactionPatterns));
39 };
40
41 return {
42 onChunk: (chunk: string) => {

Callers 1

createLineWriterFunction · 0.70

Calls 2

redactChunkFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected