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 116 to 318

Compare

+4 −4 in 4 places
Lines 11–17 at 318 (were 11–17 at 116)
1111 type Graph,
1212 type MoveInput,
1313 parseKey,
14− type View,
14+ type ReadView,
1515} from "../../src/engine/index.ts";
1616import type { Pair } from "./collisions.ts";
1717import type { AgentState, Entry, Meta } from "./project-types.ts";
Lines 20–26 at 318 (were 20–26 at 116)
2020export interface AddDraftHost {
2121 readonly graph: Graph;
2222 openPairs(agent: AgentState): Pair[];
23− markersSettled(agent: AgentState, view: View, atom: Atom): AtomId[];
23+ markersSettled(agent: AgentState, view: ReadView, atom: Atom): AtomId[];
2424 apply(entry: Entry): void;
2525}
2626
Lines 32–38 at 318 (were 32–38 at 116)
3232export function addDraft(
3333 host: AddDraftHost,
3434 agent: AgentState,
35− view: View,
35+ view: ReadView,
3636 input: { edits: readonly EditInput[]; attrs?: readonly AttrSet[]; move?: MoveInput },
3737 time: number,
3838 meta: Meta,
Lines 50–56 at 318 (were 50–56 at 116)
5050 const touched = new Set<AtomId>();
5151 for (const key of claimsOf(atom)) {
5252 const { kind, node } = parseKey(key);
53− if (kind === "line") touched.add(host.graph.line(node)!.atom);
53+ if (kind === "line") touched.add(host.graph.idOfSeq(host.graph.writerSeqOf(host.graph.lineN(node))));
5454 // Setting an attribute again settles a collision over it.
5555 if (kind === "attr") for (const w of host.graph.writersOf(key)) touched.add(w);
5656 }
MCP
compare on this site's /mcp
CLI
abso diff 116 318 worker/project/add-draft.ts --json
JSON
/christopher/abso-core/compare/116..318?file=worker%2Fproject%2Fadd-draft.ts&format=json