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 229 to 230

Compare

+22 −2 in 3 places
Lines 91–111 at 230 (were 91–101 at 229)
9191 const first = Math.max(1, from ?? 1);
9292 const last = Math.min(all.length, to ?? all.length);
9393 const graph = project.graph;
94+ // Each atom's author once (abso Capacity): on a stored writer, graph.atom reads and parses the whole atom, and
95+ // most lines share a few big atoms.
96+ const authors = new Map<AtomId, string>();
97+ const authorOf = (id: AtomId): string => {
98+ const known = authors.get(id);
99+ if (known !== undefined) return known;
100+ const author = graph.atom(id).author;
101+ authors.set(id, author);
102+ return author;
103+ };
94104 const rows: BlameLine[] = all.slice(first - 1, last).map((l, i) => ({
95105 n: first + i,
96106 text: l.text,
97107 atom: l.atom,
98− author: graph.atom(l.atom).author,
108+ author: authorOf(l.atom),
99109 version: project.versionOf(l.atom) ?? null,
100110 ...(project.publishOf(l.atom) === undefined ? { unpublished: true as const } : {}),
101111 }));
Lines 390–405 at 230 (were 380–385 at 229)
380390 const key = pathKey(want.join("/"));
381391 const graph = project.graph;
382392 const counts = new Map<string, number>();
393+ // Each atom's author once (abso Capacity): on a stored writer, graph.atom reads and parses the whole atom, and
394+ // most lines share a few big atoms.
395+ const authors = new Map<AtomId, string>();
396+ const authorOf = (id: AtomId): string => {
397+ const known = authors.get(id);
398+ if (known !== undefined) return known;
399+ const author = graph.atom(id).author;
400+ authors.set(id, author);
401+ return author;
402+ };
383403 let files = 0;
384404 let total = 0;
385405 let stored: string | undefined;
Lines 410–416 at 230 (were 390–396 at 229)
390410 stored ??= parts.slice(0, want.length).join("/");
391411 files++;
392412 for (const l of view.lines(path)) {
393− const author = graph.atom(l.atom).author;
413+ const author = authorOf(l.atom);
394414 counts.set(author, (counts.get(author) ?? 0) + 1);
395415 total++;
396416 }
MCP
compare on this site's /mcp
CLI
abso diff 229 230 worker/project/blame.ts --json
JSON
/christopher/abso-core/compare/229..230?file=worker%2Fproject%2Fblame.ts&format=json