()
| 26 | import { isEnvTruthy } from './envUtils.js' |
| 27 | |
| 28 | export function isUndercover(): boolean { |
| 29 | if (process.env.USER_TYPE === 'ant') { |
| 30 | if (isEnvTruthy(process.env.CLAUDE_CODE_UNDERCOVER)) return true |
| 31 | // Auto: active unless we've positively confirmed we're in an allowlisted |
| 32 | // internal repo. 'external', 'none', and null (check not yet run) all |
| 33 | // resolve to ON. The check is primed in setup.ts; only 'internal' → OFF. |
| 34 | return getRepoClassCached() !== 'internal' |
| 35 | } |
| 36 | return false |
| 37 | } |
| 38 | |
| 39 | export function getUndercoverInstructions(): string { |
| 40 | if (process.env.USER_TYPE === 'ant') { |
no test coverage detected