MCPcopy Create free account
hub / github.com/EvoMap/evolver / events

Function events

test/proxyStreaming.test.js:45–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 savedSettingsDir = process.env.EVOLVER_SETTINGS_DIR;
44 process.env.EVOLVER_SETTINGS_DIR = settingsDir;
45 function* events() {
46 yield Buffer.from('data: {"type":"message_start"}\n\n');
47 yield Buffer.from('data: {"type":"content_block_delta","delta":{"text":"hi"}}\n\n');
48 yield Buffer.from('data: {"type":"message_stop"}\n\n');
49 }
50 const routes = {
51 'POST /test/stream': async () => ({ stream: events(), status: 200 }),
52 'POST /test/json': async () => ({ status: 201, body: { ok: true } }),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected