Lines 24–39 at 40 (were 24–30 at 39)
2424import { after, describe, it } from "node:test"; 2525import { Api } from "../src/api.ts"; 2626import { clientVersion, headCommit } from "../src/client-version.ts"; 27−import { installMod, type ModSpec, modsBehindText, rollbackMod, versionFor, versionReport } from "../src/install.ts";
36+} from "../src/install.ts"; 2837import { main } from "../src/main.ts"; 3039const hasGit = spawnSync("git", ["--version"]).status === 0; Lines 344–350 at 40 (were 335–341 at 39)
335344 const config = temp(); 336345 const spec = source(); 337346 installMod(spec, { 338− target: join(config, "skills", "avcs"),
347+ target: join(config, "skills", "abso-hooks"), 340349 commit: "aaaaaaa", 341350 now: new Date("2026-10-05T04:30:00Z"), Lines 355–363 at 40 (were 346–354 at 39)
346355 assert.equal(client, `abso ${clientVersion()} (${dirname(import.meta.dirname)})`); 349− /^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$/,
358+ /^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$/, 351− assert.equal(view, "the avcs-view mod: not installed (node client/install-view.ts)");
360+ assert.equal(view, "the abso-view mod: not installed (node client/install-view.ts)"); 352361 const json = JSON.parse( 353362 (await main(["--version", "--json"], { cwd: config, env: { CLAUDE_CONFIG_DIR: config }, write: () => {} })) Lines 366–400 at 40 (were 357–368 at 39)
357366 assert.equal(json.mods[0].version, "0.1.0+aaaaaaa"); 369+ it("moves the old avcs mod folder out of the skills folder, not deleting it, once abso-hooks is in", () => { 370+ const config = temp(); 371+ const old = join(config, "skills", "avcs"); 372+ write(old, ".claude-plugin/plugin.json", '{"name":"avcs","version":"0.1.0"}'); 373+ const home = temp(); 374+ const was = process.env.USERPROFILE; 375+ const was2 = process.env.HOME; 376+ process.env.USERPROFILE = home; 377+ process.env.HOME = home; 379+ const to = retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config }); 380+ assert.ok(to?.startsWith(join(home, ".abso", "retired-mods"))); 381+ assert.equal(existsSync(old), false); 382+ assert.equal(existsSync(join(to!, ".claude-plugin", "plugin.json")), true); 383+ assert.equal(retireOldMod(AVCS_MOD, { CLAUDE_CONFIG_DIR: config }), undefined); 385+ if (was === undefined) delete process.env.USERPROFILE; 386+ else process.env.USERPROFILE = was; 387+ if (was2 === undefined) delete process.env.HOME; 388+ else process.env.HOME = was2; 360392 it("status says when an installed mod is behind this client, where the client knows its commit (abso issue 41)", () => { 361393 const config = temp(); 362394 const env = { CLAUDE_CONFIG_DIR: config }; 363395 assert.deepEqual(modsBehindText(env), [], "nothing installed, nothing to say"); 364396 installMod(source(), { 365− target: join(config, "skills", "avcs"),
397+ target: join(config, "skills", "abso-hooks"), 367399 commit: "aaaaaaa", 368400 now: new Date("2026-10-05T04:30:00Z"),