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

Function sourcedFiles

__tests__/explore-nl-stopword-collision.test.ts:28–35  ·  view source on GitHub ↗

Paths explore rendered as full-body ``**` `** —`` source sections, in order.

(text: string)

Source from the content-addressed store, hash-verified

26
27/** Paths explore rendered as full-body ``**`<path>`** —`` source sections, in order. */
28function sourcedFiles(text: string): string[] {
29 const out: string[] = [];
30 for (const line of text.split('\n')) {
31 const m = line.match(/^\*\*`(.+?)`\*\* —/);
32 if (m) out.push(m[1].trim());
33 }
34 return out;
35}
36
37describe('codegraph_explore — NL-stopword collision guard', () => {
38 let testDir: string;

Calls

no outgoing calls

Tested by

no test coverage detected