()
| 53 | } |
| 54 | |
| 55 | export function getChicagoEnabled(): boolean { |
| 56 | // Disable for ants whose shell inherited monorepo dev config. |
| 57 | // MONOREPO_ROOT_DIR is exported by config/local/zsh/zshrc, which |
| 58 | // laptop-setup.sh wires into ~/.zshrc — its presence is the cheap |
| 59 | // proxy for "has monorepo access". Override: ALLOW_ANT_COMPUTER_USE_MCP=1. |
| 60 | if ( |
| 61 | isInternalBuild() && |
| 62 | process.env.MONOREPO_ROOT_DIR && |
| 63 | !isEnvTruthy(process.env.ALLOW_ANT_COMPUTER_USE_MCP) |
| 64 | ) { |
| 65 | return false |
| 66 | } |
| 67 | return hasRequiredSubscription() && readConfig().enabled |
| 68 | } |
| 69 | |
| 70 | export function getChicagoSubGates(): CuSubGates { |
| 71 | const { enabled: _e, coordinateMode: _c, ...subGates } = readConfig() |
no test coverage detected