Versions 170 to 171
Lines 31–36 at 171 (were 31–37 at 170)
34− max_agents: 5,
3736const record = { server: SERVER, id: "b_0123abcd", credential: CREDENTIAL, grant, expiresAt: Date.parse(EXPIRES) };
Lines 69–89 at 171 (were 70–92 at 170)
7271
73−test("login grant options validate project lists, roles, limits and duration", () => {
79− "max-agents": "string",
84− assert.deepEqual(request("--projects", "alpha, beta,alpha", "--max-agents", "1", "--days", "30"), {
89− max_agents: 1,
Lines 92–98 at 171 (were 95–101 at 170)
98− assert.deepEqual(request("--max-agents", "50", "--days", "90"), { max_agents: 50, days: 90 });
Lines 102–117 at 171 (were 105–122 at 170)
108− for (const flag of ["--max-agents", "--days"]) {
109− for (const value of ["0", "-1", "1.5", "1e1", "Infinity", "100", "abc", ""])
110− assert.throws(() => request(flag, value));
111− }
113108
114109test("login sends requested grants only at device start and retains the user's actual approval", async () => {
118− const requested = { projects: [{ project: "abso", role: "owner" as const }], max_agents: 10, days: 90 };
119− const approved = { projects: [{ project: "abso", role: "reader" }], max_agents: 1 };
Lines 204–211 at 171 (were 209–215 at 170)
212− assert.match(boxText(got, SERVER, 0), /abso \(writer\), game \(reader\)\. Up to 5 agents\./);
215211
Lines 418–421 at 171 (were 422–434 at 170)
425−
426− const limit = server(
427− [
428− [200, { box_id: record.id, agents: [] }],
429− [409, { error: "this box is at its agent limit" }],
430− ],
431− [],
432− );
433− await assert.rejects(mintFreeName(record, "abso", "snow", limit), /this box is at its agent limit \(5\)/);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 170 171 client/test/box.test.ts --json
- JSON
- /christopher/abso-core/compare/170..171?file=client%2Ftest%2Fbox.test.ts&format=json