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

Function needsUpgrade

projects/electron/src/modules/code/binaries.ts:144–149  ·  view source on GitHub ↗

* Check if a binary needs a version upgrade.

(name: string)

Source from the content-addressed store, hash-verified

142 * Check if a binary needs a version upgrade.
143 */
144function needsUpgrade(name: string): boolean {
145 const def = REGISTRY[name]
146 if (!def) return false
147 const installed = readVersions()[name]
148 return installed !== def.version
149}
150
151/**
152 * Prepend the managed bin directory to the system PATH.

Callers 1

resolveFunction · 0.85

Calls 1

readVersionsFunction · 0.85

Tested by

no test coverage detected