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

Compare

+20 −8 in 5 places
Lines 3–20 at 318 (were 3–9 at 39)
33
44import type { VersionRef } from "./api.ts";
55import { bool, type Parsed, str, UsageError } from "./args.ts";
6−import { applyAnswer, collisionText, type Env, EXIT, type Output, open, plural, recordFolder } from "./commands.ts";
6+import {
7+ applyAnswer,
8+ collisionText,
9+ type Env,
10+ EXIT,
11+ type Output,
12+ open,
13+ plural,
14+ pullAnswer,
15+ pullWritten,
16+ recordFolder,
17+} from "./commands.ts";
718import { writeConfig } from "./config.ts";
819import { refusedText } from "./safety.ts";
Lines 49–55 at 318 (were 38–44 at 39)
3849 text: [
3950 `Dropped from shared, as version ${answer.version}:`,
4051 ...answer.dropped.map(ref),
41− "Other agents hear it as news; their next sync takes it out of their folders. History keeps it: abso log shows the drop.",
52+ "Other agents hear it as news; their next pull takes it out of their folders. History keeps it: abso log shows the drop.",
4253 ].join("\n"),
4354 json: { ...answer },
4455 };
Lines 57–70 at 318 (were 46–59 at 39)
4657 const lines = ["Not dropped."];
4758 if (answer.dependents && answer.dependents.length > 0) {
4859 lines.push(
49− `Later published versions build on ${versions.length === 1 ? "it" : "them"}:`,
60+ `Later pushed versions build on ${versions.length === 1 ? "it" : "them"}:`,
5061 ...answer.dependents.map(ref),
5162 "Pass --with-dependents to drop those too.",
5263 );
5364 }
5465 if (answer.blocked && answer.blocked.length > 0) {
5566 lines.push(
56− "Unpublished work builds on it, and a drop never touches unpublished work:",
67+ "Unpushed work builds on it, and a drop never touches unpushed work:",
5768 ...answer.blocked.map(
5869 (b) => ` ${b.agent !== undefined ? `agent ${b.agent}` : `draft ${b.draft}`}: ${b.files.join(", ")}`,
5970 ),
Lines 110–116 at 318 (were 99–105 at 39)
99110 const a = await api.amend(message);
100111 const where = a.draft === null ? "shared" : `draft ${a.draft}`;
101112 return {
102− text: `Version ${a.version} of ${where} now says: ${a.message}\n(It said: ${a.was}.) Only the message changed; to change what it did, publish again or abso drop it.`,
113+ text: `Version ${a.version} of ${where} now says: ${a.message}\n(It said: ${a.was}.) Only the message changed; to change what it did, push again or abso drop it.`,
103114 json: { ...a },
104115 };
105116}
Lines 155–166 at 318 (were 144–154 at 39)
144155 // Sync now (recording first, as sync does), so the folder is where it now says it is.
145156 const { api } = open(env);
146157 await recordFolder(root, api);
147− const s = await applyAnswer(root, api, await api.sync());
158+ const s = await applyAnswer(root, api, await pullAnswer(root, api));
159+ pullWritten(root);
148160 const changes = s.written.length + s.deleted.length;
149161 const head = follow
150− ? `This folder now follows label ${follow}: every sync takes it to the newest version with that label. It is on version ${s.version}.`
151− : `This folder follows no label now: syncs take it to shared's newest version, ${s.version}.`;
162+ ? `This folder now follows label ${follow}: every pull takes it to the newest version with that label. It is on version ${s.version}.`
163+ : `This folder follows no label now: pulls take it to shared's newest version, ${s.version}.`;
152164 return {
153165 text: [
154166 head,
MCP
compare on this site's /mcp
CLI
abso diff 39 318 client/src/versions.ts --json
JSON
/christopher/abso-core/compare/39..318?file=client%2Fsrc%2Fversions.ts&format=json