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

+12 −2 in 3 places
Lines 45–55 at 143 (were 45–50 at 142)
4545 readonly blob: string | null;
4646}
4747
48+/** Structural read boundary shared by historical and transaction-bound projections. */
49+export type ReadView = Omit<Pick<View, keyof View>, "sameText"> & {
50+ sameText(path: string, other: ReadView): boolean;
51+};
4853const NO_ATTRS: FileAttrs = { exists: false, exec: false, link: null, blob: null };
4954const NONE: readonly never[] = Object.freeze([]);
5055
Lines 528–539 at 143 (were 523–529 at 142)
523528 }
524529
525530 /** Whether a file reads the same here and in `other` (of the same graph), compared line by line without joining either (#46). */
526− sameText(path: string, other: View): boolean {
531+ sameText(path: string, other: ReadView): boolean {
532+ if (!(other instanceof View)) {
533+ const a = this.lines(path),
534+ b = other.lines(path);
535+ return a.length === b.length && a.every((line, i) => line.text === b[i]!.text);
536+ }
527537 const a = this.#file(path).vis;
528538 const b = other.#file(path).vis;
529539 if (a.length !== b.length) return false;
Lines 708–714 at 143 (were 698–704 at 142)
698708}
699709
700710/** Where a node sits in a file's sequence: the index just after it (0 for a start node). */
701−export function indexAfter(view: View, path: string, node: NodeId): number {
711+export function indexAfter(view: Pick<ReadView, "sequenceIndex">, path: string, node: NodeId): number {
702712 if (isStartNode(node)) return 0;
703713 const i = view.sequenceIndex(path, node);
704714 if (i < 0) throw new EngineError("not-in-view", `line ${node} is not in ${path} in this view`);
MCP
compare on this site's /mcp
CLI
abso diff 142 143 src/engine/view.ts --json
JSON
/christopher/abso-core/compare/142..143?file=src%2Fengine%2Fview.ts&format=json