MCPcopy
hub / github.com/garrytan/gstack / getFilterMode

Function getFilterMode

browse/src/content-security.ts:274–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273/** Get current filter mode from env */
274export function getFilterMode(): 'off' | 'warn' | 'block' {
275 const mode = process.env.BROWSE_CONTENT_FILTER?.toLowerCase();
276 if (mode === 'off' || mode === 'block') return mode;
277 return 'warn'; // default
278}
279
280/**
281 * Run all registered content filters against content.

Callers 2

runContentFiltersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected