Versions 80 to 318
Lines 23–29 at 318 (were 23–29 at 80)
2525
26−test("a first sync hands back every file, empty ones included", () => {
Lines 34–40 at 318 (were 34–40 at 80)
3636
37−test("an edit joins the draft, publish adds it to shared, and sync brings it to others", () => {
Lines 121–127 at 318 (were 121–127 at 80)
123123
124−test("changes that do not collide publish in any order and give the same files", () => {
Lines 147–153 at 318 (were 147–153 at 80)
150− assert.equal(project.publish(agent, `from ${agent}`, 3).ok, true, `publish by ${agent}`);
Lines 159–165 at 318 (were 159–165 at 80)
161161
162−test("a collision refuses the publish, sends news, and sync then an edit settles it", () => {
Lines 173–179 at 318 (were 173–179 at 80)
173173 const heard = project.edit("b", { file: "engine.ts", old: "return null", new: "return undefined" }, 5);
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.',
178178 assert.deepEqual(project.edit("b", { file: "engine.ts", old: "undefined", new: "void 0" }, 5), {
Lines 204–216 at 318 (were 204–215 at 80)
205205 assert.deepEqual(Object.keys(synced.files), ["notes.md"]); // b's own engine.ts edit was already in its folder
206206
207− // b settles it with an edit that takes the markers out, and publish goes through, saying what b kept.
207+ // b settles it with an edit that takes the markers out, and publish goes through, saying what b kept
212− [{ file: "notes.md", kept: "rewrote", theirs: { agent: "a", version: 1 } }],
213+ [{ file: "notes.md", kept: "rewrote", theirs: { agent: "a", version: 1 }, held: "Mark three for b" }],
215216 assert.equal(project.files()["engine.ts"], "export function match(p, s) {\n return void 0;\n}\n");
Lines 219–225 at 318 (were 218–224 at 80)
220221
221−test("publishing with the markers still in is refused; asIs publishes both and settles it (#37, #11)", () => {
222+test("pushing with the markers still in is refused; asIs pushes both and settles it (#37, #11)", () => {
Lines 236–242 at 318 (were 235–241 at 80)
237238
238−test("after publishing without syncing, the agent keeps editing its own folder", () => {
Lines 346–352 at 318 (were 345–351 at 80)
347348
348−test("a refused publish is logged and counted, and the counts survive a reload", () => {
Lines 358–376 at 318 (were 357–368 at 80)
358359 assert.deepEqual(project.status().refusals, { total: 1, lines: 1, definition: 0, attribute: 0, duplicate: 0 });
360− { agent: "bob", draft: null, via: "publish", time: 3, collisions: [{ kind: "lines", file: "a.txt" }] },
362370 assert.deepEqual(Project.load(store.entries, new MemoryStore()).refusals(), project.refusals());
364372
365−test("a full sync answers every file in the view, even for an agent that synced before; file listings change nothing (#37)", () => {
373+test("a full pull answers every file in the view, even for an agent that pulled before; file listings change nothing (#37)", () => {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 80 318 worker/project/test/project.test.ts --json
- JSON
- /christopher/abso-core/compare/80..318?file=worker%2Fproject%2Ftest%2Fproject.test.ts&format=json