Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 39 to 40

Compare

+37 −5 in 4 places
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";
27+import {
28+ AVCS_MOD,
29+ installMod,
30+ type ModSpec,
31+ modsBehindText,
32+ retireOldMod,
33+ rollbackMod,
34+ versionFor,
35+ versionReport,
36+} from "../src/install.ts";
2837import { main } from "../src/main.ts";
2938
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"),
339348 check: pass,
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)})`);
347356 assert.match(
348357 mod!,
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$/,
350359 );
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: () => {} }))
354363 .stdout,
Lines 366–400 at 40 (were 357–368 at 39)
357366 assert.equal(json.mods[0].version, "0.1.0+aaaaaaa");
358367 });
359368
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;
378+ try {
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);
384+ } finally {
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;
389+ }
390+ });
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"),
366398 check: pass,
367399 commit: "aaaaaaa",
368400 now: new Date("2026-10-05T04:30:00Z"),
MCP
compare on this site's /mcp
CLI
abso diff 39 40 client/test/install.test.ts --json
JSON
/christopher/abso-core/compare/39..40?file=client%2Ftest%2Finstall.test.ts&format=json