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

Function getChicagoEnabled

src/utils/computerUse/gates.ts:45–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45export 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
60export function getChicagoSubGates(): CuSubGates {
61 const { enabled: _e, coordinateMode: _c, ...subGates } = readConfig()

Callers 2

runFunction · 0.85

Calls 3

isEnvTruthyFunction · 0.85
hasRequiredSubscriptionFunction · 0.85
readConfigFunction · 0.85

Tested by

no test coverage detected