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

Compare

+52 −0 in 2 places
Lines 110–139 at 318 (were 110–115 at 170)
110110 for (const id of this.graph.movers()) if (this.set.has(id)) return true;
111111 return false;
112112 }
113+ *#textChunks(n: number): IterableIterator<string> {
114+ this.#assertLive();
115+ const iterator = this.graph.textChunks(n);
116+ while (true) {
117+ this.#assertLive();
118+ const next = iterator.next();
119+ this.#assertLive();
120+ if (next.done) return;
121+ yield next.value;
122+ }
123+ }
124+ *lineChunks(path: string): IterableIterator<() => Iterable<string>> {
125+ this.#assertLive();
126+ const iterator = this.#adapter.lineIds(this.#state, path);
127+ while (true) {
128+ this.#assertLive();
129+ const next = iterator.next();
130+ this.#assertLive();
131+ if (next.done) return;
132+ const n = this.graph.lineN(next.value);
133+ yield () => this.#textChunks(n);
134+ }
135+ }
113137 *visibleLines(path: string): IterableIterator<VisibleLine> {
114138 this.#assertLive();
115139 const graph = this.#adapter.graph;
Lines 152–185 at 318 (were 128–133 at 170)
128152 this.#assertLive();
129153 return [...this.visibleLines(path)];
130154 }
155+ *#buildingLines(path: string): IterableIterator<VisibleLine> {
156+ this.#assertLive();
157+ const graph = this.#adapter.graph;
158+ const iterator = this.#adapter.lineIds(this.#state, path);
159+ while (true) {
160+ this.#assertLive();
161+ const next = iterator.next();
162+ this.#assertLive();
163+ if (next.done) return;
164+ const id = next.value;
165+ const n = graph.lineN(id);
166+ const assertLive = () => this.#assertLive();
167+ yield {
168+ id,
169+ textChunks: () => this.#textChunks(n),
170+ get text() {
171+ assertLive();
172+ return graph.textOf(n);
173+ },
174+ atom: graph.idOfSeq(graph.writerSeqOf(n)),
175+ };
176+ }
177+ }
178+ buildLines(path: string): readonly VisibleLine[] {
179+ this.#assertLive();
180+ return [...this.#buildingLines(path)];
181+ }
131183 sequence(path: string): readonly SeqLine[] {
132184 this.#assertLive();
133185 const adapter = this.#adapter,
MCP
compare on this site's /mcp
CLI
abso diff 170 318 src/engine/experimental/projection-reader.ts --json
JSON
/christopher/abso-core/compare/170..318?file=src%2Fengine%2Fexperimental%2Fprojection-reader.ts&format=json