#!/usr/bin/env node
'use strict';

try {
  const { uninstall } = require('../lib/install');
  const removed = uninstall();
  if (removed.length) {
    process.stderr.write('\nCielara: cleaning up IDE integrations…\n');
    for (const r of removed) {
      process.stderr.write(`  ✓ ${r.target}: ${r.file}\n`);
    }
    process.stderr.write('\n');
  }
} catch (err) {
  process.stderr.write(`\nCielara: cleanup failed (${err.message}). Run \`cielara uninstall\` manually.\n\n`);
}
