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 263 to 264

Compare

+9 −1 in 1 place
Lines 299–313 at 264 (were 299–305 at 263)
299299 if (typeof code !== "string" || typeof link !== "string" || typeof device !== "string")
300300 throw new UsageError(`${originOf(server)} didn't give a code to approve`);
301301 // The page opens with the code in it, so nobody copies a link by hand. The link and code are printed all the same.
302− const asked = io.ask ? await io.ask({ device, user: code }).catch(() => null) : null;
302+ // A failed ask falls back to the code, and says why, so a person can still approve it (abso 684).
303+ const asked = io.ask
304+ ? await io.ask({ device, user: code }).catch((e: unknown) => {
305+ io.say(
306+ `Couldn't ask a person to approve this (${e instanceof Error ? e.message : String(e)}), so here is the code.`,
307+ );
308+ return null;
309+ })
310+ : null;
303311 if (asked) {
304312 const askWord = asked.asks.length === 1 ? `ask ${asked.asks[0]}` : `asks ${asked.asks.join(", ")}`;
305313 io.say(`Asked ${asked.who} (${askWord} in ${asked.project}) to sign this box in, as at most ${asked.role}.`);
MCP
compare on this site's /mcp
CLI
abso diff 263 264 client/src/box.ts --json
JSON
/christopher/abso-core/compare/263..264?file=client%2Fsrc%2Fbox.ts&format=json