{"draft":null,"from":170,"to":171,"files":[{"path":"client/test/box.test.ts","added":9,"removed":22,"diff":"--- a/client/test/box.test.ts\n+++ b/client/test/box.test.ts\n@@ -31,7 +31,6 @@\n \t\t{ project: \"abso\", role: \"writer\" },\n \t\t{ project: \"game\", role: \"reader\" },\n \t],\n-\tmax_agents: 5,\n };\n const EXPIRES = \"2026-10-15T00:00:00.000Z\";\n const record = { server: SERVER, id: \"b_0123abcd\", credential: CREDENTIAL, grant, expiresAt: Date.parse(EXPIRES) };\n@@ -70,23 +69,21 @@\n \t};\n }\n \n-test(\"login grant options validate project lists, roles, limits and duration\", () => {\n+test(\"login grant options validate project lists, roles and duration\", () => {\n \tconst request = (...words: string[]) =>\n \t\tloginRequest(\n \t\t\tparseArgs(\"login\", words, {\n \t\t\t\tprojects: \"string\",\n \t\t\t\trole: \"string\",\n-\t\t\t\t\"max-agents\": \"string\",\n \t\t\t\tdays: \"string\",\n \t\t\t}),\n \t\t);\n \tassert.equal(request(), undefined);\n-\tassert.deepEqual(request(\"--projects\", \"alpha, beta,alpha\", \"--max-agents\", \"1\", \"--days\", \"30\"), {\n+\tassert.deepEqual(request(\"--projects\", \"alpha, beta,alpha\", \"--days\", \"30\"), {\n \t\tprojects: [\n \t\t\t{ project: \"alpha\", role: \"writer\" },\n \t\t\t{ project: \"beta\", role: \"writer\" },\n \t\t],\n-\t\tmax_agents: 1,\n \t\tdays: 30,\n \t});\n \tassert.deepEqual(request(\"--projects\", \"alpha\", \"--role\", \"reader\"), {\n@@ -95,7 +92,7 @@\n \tassert.deepEqual(request(\"--projects\", \"alpha\", \"--role\", \"owner\"), {\n \t\tprojects: [{ project: \"alpha\", role: \"owner\" }],\n \t});\n-\tassert.deepEqual(request(\"--max-agents\", \"50\", \"--days\", \"90\"), { max_agents: 50, days: 90 });\n+\tassert.deepEqual(request(\"--days\", \"90\"), { days: 90 });\n \tfor (const words of [\n \t\t[\"--role\", \"writer\"],\n \t\t[\"--projects\", \"\"],\n@@ -105,18 +102,16 @@\n \t\t[\"--projects\", Array.from({ length: 101 }, (_, i) => `p${i}`).join(\",\")],\n \t])\n \t\tassert.throws(() => request(...words));\n-\tfor (const flag of [\"--max-agents\", \"--days\"]) {\n-\t\tfor (const value of [\"0\", \"-1\", \"1.5\", \"1e1\", \"Infinity\", \"100\", \"abc\", \"\"])\n-\t\t\tassert.throws(() => request(flag, value));\n-\t}\n+\tfor (const value of [\"0\", \"-1\", \"1.5\", \"1e1\", \"Infinity\", \"100\", \"abc\", \"\"])\n+\t\tassert.throws(() => request(\"--days\", value));\n });\n \n test(\"login sends requested grants only at device start and retains the user's actual approval\", async () => {\n \tconst h = home();\n \tconst seen: Seen = [];\n \tconst c = clock();\n-\tconst requested = { projects: [{ project: \"abso\", role: \"owner\" as const }], max_agents: 10, days: 90 };\n-\tconst approved = { projects: [{ project: \"abso\", role: \"reader\" }], max_agents: 1 };\n+\tconst requested = { projects: [{ project: \"abso\", role: \"owner\" as const }], days: 90 };\n+\tconst approved = { projects: [{ project: \"abso\", role: \"reader\" }] };\n \tconst got = await login(\n \t\tSERVER,\n \t\t{\n@@ -209,7 +204,8 @@\n \tassert.equal(files.length, 1);\n \tassert.ok(readFileSync(join(h, \".abso\", \"boxes\", files[0]!), \"utf8\").includes(CREDENTIAL));\n \tassert.equal(boxText(got, SERVER, 0).includes(CREDENTIAL), false);\n-\tassert.match(boxText(got, SERVER, 0), /abso \\(writer\\), game \\(reader\\)\\. Up to 5 agents\\./);\n+\tassert.match(boxText(got, SERVER, 0), /abso \\(writer\\), game \\(reader\\)\\.\\n/);\n+\tassert.doesNotMatch(boxText(got, SERVER, 0), /agents/);\n \tassert.equal(JSON.stringify(boxPublic(got)).includes(CREDENTIAL), false);\n });\n \n@@ -422,13 +418,4 @@\n \t\t],\n \t\t\"snow is this box's already: never minted again, which would replace its key\",\n \t);\n-\n-\tconst limit = server(\n-\t\t[\n-\t\t\t[200, { box_id: record.id, agents: [] }],\n-\t\t\t[409, { error: \"this box is at its agent limit\" }],\n-\t\t],\n-\t\t[],\n-\t);\n-\tawait assert.rejects(mintFreeName(record, \"abso\", \"snow\", limit), /this box is at its agent limit \\(5\\)/);\n });"}],"unmatched":[]}