Lines 31–37 at 318 (were 31–37 at 92)
3131const filesOf = (status: ReturnType<Project["status"]>, agent: string) => 3232 status.agents.find((a) => a.agent === agent)!.files; 34−test("status answers the same warm and cold through records, publishes and syncs in shared", () => {
34+test("status answers the same warm and cold through records, pushes and pulls in shared", () => { 3535 const { project, store } = setup(); 3636 project.edit("ann", { file: "core.ts", old: " return x + 1;", new: " return x + 2;" }, 1); 3737 assert.deepEqual(filesOf(same(project, store, "ann's edit"), "ann"), ["core.ts"]); Lines 40–55 at 318 (were 40–55 at 92)
4040 project.edit("bob", { file: "notes.md", old: "three\n", new: "three!\n" }, 3); 4141 same(project, store, "bob's edit"); 4242 project.publish("ann", "Ann's two", 4); 43− assert.deepEqual(filesOf(same(project, store, "ann's publish"), "ann"), []);
43+ assert.deepEqual(filesOf(same(project, store, "ann's push"), "ann"), []); 4444 project.sync("bob"); 45− assert.deepEqual(filesOf(same(project, store, "bob's sync"), "bob"), ["notes.md"]);
45+ assert.deepEqual(filesOf(same(project, store, "bob's pull"), "bob"), ["notes.md"]); 4646 project.record("cat", { "new.ts": "export {};\n" }, 5); 4747 assert.deepEqual(filesOf(same(project, store, "cat's new file"), "cat"), ["new.ts"]); 4848 project.publish("cat", "Cat's file", 6); 49− same(project, store, "cat's publish");
49+ same(project, store, "cat's push"); 52−test("two agents in one named draft: one publishes, and the other's status still matches a cold load", () => {
52+test("two agents in one named draft: one pushes, and the other's status still matches a cold load", () => { 5353 const { project, store } = setup(); 5454 project.switchTo("ann", "rw", 1); 5555 project.switchTo("bob", "rw", 2); Lines 59–70 at 318 (were 59–70 at 92)
5959 const before = same(project, store, "both edit in rw"); 6060 assert.deepEqual(filesOf(before, "bob"), ["notes.md"]); 6161 project.publish("ann", "Double", 5); 62− const after = same(project, store, "ann publishes into rw");
62+ const after = same(project, store, "ann pushes into rw"); 6363 assert.deepEqual(filesOf(after, "ann"), []); 6464 project.sync("bob"); 65− assert.deepEqual(filesOf(same(project, store, "bob syncs in rw"), "bob"), ["notes.md"]);
65+ assert.deepEqual(filesOf(same(project, store, "bob pulls in rw"), "bob"), ["notes.md"]); 6666 project.publish("bob", "Note", 6); 67− assert.deepEqual(filesOf(same(project, store, "bob publishes into rw"), "bob"), []);
67+ assert.deepEqual(filesOf(same(project, store, "bob pushes into rw"), "bob"), []); 6868 project.land("ann", "Land rw", 7); 6969 same(project, store, "rw lands"); 7070 project.switchTo("ann", "shared", 8);