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

Compare

+4 −3 in 3 places
Lines 8–14 at 318 (were 8–14 at 17)
88//
99// The lock is never there without its contents: they're written to a file of
1010// the taker's own and linked into place, which fails if a lock exists
11−// (AVCS - Git Lessons). Its holder renews it every RENEW_MS, so a lock not
11+// already. Its holder renews it every RENEW_MS, so a lock not
1212// renewed for LOCK_STALE_MS was left behind, whatever process now has its
1313// id; a long record or sync is never taken over while it writes. Taking one
1414// over goes through a rename aside, which only one process can win.
Lines 17–23 at 318 (were 17–22 at 17)
1717import { basename, join } from "node:path";
1818import { UsageError } from "./args.ts";
1919import { LOCK_FILE, LOCK_STALE_MS, type LockInfo } from "./core.ts";
20+import { fromEnv } from "./env-names.ts";
2021import { writeFileAtomic } from "./folder.ts";
2122import { stateDir } from "./state-dir.ts";
2223
Lines 143–150 at 318 (were 142–149 at 17)
142143 const mine = held.get(root);
143144 if (mine) mine.depth++;
144145 else {
145− // AVCS_LOCK_WAIT_MS shortens the wait in tests.
146− const until = Date.now() + (Number(process.env.AVCS_LOCK_WAIT_MS) || WAIT_MS);
146+ // ABSO_LOCK_WAIT_MS shortens the wait in tests.
147+ const until = Date.now() + (Number(fromEnv(process.env, "LOCK_WAIT_MS")) || WAIT_MS);
147148 for (;;) {
148149 const got = take(root, what);
149150 if (got === "no folder") return fn(); // no .avcs/ yet (init): nothing to protect
MCP
compare on this site's /mcp
CLI
abso diff 17 318 client/src/lock.ts --json
JSON
/christopher/abso-core/compare/17..318?file=client%2Fsrc%2Flock.ts&format=json