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 142 to 143

Compare

+14 −9 in 5 places
Lines 1–9 at 143 (were 1–8 at 142)
1+import { View } from "../../src/engine/index.ts";
12// The version list reads: log (versions newest first, or one file's history), ribbon (who published each version),
23// show (one version's changes), fileAt, compare and viewAt. They read through LogHost; today the host is the project
34// in memory.
45
5−import { type AtomId, type Graph, View } from "../../src/engine/index.ts";
6+import type { AtomId, Graph, ReadView } from "../../src/engine/index.ts";
67import { checkReadPath } from "./path-rules.ts";
78import type { PathIndex } from "./pathindex.ts";
89import { ProjectError } from "./project-error.ts";
Lines 20–31 at 143 (were 19–30 at 142)
1920 needInit(): void;
2021 spaceFor(options: { draft?: string | null; agent?: string }): Space;
2122 checkVersion(space: Space, version: number): void;
22− viewAt(space: Space, version: number): View;
23− view(set: ReadonlySet<AtomId>): View;
23+ viewAt(space: Space, version: number): ReadView;
24+ view(set: ReadonlySet<AtomId>): ReadView;
2425 at(space: Space, version: number): ReadonlySet<AtomId>;
25− spellingIn(view: View, path: string): string;
26+ spellingIn(view: ReadView, path: string): string;
2627 versionChange(space: Space, version: number): number | undefined;
27− touchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;
28+ touchedFiles(ids: Iterable<AtomId>, views: readonly ReadView[]): Set<string>;
2829}
2930
3031/**
Lines 60–66 at 143 (were 59–65 at 142)
5960 // A file's history (#43): only versions whose changes name the file, or a file moves can carry lines from, can have changed it.
6061 const sources = path === undefined ? undefined : new Set(names.flatMap((n) => [...moveSources(host.graph, n.path)]));
6162 const g = host.graph;
62− const views = new Map<number, View>();
63+ const views = new Map<number, ReadView>();
6364 for (; v >= 0 && versions.length < limit; v--) {
6465 if (sources && !host.paths.knowsFiles(space, v)) {
6566 const p = space.versions[v]!;
Lines 180–186 at 143 (were 179–185 at 142)
179180 };
180181}
181182
182−function logEntry(host: LogHost, space: Space, version: number, views?: Map<number, View>): LogEntry {
183+function logEntry(host: LogHost, space: Space, version: number, views?: Map<number, ReadView>): LogEntry {
183184 const p = space.versions[version]!;
184185 let changes = 0;
185186 for (const id of p.atoms) {
Lines 265–276 at 143 (were 264–271 at 142)
264265 return { from, to, files: changesBetween(host.view(a), host.view(b), files) };
265266}
266267
267−/** A version of shared (or of a named draft) as a View, for reading lines (blame at a version). */
268−export function viewAt(host: LogHost, version: number, options: { draft?: string | null; agent?: string } = {}): View {
268+/** A version of shared (or of a named draft) as a ReadView, for reading lines (blame at a version). */
269+export function viewAt(
270+ host: LogHost,
271+ version: number,
272+ options: { draft?: string | null; agent?: string } = {},
273+): ReadView {
269274 host.needInit();
270275 const space = host.spaceFor(options);
271276 host.checkVersion(space, version);
MCP
compare on this site's /mcp
CLI
abso diff 142 143 worker/project/version-log.ts --json
JSON
/christopher/abso-core/compare/142..143?file=worker%2Fproject%2Fversion-log.ts&format=json