{"draft":null,"from":170,"to":171,"files":[{"path":"client/src/box.ts","added":7,"removed":13,"diff":"--- a/client/src/box.ts\n+++ b/client/src/box.ts\n@@ -15,25 +15,25 @@\n import { type Parsed, str, UsageError } from \"./args.ts\";\n import { homeFile, homeWritePath, OLD_STATE_DIR, STATE_DIR } from \"./state-dir.ts\";\n \n-/** What the person who approved the code allowed: each project with the highest role its agents get there, and how many agents. */\n+/**\n+ * What the person who approved the code allowed: each project with the highest role its agents get there. A box lets in any\n+ * number of agents (abso 642; Christopher, 2026-10-14, ask 1947); the server still records a max_agents it doesn't enforce.\n+ */\n export interface Grant {\n \treadonly projects: readonly { readonly project: string; readonly role: string }[];\n-\treadonly max_agents: number;\n }\n \n /** Requested access is a suggestion for the person approving, never an authorization. */\n export interface LoginRequest {\n \treadonly projects?: readonly { readonly project: string; readonly role: \"reader\" | \"writer\" | \"owner\" }[];\n-\treadonly max_agents?: number;\n \treadonly days?: number;\n }\n \n export function loginRequest(args: Parsed): LoginRequest | undefined {\n \tconst projects = str(args, \"projects\");\n \tconst role = str(args, \"role\");\n-\tconst maxAgents = str(args, \"max-agents\");\n \tconst days = str(args, \"days\");\n-\tif (projects === undefined && role === undefined && maxAgents === undefined && days === undefined) return undefined;\n+\tif (projects === undefined && role === undefined && days === undefined) return undefined;\n \tif (role !== undefined && projects === undefined) throw new UsageError(\"--role needs --projects\");\n \tconst requestedRole = role ?? \"writer\";\n \tif (requestedRole !== \"reader\" && requestedRole !== \"writer\" && requestedRole !== \"owner\")\n@@ -50,7 +50,6 @@\n \t};\n \treturn {\n \t\t...(names ? { projects: [...new Set(names)].map((project) => ({ project, role: requestedRole })) } : {}),\n-\t\t...(maxAgents === undefined ? {} : { max_agents: integer(maxAgents, \"max-agents\", 50) }),\n \t\t...(days === undefined ? {} : { days: integer(days, \"days\", 90) }),\n \t};\n }\n@@ -228,8 +227,7 @@\n \t\ttypeof x === \"object\" &&\n \t\tx !== null &&\n \t\tArray.isArray(x.projects) &&\n-\t\tx.projects.every((p) => typeof p?.project === \"string\" && typeof p.role === \"string\") &&\n-\t\ttypeof x.max_agents === \"number\"\n+\t\tx.projects.every((p) => typeof p?.project === \"string\" && typeof p.role === \"string\")\n \t);\n }\n \n@@ -350,10 +348,6 @@\n \t\t\treturn { ...(await mintKey(record, project, agent, fetcher)), agent };\n \t\t} catch (err) {\n \t\t\tif (err instanceof UsageError && /refused \\(409\\): that agent name/.test(err.message)) continue;\n-\t\t\tif (err instanceof UsageError && /refused \\(409\\): this box is at its agent limit/.test(err.message))\n-\t\t\t\tthrow new UsageError(\n-\t\t\t\t\t`this box is at its agent limit (${record.grant.max_agents}): abso box shows its grant, and an agent can be revoked on the website's Boxes page`,\n-\t\t\t\t);\n \t\t\tthrow err;\n \t\t}\n \t}\n@@ -383,7 +377,7 @@\n \tconst expired = record.expiresAt <= now;\n \treturn [\n \t\t`Signed in to ${record.server} as box ${record.id}${expired ? \", but the sign-in has expired. abso login renews it.\" : \".\"}`,\n-\t\t`Projects: ${g.projects.map((p) => `${p.project} (${p.role})`).join(\", \")}. Up to ${g.max_agents} agents.`,\n+\t\t`Projects: ${g.projects.map((p) => `${p.project} (${p.role})`).join(\", \")}.`,\n \t\t`${expired ? \"Expired\" : \"Expires\"} ${day(record.expiresAt)} UTC.`,\n \t].join(\"\\n\");\n }"}],"unmatched":[]}