MCPcopy Create free account
hub / github.com/cucoleadan/opencode-cowork-proxy / pull

Function pull

test/stream.test.ts:22–28  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

20 let index = 0;
21 return new ReadableStream({
22 pull(controller) {
23 if (index < chunks.length) {
24 controller.enqueue(new TextEncoder().encode(chunks[index++]));
25 } else {
26 controller.close();
27 }
28 },
29 });
30}
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected