MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldSkipVersion

Function shouldSkipVersion

src/utils/autoUpdater.ts:155–169  ·  view source on GitHub ↗
(targetVersion: string)

Source from the content-addressed store, hash-verified

153 * current version until stable catches up, preventing downgrades.
154 */
155export function shouldSkipVersion(targetVersion: string): boolean {
156 const settings = getInitialSettings()
157 const minimumVersion = settings?.minimumVersion
158 if (!minimumVersion) {
159 return false
160 }
161 // Skip if target version is less than minimum
162 const shouldSkip = !gte(targetVersion, minimumVersion)
163 if (shouldSkip) {
164 logForDebugging(
165 `Skipping update to ${targetVersion} - below minimumVersion ${minimumVersion}`,
166 )
167 }
168 return shouldSkip
169}
170
171// Lock file for auto-updater to prevent concurrent updates
172const LOCK_TIMEOUT_MS = 5 * 60 * 1000 // 5 minute timeout for locks

Callers 3

AutoUpdaterFunction · 0.85
updateLatestFunction · 0.85

Calls 3

gteFunction · 0.85
logForDebuggingFunction · 0.70
getInitialSettingsFunction · 0.50

Tested by

no test coverage detected