This package standardizes error logging with special tags so that third-party stderr output from Node.js child processes can be intercepted and redirected to debug streams rather than polluting Cypress's own stderr output.

**Key Commands**

```bash
# Build TypeScript to dist/
yarn workspace @packages/stderr-filtering build

# Run a specific test file
yarn workspace @packages/stderr-filtering test -- <path-to-spec>

# Run tests matching a glob pattern
yarn workspace @packages/stderr-filtering test -- "<glob-pattern>"
```

**Architecture**

- `lib/logError.ts` — Primary `logError()` function that wraps messages with `START_TAG`/`END_TAG`
- `lib/FilterTaggedContent.ts` — Transform stream that filters content between start/end tags
- `lib/FilterPrefixedContent.ts` — Transform stream that filters lines matching a prefix regex
- `lib/Filter.ts` — Base filter stream class
- `lib/TagStream.ts` — Stream that emits tag-delimited content blocks
- `lib/LineDecoder.ts` — Utility for decoding streaming data line by line
- `lib/WriteToDebug.ts` — Writable stream that routes data to a `debug` logger instance
- `lib/constants.ts` — `START_TAG` and `END_TAG` constant values
- `lib/tagsDisabled.ts` — No-op implementations used when filtering is disabled

**Gotchas / Notes**

- `logError()` must be used for all error logging in node-executed packages so that filtering works correctly at process boundaries.
- The filtering only takes effect when a stream filter is set up at an execution boundary (e.g., `process.stderr.pipe(filter).pipe(process.stdout)`); simply calling `logError` without a downstream filter does nothing special.

**Integration Points**

- Used by `@packages/server` to filter stderr from child processes and third-party tools.

**Auto-Generated Files**

- `dist/` — Generated by `tsc`; do not edit by hand.
