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

+4 −3 in 4 places
Lines 17–23 at 17 (were 17–23 at 16)
1717import { bool, type Parsed, str, UsageError } from "./args.ts";
1818import { blobOf, keptWholeAs, MAX_BLOB_BYTES, readKnownBlobs, writeKnownBlobs } from "./blobs.ts";
1919import { type Env, EXIT, heard, type Output, open } from "./command-env.ts";
20−import { AVCS_DIR, findRoot, isReader } from "./config.ts";
20+import { findRoot, isReader } from "./config.ts";
2121import { spellingText, uncomposedText } from "./core.ts";
2222import { pairRenames } from "./diff.ts";
2323import type { BlobToSend, TurnedBinary } from "./folder.ts";
Lines 76–82 at 17 (were 76–81 at 16)
7676} from "./status-commands.ts";
7777
7878import { gitMarkerLine } from "./settle.ts";
79+import { stateDir } from "./state-dir.ts";
7980
8081// --- record ---
8182
Lines 462–468 at 17 (were 461–467 at 16)
461462/** Files earlier syncs couldn't write here, kept in .avcs/unwritten.json until a write of them works. */
462463export function readUnwritten(root: string): Record<string, Unwritten> {
463464 try {
464− return JSON.parse(readFileSync(join(root, AVCS_DIR, UNWRITTEN_FILE), "utf8")) as Record<string, Unwritten>;
465+ return JSON.parse(readFileSync(join(stateDir(root), UNWRITTEN_FILE), "utf8")) as Record<string, Unwritten>;
465466 } catch {
466467 return {};
467468 }
Lines 627–633 at 17 (were 626–632 at 16)
626627 .map((f) => ({ from: f.from!, to: f.path }))
627628 : [];
628629 if (JSON.stringify(unwritten) !== unwrittenBefore)
629− writeFileAtomic(join(root, AVCS_DIR, UNWRITTEN_FILE), `${JSON.stringify(unwritten, null, 1)}\n`);
630+ writeFileAtomic(join(stateDir(root), UNWRITTEN_FILE), `${JSON.stringify(unwritten, null, 1)}\n`);
630631 return {
631632 version: answer.version,
632633 written,
MCP
compare on this site's /mcp
CLI
abso diff 16 17 client/src/commands.ts --json
JSON
/christopher/abso-core/compare/16..17?file=client%2Fsrc%2Fcommands.ts&format=json