MCPcopy
hub / github.com/codeaashu/claude-code / shouldSkipVersion

Function shouldSkipVersion

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

Source from the content-addressed store, hash-verified

143 * current version until stable catches up, preventing downgrades.
144 */
145export function shouldSkipVersion(targetVersion: string): boolean {
146 const settings = getInitialSettings()
147 const minimumVersion = settings?.minimumVersion
148 if (!minimumVersion) {
149 return false
150 }
151 // Skip if target version is less than minimum
152 const shouldSkip = !gte(targetVersion, minimumVersion)
153 if (shouldSkip) {
154 logForDebugging(
155 `Skipping update to ${targetVersion} - below minimumVersion ${minimumVersion}`,
156 )
157 }
158 return shouldSkip
159}
160
161// Lock file for auto-updater to prevent concurrent updates
162const LOCK_TIMEOUT_MS = 5 * 60 * 1000 // 5 minute timeout for locks

Callers 3

AutoUpdaterFunction · 0.85
updateLatestFunction · 0.85

Calls 3

getInitialSettingsFunction · 0.85
gteFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected