Versions 267 to 268
Lines 48–58 at 268 (were 48–54 at 267)
5050
51−export function readConfig(root: string, env: Readonly<Record<string, string | undefined>> = process.env): Config {
Lines 64–70 at 268 (were 60–66 at 267)
6165 if (typeof raw[key] !== "string" || raw[key] === "") throw new Error(`${configPath(root)} has no "${key}"`);
63− const token = tokenFor(raw.server!, env, root);
Lines 182–188 at 268 (were 178–183 at 267)
Lines 192–211 at 268 (were 187–195 at 267)
190− const token = fromEnv(env, "TOKEN")?.trim() || runKey(env) || readToken(env);
191− const trusted = trustedServers(env);
192− if (token === undefined || tokenGoesTo(server, trusted)) return token;
201+
194210 `this folder's server is ${server}, and abso sends your token only to ${[...TOKEN_SERVERS, "this machine"].join(", ")}, and the servers ~/.abso/servers.json or ABSO_TRUSTED_SERVERS name. ` +
195211 `If ${server} is yours, name it in ~/.abso/servers.json or ABSO_TRUSTED_SERVERS (comma-separated); if you didn't set it, someone else wrote .abso/config.json.`,
Lines 251–261 at 268 (were 235–240 at 267)
237253
254+/** This machine's token file (~/.abso/token, else ~/.avcs/token), or none. abso init and join read it only with --token-file. */
258+
239260export function readToken(env: Readonly<Record<string, string | undefined>> = process.env): string | undefined {
- MCP
- compare on this site's /mcp
- CLI
- abso diff 267 268 client/src/config.ts --json
- JSON
- /christopher/abso-core/compare/267..268?file=client%2Fsrc%2Fconfig.ts&format=json