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 299 to 300

Compare

+17 −0 in 2 places
Lines 9–15 at 300 (were 9–14 at 299)
99import { join } from "node:path";
1010import { after, before, describe, it } from "node:test";
1111import { fileURLToPath } from "node:url";
12+import { closeLocalStores, LOCAL_BASE, localFetch } from "../src/local-store.ts";
1213import { main } from "../src/main.ts";
1314import { stateDir } from "../src/state-dir.ts";
1415
Lines 133–154 at 300 (were 132–137 at 299)
132133 const issue = await run(alice, "issue", "1");
133134 assert.match(issue.out, /In progress|bob/);
134135 });
137+ it("two calls at once on one project are both answered, one after the other", async () => {
138+ // As abso ci and waiting --mine make them, with Promise.all.
139+ const local = localFetch(store);
140+ const answers = await Promise.all([local(`${LOCAL_BASE}/p/demo/queue`), local(`${LOCAL_BASE}/p/demo/queue`)]);
141+ closeLocalStores();
142+ for (const a of answers) assert.equal(a.status, 200, await a.text());
143+ });
145+ it("a project's name can't start with a dot, so its folder stays inside the store", async () => {
146+ const dir = temp("dots");
147+ writeFileSync(join(dir, "a.txt"), "x\n");
148+ const r = await run(dir, "init", "--local", "--project", "..", "--agent", "a");
149+ assert.notEqual(r.exit, 0);
150+ assert.ok(!existsSync(join(store, "..", "project.sqlite")));
151+ });
135152});
136153
137154describe("where a local project's store is", { skip: noServer }, () => {
MCP
compare on this site's /mcp
CLI
abso diff 299 300 client/test/local.test.ts --json
JSON
/christopher/abso-core/compare/299..300?file=client%2Ftest%2Flocal.test.ts&format=json