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

Function indexedProject

__tests__/daemon-proof.test.ts:235–241  ·  view source on GitHub ↗

An indexed project for the client to find a daemon for.

()

Source from the content-addressed store, hash-verified

233
234/** An indexed project for the client to find a daemon for. */
235async function indexedProject(): Promise<string> {
236 const root = tempDir('cg-proofhook-');
237 fs.writeFileSync(path.join(root, 'orders.ts'), 'export function placeOrder() { return 1; }\n');
238 const cg = await CodeGraph.init(root, { index: true });
239 cg.close();
240 return root;
241}
242
243describe('the hook sends a prompt only to a daemon that proves it runs as this user (#3284)', () => {
244 const answer = () => ({ result: { content: [{ type: 'text', text: 'FROM THE DAEMON' }] } });

Callers 1

daemonProvingFunction · 0.70

Calls 4

tempDirFunction · 0.70
closeMethod · 0.65
joinMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected