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 286 to 287

Compare

+7 −0 in 3 places
Lines 182–190 at 287 (were 182–187 at 286)
182182 for (let job = jobs.shift(); job !== undefined; job = jobs.shift()) await run($, job);
183183}
184184
185+/** A local project's folder (abso init --local): its config names no server. */
186+const LOCAL_FOLDER = /"server"\s*:\s*"local"/;
185188async function run($: Engine, job: Job): Promise<void> {
186189 const started = await $.clock.now().catch(() => job.queuedAt);
187190 let outcome: string;
Lines 194–202 at 287 (were 191–196 at 286)
191194 outcome = "skipped: recording is paused (abso resume)";
192195 } else if (/"reader"\s*:\s*true/.test((await readOr($, `${await stateOf($, job.root)}/config.json`)) ?? "")) {
193196 outcome = "skipped: this folder is a reader";
197+ } else if (LOCAL_FOLDER.test((await readOr($, `${await stateOf($, job.root)}/config.json`)) ?? "")) {
198+ // A local project's history is in a store on this machine, which only the abso command opens.
199+ outcome = "skipped: a local project; abso record sends its edits";
194200 } else if (await ignored($, job.root, job.rel)) {
195201 outcome = "skipped: ignored path";
196202 } else if (await isLink($, job.root, job.rel)) {
Lines 248–254 at 287 (were 242–247 at 286)
242248 project: string;
243249 agent: string;
244250 };
251+ if (config.server === "local") return;
245252 const bearer = await token($, config.server);
246253 const r = await $.http.fetch(
247254 `${config.server.replace(/\/+$/, "")}/p/${encodeURIComponent(config.project)}/a/${encodeURIComponent(config.agent)}/news`,
MCP
compare on this site's /mcp
CLI
abso diff 286 287 client/hooks/register.ts --json
JSON
/christopher/abso-core/compare/286..287?file=client%2Fhooks%2Fregister.ts&format=json