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 161 to 162

Compare

+6 −1 in 3 places
Lines 2–8 at 162 (were 2–7 at 161)
22// except `run`, which sends a tar.gz and reads the answer as a stream of JSON
33// lines (box-run.ts).
44
5+import { randomUUID } from "node:crypto";
56import { setDefaultResultOrder } from "node:dns";
67import type {
78 ChangeAnswer,
Lines 202–208 at 162 (were 201–206 at 161)
201202 if (this.config.visitor && method !== "GET")
202203 throw new ApiError(`${path}: a folder that reads signed out sends only reads`);
203204 const sent = body === undefined ? undefined : JSON.stringify(body);
205+ const requestId = method === "POST" ? randomUUID() : undefined;
204206 const timeoutMs = Math.max(atLeastMs, timeoutFor(this.timeoutMs, sent));
205207 // A connection that never opened is tried once more, IPv4 first (#37, GAME - UI/UX: one IPv6
206208 // address timed out, and the same command went through seconds later). Nothing went out, so
Lines 211–220 at 162 (were 209–215 at 161)
209211 try {
210212 res = await this.send(this.url(path, server), {
211213 method,
212− headers: this.headers(sent === undefined ? undefined : "application/json"),
214+ headers: {
215+ ...this.headers(sent === undefined ? undefined : "application/json"),
216+ ...(requestId ? { "Idempotency-Key": requestId } : {}),
217+ },
213218 ...(sent === undefined ? {} : { body: sent }),
214219 signal: AbortSignal.timeout(timeoutMs),
215220 });
MCP
compare on this site's /mcp
CLI
abso diff 161 162 client/src/api.ts --json
JSON
/christopher/abso-core/compare/161..162?file=client%2Fsrc%2Fapi.ts&format=json