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 174 to 175

Compare

+6 −9 in 2 places
Lines 121–127 at 175 (were 121–128 at 174)
121121 const state = { ...previous };
122122 this.ensureFile(state, this.path);
123123 for (const run of atom.inserts) this.ensureFile(state, run.file);
124− let k = 0;
125− for (const run of atom.inserts) for (const _ of run.lines) this.insertLine(state, `${atom.id}.${k++}`);
124+ for (const line of this.graph.eachInsertedLine(atom.id)) this.insertLine(state, line);
126125 let visibility: Array<{ kind: "visibility"; id: number; delta: number }> = [];
127126 for (const line of atom.deletes) {
128127 const marker = this.markers.get(state.locator, this.graph.lineN(line) + 1);
Lines 193–203 at 175 (were 194–206 at 174)
194193 throw Error("included dependent prevents removal");
195194 return this.storage.transaction(() => {
196195 const state = { ...previous };
197− let k = 0;
198− for (const run of atom.inserts)
199− for (const text of run.lines) {
200− const marker = this.markers.get(state.locator, this.graph.lineN(`${atom.id}.${k++}`) + 1);
201− if (!marker) throw Error("missing inserted marker");
202− state.sequence = this.sequence.update(state.sequence, { kind: "visibility", id: marker.enter, delta: 1 });
203− }
196+ for (const line of this.graph.eachInsertedLine(atom.id)) {
197+ const marker = this.markers.get(state.locator, this.graph.lineN(line) + 1);
198+ if (!marker) throw Error("missing inserted marker");
199+ state.sequence = this.sequence.update(state.sequence, { kind: "visibility", id: marker.enter, delta: 1 });
200+ }
204201 for (const line of atom.deletes) {
205202 const marker = this.markers.get(state.locator, this.graph.lineN(line) + 1);
206203 if (!marker) throw Error("missing deleted marker");
MCP
compare on this site's /mcp
CLI
abso diff 174 175 src/engine/experimental/projection-marker.ts --json
JSON
/christopher/abso-core/compare/174..175?file=src%2Fengine%2Fexperimental%2Fprojection-marker.ts&format=json