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

Function isAutoModeGateEnabled

src/utils/permissions/permissionSetup.ts:1284–1289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1282 * have not disabled it. Synchronous.
1283 */
1284export function isAutoModeGateEnabled(): boolean {
1285 if (autoModeStateModule?.isAutoModeCircuitBroken() ?? false) return false
1286 if (isAutoModeDisabledBySettings()) return false
1287 if (!modelSupportsAutoMode(getMainLoopModel())) return false
1288 return true
1289}
1290
1291/**
1292 * Returns the reason auto mode is currently unavailable, or null if available.

Callers 7

handleResponseFunction · 0.85
transitionPermissionModeFunction · 0.85
shouldPlanUseAutoModeFunction · 0.85
canCycleToAutoFunction · 0.85
handleSetPermissionModeFunction · 0.85
onSetPermissionModeFunction · 0.85

Calls 3

modelSupportsAutoModeFunction · 0.85
getMainLoopModelFunction · 0.85

Tested by

no test coverage detected