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

Function sourcedFiles

__tests__/explore-corroboration-ranking.test.ts:33–40  ·  view source on GitHub ↗

Paths that explore rendered as full-body ``**` `** —`` source sections. * Headers are bold labels, not ATX headings (issue #778).

(text: string)

Source from the content-addressed store, hash-verified

31/** Paths that explore rendered as full-body ``**`<path>`** —`` source sections.
32 * Headers are bold labels, not ATX headings (issue #778). */
33function sourcedFiles(text: string): string[] {
34 const out: string[] = [];
35 for (const line of text.split('\n')) {
36 const m = line.match(/^\*\*`(.+?)`\*\* —/);
37 if (m) out.push(m[1].trim());
38 }
39 return out;
40}
41
42describe('codegraph_explore — multi-term corroboration tier', () => {
43 let testDir: string;

Calls

no outgoing calls

Tested by

no test coverage detected