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

Compare

+4 −3 in 3 places
Lines 12–18 at 142 (were 12–17 at 141)
1212 parseKey,
1313 type View,
1414} from "../../src/engine/index.ts";
15+import { differenceSet, StableOverlaySet } from "../../src/engine/state-source.ts";
1516import { definedTwice } from "./definitions.ts";
1617import type { AgentState, Collision, CollisionSide } from "./project-types.ts";
1718import { SHARED, type Space } from "./spaces.ts";
Lines 236–242 at 142 (were 235–241 at 141)
235236 readonly spaces: ReadonlyMap<string, Space>;
236237 version(): number;
237238 spaceOf(agent: AgentState): Space;
238− agentSet(agent: AgentState): Set<AtomId>;
239+ agentSet(agent: AgentState): ReadonlySet<AtomId>;
239240 draft(agent: AgentState): AtomId[];
240241 agentView(agent: AgentState): View;
241242 at(space: Space, version: number): ReadonlySet<AtomId>;
Lines 306–316 at 142 (were 305–315 at 141)
305306export function openPairs(host: CollisionHost, agent: AgentState): Pair[] {
306307 const space = host.spaceOf(agent);
307308 const set = host.agentSet(agent);
308− const mine = new Set(agent.mine);
309+ const mine = new StableOverlaySet(agent.mine);
309310 const out: Pair[] = [];
310311 const draft = host.draft(agent);
311312 if (draft.length > 0) {
312− const seen = new Set([...host.at(space, agent.base)].filter((id) => !mine.has(id)));
313+ const seen = differenceSet(host.at(space, agent.base), mine);
313314 out.push(...pairsIn(host.graph, draft, seen, set));
314315 }
315316 if (space.name !== SHARED) {
MCP
compare on this site's /mcp
CLI
abso diff 141 142 worker/project/collisions.ts --json
JSON
/christopher/abso-core/compare/141..142?file=worker%2Fproject%2Fcollisions.ts&format=json