MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / resolve

Function resolve

projects/electron/src/modules/code/binaries.ts:220–227  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

218 * Resolve a managed binary. Returns its path if downloaded and version matches, or null.
219 */
220export function resolve(name: string): string | null {
221 const def = REGISTRY[name]
222 if (!def) return null
223
224 const binaryPath = getBinaryPath(def)
225 if (binaryPath && fs.existsSync(binaryPath) && !needsUpgrade(name)) return binaryPath
226 return null
227}
228
229/**
230 * Ensure a managed binary is available. Downloads if not present.

Callers 15

onSettledFunction · 0.90
runHyperPlanStepFunction · 0.90
sendRequestMethod · 0.85
finishFunction · 0.85
waitForFunction · 0.85
waitForFindFunction · 0.85
tickFunction · 0.85
withTimeoutFunction · 0.85
closeFunction · 0.85
openPortFunction · 0.85

Calls 2

getBinaryPathFunction · 0.85
needsUpgradeFunction · 0.85

Tested by 15

tickFunction · 0.68
withTimeoutFunction · 0.68
closeFunction · 0.68
openPortFunction · 0.68
waitForOpenFunction · 0.68
waitForRejectedFunction · 0.68
onDoneFunction · 0.68
onMessageFunction · 0.68
closeFunction · 0.68
listenFunction · 0.68
closeTestServerFunction · 0.68
onMessageFunction · 0.68