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

Function write

__tests__/explore-synth-link-endpoints.test.ts:77–80  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

75 async function indexShapes(implementations: string[], testDoubles: string[] = []): Promise<ToolHandler> {
76 dir = fs.mkdtempSync(path.join(os.tmpdir(), 'explore-synth-links-'));
77 const write = (rel: string, content: string) => {
78 fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true });
79 fs.writeFileSync(path.join(dir, rel), content);
80 };
81 write('shape.ts', 'export interface Shape {\n area(): number;\n}\n');
82 write('scale.ts', 'export function scale(n: number): number {\n return n * 2;\n}\n');
83 write(

Callers 3

indexShapesFunction · 0.70
familyFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected