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 140 to 141

Compare

+11 −3 in 3 places
Lines 173–179 at 141 (were 173–179 at 140)
173173import { recordFile as hostedRecordFile, type RecordFileHost } from "./record-file.ts";
174174import { refusals as hostedRefusals, refuse as hostedRefuse, type RefuseHost } from "./refuse.ts";
175175import { restore as hostedRestore, type RestoreHost } from "./restore.ts";
176−import { last, Membership, SHARED, type Space, sharedBaseOf } from "./spaces.ts";
176+import { last, Membership, SHARED, SharedAdditions, type Space, sharedBaseOf } from "./spaces.ts";
177177import { starting as hostedStarting, type StartingHost } from "./start.ts";
178178import { switchTo as hostedSwitchTo, type SwitchHost } from "./switch-to.ts";
179179import { sync as hostedSync, type SyncHost } from "./sync.ts";
Lines 2550–2561 at 141 (were 2550–2556 at 140)
25502550 #newerFor(agent: AgentState): ReadonlySet<AtomId> {
25512551 const space = this.#spaceOf(agent);
25522552 const base = this.#at(space, agent.base);
2553− return differenceSet(differenceSet(this.#setOf(space), base), new StableOverlaySet(agent.mine));
2553+ const current = this.#setOf(space);
2554+ const newer =
2555+ space.name === SHARED && space.membershipVersion
2556+ ? new SharedAdditions(space, agent.base, base, current)
2557+ : differenceSet(current, base);
2558+ return differenceSet(newer, new StableOverlaySet(agent.mine));
25542559 }
25552560
25562561 /** The files whose text in the agent's view differs from `before`, and its open collisions. */
Lines 2693–2702 at 141 (were 2688–2694 at 140)
26882693 const draft = new Set(this.#draft(agent));
26892694 if (draft.size === 0 || newer.size === 0) return [];
26902695 const space = this.#spaceOf(agent);
2691− const base = this.#view(differenceSet(this.#at(space, agent.base), new StableOverlaySet(agent.mine)));
2696+ const at = this.#at(space, agent.base);
2697+ const base = agent.mine.some((id) => at.has(id))
2698+ ? this.#view(differenceSet(at, new StableOverlaySet(agent.mine)))
2699+ : this.#viewAt(space, agent.base);
26922700 return this.#definitionRule.collisions(
26932701 draft,
26942702 this.#agentView(agent),
MCP
compare on this site's /mcp
CLI
abso diff 140 141 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/140..141?file=worker%2Fproject%2Fproject.ts&format=json