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 240 to 241

Compare

+16 −4 in 1 place
Lines 44–66 at 241 (were 44–54 at 240)
4444 * large generated file add up. At most VIEW_COUNT.
4545 */
4646 #trim(): void {
47+ // The newest views that fit, as evicting oldest first leaves them. A file layout two views share (a draft's view
48+ // takes its base's, View.shareFiles) counts once (abso Capacity): counted per view, they filled the budget twice
49+ // over, and a kept writer laid abso's drafts out again on every collisions call.
50+ const seen = new Set<object>();
4751 let total = 0;
48− for (const v of this.#cache.values()) total += v.weight();
49− for (const [key, v] of this.#cache) {
50− if (total <= VIEW_BUDGET && this.#cache.size <= VIEW_COUNT) break;
51− total -= v.weight();
52+ let kept = 0;
53+ let full = false;
54+ for (const [key, v] of [...this.#cache].reverse()) {
55+ if (!full) {
56+ const w = v.weight(seen);
57+ if (total + w <= VIEW_BUDGET && kept < VIEW_COUNT) {
58+ total += w;
59+ kept++;
60+ continue;
61+ }
62+ full = true;
63+ }
5264 this.#cache.delete(key);
5365 }
5466 }
MCP
compare on this site's /mcp
CLI
abso diff 240 241 worker/project/views.ts --json
JSON
/christopher/abso-core/compare/240..241?file=worker%2Fproject%2Fviews.ts&format=json