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 246 to 247

Compare

+10 −1 in 2 places
Lines 74–80 at 247 (were 74–80 at 246)
7474 // FileState and FileAttrs are per laid-out file; typed-array headers are separate from their payload byte lengths.
7575 n = OBJECT_BYTES + OBJECT_BYTES + 2 * ARRAY_HEADER_BYTES;
7676 n += f.seq.byteLength + f.vis.byteLength;
77− if (f.visText) for (const text of f.visText) n += REFERENCE_BYTES + 2 * (text?.length ?? 0);
77+ if (f.visText) for (const text of f.visText) n += REFERENCE_BYTES + (text === null ? 0 : stringBytes(text));
7878 if (f.visWriter) n += 4 * f.visWriter.length;
7979 if (f.visK) n += 4 * f.visK.length;
8080 if (f.seqWriter) n += 4 * f.seqWriter.length;
Lines 131–146 at 247 (were 131–137 at 246)
131131const MAP_ENTRY_BYTES = 40;
132132const SET_ENTRY_BYTES = 32;
133133const REFERENCE_BYTES = 8;
134+const STRING_HEADER_BYTES = 16;
134135/**
136+ * What V8 holds for a string of its own (abso Capacity, measured on abso's layouts): a header, then one byte a
137+ * character when every character fits in Latin-1 and two otherwise, rounded up to 8.
138+ */
139+function stringBytes(text: string): number {
140+ const chars = /[^\u0000-\u00ff]/.test(text) ? 2 * text.length : text.length;
141+ return (STRING_HEADER_BYTES + chars + 7) & ~7;
142+}
143+/**
135144 * Moved lines a view resolves once and keeps (abso Capacity): a stored graph otherwise resolved every move again on
136145 * disk for each file it laid out. Game's whole history has 290; past this many, the view goes back to that.
137146 */
MCP
compare on this site's /mcp
CLI
abso diff 246 247 src/engine/view.ts --json
JSON
/christopher/abso-core/compare/246..247?file=src%2Fengine%2Fview.ts&format=json