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

Function write

packages/opencode/src/cli/cmd/acp.ts:33–43  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

31
32 const input = new WritableStream<Uint8Array>({
33 write(chunk) {
34 return new Promise<void>((resolve, reject) => {
35 process.stdout.write(chunk, (err) => {
36 if (err) {
37 reject(err)
38 } else {
39 resolve()
40 }
41 })
42 })
43 },
44 })
45 const output = new ReadableStream<Uint8Array>({
46 start(controller) {

Callers 1

truncate.tsFile · 0.50

Calls 3

writeMethod · 0.80
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected