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

+5 −5 in 4 places
Lines 1–9 at 143 (were 1–9 at 142)
1−import type { View } from "../../src/engine/index.ts";
1+import type { ReadView } from "../../src/engine/index.ts";
22import { ProjectError } from "./project-error.ts";
33import type { FileChange, Mode, Modes } from "./project-types.ts";
44
55/** The listed files whose text differs between two views, before and after. */
6−export function changesBetween(before: View, after: View, files: Iterable<string>): FileChange[] {
6+export function changesBetween(before: ReadView, after: ReadView, files: Iterable<string>): FileChange[] {
77 const out: FileChange[] = [];
88 for (const path of [...new Set(files)].toSorted()) {
99 const b = before.hasFile(path) ? before.text(path) : null;
Lines 19–25 at 143 (were 19–25 at 142)
1919}
2020
2121/** Whether a file differs between two views: its text, its mode, or its blob (what changesBetween lists). */
22−export function differs(before: View, after: View, path: string): boolean {
22+export function differs(before: ReadView, after: ReadView, path: string): boolean {
2323 const had = before.hasFile(path);
2424 if (had !== after.hasFile(path)) return true;
2525 if (had && !before.sameText(path, after)) return true;
Lines 29–35 at 143 (were 29–35 at 142)
2929}
3030
3131/** A file's executable bit and link target, before and after, when either changed. */
32−export function modeChange(before: View, after: View, path: string): { before: Mode; after: Mode } | undefined {
32+export function modeChange(before: ReadView, after: ReadView, path: string): { before: Mode; after: Mode } | undefined {
3333 const b = before.attrs(path);
3434 const a = after.attrs(path);
3535 if (b.exec === a.exec && b.link === a.link) return undefined;
Lines 37–43 at 143 (were 37–43 at 142)
3737}
3838
3939/** Every executable file and link in a view. */
40−export function modesOf(view: View): Modes {
40+export function modesOf(view: ReadView): Modes {
4141 const out: Modes = {};
4242 for (const path of view.paths()) {
4343 const a = view.attrs(path);
MCP
compare on this site's /mcp
CLI
abso diff 142 143 worker/project/view-changes.ts --json
JSON
/christopher/abso-core/compare/142..143?file=worker%2Fproject%2Fview-changes.ts&format=json