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 7 to 318

Compare

+13 −10 in 5 places
Lines 1–4 at 318 (were 1–4 at 7)
1−// avcs-view against the engine: the server and the folder are answered here.
1+// abso-view against the engine: the server and the folder are answered here.
22
33import type { On } from "claude-code";
44import { expect, mock, test } from "claude-code/testing";
Lines 41–56 at 318 (were 41–53 at 7)
4141 on("session.start", (_$, e) => ({ cwd: (e as { cwd?: string }).cwd ?? "/w/proj/src" }));
4242 on("session.cwd", () => ({ value: "/w/proj/src" }));
4343 on("command.register", (_$, e) => ({ value: { command: e.name } }));
44+ on("fs.exists", (_$, e) => ({
45+ value: inFolder && e.path.replace(/\\/g, "/").replace(/^[A-Za-z]:/, "") === "/w/proj/.abso/config.json",
46+ }));
4447 on("fs.read", (_$, e) => {
4548 // The engine hands hooks the path resolved for this machine (C:\w\proj on Windows).
4649 const path = e.path.replace(/\\/g, "/").replace(/^[A-Za-z]:/, "");
4750 reads.push(path);
48− if (inFolder && path === "/w/proj/.avcs/config.json")
51+ if (inFolder && path === "/w/proj/.abso/config.json")
4952 return { value: JSON.stringify({ server: "https://avcs.test", project: "p", agent: "me" }) };
50− if (inFolder && path === "/w/proj/.avcs/news.log") return { value: NEWS };
53+ if (inFolder && path === "/w/proj/.abso/news.log") return { value: NEWS };
5154 return { deny: `ENOENT: ${e.path}` };
5255 });
5356 on("http.fetch", (_$, e) => {
Lines 83–89 at 318 (were 80–86 at 7)
8083 await w.clock.advance(1);
8184 expect(w.fetched).toEqual(["https://avcs.test/p/p/status", "https://avcs.test/p/p/where"]);
8285 expect(w.statuses.at(-1)).toBe(
83− "avcs: shared · 2 files unpublished · shared is 2 ahead (abso sync) · bob also on your files · 1 news item (/avcs-view)",
86+ "abso: shared · 2 files unpushed · shared is 2 ahead (abso pull) · bob also on your files · 1 news item (/abso-view)",
8487 );
8588 await w.clock.advance(31_000);
8689 expect(w.fetched.length).toBe(4);
Lines 95–104 at 318 (were 92–101 at 7)
9295 await w.clock.advance(1);
9396 for (const surface of ["terminal", "desktop"] as const) {
9497 const ui = await $.ui.mount({
95− plugin: "avcs-view",
98+ plugin: "abso-view",
9699 surface,
97100 component: "Pane",
98− requestId: "avcs-view",
101+ requestId: "abso-view",
99102 props: { title: "avcs", isFocused: false, bodyColumns: 80, placement: "dock" } as never,
100103 });
101104 expect(await ui.find({ text: /Working in shared, at version 7/ })).toBeDefined();
Lines 109–122 at 318 (were 106–119 at 7)
106109 }
107110});
108111
109−test("/avcs-view opens the pane, and the status line stops counting the news it showed", async ($, on) => {
112+test("/abso-view opens the pane, and the status line stops counting the news it showed", async ($, on) => {
110113 const w = world(on, true);
111114 await $.session.start({ cwd: "/w/proj/src" });
112115 await w.clock.advance(1);
113116 expect(w.statuses.at(-1)).toContain("1 news item");
114− const answer = await $.command.run({ command: "avcs-view", args: "" } as never);
115− expect(answer).toMatchObject({ text: "Opened the avcs view." });
116− expect(w.opened).toEqual(["avcs-view"]);
117+ const answer = await $.command.run({ command: "abso-view", args: "" } as never);
118+ expect(answer).toMatchObject({ text: "Opened the abso view." });
119+ expect(w.opened).toEqual(["abso-view"]);
117120 expect(w.statuses.at(-1)).not.toContain("news");
118121});
119122
MCP
compare on this site's /mcp
CLI
abso diff 7 318 client/view/hooks/register.test.ts --json
JSON
/christopher/abso-core/compare/7..318?file=client%2Fview%2Fhooks%2Fregister.test.ts&format=json