MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / NoopRpc

Class NoopRpc

test/bindingRuntime.misc.test.ts:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21} from '../src/acp/jsonrpc.js';
22
23class NoopRpc implements StdioProcess {
24 private handlers: Array<(m: JsonRpcMessage) => void> = [];
25 written: JsonRpcMessage[] = [];
26
27 write(message: JsonRpcMessage): void {
28 this.written.push(message);
29 }
30 onMessage(cb: (message: JsonRpcMessage) => void): void {
31 this.handlers.push(cb);
32 }
33 onStderr(): void {}
34 kill(): void {}
35}
36
37class PermReqRpc implements StdioProcess {
38 private handlers: Array<(m: JsonRpcMessage) => void> = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected