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

Compare

+8 −8 in 8 places
Lines 1–4 at 318 (were 1–4 at 7)
1−// Seeing overlap before it happens (#37, Builder 6 and Writer 1; #13): a
1+// Seeing overlap before it happens (#37; #13): a
22// starting note says what an agent is taking on before any edit lands, and
33// the first edit to a file someone else is working on brings one line of
44// news. Neither ever stops an edit or a publish.
Lines 30–36 at 318 (were 30–36 at 7)
3030 return { project, store };
3131}
3232
33−test("the first edit to a file in someone else's unpublished draft brings one line of news, once", () => {
33+test("the first edit to a file in someone else's unpushed draft brings one line of news, once", () => {
3434 const { project } = setup();
3535 edit(project, "builder3", { file: "src/storm/storm.ts", old: "1", new: "2" }, 1);
3636 edit(project, "builder3", { file: "src/storm/system.ts", old: "1", new: "2" }, 2);
Lines 38–44 at 318 (were 38–44 at 7)
3838 assert.equal(first.news.length, 1);
3939 assert.match(
4040 first.news[0]!,
41− /^builder3 has unpublished changes in src\/storm\/storm\.ts, which you just started changing/,
41+ /^builder3 has unpushed changes in src\/storm\/storm\.ts, which you just started changing/,
4242 );
4343 // Its second edit to the same file says nothing more; a new file does.
4444 assert.deepEqual(
Lines 47–53 at 318 (were 47–53 at 7)
4747 );
4848 const second = project.record("builder6", { "src/storm/system.ts": "export const system = 5;\n" }, 5);
4949 assert.equal(second.news.length, 1);
50− assert.match(second.news[0]!, /^builder3 has unpublished changes in src\/storm\/system\.ts/);
50+ assert.match(second.news[0]!, /^builder3 has unpushed changes in src\/storm\/system\.ts/);
5151 // A file nobody else is in: no news.
5252 assert.deepEqual(
5353 edit(project, "builder6", { file: "notes/todo.md", old: "# todo", new: "# todo\n- storm" }, 6).news,
Lines 103–109 at 318 (were 103–109 at 7)
103103 );
104104});
105105
106−test("a starting note lasts through publishes until taken back, the next start, or 2 hours idle (#44); nothing is locked or refused", () => {
106+test("a starting note lasts through pushes until taken back, the next start, or 2 hours idle (#44); nothing is locked or refused", () => {
107107 const { project, store } = setup();
108108 project.starting("builder3", "Storm", ["src/storm/storm.ts"], 1);
109109 // Someone else can still edit and publish the file.
Lines 116–122 at 318 (were 116–122 at 7)
116116 assert.deepEqual(
117117 project.startingNotes().map((n) => n.text),
118118 ["Storm"],
119− "a publish no longer ends it",
119+ "a push no longer ends it",
120120 );
121121 // Two hours and a bit with nothing from builder3: it has ended.
122122 assert.equal(
Lines 142–148 at 318 (were 142–148 at 7)
142142 );
143143});
144144
145−test("a note that names files by glob, or only in its text, brings news on a first edit (#37, Builder 4)", () => {
145+test("a note that names files by glob, or only in its text, brings news on a first edit (#37)", () => {
146146 const project = new Project(new MemoryStore());
147147 project.init(
148148 {
Lines 178–184 at 318 (were 178–184 at 7)
178178 );
179179});
180180
181−test("starting on a glob names the unpublished changes it covers, and their author hears of it", () => {
181+test("starting on a glob names the unpushed changes it covers, and their author hears of it", () => {
182182 const project = new Project(new MemoryStore());
183183 project.init({ "tools/play.mjs": "launch();\n", "tools/shot.mjs": "launch();\n", "src/x.ts": "x;\n" }, 0);
184184 for (const a of ["builder4", "builder6"]) project.sync(a);
MCP
compare on this site's /mcp
CLI
abso diff 7 318 worker/project/test/starting.test.ts --json
JSON
/christopher/abso-core/compare/7..318?file=worker%2Fproject%2Ftest%2Fstarting.test.ts&format=json