MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / routeToDaemon

Function routeToDaemon

src/mcp/proxy.ts:277–286  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

275 // initialize already answered locally; notifications (initialized) need no reply.
276 };
277 const routeToDaemon = (line: string): void => {
278 if (daemonStatus === 'ready' && daemonSocket) {
279 trackInflight(line);
280 try { daemonSocket.write(line.endsWith('\n') ? line : line + '\n'); } catch { /* close path */ }
281 } else if (daemonStatus === 'failed') {
282 void handleLocally(line);
283 } else {
284 pending.push(line);
285 }
286 };
287
288 // ---- client (stdin) ----
289 let stdinBuf = '';

Callers 1

runLocalHandshakeProxyFunction · 0.85

Calls 3

trackInflightFunction · 0.85
handleLocallyFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected