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 99 to 100

Compare

+10 −10 in 10 places
Lines 23–29 at 100 (were 23–29 at 99)
2323 }
2424}
2525
26−test("a first sync hands back every file, empty ones included", () => {
26+test("a first pull hands back every file, empty ones included", () => {
2727 const store = new MemoryStore();
2828 const project = new Project(store);
2929 assert.deepEqual(project.init({ ...START, "empty.txt": "" }, 1), { version: 0, skipped: [] });
Lines 34–40 at 100 (were 34–40 at 99)
3434 assert.deepEqual(project.sync("backtracker").files, {});
3535});
3636
37−test("an edit joins the draft, publish adds it to shared, and sync brings it to others", () => {
37+test("an edit joins the draft, push adds it to shared, and pull brings it to others", () => {
3838 const { project } = setup();
3939 project.sync("a");
4040 project.sync("b");
Lines 121–127 at 100 (were 121–127 at 99)
121121 });
122122});
123123
124−test("changes that do not collide publish in any order and give the same files", () => {
124+test("changes that do not collide push in any order and give the same files", () => {
125125 const edits: [string, string, string, string][] = [
126126 ["a", "notes.md", "one\n", "uno\n"],
127127 ["b", "notes.md", "four\n", "cuatro\n"],
Lines 147–153 at 100 (were 147–153 at 99)
147147 }
148148 for (const i of order) {
149149 const [agent] = edits[i]!;
150− assert.equal(project.publish(agent, `from ${agent}`, 3).ok, true, `publish by ${agent}`);
150+ assert.equal(project.publish(agent, `from ${agent}`, 3).ok, true, `push by ${agent}`);
151151 }
152152 return project.files();
153153 });
Lines 159–165 at 100 (were 159–165 at 99)
159159 });
160160});
161161
162−test("a collision refuses the publish, sends news, and sync then an edit settles it", () => {
162+test("a collision refuses the push, sends news, and pull then an edit settles it", () => {
163163 const { project } = setup();
164164 const folderB: Record<string, string> = {};
165165 apply(folderB, project.sync("a").files);
Lines 173–179 at 100 (were 173–179 at 99)
173173 const heard = project.edit("b", { file: "engine.ts", old: "return null", new: "return undefined" }, 5);
174174 assert.equal(heard.ok, true);
175175 assert.deepEqual(heard.ok && heard.news, [
176− 'a published "Mark three for a" (version 1), which changes notes.md lines 3-3, where your draft also changes lines; run abso sync to see both versions.',
176+ 'a pushed "Mark three for a" (version 1), which changes notes.md lines 3-3, where your draft also changes lines; run abso pull to see both versions.',
177177 ]);
178178 assert.deepEqual(project.edit("b", { file: "engine.ts", old: "undefined", new: "void 0" }, 5), {
179179 ok: true,
Lines 218–224 at 100 (were 218–224 at 99)
218218 assert.deepEqual(unresolvedConflicts(project.graph, shared), []);
219219});
220220
221−test("publishing with the markers still in is refused; asIs publishes both and settles it (#37, #11)", () => {
221+test("pushing with the markers still in is refused; asIs pushes both and settles it (#37, #11)", () => {
222222 const { project } = setup();
223223 project.sync("a");
224224 project.sync("b");
Lines 235–241 at 100 (were 235–241 at 99)
235235 assert.deepEqual(unresolvedConflicts(project.graph, shared), []);
236236});
237237
238−test("after publishing without syncing, the agent keeps editing its own folder", () => {
238+test("after pushing without pulling, the agent keeps editing its own folder", () => {
239239 const { project } = setup();
240240 project.sync("a");
241241 project.sync("b");
Lines 345–351 at 100 (were 345–351 at 99)
345345 assert.deepEqual(loaded.files(), project.files());
346346});
347347
348−test("a refused publish is logged and counted, and the counts survive a reload", () => {
348+test("a refused push is logged and counted, and the counts survive a reload", () => {
349349 const store = new MemoryStore();
350350 const project = new Project(store);
351351 project.init({ "a.txt": "a\n" }, 0);
Lines 362–368 at 100 (were 362–368 at 99)
362362 assert.deepEqual(Project.load(store.entries, new MemoryStore()).refusals(), project.refusals());
363363});
364364
365−test("a full sync answers every file in the view, even for an agent that synced before; file listings change nothing (#37)", () => {
365+test("a full pull answers every file in the view, even for an agent that pulled before; file listings change nothing (#37)", () => {
366366 const store = new MemoryStore();
367367 const project = new Project(store);
368368 project.init({ "a.txt": "a\n", "src/b.ts": "b\n" }, 0);
MCP
compare on this site's /mcp
CLI
abso diff 99 100 worker/project/test/project.test.ts --json
JSON
/christopher/abso-core/compare/99..100?file=worker%2Fproject%2Ftest%2Fproject.test.ts&format=json