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

Compare

+10 −4 in 2 places
Lines 859–875 at 229 (were 859–873 at 228)
859859 /** Atom-building line handles; text is loaded only when requested. */
860860 buildLines(path: string): readonly VisibleLine[] {
861861 const graph = this.graph;
862− const vis = this.#file(path).vis;
862+ // Texts the packed layout already holds are not read again (abso Capacity).
863+ const { vis, visText } = this.#file(path);
863864 const lines: VisibleLine[] = new Array(vis.length);
864865 for (let i = 0; i < vis.length; i++) {
865866 const n = vis[i]!;
867+ const packed = visText?.[i];
866868 lines[i] = {
867869 id: graph.lineIdOf(n),
868870 textChunks: () => graph.textChunks(n),
869871 get text() {
870− return graph.textOf(n);
872+ return packed ?? graph.textOf(n);
871873 },
872874 atom: graph.idOfSeq(graph.writerSeqOf(n)),
873875 };
Lines 881–895 at 229 (were 879–889 at 228)
879881 lines(path: string): readonly VisibleLine[] {
880882 if (this.#linesCache?.path === path) return this.#linesCache.lines;
881883 const graph = this.graph;
882− const vis = this.#file(path).vis;
884+ const { vis, visText } = this.#file(path);
883885 const lines: VisibleLine[] = new Array(vis.length);
884886 for (let i = 0; i < vis.length; i++) {
885887 const n = vis[i]!;
886− lines[i] = { id: graph.lineIdOf(n), text: graph.textOf(n), atom: graph.idOfSeq(graph.writerSeqOf(n)) };
888+ lines[i] = {
889+ id: graph.lineIdOf(n),
890+ text: visText?.[i] ?? graph.textOf(n),
891+ atom: graph.idOfSeq(graph.writerSeqOf(n)),
892+ };
887893 }
888894 this.#linesCache = { path, lines };
889895 return lines;
MCP
compare on this site's /mcp
CLI
abso diff 228 229 src/engine/view.ts --json
JSON
/christopher/abso-core/compare/228..229?file=src%2Fengine%2Fview.ts&format=json