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 59 to 60

Compare

+4 −0 in 2 places
Lines 185–192 at 60 (were 185–190 at 59)
185185 readonly now?: () => number;
186186 /** Where the code and link go while login waits: stderr, so stdout stays quiet. */
187187 readonly say: (line: string) => void;
188+ /** Opens the approve page in a browser, answering whether it tried. None where it shouldn't (--no-browser, SSH, CI). */
189+ readonly open?: (url: string) => boolean;
188190}
189191
190192/**
Lines 204–211 at 60 (were 202–207 at 59)
202204 const expiresIn = Math.min(Number(start.body.expires_in) || 900, MAX_LOGIN_WAIT_S);
203205 if (typeof code !== "string" || typeof link !== "string" || typeof device !== "string")
204206 throw new UsageError(`${originOf(server)} didn't give a code to approve`);
207+ // The page opens with the code in it, so nobody copies a link by hand. The link and code are printed all the same.
208+ if (io.open?.(link)) io.say("Opening the approve page in your browser.");
205209 io.say(`To sign this box in, open ${link} and approve the code ${code}.`);
206210 io.say("Waiting for approval. Ctrl-C stops waiting, and abso stops by itself when the code runs out.");
207211 const until = now() + expiresIn * 1000;
MCP
compare on this site's /mcp
CLI
abso diff 59 60 client/src/box.ts --json
JSON
/christopher/abso-core/compare/59..60?file=client%2Fsrc%2Fbox.ts&format=json