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 24 to 25

Compare

+23 −1 in 1 place
Lines 32–61 at 25 (were 32–39 at 24)
3232 return counts;
3333}
3434
35+/** The project file's names, the one read first first (224): abso.json, then avcs.json from before the rename. */
36+export const PROJECT_FILES = ["abso.json", "avcs.json"] as const;
3538/**
36− * What's wrong with an avcs.json, or undefined (Git Lessons' review, batch 4):
39+ * The project file a set of files holds: abso.json when it has one, else
40+ * avcs.json. `ignored` names avcs.json when both are there, so status can say
41+ * which one counts.
42+ */
43+export function projectFileIn(files: {
44+ hasFile(path: string): boolean;
45+ text(path: string): string;
46+}): { name: (typeof PROJECT_FILES)[number]; text: string; ignored?: "avcs.json" } | undefined {
47+ const [name, other] = PROJECT_FILES.filter((n) => files.hasFile(n));
48+ if (!name) return undefined;
49+ return { name, text: files.text(name), ...(other ? { ignored: "avcs.json" as const } : {}) };
50+}
52+/** projectFileIn for a plain path -> text record (init, git intake). */
53+export function projectFileOf(files: Readonly<Record<string, unknown>>): ReturnType<typeof projectFileIn> {
54+ return projectFileIn({ hasFile: (p) => typeof files[p] === "string", text: (p) => files[p] as string });
55+}
57+/**
58+ * What's wrong with a project file (abso.json or avcs.json), or undefined (Git Lessons' review, batch 4):
3759 * it must be a JSON object, and the keys abso reads must have their types:
3860 * "whole" a list of globs, "queue" true or false, "review" a list of
3961 * {paths, reviewer}, and CI's "setup", "build", "check" and "out" strings.
MCP
compare on this site's /mcp
CLI
abso diff 24 25 worker/project/project-helpers.ts --json
JSON
/christopher/abso-core/compare/24..25?file=worker%2Fproject%2Fproject-helpers.ts&format=json