MCPcopy Create free account
hub / github.com/anomalyco/opencode / stream

Function stream

packages/opencode/test/cli/run/runtime.stdin.test.ts:5–7  ·  view source on GitHub ↗
(isTTY: boolean)

Source from the content-addressed store, hash-verified

3import { INTERACTIVE_INPUT_ERROR, resolveInteractiveStdin } from "@/cli/cmd/run/runtime.stdin"
4
5function stream(isTTY: boolean) {
6 return Object.assign(new Readable({ read() {} }), { isTTY }) as NodeJS.ReadStream
7}
8
9describe("run interactive stdin", () => {
10 test("reuses stdin when it is already a tty", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected