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

Function daemonProving

__tests__/daemon-proof.test.ts:246–251  ·  view source on GitHub ↗
(proof: FakeProof)

Source from the content-addressed store, hash-verified

244 const answer = () => ({ result: { content: [{ type: 'text', text: 'FROM THE DAEMON' }] } });
245
246 async function daemonProving(proof: FakeProof) {
247 const root = await indexedProject();
248 const daemon = await startFakeDaemon(root, { proof, reply: answer });
249 cleanups.push(() => daemon.close());
250 return { root, daemon };
251 }
252
253 it('asks a daemon that proves it, with the prompt as the query', async () => {
254 const { root, daemon } = await daemonProving('valid');

Callers 1

Calls 4

startFakeDaemonFunction · 0.90
pushMethod · 0.80
indexedProjectFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected