// Test aggressive cleanup behavior in development mode
const aggressiveCleanup = require('./lib/aggressive-cleanup.ts').default;

console.log('Testing aggressive cleanup in development mode...');
console.log('NODE_ENV:', process.env.NODE_ENV);

// Test the startup
aggressiveCleanup.startPeriodicCleanup();

// Test post-analysis cleanup
console.log('\nTesting post-analysis cleanup...');
aggressiveCleanup.runPostAnalysisCleanup().then(() => {
  console.log('Post-analysis cleanup completed');
}).catch(console.error);

// Test manual cleanup
console.log('\nTesting manual cleanup...');
aggressiveCleanup.cleanupOrphanedProcesses().then(() => {
  console.log('Manual cleanup completed');
}).catch(console.error);
