sweep-cli 0.1.0

Fast system cleaner for macOS — clean caches, uninstall apps, optimize system. Single binary, no dependencies.
//! Developer build artifact cleaner.
//! Finds and removes: node_modules, target/, .venv, __pycache__, .build, dist

use std::path::PathBuf;
use dirs;

/// Developer artifact directories to look for.
pub const DEV_ARTIFACTS: &[&str] = &[
    "node_modules",
    "target",
    ".venv",
    "venv",
    "__pycache__",
    ".build",
    "build",
    "dist",
    ".next",
    ".nuxt",
    ".output",
    ".parcel-cache",
    ".turbo",
];

/// Default root paths to scan for dev artifacts.
pub fn scan_roots() -> Vec<PathBuf> {
    let home = dirs::home_dir().unwrap_or_default();
    vec![
        home.join("lang-chain"),
        home.join("Projects"),
        home.join("Developer"),
        home.join("dev"),
        home.join("code"),
        home.join("workspace"),
        home.join("repos"),
        home.join("src"),
        home.join("git"),
        home.join("work"),
        home.join("agno-projects"),
    ]
    .into_iter()
    .filter(|p| p.exists())
    .collect()
}