{"draft":null,"from":101,"to":102,"files":[{"path":"client/src/main.ts","added":12,"removed":3,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -7,7 +7,7 @@\n import { ApiError } from \"./api.ts\";\n import { bool, type FlagSpec, type Parsed, parseArgs, str, UsageError } from \"./args.ts\";\n import { bodyFilesHelp, readBodyFiles, withBodyFiles } from \"./body-files.ts\";\n-import { boxPublic, boxText, login, logout, readBox } from \"./box.ts\";\n+import { boxPublic, boxText, login, loginRequest, logout, readBox } from \"./box.ts\";\n import { runDiff, runFiles, runLog, runRestore, runShow } from \"./changes.ts\";\n import { runCheckIgnore } from \"./check-ignore.ts\";\n import { runCi } from \"./ci.ts\";\n@@ -174,8 +174,16 @@\n \t\t},\n \t},\n \tlogin: {\n-\t\tflags: { server: \"string\", \"no-browser\": \"boolean\" },\n-\t\tusage: \"abso login [--server <url>] [--no-browser]\",\n+\t\tflags: {\n+\t\t\tserver: \"string\",\n+\t\t\t\"no-browser\": \"boolean\",\n+\t\t\tprojects: \"string\",\n+\t\t\trole: \"string\",\n+\t\t\t\"max-agents\": \"string\",\n+\t\t\tdays: \"string\",\n+\t\t},\n+\t\tusage:\n+\t\t\t\"abso login [--server <url>] [--no-browser] [--projects <name,name>] [--role <reader|writer|owner>] [--max-agents <1-50>] [--days <1-90>]\",\n \t\tabout:\n \t\t\t\"Sign this box in once: it opens the approve page in your browser with the code filled in, prints the link and the code too, and waits while a person approves the code on the website, choosing the projects, the highest role and how many agents. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. Without --server, the folder's server, or https://api.abso.dev outside a folder. No browser opens with --no-browser or ABSO_NO_BROWSER, over SSH, under CI, or on Linux without a display.\",\n \t\trun: async (args, env) => {\n@@ -185,6 +193,7 @@\n \t\t\t\t\t? undefined\n \t\t\t\t\t: (url: string) => openInBrowser(url);\n \t\t\tconst record = await login(server, {\n+\t\t\t\trequest: loginRequest(args),\n \t\t\t\tsay: (line) => process.stderr.write(terminalText(`${line}\\n`, colorsPass(process.stderr, env.env))),\n \t\t\t\topen,\n \t\t\t});"}],"unmatched":[]}