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 47 to 48

Compare

+34 −0 in 1 place
Lines 2187–2226 at 48 (were 2187–2192 at 47)
21872187 assert.equal((await avcs(folders.bob!, "status")).json.version, 1, "shared stayed at version 1");
21882188 });
21892189
2190+ it("--done takes the start note back only once the queued publish lands", async () => {
2191+ const { folders } = await project(files, "alice");
2192+ const noted = async () =>
2193+ /Starting on:/.test((await main(["where"], { cwd: folders.alice!, env: QENV, write: () => {} })).stdout);
2194+ assert.equal((await avcs(folders.alice!, "start", "Two", "other.txt")).exit, 0);
2195+ fake.queueHold = true;
2196+ try {
2197+ write(folders.alice!, { "other.txt": "two\n" });
2198+ const queued = await publish(folders.alice!, "-m", "two", "--no-wait", "--done");
2199+ assert.equal(queued.exit, 0, queued.stdout + queued.stderr);
2200+ assert.match(
2201+ queued.stdout,
2202+ /\nYour start note stays \(--done\): publish 1 hasn't landed yet\. Once it has, abso start --done takes the note back and abso issue <N> --done closes the issue it names\.\n$/,
2203+ );
2204+ assert.equal(await noted(), true, "a queued publish may yet be pulled");
2205+ assert.equal((await main(["unqueue"], { cwd: folders.alice!, env: QENV, write: () => {} })).exit, 0);
2206+ } finally {
2207+ fake.queueHold = false;
2208+ }
2209+ write(folders.alice!, { "state.txt": "bad\n" });
2210+ const pulled = await publish(folders.alice!, "-m", "breaks it", "--done");
2211+ assert.equal(pulled.exit, 2, pulled.stdout + pulled.stderr);
2212+ assert.doesNotMatch(pulled.stdout, /start note/);
2213+ assert.equal(await noted(), true, "a pulled publish leaves the note");
2214+ write(folders.alice!, { "state.txt": "ok, fixed\n" });
2215+ const landed = await publish(folders.alice!, "-m", "fixed", "--done");
2216+ assert.equal(landed.exit, 0, landed.stdout + landed.stderr);
2217+ assert.match(
2218+ landed.stdout,
2219+ /\nPublished version 1: it passed the project's check in the merge queue\.\nYour start note is taken back \(--done\): this work is finished\.\n$/,
2220+ );
2221+ assert.equal(await noted(), false);
2222+ });
21902224 it("--no-wait and --wait, status shows the queue, unqueue takes it back, and a collision names the queued publish", async () => {
21912225 const { folders } = await project(files, "alice", "bob");
21922226 fake.queueHold = true;
MCP
compare on this site's /mcp
CLI
abso diff 47 48 client/test/client.test.ts --json
JSON
/christopher/abso-core/compare/47..48?file=client%2Ftest%2Fclient.test.ts&format=json