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

Compare

+16 −1 in 4 places
Lines 86–94 at 318 (were 86–91 at 35)
8686 res.writeHead(404).end("{}");
8787 });
8888 });
89+ // As fake-server.ts: never close an idle kept-alive connection, or under load the client can reuse one as it closes
90+ // and fail with ECONNRESET (abso 410).
91+ issues.keepAliveTimeout = 0;
8992 await new Promise<void>((ok) => issues.listen(0, "127.0.0.1", ok));
9093 issuesUrl = `http://127.0.0.1:${(issues.address() as AddressInfo).port}`;
9194});
Lines 136–142 at 318 (were 133–139 at 35)
133136 calls.map((c) => `${c.method} ${c.url.replace(/^\/p\/[^/]+/, "")}`),
134137 ["POST /a/ann/attachments", "POST /a/ann/attachments", "POST /a/ann/issue"],
135138 );
136− assert.equal(calls[0]!.headers["x-avcs-name"], "shot.png");
139+ assert.equal(calls[0]!.headers["x-abso-name"], "shot.png");
137140 assert.equal(calls[0]!.headers["content-type"], "application/octet-stream");
138141 assert.deepEqual([...calls[0]!.body], [0x89, 0x50, 0x4e, 0x47, 1, 2, 3]);
139142 const opened = JSON.parse(calls[2]!.body.toString()) as { title: string; attachments: string[] };
Lines 321–337 at 318 (were 318–323 at 35)
318321 /attached a0123456789ab: "shot.png", 2 KB, https:\/\/issues.example\/p\/x\/attachments\/a0123456789ab/,
319322 );
320323 assert.match(text, /\n {4}attached a00000000000f: "mine.png", 3.0 MB/);
324+ // The way in comes before the first link, since an agent's fetch of a link is refused.
325+ assert.match(
326+ text,
327+ /^Issue [^\n]*\n[^\n]*\n3 files are attached below\. To read them: abso issue \d+ --save-attachments <folder> saves every one there, then open the files\. The links are for people signed in on the website\.\n/,
328+ );
329+ assert.doesNotMatch(
330+ issuePage({ ...page, issue: { ...page.issue, attachments: [] }, comments: [] } as unknown as IssuePage).join(
331+ "\n",
332+ ),
333+ /--save-attachments/,
334+ );
321335 // An SVG is listed as its PNG, with its own file as a download beside it.
322336 assert.match(
323337 text,
Lines 362–368 at 318 (were 348–353 at 35)
348362 ],
349363 } as unknown as IssuePage;
350364 const asks = issuePage(asked, { attachmentUrl: (id: string) => `https://i.example/${id}` }).join("\n");
365+ assert.match(asks, /\n5 files are attached below\./, "an ask's question and answer files count too");
351366 assert.match(
352367 asks,
353368 /ask 4: .*"Which\?"\n {4}attached a00000000000d: "a.png", 1 KB, https:\/\/i.example\/a00000000000d\n {4}answer: "This"\n {6}attached a00000000000e: "b.png", 1 KB/,
MCP
compare on this site's /mcp
CLI
abso diff 35 318 client/test/attach.test.ts --json
JSON
/christopher/abso-core/compare/35..318?file=client%2Ftest%2Fattach.test.ts&format=json