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

Compare

+19 −0 in 1 place
Lines 100–121 at 318 (were 100–102 at 0)
100100 return 0;
101101 }
102102}
104+/**
105+ * The first line (1-based) of what looks like a git conflict left in a text: a "<<<<<<< " line, then a "=======" line,
106+ * then a ">>>>>>> " line. abso's own blocks are not these (their opening line is exact, and `abso settle` finds them);
107+ * a merge done by git, or markers typed or pasted by hand, are plain text to abso, which would publish them as they are.
108+ */
109+export function gitMarkerLine(text: string): number | undefined {
110+ const lines = text.split(/\r?\n/);
111+ for (let i = 0; i < lines.length; i++) {
112+ if (!lines[i]!.startsWith("<<<<<<< ") || lines[i] === OPEN) continue;
113+ let mid = false;
114+ for (let j = i + 1; j < lines.length; j++) {
115+ if (lines[j]!.startsWith("<<<<<<< ")) break;
116+ if (lines[j] === MID) mid = true;
117+ else if (mid && lines[j]!.startsWith(">>>>>>> ")) return i + 1;
118+ }
119+ }
120+ return undefined;
121+}
MCP
compare on this site's /mcp
CLI
abso diff 0 318 client/src/settle.ts --json
JSON
/christopher/abso-core/compare/0..318?file=client%2Fsrc%2Fsettle.ts&format=json