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 57 to 58

Compare

+24 −0 in 2 places
Lines 91–97 at 58 (were 91–96 at 57)
9191 );
9292 assert.deepEqual(said, [
9393 "To sign this box in, open https://abso.dev/login/box?code=WXYZ-BCDF and approve the code WXYZ-BCDF.",
94+ "Waiting for approval. Ctrl-C stops waiting, and abso stops by itself when the code runs out.",
9495 ]);
9596 assert.equal(readBox(SERVER, h)?.credential, CREDENTIAL);
9697 const files = readdirSync(join(h, ".abso", "boxes"));
Lines 161–189 at 58 (were 160–165 at 57)
160161 assert.equal(readBox(SERVER, h), undefined);
161162});
162163
164+test("login says it's still waiting about once a minute, and stops in the end whatever the server says", async () => {
165+ const c = clock();
166+ const said: string[] = [];
167+ const pending = Array.from({ length: 2000 }, (): [number, unknown] => [400, { error: "authorization_pending" }]);
168+ await assert.rejects(
169+ login(
170+ SERVER,
171+ {
172+ fetch: server([[200, { ...started, expires_in: 10 ** 9, interval: 5 }], ...pending], []),
173+ sleep: c.sleep,
174+ now: c.now,
175+ say: (line) => said.push(line),
176+ },
177+ home(),
178+ ),
179+ /nobody approved the code WXYZ-BCDF in time\. Run abso login again\./,
180+ );
181+ assert.equal(c.slept(), 30 * 60 * 1000, "a server that says never still gets an end");
182+ const still = said.filter((line) => line === "Still waiting for the code WXYZ-BCDF to be approved.");
183+ assert.equal(still.length, 30);
184+ assert.equal(said.length, 2 + 30);
185+});
163187test("a key is minted with the box credential, sent only to the box's own server", async () => {
164188 const seen: Seen = [];
165189 const minted = await mintKey(
MCP
compare on this site's /mcp
CLI
abso diff 57 58 client/test/box.test.ts --json
JSON
/christopher/abso-core/compare/57..58?file=client%2Ftest%2Fbox.test.ts&format=json