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

Compare

+17 −6 in 1 place
Lines 2744–2767 at 236 (were 2744–2756 at 235)
27442744 const base = this.#viewAt(this.#spaceOf(agent), agent.base);
27452745 if (base instanceof View) {
27462746 view.shareMoves(base);
2747− // And its layout of every file the draft doesn't touch, when the draft moves nothing (abso Capacity).
2747+ // And its layout of every file the draft doesn't touch, when the draft moves nothing (abso Capacity). What the
2748+ // view holds beyond its base is the draft and whatever the draft depends on that the base lacks (the view's
2749+ // set is closed): each of those can change a file, so all of them count.
27482750 const mine = agent.mine;
2749− view.shareFiles(base, () =>
2750− mine.some((id) => (this.#graph.atom(id).moves?.length ?? 0) > 0)
2751− ? undefined
2752− : this.#touchedFiles(mine, [base, view]),
2753− );
2751+ view.shareFiles(base, () => {
2752+ const graph = this.#graph;
2753+ const below = base.set;
2754+ const beyond = new Set<AtomId>();
2755+ const stack = [...mine];
2756+ while (stack.length) {
2757+ const id = stack.pop()!;
2758+ if (beyond.has(id) || below.has(id)) continue;
2759+ beyond.add(id);
2760+ for (const dep of graph.atom(id).deps) if (!beyond.has(dep) && !below.has(dep)) stack.push(dep);
2761+ }
2762+ for (const id of beyond) if ((graph.atom(id).moves?.length ?? 0) > 0) return undefined;
2763+ return this.#touchedFiles(beyond, [base, view]);
2764+ });
27542765 }
27552766 }
27562767 return view;
MCP
compare on this site's /mcp
CLI
abso diff 235 236 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/235..236?file=worker%2Fproject%2Fproject.ts&format=json