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 16 to 17

Compare

+3 −3 in 2 places
Lines 8–23 at 17 (were 8–23 at 16)
88import type { ChangeAnswer, NoteAnswer } from "./api.ts";
99import { bool, type Parsed, str, UsageError } from "./args.ts";
1010import { type Env, type Output, open, plural, recordFolder } from "./commands.ts";
11−import { AVCS_DIR } from "./config.ts";
1211import { writeFileAtomic } from "./folder.ts";
1312import { fileArg, when } from "./history.ts";
13+import { stateDir } from "./state-dir.ts";
1414
1515/** Where this folder last looked: a log position, kept in .avcs/review.json. */
1616const MARK = "review.json";
1717
1818function readMark(root: string): number | undefined {
1919 try {
20− const n = (JSON.parse(readFileSync(join(root, AVCS_DIR, MARK), "utf8")) as { since?: unknown }).since;
20+ const n = (JSON.parse(readFileSync(join(stateDir(root), MARK), "utf8")) as { since?: unknown }).since;
2121 return typeof n === "number" && Number.isInteger(n) && n >= 0 ? n : undefined;
2222 } catch {
2323 return undefined;
Lines 25–31 at 17 (were 25–31 at 16)
2525}
2626
2727function writeMark(root: string, since: number): void {
28− writeFileAtomic(join(root, AVCS_DIR, MARK), `${JSON.stringify({ since })}\n`);
28+ writeFileAtomic(join(stateDir(root), MARK), `${JSON.stringify({ since })}\n`);
2929}
3030
3131const SAID = { comment: "says", objection: "objects", read: "read it" } as const;
MCP
compare on this site's /mcp
CLI
abso diff 16 17 client/src/review.ts --json
JSON
/christopher/abso-core/compare/16..17?file=client%2Fsrc%2Freview.ts&format=json