MCPcopy Create free account
hub / github.com/Noumena-Network/code / getChicagoEnabled

Function getChicagoEnabled

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

Source from the content-addressed store, hash-verified

53}
54
55export 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
70export function getChicagoSubGates(): CuSubGates {
71 const { enabled: _e, coordinateMode: _c, ...subGates } = readConfig()

Callers 2

runFunction · 0.85

Calls 4

isEnvTruthyFunction · 0.90
isInternalBuildFunction · 0.85
hasRequiredSubscriptionFunction · 0.85
readConfigFunction · 0.85

Tested by

no test coverage detected