const legacykimihome = join(home, ".kimi");
for (const f of ["patchcord-stop-hook.sh", "patchcord-session-start.sh", "patchcord-prompt-hook.sh", "patchcord-subscribe.sh"]) {
const p = join(legacykimihome, f);
if (existssync(p)) { try { rmsync(p, { force: true }); } catch {} }
}
const legacyskillsroot = join(legacykimihome, "skills");
if (existssync(legacyskillsroot)) {
for (const stale of ["patchcord", "patchcord-inbox", "patchcord-wait", "patchcord-subscribe", "patchcord:inbox", "patchcord:wait", "patchcord:subscribe"]) {
const d = join(legacyskillsroot, stale);
if (existssync(d)) { try { rmsync(d, { recursive: