MCPcopy Create free account
hub / github.com/diegosouzapw/OmniRoute / commandCodeStream

Function commandCodeStream

tests/unit/command-code-user-array-5166.test.ts:29–32  ·  view source on GitHub ↗
(lines: unknown[])

Source from the content-addressed store, hash-verified

27const originalFetch = globalThis.fetch;
28
29function commandCodeStream(lines: unknown[]) {
30 const text = lines.map((l) => JSON.stringify(l)).join("\n") + "\n";
31 return new Response(text, { status: 200, headers: { "Content-Type": "application/x-ndjson" } });
32}
33
34test.after(() => {
35 globalThis.fetch = originalFetch;

Calls

no outgoing calls

Tested by

no test coverage detected