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

Function explore

__tests__/explore-completeness-note.test.ts:302–312  ·  view source on GitHub ↗
(query: string, fileCount?: number)

Source from the content-addressed store, hash-verified

300 });
301
302 const explore = async (query: string, fileCount?: number): Promise<string> => {
303 const spy = fileCount === undefined
304 ? null
305 : vi.spyOn(cg, 'getStats').mockReturnValue({ fileCount, nodeCount: 50 } as ReturnType<CodeGraph['getStats']>);
306 try {
307 const result = await handler.execute('codegraph_explore', { query });
308 return result.content?.[0]?.text ?? '';
309 } finally {
310 spy?.mockRestore();
311 }
312 };
313
314 it('large tier: a windowed spine method is reported trimmed, not complete', async () => {
315 const text = await explore('runPipeline stepNext finalizeStep', 1000);

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected