()
| 43 | } |
| 44 | |
| 45 | export function getChicagoEnabled(): boolean { |
| 46 | // Disable for ants whose shell inherited monorepo dev config. |
| 47 | // MONOREPO_ROOT_DIR is exported by config/local/zsh/zshrc, which |
| 48 | // laptop-setup.sh wires into ~/.zshrc — its presence is the cheap |
| 49 | // proxy for "has monorepo access". Override: ALLOW_ANT_COMPUTER_USE_MCP=1. |
| 50 | if ( |
| 51 | process.env.USER_TYPE === 'ant' && |
| 52 | process.env.MONOREPO_ROOT_DIR && |
| 53 | !isEnvTruthy(process.env.ALLOW_ANT_COMPUTER_USE_MCP) |
| 54 | ) { |
| 55 | return false |
| 56 | } |
| 57 | return hasRequiredSubscription() && readConfig().enabled |
| 58 | } |
| 59 | |
| 60 | export function getChicagoSubGates(): CuSubGates { |
| 61 | const { enabled: _e, coordinateMode: _c, ...subGates } = readConfig() |
no test coverage detected