import { existsSync, rmSync } from 'node:fs';
import { homedir } from 'node:os';
import { j as join } from '../shared/ccjk.bQ7Dh1g4.mjs';

function cleanupZcfNamespace() {
  const removed = [];
  const dirs = [
    join(homedir(), ".claude", "commands", "zcf"),
    join(homedir(), ".claude", "agents", "zcf")
  ];
  for (const dir of dirs) {
    if (existsSync(dir)) {
      rmSync(dir, { recursive: true, force: true });
      removed.push(dir);
    }
  }
  return { removed };
}

export { cleanupZcfNamespace };
