@monoes/monomindcli 2.5.3 → 2.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -107,8 +107,13 @@ function _withTimeout(promise, ms) {
|
|
|
107
107
|
/**
|
|
108
108
|
* Scan `input` with monofence-ai's threat detector, bounded by a timeout.
|
|
109
109
|
* Returns null (never throws) when monofence is unavailable, times out, or errors.
|
|
110
|
+
* MONOMIND_MONOFENCE_GATE=off disables this scan entirely (mirrors
|
|
111
|
+
* MONOMIND_GRAPH_GATE=off) — e.g. when its heuristics misfire on ordinary
|
|
112
|
+
* markdown headings (observed a false-positive high-confidence block on
|
|
113
|
+
* plain release-note prose during v2.5.3).
|
|
110
114
|
*/
|
|
111
115
|
async function monofenceScan(input) {
|
|
116
|
+
if (String(process.env.MONOMIND_MONOFENCE_GATE || '').toLowerCase() === 'off') return null;
|
|
112
117
|
if (!input || typeof input !== 'string') return null;
|
|
113
118
|
var mod = await _withTimeout(_loadMonofence(), MONOFENCE_TIMEOUT_MS);
|
|
114
119
|
if (!mod || typeof mod.getMonoDefence !== 'function') return null;
|