cleanse
Remove unused imports and dead variables from JavaScript/TypeScript projects after scanning for dead code. Skips risky elements like functions and exports.
Instructions
Safely removes dead code found by scan_dead_code. Auto-removes unused imports and side-effect-free variables. Skips anything risky (functions, exports, initializers with side effects). Always run scan_dead_code first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | Yes | Absolute path to the project root directory | |
| dry_run | No | If true, shows what would be removed without modifying files. |