Versions 175 to 318
Lines 9–15 at 318 (were 9–14 at 175)
Lines 420–554 at 318 (were 419–421 at 175)
423+
424+test("abso init from a box (abso 663): one key for every try, waiting out a pending create; abso box says all projects", async () => {
425+ const record = { server: SERVER, id: "b_1", credential: CREDENTIAL, grant, expiresAt: Date.now() + 86_400_000 };
452+ assert.ok(seen.every((s) => s.path === "/box/projects" && s.key === "33333333-3333-4333-8333-333333333333"));
454+ assert.deepEqual(JSON.parse(seen[0]!.body), { name: "made", files: [{ path: "a.txt", text: "hi\n" }] });
455+ const all = { ...record, grant: { projects: [], scopes: [{ kind: "member-all", role: "writer" }] } };
461+
462+// abso 684: in an agent's folder, login asks a person in the project instead of relaying the code.
465+ assert.equal(device, started.device_code, "the ask is made with this client's own device code");
477+
478+test("an asked login says who was asked and until when, and doesn't lead with the code (abso 684)", async () => {
488+ [200, { box_id: "b_test", box_token: CREDENTIAL, expires_at: EXPIRES, grant: { projects: [] } }],
500+ /^Asked the person who approved this agent's box \(ask 41 in abso\) to sign this box in, as at most writer\.$/,
502+ assert.match(said[1]!, /^Waiting for their answer, until .* CT\. To approve it yourself instead: /);
505+
529+
530+test("an asked login that nobody answers withdraws its ask and grants nothing (abso 684)", async () => {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 client/test/box.test.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=client%2Ftest%2Fbox.test.ts&format=json