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 318

Compare

+11 −7 in 5 places
Lines 19–26 at 318 (were 19–24 at 78)
1919 type Output,
2020 open,
2121 plural,
22+ pullAnswer,
23+ pullWritten,
2224 recordedFirst,
2325 recordFolder,
2426} from "./commands.ts";
Lines 59–68 at 318 (were 57–65 at 78)
5759 note(answer.files);
5860 const switched = await applyAnswer(root, api, answer);
5961 // The switch brings back the space as it was when parked; sync straight away so the folder shows it as it is now (#22).
60− const syncAnswer = await api.sync();
62+ const syncAnswer = await pullAnswer(root, api);
6163 note(syncAnswer.files);
6264 const synced = await applyAnswer(root, api, syncAnswer);
65+ pullWritten(root);
6366 const touched = new Set([...switched.written, ...switched.deleted, ...synced.written, ...synced.deleted]);
6467 const written: string[] = [];
6568 const deleted: string[] = [];
Lines 78–94 at 318 (were 75–91 at 78)
7578 const lines = [
7679 ...recordedFirst(recorded),
7780 carry
78− ? `Started ${where}, carrying your unpublished changes into it.`
79− : `Switched to ${where}. Your unpublished changes where you were are parked there, and come back when you switch back.`,
81+ ? `Started ${where}, carrying your unpushed changes into it.`
82+ : `Switched to ${where}. Your unpushed changes where you were are parked there, and come back when you switch back.`,
8083 `It is at version ${synced.version}. ${written.length + deleted.length === 0 ? "No files changed in this folder." : `${plural(written.length, "file")} updated, ${deleted.length} deleted:`}`,
8184 ...changedFilesText("switch", written, deleted, [], bool(args, "verbose")),
8285 ...refusedText([...switched.refused, ...synced.refused]),
8386 ...mergedLinesText([...switched.merged, ...synced.merged]),
84− ...(kept.length > 0 ? [`Left alone because they changed while switching (run abso sync): ${kept.join(", ")}`] : []),
87+ ...(kept.length > 0 ? [`Left alone because they changed while switching (run abso pull): ${kept.join(", ")}`] : []),
8588 ...(dropped.length > 0 ? [`Dropped from your draft, kept on disk (these stay local): ${dropped.join(", ")}`] : []),
8689 ...(collisions.length > 0 ? [collisionsHeading(collisions), ...collisions.map(collisionText)] : []),
8790 ...(answer.draft !== null
88− ? ['Publish into this draft with abso publish; land it in shared with abso land -m "why".']
91+ ? ['Push into this draft with abso push; land it in shared with abso land -m "why".']
8992 : []),
9093 ];
9194 return {
Lines 140–146 at 318 (were 137–143 at 78)
137140 ...pre,
138141 `Not landed: ${plural(collisions.length, "collision")} with work that landed in shared since the draft's base.`,
139142 ...collisions.map(collisionText),
140− "Run abso draft-sync to move the draft onto shared, settle those lines in the draft, publish, then land again.",
143+ "Run abso draft-pull to move the draft onto shared, settle those lines in the draft, push, then land again.",
141144 ].join("\n"),
142145 json: { collisions, recorded: recorded.sent },
143146 };
Lines 151–158 at 318 (were 148–154 at 78)
148151 const moved = await api.draftSync();
149152 // Bring the moved draft's new view into this folder straight away.
150153 const recorded = await recordFolder(root, api);
151− const applied = await applyAnswer(root, api, await api.sync());
154+ const applied = await applyAnswer(root, api, await pullAnswer(root, api));
155+ pullWritten(root);
152156 const lines = [
153157 `Moved draft ${moved.draft} onto shared version ${moved.sharedBase} (the draft is at version ${moved.version}).`,
154158 ...recordedFirst(recorded),
MCP
compare on this site's /mcp
CLI
abso diff 78 318 client/src/drafts.ts --json
JSON
/christopher/abso-core/compare/78..318?file=client%2Fsrc%2Fdrafts.ts&format=json