Versions 39 to 40
Lines 107–156 at 40 (were 107–133 at 39)
107107
108108/** The abso mod: what the hook imports first, plugin.json last. src/core.ts is the only client file it imports. */
110− name: "avcs",
112112 files: ["src/core.ts", "hooks/stamp.ts", "hooks/register.ts", "hooks/hooks.json", ".claude-plugin/plugin.json"],
115115
116−/** The avcs-view mod (#12), from client/view. */
118− name: "avcs-view",
120120 files: ["types/index.d.ts", "hooks/stamp.ts", "hooks/register.tsx", "hooks/hooks.json", ".claude-plugin/plugin.json"],
123123
124+/** The skills folders the mods had before the rename; an install moves them out of the way (see retireOldMod). */
125+export const OLD_MOD_NAMES: Readonly<Record<string, string>> = { "abso-hooks": "avcs", "abso-view": "avcs-view" };
126+
125128export const skillsFolder = (name: string, env: Readonly<Record<string, string | undefined>> = process.env) =>
127130
128131export const modInstalled = (env: Readonly<Record<string, string | undefined>> = process.env) =>
129− existsSync(at(skillsFolder(AVCS_MOD.name, env), MANIFEST));
130134
136+ * After the new mod is in, the folder it replaces (skills/avcs, skills/avcs-view) would load beside it, so it
137+ * is moved, not deleted, to ~/.abso/retired-mods/<name>-<stamp>. Returns where it went, or undefined when there was none.
148+ const to = join(homedir(), ".abso", "retired-mods", `${old}-${now.toISOString().replace(/[:.]/g, "-")}`);
153+
131154/** 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). */
133156 const manifest = JSON.parse(readFileSync(at(spec.from, MANIFEST), "utf8")) as { version?: unknown };
Lines 428–436 at 40 (were 405–410 at 39)
407430 const r = installMod(spec, { target, check: unchecked ? () => undefined : checkWithClaude(spec) });
433+ if (retired) console.log(`Moved the old ${OLD_MOD_NAMES[spec.name]} mod out of the skills folder, to ${retired}.`);
409435 console.log(`The ${spec.name} mod ${r.version} is already installed in ${target}; nothing changed.`);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 39 40 client/src/install.ts --json
- JSON
- /christopher/abso-core/compare/39..40?file=client%2Fsrc%2Finstall.ts&format=json