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

Compare

+10 −3 in 3 places
Lines 3–9 at 318 (were 3–8 at 163)
33
44import { type AtomId, buildAtom, type Graph, type ReadView } from "../../src/engine/index.ts";
55import { unionOverlay } from "../../src/engine/state-source.ts";
6+import { autoSettledOf } from "./autosettle.ts";
67import type { Pair } from "./collisions.ts";
78import { definedTwice } from "./definitions.ts";
89import { heldMessage, keptOf, lostLines } from "./markers.ts";
Lines 159–179 at 318 (were 158–175 at 163)
158159 if (collisions.length > 0) return host.refuse(agent, space, "publish", time, collisions, entries, message);
159160 }
160161 const view = host.agentView(agent);
162+ const auto = autoSettledOf(message);
161163 const settled: Settled[] = agent.marked
162164 .filter((r) => r.space === SHARED)
163165 .map((r) => {
164166 const lines = view.hasFile(r.file) ? view.lines(r.file).map((l) => l.text) : [];
165167 const lost = lostLines(lines, r);
166168 const held = heldMessage(agent, r.file);
169+ const by = auto.get(r.file);
167170 return {
168171 file: r.file,
169172 kept: keptOf(lines, r),
170173 theirs: { agent: r.agent, version: r.version },
171174 ...(lost.length > 0 ? { lost } : {}),
172175 ...(held ? { held } : {}),
176+ ...(by ? { auto: by } : {}),
173177 };
174178 });
175179 const id = host.queuedId() + 1;
Lines 241–252 at 318 (were 237–245 at 163)
237241 host.needInit();
238242 const items = host.queued().slice(0, Math.max(0, n));
239243 const changes = items.flatMap((q) => q.changes);
240− const view = host.sharedOverlay
241− ? host.sharedOverlay(changes)
242− : host.view(unionOverlay(host.setOf(host.shared()), changes));
244+ const view =
245+ changes.length === 0
246+ ? host.sharedView()
247+ : host.sharedOverlay
248+ ? host.sharedOverlay(changes)
249+ : host.view(unionOverlay(host.setOf(host.shared()), changes));
243250 const files = view.files();
244251 const modes = modesOf(view);
245252 const blobs = view.blobs();
MCP
compare on this site's /mcp
CLI
abso diff 163 318 worker/project/queue.ts --json
JSON
/christopher/abso-core/compare/163..318?file=worker%2Fproject%2Fqueue.ts&format=json