()
| 272 | |
| 273 | /** Get current filter mode from env */ |
| 274 | export 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. |
no outgoing calls
no test coverage detected