MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / constructor

Method constructor

__tests__/query-pool.test.ts:48–50  ·  view source on GitHub ↗
(private behavior: (m: CallMsg) => Action, readyOk: boolean | null = true)

Source from the content-addressed store, hash-verified

46 holdsTrimReport = false;
47 trims = 0;
48 constructor(private behavior: (m: CallMsg) => Action, readyOk: boolean | null = true) {
49 setTimeout(() => { if (this.alive && readyOk !== null) this.emitMessage({ type: 'ready', ok: readyOk }); }, 0);
50 }
51 on(event: string, cb: (...args: any[]) => void): void {
52 if (event === 'message') this.msgCb = cb;
53 else if (event === 'exit') this.exitCb = cb;

Callers

nothing calls this directly

Calls 1

emitMessageMethod · 0.95

Tested by

no test coverage detected