MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / verifyCandidate

Function verifyCandidate

pkg/npm/install.js:206–212  ·  view source on GitHub ↗
(candidatePath)

Source from the content-addressed store, hash-verified

204}
205
206function verifyCandidate(candidatePath) {
207 execFileSync(candidatePath, ['--version'], {
208 stdio: ['ignore', 'pipe', 'pipe'],
209 timeout: CANDIDATE_TIMEOUT_MS,
210 windowsHide: true,
211 });
212}
213
214function fileSha256(candidatePath) {
215 const digest = crypto.createHash('sha256');

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected