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 315 to 318

Compare

+11 −9 in 5 places
Lines 10–16 at 318 (were 10–16 at 315)
1010// made when a caller asks for them, and the latest asked for is kept.
1111
1212import type { Graph, RelocationInfo } from "./graph.ts";
13−import { isStartNode, lineId, seqOf } from "./keys.ts";
13+import { atomId, isStartNode, lineId, seqOf } from "./keys.ts";
1414import { resolveScratchMoves, scratchLayoutNodes } from "./relocation-scratch.ts";
1515import { isClosedSet, StableSet } from "./state-source.ts";
1616import { joinLines } from "./text.ts";
Lines 1112–1118 at 318 (were 1112–1118 at 315)
11121112 yield {
11131113 id: graph.lineIdOf(n),
11141114 text: graph.textOf(n),
1115− atom: graph.idOfSeq(graph.writerSeqOf(n)),
1115+ atom: atomId(graph.writerSeqOf(n)),
11161116 };
11171117 }
11181118
Lines 1126–1137 at 318 (were 1126–1137 at 315)
11261126 const n = vis[i]!;
11271127 const packed = visText?.[i];
11281128 lines[i] = {
1129− id: visWriter && visK ? lineId(graph.idOfSeq(visWriter[i]!), visK[i]!) : graph.lineIdOf(n),
1129+ id: visWriter && visK ? lineId(atomId(visWriter[i]!), visK[i]!) : graph.lineIdOf(n),
11301130 textChunks: () => graph.textChunks(n),
11311131 get text() {
11321132 return packed ?? graph.textOf(n);
11331133 },
1134− atom: graph.idOfSeq(visWriter ? visWriter[i]! : graph.writerSeqOf(n)),
1134+ atom: atomId(visWriter ? visWriter[i]! : graph.writerSeqOf(n)),
11351135 };
11361136 }
11371137 return lines;
Lines 1143–1156 at 318 (were 1143–1154 at 315)
11431143 const graph = this.graph;
11441144 const { vis, visText, visWriter, visK } = this.#file(path);
11451145 const lines: VisibleLine[] = new Array(vis.length);
1146+ // Writer seqs come from the graph's own layout, so they're named with atomId, not checked by idOfSeq (abso 738):
1147+ // on a stored graph its check read the atom count once a line, about 0.9 s of a warm draft-state on abso.
11461148 for (let i = 0; i < vis.length; i++) {
11471149 const n = vis[i]!;
11481150 lines[i] = {
1149− id: visWriter && visK ? lineId(graph.idOfSeq(visWriter[i]!), visK[i]!) : graph.lineIdOf(n),
1151+ id: visWriter && visK ? lineId(atomId(visWriter[i]!), visK[i]!) : graph.lineIdOf(n),
11501152 text: visText?.[i] ?? graph.textOf(n),
1151− atom: graph.idOfSeq(visWriter ? visWriter[i]! : graph.writerSeqOf(n)),
1153+ atom: atomId(visWriter ? visWriter[i]! : graph.writerSeqOf(n)),
11521154 };
11531155 }
11541156 this.#linesCache = { path, lines };
Lines 1172–1184 at 318 (were 1170–1182 at 315)
11701172 const writer = seqWriter ? seqWriter[i]! : graph.writerSeqOf(n);
11711173 let text: string | undefined;
11721174 out[i] = {
1173− id: seqWriter && seqK ? lineId(graph.idOfSeq(writer), seqK[i]!) : graph.lineIdOf(n),
1175+ id: seqWriter && seqK ? lineId(atomId(writer), seqK[i]!) : graph.lineIdOf(n),
11741176 get text() {
11751177 text ??= graph.textOf(n);
11761178 return text;
11771179 },
1178− atom: graph.idOfSeq(writer),
1179− deletedBy: by ? by.map((s) => graph.idOfSeq(s)) : NONE,
1180+ atom: atomId(writer),
1181+ deletedBy: by ? by.map((s) => atomId(s)) : NONE,
11801182 visible: by === undefined,
11811183 };
11821184 }
MCP
compare on this site's /mcp
CLI
abso diff 315 318 src --json
JSON
/christopher/abso-core/compare/315..318?file=src&format=json