Versions 62 to 63
Lines 277–326 at 63 (were 277–282 at 62)
279279
280+/** The agent name abso join takes when none is given (abso issue 351): the box's name, lower-cased. */
284+
286+ * abso join with no --agent (abso issue 351): mints a key under `base`, else `base`-2, -3 and so on. Names this
287+ * box already holds in the project are skipped without asking, since minting one again would replace that agent's
288+ * key and cut off its folder. A name the server says is taken (409) moves on to the next; any other refusal, the
301+ `${originOf(record.server)} refused (${box.status}): ${String(box.body.error ?? "no reason given")}`,
303+ const agents = Array.isArray(box.body.agents) ? (box.body.agents as { project?: unknown; agent?: unknown }[]) : [];
311+ if (err instanceof UsageError && /refused \(409\): that agent name/.test(err.message)) continue;
312+ if (err instanceof UsageError && /refused \(409\): this box is at its agent limit/.test(err.message))
314+ `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`,
320+ `${base} through ${base}-${tries} are all taken in ${project}: give this agent a name with --agent <name>`,
323+
280324/** Ends the box on the server, then forgets it here. Forgets it even when the server can't be reached. */
281325export async function logout(record: BoxRecord, fetcher: typeof fetch = fetch, home = homedir()): Promise<boolean> {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 62 63 client/src/box.ts --json
- JSON
- /christopher/abso-core/compare/62..63?file=client%2Fsrc%2Fbox.ts&format=json