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 236 to 237

Compare

+24 −0 in 1 place
Lines 293–322 at 237 (were 293–298 at 236)
293293 return out;
294294}
295295
296+/**
297+ * The files a view over `below` plus `mine` can lay out differently from `below` (abso Capacity, View.shareFiles), or
298+ * undefined when any of it moves lines. A view's set is closed under dependencies, so it holds `mine` and whatever
299+ * `mine` depends on that `below` lacks; each of those can change a file, so all of them count. Counting `mine` alone
300+ * missed the files of work the draft depends on (Testing's typescript-rs diff for cloud-ts-01, core 235).
301+ */
302+export function touchedBeyond(
303+ g: Graph,
304+ below: ReadonlySet<AtomId>,
305+ mine: Iterable<AtomId>,
306+ views: readonly ReadView[],
307+): Set<string> | undefined {
308+ const beyond = new Set<AtomId>();
309+ const stack = [...mine];
310+ while (stack.length) {
311+ const id = stack.pop()!;
312+ if (beyond.has(id) || below.has(id)) continue;
313+ beyond.add(id);
314+ for (const dep of g.atom(id).deps) if (!beyond.has(dep) && !below.has(dep)) stack.push(dep);
315+ }
316+ for (const id of beyond) if ((g.atom(id).moves?.length ?? 0) > 0) return undefined;
317+ return touchedFiles(g, beyond, views);
318+}
296320/** The atom's visible lines in a file of a view, or where it acted when none are left. */
297321export function describeSide(view: ReadView, atom: AtomId, file: string, keys: readonly string[]): CollisionSide {
298322 const visible = view.lines(file);
MCP
compare on this site's /mcp
CLI
abso diff 236 237 worker/project/collisions.ts --json
JSON
/christopher/abso-core/compare/236..237?file=worker%2Fproject%2Fcollisions.ts&format=json