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 78 to 79

Compare

+20 −1 in 2 places
Lines 21–45 at 79 (were 21–26 at 78)
2121 return 0;
2222}
2323
24+/**
25+ * An SGR sequence without parameter 8 (conceal), which would hide the text after it from the reader. The 8 in an
26+ * extended color (38;5;8, 48;2;8;8;8) is a color, so those are copied whole. Nothing is left when 8 was all it said.
27+ */
28+function withoutConceal(sgr: string): string {
29+ const parts = sgr.slice(2, -1).split(";");
30+ const kept: string[] = [];
31+ for (let i = 0; i < parts.length; i++) {
32+ const p = parts[i]!;
33+ if ((p === "38" || p === "48" || p === "58") && (parts[i + 1] === "5" || parts[i + 1] === "2")) {
34+ const n = parts[i + 1] === "5" ? 3 : 5;
35+ kept.push(...parts.slice(i, i + n));
36+ i += n - 1;
37+ } else if (p !== "8") kept.push(p);
38+ }
39+ if (kept.length === parts.length) return sgr;
40+ return kept.length === 0 ? "" : `\x1b[${kept.join(";")}m`;
41+}
2443/** Whether a character code is one the terminal acts on: C0 but tab and newline, DEL, and C1. */
2544const control = (c: number) => (c < 0x20 && c !== 0x09 && c !== 0x0a) || (c >= 0x7f && c <= 0x9f);
2645
Lines 57–63 at 79 (were 38–44 at 78)
3857 }
3958 const sgr = sgrAt(text, i);
4059 if (sgr > 0) {
41− if (colors) out += text.slice(i, i + sgr);
60+ if (colors) out += withoutConceal(text.slice(i, i + sgr));
4261 i += sgr - 1;
4362 } else if (c === 0x0d && text.charCodeAt(i + 1) === 0x0a) out += "\r";
4463 else out += c < 0x80 ? `\\x${c.toString(16).padStart(2, "0")}` : `\\u${c.toString(16).padStart(4, "0")}`;
MCP
compare on this site's /mcp
CLI
abso diff 78 79 client/src/terminal-text.ts --json
JSON
/christopher/abso-core/compare/78..79?file=client%2Fsrc%2Fterminal-text.ts&format=json