// src/actions/deplint/reporters.ts
import chalk from "chalk";
var humanDeplintReporter = {
  render(result) {
    for (const fix of result.appliedFixes) {
      console.log(`[${chalk.blue(fix.workspace.name)}] Fixed: ${fix.detail} ${chalk.green(fix.dependency)}`);
    }
    for (const diagnostic of result.diagnostics) {
      console.log(`[${chalk.blue(diagnostic.workspace.name)}] ${diagnostic.message}`);
      for (const line of diagnostic.evidence ?? []) {
        console.log(`  ${line}`);
      }
      console.log(`  ${chalk.yellow(diagnostic.file)}
`);
    }
    if (result.summary.errorCount > 0) {
      console.warn(`Deplint: Found ${chalk.red(result.summary.errorCount)} dependency problems. ${chalk.red("\u2716")}`);
      return;
    }
    console.info(`Deplint: Found no dependency problems. ${chalk.green("\u2714")}`);
  }
};
var jsonDeplintReporter = {
  render(result) {
    console.log(JSON.stringify(result, null, 2));
  }
};
function getDeplintReporter(format) {
  return format === "json" ? jsonDeplintReporter : humanDeplintReporter;
}
export {
  getDeplintReporter,
  humanDeplintReporter,
  jsonDeplintReporter
};
//# sourceMappingURL=reporters.mjs.map