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

Function fds

packages/core/src/cross-spawn-spawner.ts:138–146  ·  view source on GitHub ↗
(opts: ChildProcess.CommandOptions)

Source from the content-addressed store, hash-verified

136 }
137
138 const fds = (opts: ChildProcess.CommandOptions) => {
139 if (Predicate.isUndefined(opts.additionalFds)) return []
140 return Object.entries(opts.additionalFds)
141 .flatMap(([name, config]) => {
142 const fd = ChildProcess.parseFdName(name)
143 return Predicate.isUndefined(fd) ? [] : [{ fd, config }]
144 })
145 .toSorted((a, b) => a.fd - b.fd)
146 }
147
148 const stdios = (
149 sin: ChildProcess.StdinConfig,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected