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 10 to 11

Compare

+27 −9 in 2 places
Lines 120–140 at 11 (were 120–125 at 10)
120120 ];
121121}
122122
123+/**
124+ * A command that left files out for size did not do everything it was asked: say so in the exit code too, so
125+ * a script, CI or an agent cannot read "ok" while a file is missing. Other exits (refused, queued) stay as they are.
126+ */
127+export function withLeftOut(out: Output, leftOut: readonly LeftOut[]): Output {
128+ if (leftOut.length === 0) return out;
129+ const text = out.text.includes("Left out,") ? out.text : [out.text, ...leftOutText(leftOut)].join("\n");
130+ return {
131+ ...out,
132+ text: `${text}\nExit ${EXIT.error}: ${leftOut.length} file${leftOut.length === 1 ? " was" : "s were"} not sent.`,
133+ json: { ...out.json, leftOut },
134+ exit: out.exit === undefined || out.exit === EXIT.ok ? EXIT.error : out.exit,
135+ };
136+}
123138/** Upload binary files' bytes before the record or init that names them, each hash once. */
124139export async function uploadBlobs(api: Api, blobs: ReadonlyMap<string, BlobToSend>): Promise<void> {
125140 const seen = new Set<string>();
Lines 305–323 at 11 (were 290–305 at 10)
290305 r.sent === 0
291306 ? "Nothing to record: the folder matches what the server has."
292307 : `Recorded ${recordedList(r)}${changed === undefined ? "" : `; ${changed} changed on the server`}.`;
293− return {
294− text: [...turnedBinaryText(r.turnedBinary), text, ...leftOutText(r.leftOut)].join("\n"),
295− json: {
296− sent: r.sent,
297− changed: r.changed ?? null,
298− news: newsLines(r.news),
299− leftOut: r.leftOut,
300− turnedBinary: r.turnedBinary,
308+ return withLeftOut(
309+ {
310+ text: [...turnedBinaryText(r.turnedBinary), text, ...leftOutText(r.leftOut)].join("\n"),
311+ json: {
312+ sent: r.sent,
313+ changed: r.changed ?? null,
314+ news: newsLines(r.news),
315+ leftOut: r.leftOut,
316+ turnedBinary: r.turnedBinary,
317+ },
301318 },
302− };
319+ r.leftOut,
320+ );
303321}
304322
305323// --- writing answers into the folder ---
MCP
compare on this site's /mcp
CLI
abso diff 10 11 client/src/commands.ts --json
JSON
/christopher/abso-core/compare/10..11?file=client%2Fsrc%2Fcommands.ts&format=json