MCPcopy Index your code
hub / github.com/TanStack/ai / collect

Function collect

packages/ai-opencode/tests/text-adapter.test.ts:62–68  ·  view source on GitHub ↗
(
  stream: AsyncIterable<StreamChunk>,
)

Source from the content-addressed store, hash-verified

60}
61
62async function collect(
63 stream: AsyncIterable<StreamChunk>,
64): Promise<Array<StreamChunk>> {
65 const out: Array<StreamChunk> = []
66 for await (const chunk of stream) out.push(chunk)
67 return out
68}
69
70describe('startOpencodeServerInSandbox', () => {
71 it('resolves baseUrl once the server logs readiness', async () => {

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected