MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / startPeriodicUpdateCheck

Function startPeriodicUpdateCheck

apps/cli/src/update-checker.ts:219–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 * The timer is unref'd so it won't prevent process exit.
218 */
219export function startPeriodicUpdateCheck(): void {
220 if (isDevEnvironment()) return
221 refreshCacheInBackground(readCache())
222 const timer = setInterval(() => {
223 refreshCacheInBackground(readCache())
224 }, PERIODIC_CHECK_MS)
225 timer.unref()
226}
227
228/**
229 * Check for updates and prompt user interactively.

Callers 1

cli.tsFile · 0.85

Calls 3

isDevEnvironmentFunction · 0.85
refreshCacheInBackgroundFunction · 0.85
readCacheFunction · 0.85

Tested by

no test coverage detected