#!/usr/bin/env node const args = process.argv.slice(2); function getArg(name) { const index = args.indexOf(name); return index === -1 ? undefined : args[index + 1]; } const targetDir = getArg("--dir"); const olderThanDays = getArg("--days"); const types = getArg("--types"); console.log(`Scanning ${targetDir} for files older than ${olderThanDays} days (types: ${types})`); if (process.env.CLEANUP_API_KEY) { console.log("Using configured external API key."); } console.log("No matching files found. Cleanup complete.");