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

Compare

+7 −5 in 4 places
Lines 1–8 at 318 (were 1–8 at 7)
1−// Bodies from a file or stdin (Design Lead, 2026-10-08): Windows PowerShell 5.1
1+// Bodies from a file or stdin: Windows PowerShell 5.1
22// passes a native command's argument badly, so a multi-line --comment,
33// --description or answer reached the server cut to its first line, and nobody
44// knew. Any text flag also takes --<flag>-file <path>, and the commands whose
5−// text is their words (ask, answer, announce) take --file <path>. A path of -
5+// text is their words (ask, answer, reply, announce) take --file <path>. A path of -
66// reads stdin. The file's text arrives whole on any shell.
77
88import { readFileSync } from "node:fs";
Lines 12–18 at 318 (were 12–18 at 7)
1212/** The text flags a command may take from a file instead. */
1313const BODY_FLAGS = ["message", "comment", "object", "description", "note"] as const;
1414/** Commands whose text is their last words: --file gives those words. */
15−const WORDS_FROM_FILE = new Set(["ask", "answer", "announce"]);
15+const WORDS_FROM_FILE = new Set(["ask", "answer", "reply", "announce"]);
1616
1717/** The command's flags, plus a -file twin for each text flag it takes, and --file where its words are its text. */
1818export function withBodyFiles(command: string, spec: FlagSpec): FlagSpec {
Lines 55–63 at 318 (were 55–61 at 7)
5555 throw new UsageError(`--${flag} ${path}: no such file to read`);
5656 }
5757 }
58− text = text.replace(/\r?\n$/, "");
58+ // A file saved on Windows has CRLF line endings; the text goes up with LF only, as typed text does
59+ // (the Issues Worker refuses a carriage return as a character a reader can't see).
60+ text = text.replace(/\r\n?/g, "\n").replace(/\n$/, "");
5961 if (text.trim() === "") throw new UsageError(`--${flag} ${path}: the text is empty`);
6062 return text;
6163 };
Lines 75–81 at 318 (were 73–79 at 7)
7375 }
7476 const path = flags.get("file");
7577 if (WORDS_FROM_FILE.has(command) && typeof path === "string") {
76− // ask <who> and answer <ask> keep their first word; announce's words are all text.
78+ // ask <who>, answer <ask> and reply <ask> keep their first word; announce's words are all text.
7779 const keep = command === "announce" ? 0 : 1;
7880 if (positionals.length > keep)
7981 throw new UsageError(`--file gives ${command}'s text, so leave the words off the command line`);
MCP
compare on this site's /mcp
CLI
abso diff 7 318 client/src/body-files.ts --json
JSON
/christopher/abso-core/compare/7..318?file=client%2Fsrc%2Fbody-files.ts&format=json