{"draft":null,"from":39,"to":40,"files":[{"path":"client/src/install.ts","added":30,"removed":4,"diff":"--- a/client/src/install.ts\n+++ b/client/src/install.ts\n@@ -107,27 +107,50 @@\n \n /** The abso mod: what the hook imports first, plugin.json last. src/core.ts is the only client file it imports. */\n export const AVCS_MOD: ModSpec = {\n-\tname: \"avcs\",\n+\tname: \"abso-hooks\",\n \tfrom: CLIENT_DIR,\n \tfiles: [\"src/core.ts\", \"hooks/stamp.ts\", \"hooks/register.ts\", \"hooks/hooks.json\", \".claude-plugin/plugin.json\"],\n \ttest: \"hooks/register.test.ts\",\n };\n \n-/** The avcs-view mod (#12), from client/view. */\n+/** The abso-view mod (#12), from client/view. */\n export const VIEW_MOD: ModSpec = {\n-\tname: \"avcs-view\",\n+\tname: \"abso-view\",\n \tfrom: join(CLIENT_DIR, \"view\"),\n \tfiles: [\"types/index.d.ts\", \"hooks/stamp.ts\", \"hooks/register.tsx\", \"hooks/hooks.json\", \".claude-plugin/plugin.json\"],\n \ttest: \"hooks/register.test.ts\",\n };\n \n+/** The skills folders the mods had before the rename; an install moves them out of the way (see retireOldMod). */\n+export const OLD_MOD_NAMES: Readonly<Record<string, string>> = { \"abso-hooks\": \"avcs\", \"abso-view\": \"avcs-view\" };\n+\n /** Where Claude Code's skills folder keeps a mod. */\n export const skillsFolder = (name: string, env: Readonly<Record<string, string | undefined>> = process.env) =>\n \tjoin(env.CLAUDE_CONFIG_DIR || join(homedir(), \".claude\"), \"skills\", name);\n \n export const modInstalled = (env: Readonly<Record<string, string | undefined>> = process.env) =>\n-\texistsSync(at(skillsFolder(AVCS_MOD.name, env), MANIFEST));\n+\texistsSync(at(skillsFolder(AVCS_MOD.name, env), MANIFEST)) ||\n+\texistsSync(at(skillsFolder(OLD_MOD_NAMES[AVCS_MOD.name]!, env), MANIFEST));\n \n+/**\n+ * After the new mod is in, the folder it replaces (skills/avcs, skills/avcs-view) would load beside it, so it\n+ * is moved, not deleted, to ~/.abso/retired-mods/<name>-<stamp>. Returns where it went, or undefined when there was none.\n+ */\n+export function retireOldMod(\n+\tspec: ModSpec,\n+\tenv: Readonly<Record<string, string | undefined>> = process.env,\n+\tnow: Date = new Date(),\n+): string | undefined {\n+\tconst old = OLD_MOD_NAMES[spec.name];\n+\tif (old === undefined) return undefined;\n+\tconst from = skillsFolder(old, env);\n+\tif (!existsSync(from)) return undefined;\n+\tconst to = join(homedir(), \".abso\", \"retired-mods\", `${old}-${now.toISOString().replace(/[:.]/g, \"-\")}`);\n+\tmkdirSync(dirname(to), { recursive: true });\n+\trenameRetrying(from, to);\n+\treturn to;\n+}\n+\n /** The version an install of `spec` gets: plugin.json's, plus the last commit that changed its files (and .dirty when they differ from it). */\n export function versionFor(spec: ModSpec, commit?: string | null): string {\n \tconst manifest = JSON.parse(readFileSync(at(spec.from, MANIFEST), \"utf8\")) as { version?: unknown };\n@@ -405,6 +428,9 @@\n \t\t}\n \t\tconst unchecked = options.includes(\"--unchecked\");\n \t\tconst r = installMod(spec, { target, check: unchecked ? () => undefined : checkWithClaude(spec) });\n+\t\t// Only for the real skills folder: an install to another folder leaves the old mod alone.\n+\t\tconst retired = target === resolve(skillsFolder(spec.name)) ? retireOldMod(spec) : undefined;\n+\t\tif (retired) console.log(`Moved the old ${OLD_MOD_NAMES[spec.name]} mod out of the skills folder, to ${retired}.`);\n \t\tif (!r.changed) {\n \t\t\tconsole.log(`The ${spec.name} mod ${r.version} is already installed in ${target}; nothing changed.`);\n \t\t\treturn;"}],"unmatched":[]}