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 114 to 115

Compare

+19 −1 in 1 place
Lines 2512–2536 at 115 (were 2512–2518 at 114)
25122512 * A discarded atom that a later publish still depends on stays in the view
25132513 * (abso issue 80). A closed set is unchanged.
25142514 */
2515− #closed(set: Iterable<AtomId>): Set<AtomId> {
2515+ #closed(set: Iterable<AtomId>): ReadonlySet<AtomId> {
2516+ if (set instanceof StableSet) {
2517+ // Keep indexed membership external. Only dependencies absent from
2518+ // that snapshot belong in the operation's closure overlay.
2519+ const missing = new Set<AtomId>();
2520+ const visit = (id: AtomId) => {
2521+ const stack = [id];
2522+ while (stack.length) {
2523+ for (const dependency of this.#graph.atom(stack.pop()!).deps) {
2524+ if (!set.has(dependency) && !missing.has(dependency)) {
2525+ missing.add(dependency);
2526+ stack.push(dependency);
2527+ }
2528+ }
2529+ }
2530+ };
2531+ for (const id of set) visit(id);
2532+ return missing.size ? new StableUnionSet(set, new StableOverlaySet(missing)) : set;
2533+ }
25162534 return this.#graph.closureOf(set);
25172535 }
25182536
MCP
compare on this site's /mcp
CLI
abso diff 114 115 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/114..115?file=worker%2Fproject%2Fproject.ts&format=json