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

Function load

projects/electron/src/modules/code/binaries.ts:316–333  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314}
315
316export const load = () => {
317 logger.info("[Binaries] Initializing managed binary registry")
318
319 // Enhance PATH with any previously downloaded binaries
320 enhancePath()
321
322 // Eagerly download any binaries that aren't available yet — deferred until app is ready
323 // because net.fetch requires the app to be fully initialized
324 app.whenReady().then(() => {
325 for (const name of Object.keys(REGISTRY)) {
326 if (!resolve(name)) {
327 ensureRuntimeBinary(name).catch((err) => {
328 logger.warn(`[Binaries] Background download of ${name} failed:`, err instanceof Error ? err.message : err)
329 })
330 }
331 }
332 })
333}
334
335export const cleanup = () => {
336 logger.info("[Binaries] Cleanup called")

Callers

nothing calls this directly

Calls 3

enhancePathFunction · 0.85
resolveFunction · 0.85
ensureRuntimeBinaryFunction · 0.85

Tested by

no test coverage detected