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 41 to 318

Compare

+8 −10 in 4 places
Lines 20–26 at 318 (were 20–26 at 41)
2020 `${m.file} line ${m.line}, with ${m.theirs.agent}'s version ${m.theirs.version} ("${m.theirs.message}"): ${m.text}`;
2121 const who = new Set(merged.map((m) => m.theirs.agent)).size === 1 ? merged[0]!.theirs.agent : "others";
2222 return [
23− `Merged ${merged.length === 1 ? "1 line" : `${merged.length} lines`} that both you and ${who} changed, item by item. Check ${merged.length === 1 ? "it reads" : "they read"} right, then publish:`,
23+ `Merged ${merged.length === 1 ? "1 line" : `${merged.length} lines`} that both you and ${who} changed, item by item. Check ${merged.length === 1 ? "it reads" : "they read"} right, then push:`,
2424 ...merged.map((m) => ` ${one(m)}`),
2525 ];
2626}
Lines 35–50 at 318 (were 35–50 at 41)
3535 `${plural(collisions.length, "collision")}:`,
3636 ...(marked
3737 ? [
38− "where lines changed on both sides, the file now holds a marker block: yours, the lines you both started from, and theirs. Settle each before you publish: keep yours, theirs or a mix and delete the marker lines, or run abso settle <file> --yours|--theirs|--both. Box runs fail while markers are in the folder.",
38+ "where lines changed on both sides, the file now holds a marker block: yours, the lines you both started from, and theirs. Settle each before you push: keep yours, theirs or a mix and delete the marker lines, or run abso settle <file> --yours|--theirs|--both. Box runs fail while markers are in the folder.",
3939 ]
4040 : []),
4141 ...(lines
4242 ? [
43− "where lines changed on both sides, the files now hold both, with no markers. Edit them to what they should be before you publish; if both really belong, abso publish --as-is keeps both.",
43+ "where lines changed on both sides, the files now hold both, with no markers. Edit them to what they should be before you push; if both really belong, abso push --as-is keeps both.",
4444 ]
4545 : []),
46− ...(twice ? ["a name defined twice needs one definition kept before you publish."] : []),
47− ...(!marked && !lines && !twice ? ["read each one, edit what needs it, then publish."] : []),
46+ ...(twice ? ["a name defined twice needs one definition kept before you push."] : []),
47+ ...(!marked && !lines && !twice ? ["read each one, edit what needs it, then push."] : []),
4848 ].join(" ");
4949}
5050
Lines 54–66 at 318 (were 54–68 at 41)
5454): string {
5555 const which = merged.map((m) => `version ${m.version} (${m.agent}: "${m.message}")`);
5656 const list = which.length === 1 ? which[0]! : `${which.slice(0, -1).join(", ")} and ${which[which.length - 1]}`;
57− return `It went on top of ${list}, which your folder doesn't have yet. Nothing of theirs was overwritten; run abso sync to see both.`;
57+ return `It went on top of ${list}, which your folder doesn't have yet. Nothing of theirs was overwritten; run abso pull to see both.`;
5858}
5959
6060export function collisionText(c: Collision): string {
6161 // Theirs may still be waiting in the merge queue (#39): not a version yet.
6262 const v =
63− c.theirs.queued !== undefined
64− ? `queued publish ${c.theirs.queued} (not landed yet)`
65− : `version ${c.theirs.version}`;
63+ c.theirs.queued !== undefined ? `queued push ${c.theirs.queued} (not landed yet)` : `version ${c.theirs.version}`;
6664 const indent = (text: string): string =>
6765 text
6866 .replace(/\n$/, "")
Lines 96–102 at 318 (were 98–104 at 41)
9896 }
9997 if (c.kind === "duplicate") {
10098 return [
101− ` ${c.file}: ${c.name ?? "a name"} is defined twice, yours (${describeLines(c.yours.lines)}) and ${c.theirs.agent}'s from ${v} ("${c.theirs.message}") (${describeLines(c.theirs.lines)}). Keep one, then publish.`,
99+ ` ${c.file}: ${c.name ?? "a name"} is defined twice, yours (${describeLines(c.yours.lines)}) and ${c.theirs.agent}'s from ${v} ("${c.theirs.message}") (${describeLines(c.theirs.lines)}). Keep one, then push.`,
102100 ` yours:`,
103101 indent(c.yours.text),
104102 ` theirs:`,
MCP
compare on this site's /mcp
CLI
abso diff 41 318 client/src/collision-text.ts --json
JSON
/christopher/abso-core/compare/41..318?file=client%2Fsrc%2Fcollision-text.ts&format=json