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

Compare

+11 −8 in 5 places
Lines 16–26 at 318 (were 16–25 at 28)
1616 type Env,
1717 EXIT,
1818 mergedLinesText,
19− newsText,
2019 type Output,
2120 open,
2221 plural,
22+ pullAnswer,
23+ pullWritten,
2324 recordedFirst,
2425 recordFolder,
2526} from "./commands.ts";
Lines 59–68 at 318 (were 58–66 at 28)
5859 note(answer.files);
5960 const switched = await applyAnswer(root, api, answer);
6061 // The switch brings back the space as it was when parked; sync straight away so the folder shows it as it is now (#22).
61− const syncAnswer = await api.sync();
62+ const syncAnswer = await pullAnswer(root, api);
6263 note(syncAnswer.files);
6364 const synced = await applyAnswer(root, api, syncAnswer);
65+ pullWritten(root);
6466 const touched = new Set([...switched.written, ...switched.deleted, ...synced.written, ...synced.deleted]);
6567 const written: string[] = [];
6668 const deleted: string[] = [];
Lines 78–94 at 318 (were 76–92 at 28)
7678 const lines = [
7779 ...recordedFirst(recorded),
7880 carry
79− ? `Started ${where}, carrying your unpublished changes into it.`
80− : `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.`,
8183 `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:`}`,
8284 ...changedFilesText("switch", written, deleted, [], bool(args, "verbose")),
8385 ...refusedText([...switched.refused, ...synced.refused]),
8486 ...mergedLinesText([...switched.merged, ...synced.merged]),
85− ...(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(", ")}`] : []),
8688 ...(dropped.length > 0 ? [`Dropped from your draft, kept on disk (these stay local): ${dropped.join(", ")}`] : []),
8789 ...(collisions.length > 0 ? [collisionsHeading(collisions), ...collisions.map(collisionText)] : []),
8890 ...(answer.draft !== null
89− ? ['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".']
9092 : []),
9193 ];
9294 return {
Lines 140–146 at 318 (were 138–144 at 28)
138140 ...pre,
139141 `Not landed: ${plural(collisions.length, "collision")} with work that landed in shared since the draft's base.`,
140142 ...collisions.map(collisionText),
141− "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.",
142144 ].join("\n"),
143145 json: { collisions, recorded: recorded.sent },
144146 };
Lines 151–158 at 318 (were 149–155 at 28)
149151 const moved = await api.draftSync();
150152 // Bring the moved draft's new view into this folder straight away.
151153 const recorded = await recordFolder(root, api);
152− const applied = await applyAnswer(root, api, await api.sync());
154+ const applied = await applyAnswer(root, api, await pullAnswer(root, api));
155+ pullWritten(root);
153156 const lines = [
154157 `Moved draft ${moved.draft} onto shared version ${moved.sharedBase} (the draft is at version ${moved.version}).`,
155158 ...recordedFirst(recorded),
MCP
compare on this site's /mcp
CLI
abso diff 28 318 client/src/drafts.ts --json
JSON
/christopher/abso-core/compare/28..318?file=client%2Fsrc%2Fdrafts.ts&format=json