whoami and doctor: who and where you're signed in, and a one-line-per-check health report
SP speedbegan .
8 files: client/src/command-env.ts, client/src/doctor.ts, client/src/main.ts, client/src/mcp.ts, client/test/client.test.ts, client/test/doctor.test.ts, worker/project/project.ts, worker/project/test/where-many-agents.test.ts
version 76abso whoami and abso doctor, and plainer errors.
- abso whoami: this box's sign-in as the server sees it (a revoked one shows as revoked), its projects, roles and expiry, and this folder's project, agent and kind of key. It names who approved the box when the server says.
- abso doctor: one line per check, ok, fail or skip: Node's version (20 or later for the npm package, 24 for a checkout), that the server answers, this box's sign-in (present, unexpired, accepted), and this folder's key against its project (a GET of the project's head, which the server answers only after checking the key). A failed check gives the next step, and the exit is 1.
- Neither prints a credential. Both are MCP tools too.
- The commonest failures now say what to do: a 401 with no credential reads 'You're not signed in. Run abso login, then abso join <project>.'; a refused key points to abso doctor; a server that can't be reached reads 'Can't reach <server>...' with the next step, unless the message already gives one; and outside a folder, 'You're not in an abso folder' says how to make one.
client/src/command-env.ts, client/src/doctor.ts, client/src/main.ts, client/src/mcp.ts, client/test/client.test.ts, client/test/doctor.test.tsversion 83where lays out an agent's view only when it reads it
draftOf's view is now built on first use. where asks every agent for its draft, most agents have no changes, and a big project has more agents than the view cache holds (32), so each call built every view again. On a 17,000-entry log with 52 agents, where went from about 730 ms a call to about 10 ms. Test: worker/project/test/where-many-agents.test.ts.
worker/project/project.ts, worker/project/test/where-many-agents.test.tsversion 84whoami and doctor pick the server as join does
After abso login --server <url>, whoami and doctor still looked at https://api.abso.dev outside a folder, so they said you weren't signed in, and doctor checked the wrong server. Both now take --server, then ABSO_SERVER, then the folder's server, then the server this box signed in to with abso login, then https://api.abso.dev. A box signed in to more than one server is asked to say which with --server, as join does. Help text says so. Test in client/test/doctor.test.ts.
client/src/doctor.ts, client/src/main.ts, client/test/doctor.test.ts- MCP
- change on this site's /mcp
- CLI
- abso review 880 --json
- JSON
- /christopher/abso-core/changes/880?format=json