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

Function getRuntimeBinaryStatuses

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

Source from the content-addressed store, hash-verified

279 * Get status of all managed binaries.
280 */
281export function getRuntimeBinaryStatuses(): ManagedBinaryStatus[] {
282 const platformKey = getPlatformKey()
283 return Object.entries(REGISTRY).map(([name, def]) => {
284 const binaryPath = resolve(name)
285 const isDownloading = activeDownloads.has(name)
286 const supported = !!def.urls[platformKey]
287
288 return {
289 name,
290 displayName: def.displayName,
291 version: def.version,
292 status: isDownloading ? "downloading" : binaryPath ? "available" : "not_downloaded",
293 path: binaryPath,
294 error: !supported ? `Not available for ${platformKey}` : null,
295 }
296 })
297}
298
299/**
300 * Remove a managed binary.

Callers 1

Calls 4

getPlatformKeyFunction · 0.85
resolveFunction · 0.85
entriesMethod · 0.80
hasMethod · 0.80

Tested by

no test coverage detected