Expand description
Centralized exclusion constants and helpers for file traversal.
All directory walkers, grep invocations, and file-operation tools should reference these constants instead of maintaining their own skip lists.
Constants§
- DEFAULT_
EXCLUDED_ DIRS - Directories skipped by default during workspace traversal.
- DEFAULT_
IGNORE_ GLOBS - Glob patterns passed to ripgrep (or other search back-ends) to exclude noisy vendor/build directories from results.
- SENSITIVE_
FILES - Sensitive files that must never be exposed in listings, search results, or the TUI file palette. These contain secrets, credentials, or environment-specific configuration.
Functions§
- is_
sensitive_ file - Returns
trueifnamematches any entry inSENSITIVE_FILESor starts with.env.(catches all dotenv variants).