{"draft":null,"from":39,"to":40,"files":[{"path":"client/test/install.test.ts","added":37,"removed":5,"diff":"--- a/client/test/install.test.ts\n+++ b/client/test/install.test.ts\n@@ -24,7 +24,16 @@\n import { after, describe, it } from \"node:test\";\n import { Api } from \"../src/api.ts\";\n import { clientVersion, headCommit } from \"../src/client-version.ts\";\n-import { installMod, type ModSpec, modsBehindText, rollbackMod, versionFor, versionReport } from \"../src/install.ts\";\n+import {\n+\tAVCS_MOD,\n+\tinstallMod,\n+\ttype ModSpec,\n+\tmodsBehindText,\n+\tretireOldMod,\n+\trollbackMod,\n+\tversionFor,\n+\tversionReport,\n+} from \"../src/install.ts\";\n import { main } from \"../src/main.ts\";\n \n const hasGit = spawnSync(\"git\", [\"--version\"]).status === 0;\n@@ -335,7 +344,7 @@\n \t\tconst config = temp();\n \t\tconst spec = source();\n \t\tinstallMod(spec, {\n-\t\t\ttarget: join(config, \"skills\", \"avcs\"),\n+\t\t\ttarget: join(config, \"skills\", \"abso-hooks\"),\n \t\t\tcheck: pass,\n \t\t\tcommit: \"aaaaaaa\",\n \t\t\tnow: new Date(\"2026-10-05T04:30:00Z\"),\n@@ -346,9 +355,9 @@\n \t\tassert.equal(client, `abso ${clientVersion()} (${dirname(import.meta.dirname)})`);\n \t\tassert.match(\n \t\t\tmod!,\n-\t\t\t/^the avcs mod: 0\\.1\\.0\\+aaaaaaa in .*skills[\\\\/]avcs, installed 2026-10-05 04:30 UTC; this client has 0.2.0(\\+[0-9a-f]{7}(\\.dirty)?)?: node client\\/install-mod\\.ts installs it$/,\n+\t\t\t/^the abso-hooks mod: 0\\.1\\.0\\+aaaaaaa in .*skills[\\\\/]abso-hooks, installed 2026-10-05 04:30 UTC; this client has 0.2.0(\\+[0-9a-f]{7}(\\.dirty)?)?: node client\\/install-mod\\.ts installs it$/,\n \t\t);\n-\t\tassert.equal(view, \"the avcs-view mod: not installed (node client/install-view.ts)\");\n+\t\tassert.equal(view, \"the abso-view mod: not installed (node client/install-view.ts)\");\n \t\tconst json = JSON.parse(\n \t\t\t(await main([\"--version\", \"--json\"], { cwd: config, env: { CLAUDE_CONFIG_DIR: config }, write: () => {} }))\n \t\t\t\t.stdout,\n@@ -357,12 +366,35 @@\n \t\tassert.equal(json.mods[0].version, \"0.1.0+aaaaaaa\");\n \t});\n \n+\tit(\"moves the old avcs mod folder out of the skills folder, not deleting it, once abso-hooks is in\", () => {\n+\t\tconst config = temp();\n+\t\tconst old = join(config, \"skills\", \"avcs\");\n+\t\twrite(old, \".claude-plugin/plugin.json\", '{\"name\":\"avcs\",\"version\":\"0.1.0\"}');\n+\t\tconst home = temp();\n+\t\tconst was = process.env.USERPROFILE;\n+\t\tconst was2 = process.env.HOME;\n+\t\tprocess.env.USERPROFILE = home;\n+\t\tprocess.env.HOME = home;\n+\t\ttry {\n+\t\t\tconst to = retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config });\n+\t\t\tassert.ok(to?.startsWith(join(home, \".abso\", \"retired-mods\")));\n+\t\t\tassert.equal(existsSync(old), false);\n+\t\t\tassert.equal(existsSync(join(to!, \".claude-plugin\", \"plugin.json\")), true);\n+\t\t\tassert.equal(retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config }), undefined);\n+\t\t} finally {\n+\t\t\tif (was === undefined) delete process.env.USERPROFILE;\n+\t\t\telse process.env.USERPROFILE = was;\n+\t\t\tif (was2 === undefined) delete process.env.HOME;\n+\t\t\telse process.env.HOME = was2;\n+\t\t}\n+\t});\n+\n \tit(\"status says when an installed mod is behind this client, where the client knows its commit (abso issue 41)\", () => {\n \t\tconst config = temp();\n \t\tconst env = { CLAUDE_CONFIG_DIR: config };\n \t\tassert.deepEqual(modsBehindText(env), [], \"nothing installed, nothing to say\");\n \t\tinstallMod(source(), {\n-\t\t\ttarget: join(config, \"skills\", \"avcs\"),\n+\t\t\ttarget: join(config, \"skills\", \"abso-hooks\"),\n \t\t\tcheck: pass,\n \t\t\tcommit: \"aaaaaaa\",\n \t\t\tnow: new Date(\"2026-10-05T04:30:00Z\"),"}],"unmatched":[]}