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 132 to 133

Compare

+5 −5 in 4 places
Lines 15–21 at 133 (were 15–20 at 132)
1515import { type Atom, type AtomId, EngineError, Graph, type LineId, type View } from "../../src/engine/index.ts";
1616import {
1717 CachedStateStorage,
18+ differenceSet,
1819 type GraphStateStorage,
1920 StableOverlaySet,
2021 StableSet,
Lines 2185–2191 at 133 (were 2184–2189 at 132)
21842185 get #checkClashHost(): CheckClashHost {
21852186 this.#checkClashes ??= {
21862187 shared: () => this.#shared,
2188+ setOf: (space) => this.#setOf(space),
21872189 view: (set) => this.#view(set),
21882190 sharedView: () => this.#sharedView(),
21892191 touchedFiles: (ids, views) => this.#touchedFiles(ids, views),
Lines 2547–2556 at 133 (were 2545–2555 at 132)
25452547 }
25462548
25472549 /** The space's atoms published after the agent's base, by others. */
2548− #newerFor(agent: AgentState): Set<AtomId> {
2550+ #newerFor(agent: AgentState): ReadonlySet<AtomId> {
25492551 const space = this.#spaceOf(agent);
25502552 const base = this.#at(space, agent.base);
2551− const mine = new Set(agent.mine);
2552− return new Set([...this.#setOf(space)].filter((id) => !base.has(id) && !mine.has(id)));
2553+ return differenceSet(differenceSet(this.#setOf(space), base), new StableOverlaySet(agent.mine));
25532554 }
25542555
25552556 /** The files whose text in the agent's view differs from `before`, and its open collisions. */
Lines 2688–2694 at 133 (were 2687–2694 at 132)
26872688 const draft = new Set(this.#draft(agent));
26882689 if (draft.size === 0 || newer.size === 0) return [];
26892690 const space = this.#spaceOf(agent);
2690− const mine = new Set(agent.mine);
2691− const base = this.#view(new Set([...this.#at(space, agent.base)].filter((id) => !mine.has(id))));
2691+ const base = this.#view(differenceSet(this.#at(space, agent.base), new StableOverlaySet(agent.mine)));
26922692 return this.#definitionRule.collisions(
26932693 draft,
26942694 this.#agentView(agent),
MCP
compare on this site's /mcp
CLI
abso diff 132 133 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/132..133?file=worker%2Fproject%2Fproject.ts&format=json