MCPcopy Index your code
hub / github.com/codeaashu/claude-code / isPidBasedLockingEnabled

Function isPidBasedLockingEnabled

src/utils/nativeInstaller/pidLock.ts:35–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 * - If unset, GrowthBook gate (tengu_pid_based_version_locking) controls rollout
34 */
35export function isPidBasedLockingEnabled(): boolean {
36 const envVar = process.env.ENABLE_PID_BASED_VERSION_LOCKING
37 // If env var is explicitly set, respect it
38 if (isEnvTruthy(envVar)) {
39 return true
40 }
41 if (isEnvDefinedFalsy(envVar)) {
42 return false
43 }
44 // GrowthBook controls gradual rollout (returns false for external users)
45 return getFeatureValue_CACHED_MAY_BE_STALE(
46 'tengu_pid_based_version_locking',
47 false,
48 )
49}
50
51/**
52 * Content stored in a version lock file

Callers 5

tryWithVersionLockFunction · 0.85
updateLatestFunction · 0.85
lockCurrentVersionFunction · 0.85
cleanupOldVersionsFunction · 0.85
DoctorFunction · 0.85

Calls 3

isEnvTruthyFunction · 0.85
isEnvDefinedFalsyFunction · 0.85

Tested by

no test coverage detected