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 51 to 52

Compare

+19 −0 in 1 place
Lines 141–165 at 52 (were 141–146 at 51)
141141 .filter((p) => only.length > 1 || !existsHere(root, p))
142142 .map((p) => nothingAt(root, p));
143143
144+ // --agent: someone else's draft, to review it. What they've recorded, not their folder; nothing here is recorded.
145+ const other = str(args, "agent");
146+ if (other !== undefined) {
147+ if (between || str(args, "draft") !== undefined)
148+ throw new UsageError("--agent shows that agent's unpublished changes: abso diff [file...] --agent <name>");
149+ const answer = await api.diffOf(other);
150+ const files = pick(answer.files);
151+ const d = diffs(files);
152+ const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
153+ const head =
154+ files.length === 0
155+ ? `${other} has no recorded, unpublished changes${inPaths(only, "to")} in ${where}.`
156+ : `${other}'s recorded, unpublished changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
157+ return {
158+ text: [head, ...d.text].join("\n"),
159+ json: { agent: other, draft: answer.draft, base: answer.base, files: d.json, unmatched: unmatched(files) },
160+ };
161+ }
144163 if (between) {
145164 const from = version(words[0]!);
146165 const to = version(words[1]!);
MCP
compare on this site's /mcp
CLI
abso diff 51 52 client/src/changes.ts --json
JSON
/christopher/abso-core/compare/51..52?file=client%2Fsrc%2Fchanges.ts&format=json