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 157 to 158

Compare

+12 −3 in 1 place
Lines 536–558 at 158 (were 536–549 at 157)
536536 if (!this.read) throw Object.assign(new Error("the feed needs the log"), { code: "not-implemented" });
537537 const end = this.project.logLength;
538538 const start = Math.max(0, Math.min(from, end));
539− const entries = start < end ? this.read(start, Math.min(limit, end - start)) : [];
539+ // Discard each canonical payload after extracting its event. A feed page must
540+ // not retain every historical file payload in the requested range.
541+ const events = [];
542+ let next = start;
543+ while (next < end && next - start < limit) {
544+ const entries = this.read(next, 1);
545+ if (entries.length === 0) break;
546+ events.push(...feedEvents(entries, next));
547+ next += entries.length;
548+ }
540549 // A drop event names the files it took out (#41), so a timeline needs no read per drop.
541− const events = feedEvents(entries, start).map((e) => {
550+ const enriched = events.map((e) => {
542551 if (e.type !== "drop" || e.version === undefined) return e;
543552 const v = this.project.log({ limit: 1, before: e.version + 1 }).versions[0];
544553 return v && v.version === e.version ? { ...e, dropped: v.files } : e;
545554 });
546− return { next: start + entries.length, end, events };
555+ return { next, end, events: enriched };
547556 }
548557
549558 /** The log position for a time (ms since 1970) or a version of shared (#41). */
MCP
compare on this site's /mcp
CLI
abso diff 157 158 server/src/engine-project.ts --json
JSON
/christopher/abso-core/compare/157..158?file=server%2Fsrc%2Fengine-project.ts&format=json