MCPcopy Create free account
hub / github.com/Effect-TS/effect / collectStream

Function collectStream

packages/tools/ai-codegen/src/PostProcess.ts:100–105  ·  view source on GitHub ↗
(stream: Stream.Stream<Uint8Array, any>)

Source from the content-addressed store, hash-verified

98 const spawner = yield* ChildProcessSpawner.ChildProcessSpawner
99
100 const collectStream = (stream: Stream.Stream<Uint8Array, any>) =>
101 stream.pipe(
102 Stream.decodeText(),
103 Stream.mkString,
104 Effect.orElseSucceed(() => "")
105 )
106
107 const runCommand = Effect.fn("runCommand")(function*(
108 command: string,

Callers 1

PostProcess.tsFile · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected