MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getChicagoEnabled

Function getChicagoEnabled

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

Source from the content-addressed store, hash-verified

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

Callers 2

runFunction · 0.85

Calls 3

hasRequiredSubscriptionFunction · 0.85
readConfigFunction · 0.85
isEnvTruthyFunction · 0.50

Tested by

no test coverage detected