Imported from Gill-Bates/wirebuddy (
tools/ui-lint/lib/console/AGENTS.md). Install upstream withnpx skills add Gill-Bates/wirebuddy --skill console. Copyright stays with the author.
console
Purpose
Console message noise control: an allowlist of ignorable messages, filtering helper and a severity scorer.
Key Files
| File | Description |
|---|---|
allowlist.mjs |
CONSOLE_ALLOWLIST regex list (e.g. ResizeObserver loop, favicon load failures) |
filters.mjs |
filterConsoleEntries(entries, allowlist) |
severity.mjs |
CONSOLE_SEVERITY weights and scoreConsoleSeverity |
For AI Agents
Working In This Directory
- Add allowlist entries only for verified benign browser noise; every entry hides findings.
Testing Requirements
- Covered by
tests/audit-helpers.spec.js. Runcd tools/ui-lint && npx playwright test <spec>(no playwright.config file; defaults apply).
Common Patterns
- No special constraints beyond the parent directory guidance.
Dependencies
Internal
../orchestration/audit-runner.mjs
External
- No special constraints beyond the parent directory guidance.