{"draft":null,"from":83,"to":84,"files":[{"path":"client/src/main.ts","added":5,"removed":5,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -39,7 +39,7 @@\n } from \"./commands.ts\";\n import { configPath, findRoot, installKey, readConfig, readToken } from \"./config.ts\";\n import { newsBlockLines, newsShown, TOKEN_SERVERS } from \"./core.ts\";\n-import { doctor, doctorText, plainError, realProbe, whoami } from \"./doctor.ts\";\n+import { checkServer, doctor, doctorText, plainError, realProbe, whoami } from \"./doctor.ts\";\n import { runDraftSync, runLand, runSwitch } from \"./drafts.ts\";\n import { runExport } from \"./export.ts\";\n import { runBlame, runWhere, runWho, runWhy } from \"./history.ts\";\n@@ -208,9 +208,9 @@\n \t\tflags: { server: \"string\" },\n \t\tusage: \"abso whoami [--server <url>]\",\n \t\tabout:\n-\t\t\t\"Who and where you're signed in: this box's sign-in, as the server sees it (so a revoked one shows), its projects, roles and expiry, and this folder's project, agent and kind of key. Never a credential.\",\n+\t\t\t\"Who and where you're signed in: this box's sign-in, as the server sees it (so a revoked one shows), its projects, roles and expiry, and this folder's project, agent and kind of key. Never a credential. The server is --server, else ABSO_SERVER, else this folder's, else the one this box signed in to with abso login, else https://api.abso.dev.\",\n \t\trun: async (args, env) => {\n-\t\t\tconst out = await whoami(boxServer(args, env), env.cwd, env.env, realProbe());\n+\t\t\tconst out = await whoami(checkServer(str(args, \"server\"), env.cwd, env.env), env.cwd, env.env, realProbe());\n \t\t\treturn { text: out.text, json: out.json };\n \t\t},\n \t},\n@@ -218,9 +218,9 @@\n \t\tflags: { server: \"string\" },\n \t\tusage: \"abso doctor [--server <url>]\",\n \t\tabout:\n-\t\t\t\"Checks what commands need, one line each: Node's version, that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project. A failed check says what to do next, and the exit is 1. Never prints a credential.\",\n+\t\t\t\"Checks what commands need, one line each: Node's version, that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project. A failed check says what to do next, and the exit is 1. Never prints a credential. It picks the server as whoami does.\",\n \t\trun: async (args, env) => {\n-\t\t\tconst checks = await doctor(boxServer(args, env), env.cwd, env.env, realProbe());\n+\t\t\tconst checks = await doctor(checkServer(str(args, \"server\"), env.cwd, env.env), env.cwd, env.env, realProbe());\n \t\t\tconst failed = checks.some((c) => c.result === \"fail\");\n \t\t\treturn { text: doctorText(checks), json: { checks }, ...(failed ? { exit: EXIT.error } : {}) };\n \t\t},"}],"unmatched":[]}