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 244 to 245

Compare

+11 −2 in 1 place
Lines 50–75 at 245 (were 50–66 at 244)
5050 * then the caller lays the version out.
5151 */
5252 keptPaths(space: Space, version: number): string[] | undefined {
53+ const files = this.keptPathSet(space, version);
54+ return files && [...files].sort();
55+ }
57+ /** keptPaths as a set, kept for the newest version asked: never changed once made, so a view can hold it. */
58+ keptPathSet(space: Space, version: number): ReadonlySet<string> | undefined {
5359 let fold = this.#keptPaths.get(space);
60+ if (fold?.version === version) return fold.files;
5461 if (!fold || fold.version > version) fold = { version: -1, files: new Set() };
5562 const files = new Set(fold.files);
5663 for (let v = fold.version + 1; v <= version; v++) {
5764 if (!this.#keptFiles(space, v)) return undefined;
58− const shape = this.#shapeCache.get(space)!.get(v)!;
65+ // Not yet when the version is still being kept (keep asks its views which files exist).
66+ const shape = this.#shapeCache.get(space)?.get(v);
67+ if (!shape) return undefined;
5968 for (const f of shape.gone) files.delete(f);
6069 for (const f of shape.made) files.add(f);
6170 }
6271 this.#keptPaths.set(space, { version, files });
63− return [...files].sort();
72+ return files;
6473 }
6574
6675 /** Each space's path index (#41): built the first time it's asked for, then kept up as versions land. */
MCP
compare on this site's /mcp
CLI
abso diff 244 245 worker/project/pathindex.ts --json
JSON
/christopher/abso-core/compare/244..245?file=worker%2Fproject%2Fpathindex.ts&format=json