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

Function project

__tests__/operator-method-names.test.ts:138–146  ·  view source on GitHub ↗
(files: Record<string, string>)

Source from the content-addressed store, hash-verified

136 });
137
138 const project = (files: Record<string, string>): string => {
139 const root = fs.mkdtempSync(path.join(os.tmpdir(), 'codegraph-operator-names-'));
140 roots.push(root);
141 for (const [rel, text] of Object.entries(files)) {
142 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
143 fs.writeFileSync(path.join(root, rel), text);
144 }
145 return root;
146 };
147
148 const index = async (root: string): Promise<CodeGraph> => {
149 const cg = await CodeGraph.init(root, { index: true });

Callers 1

Calls 2

pushMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected