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 85 to 86

Compare

+5 −1 in 3 places
Lines 174–180 at 86 (were 174–180 at 85)
174174 return {
175175 // Which client made the call (#29); the mods send theirs too.
176176 "x-abso-client": `abso-cli/${clientVersion()}`,
177− ...(this.config.token ? { authorization: `Bearer ${this.config.token}` } : {}),
177+ ...(this.config.token && !this.config.visitor ? { authorization: `Bearer ${this.config.token}` } : {}),
178178 ...(contentType ? { "content-type": contentType } : {}),
179179 };
180180 }
Lines 187–195 at 86 (were 187–192 at 85)
187187 atLeastMs = 0,
188188 ): Promise<T> {
189189 let res: Response | undefined;
190+ // A visitor folder only reads, and follows no redirect, so nothing it sends goes anywhere it didn't name.
191+ const visitor = this.config.visitor === true;
192+ if (visitor && method !== "GET") throw new ApiError(`${path}: a folder that reads signed out sends only reads`);
190193 const sent = body === undefined ? undefined : JSON.stringify(body);
191194 const timeoutMs = Math.max(atLeastMs, timeoutFor(this.timeoutMs, sent));
192195 // A connection that never opened is tried once more, IPv4 first (#37, GAME - UI/UX: one IPv6
Lines 201–207 at 86 (were 198–203 at 85)
198201 method,
199202 headers: this.headers(sent === undefined ? undefined : "application/json"),
200203 ...(sent === undefined ? {} : { body: sent }),
204+ ...(visitor ? { redirect: "error" as const, credentials: "omit" as const } : {}),
201205 signal: AbortSignal.timeout(timeoutMs),
202206 });
203207 } catch (err) {
MCP
compare on this site's /mcp
CLI
abso diff 85 86 client/src/api.ts --json
JSON
/christopher/abso-core/compare/85..86?file=client%2Fsrc%2Fapi.ts&format=json