MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / isDevEnvironment

Function isDevEnvironment

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

Source from the content-addressed store, hash-verified

188}
189
190function isDevEnvironment(): boolean {
191 if (process.env.CHATLAB_SKIP_UPDATE_CHECK) return true
192 if (process.env.NODE_ENV === 'development') return true
193 const entryFile = process.argv[1] || ''
194 return entryFile.endsWith('.ts') || entryFile.endsWith('.mts')
195}
196
197/**
198 * Fire-and-forget: fetch latest version from npm and update local cache.

Callers 2

startPeriodicUpdateCheckFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected