Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 32 to 318

Compare

+6 −2 in 3 places
Lines 3–8 at 318 (were 3–9 at 32)
33
44import { readFileSync } from "node:fs";
55import { homedir } from "node:os";
6−import { join } from "node:path";
76import { UsageError } from "./args.ts";
87import type { Config } from "./config.ts";
98import { fromEnv } from "./env-names.ts";
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");
4039}
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"}.`;
44+}
4246function scrub(text: string, secrets: readonly string[]): string {
4347 let out = text.replace(/abso_sk_[A-Za-z0-9_-]+/g, "[redacted]");
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)
5761 method,
5862 headers: {
5963 ...(config.token ? { authorization: `Bearer ${config.token}` } : {}),
60− "x-avcs-admin": admin,
64+ "x-abso-admin": admin,
6165 },
6266 signal: AbortSignal.timeout(30_000),
6367 });
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