MCPcopy Create free account
hub / github.com/cursor/cookbook / readStdin

Function readStdin

sdk/coding-agent-cli/src/index.ts:238–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238async function readStdin() {
239 let input = ""
240 process.stdin.setEncoding("utf8")
241
242 for await (const chunk of process.stdin) {
243 input += chunk
244 }
245
246 return input
247}
248
249function waitUntilDestroyed(renderer: CliRenderer) {
250 if (renderer.isDestroyed) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected