MCPcopy Index your code
hub / github.com/anomalyco/opencode / stdio

Function stdio

packages/core/src/cross-spawn-spawner.ts:130–136  ·  view source on GitHub ↗
(opts: ChildProcess.CommandOptions, key: "stdout" | "stderr")

Source from the content-addressed store, hash-verified

128 }
129
130 const stdio = (opts: ChildProcess.CommandOptions, key: "stdout" | "stderr"): ChildProcess.StdoutConfig => {
131 const cfg = opts[key]
132 if (Predicate.isUndefined(cfg)) return { stream: "pipe" }
133 if (typeof cfg === "string") return { stream: cfg }
134 if (Sink.isSink(cfg)) return { stream: cfg }
135 return { stream: cfg.stream }
136 }
137
138 const fds = (opts: ChildProcess.CommandOptions) => {
139 if (Predicate.isUndefined(opts.additionalFds)) return []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected