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 88 to 89

Compare

+15 −0 in 2 places
Lines 97–104 at 89 (were 97–102 at 88)
9797 return send(200, {
9898 ask: { id: Number(ack[2]), by: "desk", of: ack[1], answer: null, ack: { at: Date.now(), note: "" } },
9999 });
100+ // Ask 404 stands for a server from before ask threads: neither route is there.
101+ if (/\/(ask|reply)\/404$/.test(req.url ?? "")) return send(404, { error: "no such issues route" });
100102 // A reply answers with the ask; from the one asked, a question makes it wait on the asker.
101103 const reply = /\/a\/([^/]+)\/reply\/(\d+)$/.exec(req.url ?? "");
102104 if (req.method === "POST" && reply) {
Lines 292–310 at 89 (were 290–295 at 88)
290292 assert.equal((await main(["reply", "7"], { cwd: fay, env: ENV(), write: () => {} })).exit, 1);
291293 });
292294
295+ it("names a server from before ask threads instead of a bare 404", async () => {
296+ const fay = await folder("fay");
297+ for (const argv of [
298+ ["reply", "404", "still there?"],
299+ ["ask", "404"],
300+ ]) {
301+ const r = await main(argv, { cwd: fay, env: ENV(), write: () => {} });
302+ assert.equal(r.exit, 1, argv.join(" "));
303+ assert.match(r.stderr, /doesn't have ask threads yet/, argv.join(" "));
304+ assert.doesNotMatch(r.stderr, /no such issues route/, argv.join(" "));
305+ }
306+ });
293308 it("ask <N> reads one ask with its whole thread, oldest first, and whose turn it is", async () => {
294309 const fay = await folder("fay");
295310 const before = seen.length;
MCP
compare on this site's /mcp
CLI
abso diff 88 89 client/test/issues.test.ts --json
JSON
/christopher/abso-core/compare/88..89?file=client%2Ftest%2Fissues.test.ts&format=json