/**
 * CI environment detection shared by telemetry and the version check.
 *
 * Providers set CI to "true", "1", "yes", etc. Only an explicit off-value
 * counts as "not CI", so an unknown value still suppresses outbound requests
 * rather than surprising a build.
 */
const CI_DISABLED_VALUES = new Set(['', 'false', '0', 'no', 'off']);
/**
 * True when `CI` is set to anything other than an explicit off-value.
 */
export function isCiEnvironment(env = process.env) {
    const value = env.CI;
    return value !== undefined && !CI_DISABLED_VALUES.has(value.trim().toLowerCase());
}
//# sourceMappingURL=ci.js.map