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

Function explore

__tests__/explore-relevance-scoring.test.ts:138–142  ·  view source on GitHub ↗
(query: string)

Source from the content-addressed store, hash-verified

136 afterAll(() => cleanup(dir, cg));
137
138 const explore = async (query: string) => {
139 const result = await handler.execute('codegraph_explore', { query });
140 const text = result.content?.[0]?.text ?? '';
141 return { text, bytes: attributeSourceBytes(text) };
142 };
143
144 it('keeps files whose only match is an unused local out of the response', async () => {
145 const { bytes } = await explore('how does dispatch route an event to its handler');

Calls 2

attributeSourceBytesFunction · 0.90
executeMethod · 0.45

Tested by

no test coverage detected