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

Function engineProject

scripts/regression/gate.mjs:138–146  ·  view source on GitHub ↗

The engine's source as released, from the clone's own history. Null when the tag is not there.

()

Source from the content-addressed store, hash-verified

136
137/** The engine's source as released, from the clone's own history. Null when the tag is not there. */
138function engineProject() {
139 const dir = join(work, 'real', `engine-${ENGINE_TAG}`);
140 mkdirSync(dir, { recursive: true });
141 const archive = join(work, 'engine.tar');
142 const made = run('git', ['-C', repo, 'archive', '--format=tar', '-o', archive, ENGINE_TAG]);
143 if (made.status !== 0) return null;
144 if (run('tar', ['-xf', archive, '-C', dir]).status !== 0) return null;
145 return { id: `real/engine-${ENGINE_TAG}`, dir, real: true };
146}
147
148/** Each real file's project, fetched once and kept in a cache. Null when it cannot be had. */
149async function realFileProjects() {

Callers 1

gate.mjsFile · 0.85

Calls 2

runFunction · 0.70
joinFunction · 0.50

Tested by

no test coverage detected