Versions 32 to 318
Lines 3–8 at 318 (were 3–9 at 32)
33
6−import { join } from "node:path";
Lines 38–48 at 318 (were 39–44 at 32)
3938 throw new UsageError("abso key needs the admin token in ABSO_ADMIN_TOKEN or ~/.abso/admin-token");
4140
41+/** What an admin command says each time it uses the admin token, and where it came from. Never the token. */
42+export function adminTokenWords(env: Readonly<Record<string, string | undefined>> = process.env): string {
43+ return `Using the admin token, from ${fromEnv(env, "ADMIN_TOKEN")?.trim() ? "ABSO_ADMIN_TOKEN" : "~/.abso/admin-token"}.`;
45+
4448 for (const secret of secrets) if (secret.length > 0) out = out.split(secret).join("[redacted]");
Lines 61–67 at 318 (were 57–63 at 32)
60− "x-avcs-admin": admin,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 32 318 client/src/key-admin.ts --json
- JSON
- /christopher/abso-core/compare/32..318?file=client%2Fsrc%2Fkey-admin.ts&format=json