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 265 to 266

Compare

+11 −3 in 3 places
Lines 302–308 at 266 (were 302–308 at 265)
302302
303303/**
304304 * The files a view over `below` plus `mine` can lay out differently from `below` (abso Capacity, View.shareFiles), or
305− * undefined when any of it moves lines. A view's set is closed under dependencies, so it holds `mine` and whatever
305+ * undefined when any of it moves lines and `placedDifferently` can't say where those land differently. A view's set is closed under dependencies, so it holds `mine` and whatever
306306 * `mine` depends on that `below` lacks; each of those can change a file, so all of them count. Counting `mine` alone
307307 * missed the files of work the draft depends on (Testing's typescript-rs diff for cloud-ts-01, core 235).
308308 */
Lines 311–317 at 266 (were 311–316 at 265)
311311 below: ReadonlySet<AtomId>,
312312 mine: Iterable<AtomId>,
313313 views: readonly ReadView[],
314+ placedDifferently?: () => ReadonlySet<string> | undefined,
314315): Set<string> | undefined {
315316 const beyond = new Set<AtomId>();
316317 const stack = [...mine];
Lines 321–335 at 266 (were 320–327 at 265)
320321 beyond.add(id);
321322 for (const dep of g.atom(id).deps) if (!beyond.has(dep) && !below.has(dep)) stack.push(dep);
322323 }
323− for (const id of beyond) if ((g.atom(id).moves?.length ?? 0) > 0) return undefined;
324− return touchedFiles(g, beyond, views);
324+ const files = touchedFiles(g, beyond, views);
325+ // Moves change more than the files their atoms name only where a moved line lands differently (View.placedDifferently,
326+ // abso Capacity); without that comparison, a draft that moves lines shares nothing.
327+ if ([...beyond].some((id) => (g.atom(id).moves?.length ?? 0) > 0)) {
328+ const placed = placedDifferently?.();
329+ if (!placed) return undefined;
330+ for (const file of placed) files.add(file);
331+ }
332+ return files;
325333}
326334
327335/** The atom's visible lines in a file of a view, or where it acted when none are left. */
MCP
compare on this site's /mcp
CLI
abso diff 265 266 worker/project/collisions.ts --json
JSON
/christopher/abso-core/compare/265..266?file=worker%2Fproject%2Fcollisions.ts&format=json